Skip to content

Standard ERC4626 protocol for tokenized vaults written in Solidity and Python using the brownie development framework.

Notifications You must be signed in to change notification settings

hadesbaker/TokenVault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TokenVault

License

TokenVault is a standard ERC4626 protocol for tokenized vaults that represent shares of yield-bearing tokens written in Solidity and Python using the brownie development framework. It allows users to deposit different ERC-20 tokens to a pool of tokens in exchange for vTokens (vault tokens).

Table of Contents

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python (3.7 or higher)
  • Brownie
  • Ganache or an Ethereum testnet for development
  • Metamask or another Ethereum wallet for interacting with your contracts

Getting Started

Installation

  1. Clone the repository:

    git clone https://github.com/hadesbaker/TokenVault.git
    cd TokenVault
  2. Install the required Python packages

    pip install -r requirements.txt

Usage

  1. Deploy the ERC20 and TokenVault contracts:

    brownie run scripts/deploy.py --network development
  2. Interact with the deployed contracts using the Brownie console:

    brownie console --network development

Testing

Run the tests to ensure your contracts function as expected:

brownie test

Deployment

Before deploying your contracts to the Ethereum mainnet, ensure you have:

  1. Sufficient ETH for gas fees in your deployment account
  2. Completed a security audit of your contracts
  3. Considered legal and regulatory compliance

To deploy your contracts, modify the deployment script scripts/deploy.py to specify the deployment network and execute it:

brownie run scripts/deploy.py --network mainnet

About

Standard ERC4626 protocol for tokenized vaults written in Solidity and Python using the brownie development framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published