Skip to content

x48115/yearn-finance

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yearn.finance

Production Build Deployment Styled With Prettier

Helpful links

Setup

cp .env.sample .env

And then populate .env with your endpoints

Development

$ yarn dev

Testing on mainnet fork

To test the webapp with a local mainnet fork with some pre-filled tokens you can run:

./run_mainnet_fork.sh

The webapp will start in DEV mode and will be available at: http://localhost:3000

The local RPC client (ganache-cli) will be available at: http://localhost:8545

[Important]:

  • SET WEB3_INFURA_PROJECT_ID and ETHERSCAN_TOKEN variables in the .env file.
  • SET WEB3_PROVIDER_HTTPS and WEB3_PROVIDER_WSS variables in the .env file with your alchemy key
  • Set USE_LOCAL_RPC variable to TRUE on .env file.
  • Change Metamask to Localhost RPC endpoint :)

Brownie + dockerized ganache-cli

Install brownie >= 1.13.2

pip install "eth-brownie>=1.13.2"

Connect to your local mainnet-fork:

brownie console

Production

$ yarn build
$ yarn start

Contributing

Code style follows prettier conventions (yarn prettier). Commit messages follow the Conventional Commits spec.

About

🏦 yearn v2 web interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.2%
  • Handlebars 1.5%
  • Other 0.3%