Skip to content

CurveFi is an exchange liquidity pool on Ethereum (like Uniswap) designed for extremely efficient stablecoin trading This repository allows you to add liquidity to a CurveFi pool on a mainnet-fork: - we add Weth to Tricrypto(USDT, WETH,WBTC) Pool. Just to highlight Vyper programming language is used in CurveFi smart contracts

Notifications You must be signed in to change notification settings

Decentralisedme/curveFi_addLiquidity_brownie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curveFi_addLiquidity_brownie

CurveFi is an exchange liquidity pool on Ethereum (like Uniswap) designed for extremely efficient stablecoin trading

Follow the steps to run the script:

  1. Start a ganache-cli node: ganache-cli —fork https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID -p XXXX

  2. Add Brownie network: brownie networks add development mainnet-fork-dev cmd=ganache-cli host=http://127.0.0.1 fork='https://mainnet.infura.io/V3/YOUR_INFURA_PROJECT_ID' accounts=10 mnemonic=brownie port=XXXX

  3. Get some Weth by running: brownie run scripts/get_weth.py —network mainnet-fork-dev

  4. Add Liquidity by running: brownie run scripts/add_liquidity —network mainnet-fork-dev

You will see the balance of the pool being increased by “amount” set to 0.5 eth atm

To be noted:

About

CurveFi is an exchange liquidity pool on Ethereum (like Uniswap) designed for extremely efficient stablecoin trading This repository allows you to add liquidity to a CurveFi pool on a mainnet-fork: - we add Weth to Tricrypto(USDT, WETH,WBTC) Pool. Just to highlight Vyper programming language is used in CurveFi smart contracts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published