Swap between crv-metapool vaults or bring your aave/compond tokens to yearn. bowswap.finance
- VaultSwapper 0xf12eeab1c759dd7d8c012cca6d8715eed80e51b6
- YVEmpire 0xeb8d98f9e42a15b0eb35315f737bdfda1a8d2eaa
- Python 3.8 or above
- yarn
pip install -r requirements.txt
yarn
In order to work on this project you need to set the following enviroment variables:
ETHERSCAN_TOKEN=
WEB3_INFURA_PROJECT_ID=
- ETHERSCAN_TOKEN can be created with an etherscan account here
- WEB3_INFURA_PROJECT_ID can be created with a infur account here
brownie test
On a first shell tab run:
npx hardhat node --port 8545 --fork https://mainnet.infura.io/v3/YOUR_INFURA_ID
On a second shell tab:
brownie run scripts/setup_local_env.py
This command will deploy the contract, ask for wallet address (you can use metamask connected to localhost:8545) to seed with ETH and yCRV tokens.
The address should have recieved one ETH and ycrv tokens for the following vaults:
- 0xC4dAf3b5e2A9e93861c3FBDd25f1e943B8D87417 (Curve USDP Pool yVault)
- 0x3c5DF3077BcF800640B5DAE8c91106575a4826E6 (Curve pBTC Pool yVault)
Frontend can be found on https://github.com/TBouder/bowswap_ui