Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.55 KB

Readme.md

File metadata and controls

64 lines (41 loc) · 1.55 KB

bowswap.finance

Swap between crv-metapool vaults or bring your aave/compond tokens to yearn. bowswap.finance

deployments

Getting started

Requirements

  • Python 3.8 or above
  • yarn

Setup

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

Running test

brownie test

Running the project on local fork

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)

UI

Frontend can be found on https://github.com/TBouder/bowswap_ui