OakVault is a decentralized application that manages swaps between USDC and $OAK tokens. It leverages the proxy pattern for upgradability and follows best practices for secure smart contract development.
- Swap Limit: Users can swap up to 10 USDC at a time.
- Swap Cooldown: Users must wait 1 day between swaps.
- Ownership: The contract owner can deposit and withdraw both $OAK and USDC tokens.
- Pausable: Contract functionalities can be paused for maintenance or security reasons.
- Upgradeable: Uses the ERC1967 proxy pattern for upgradability.
- Foundry (For smart contract compilation and deployment)
- Clone the repository:
git clone https://github.com/oakcommunity/oak-vault.git cd oakvault
- Compile and test the contracts:
forge build forge test
OakVault has not been audited. Always exercise caution when interacting with smart contracts.