Skip to content

simple vault contract to manage swaps of USDC and OAK

Notifications You must be signed in to change notification settings

oakcommunity/oak-vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OakVault

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.

Features

  • 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.

Setup

Prerequisites

  • Foundry (For smart contract compilation and deployment)

Installation

  1. Clone the repository:
    git clone https://github.com/oakcommunity/oak-vault.git
    cd oakvault
    
  2. Compile and test the contracts:
    forge build
    
    forge test
    
    

Security

OakVault has not been audited. Always exercise caution when interacting with smart contracts.

About

simple vault contract to manage swaps of USDC and OAK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published