yearn / yearn-finance

🏦 yearn v2 web interface
https://yearn.finance
MIT License
169 stars 111 forks source link

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]:

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.