- CalcTokenAmountZap
- Ethereum: 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- Optimism: 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- Gnosis (xDai): 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- Polygon: 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- Fantom: 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- Moonbeam: 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- Kava: 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- Arbitrum: 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- Celo: 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- Avalanche: 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- Aurora: 0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7
- python3 version 3.10 or greater, python3-dev
- vyper version 0.3.7
- brownie - tested with version 1.19.2
- brownie-token-tester - tested with version 0.3.2
- ganache-cli - tested with version 6.12.2
To get started, first create and initialize a Python virtual environment. Next, clone the repo and install the developer dependencies:
git clone https://github.com/curvefi/curve-zaps.git
cd curve-zaps
pip install -r requirements.txt
brownie test --network <network_name>-fork
# network_name: mainnet (ethereum), optimism, xdai, polygon, fantom, arbitrum, avalanche
brownie test --pools 3pool,compound,aave --network mainnet-fork
mainnet (ethereum)
PLAIN: 3pool,hbtc,link,sbtc2,seth,steth,susd,eurs,eurt,fraxusdc + aeth,reth (they use rate)
LENDING: aave,saave,ib,usdt,compound,y,busd,pax
META: gusd,husd,usdk,musd,rsv,dusd,usdp + rai (uses rate)
FACTORY PLAIN: factory-v2-283,factory-v2-66,factory-v2-235
FACTORY META: tusd + factory-v2-9,factory-v2-144,factory-v2-247
optimism
PLAIN: 3pool + wsteth (uses rate)
xdai
PLAIN: 3pool
META: rai (uses rate)
polygon
LENDING: aave
FACTORY META: factory-v2-107,factory-v2-339
fantom
PLAIN: 2pool
META: fusdt
LENDING: ib,geist
arbitrum
PLAIN: 2pool + wsteth (uses rate)
avalanche
LENDING: aave,aaveV3
FACTORY META: factory-v2-66
brownie run deploy --network <id>
This project is licensed under the MIT license.