pmuens / yearn-finance

🏦 yearn v2 web interface

Home Page:https://yearn.finance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://yearn.finance

License:MIT License


Languages

Language:JavaScript 98.0%Language:Handlebars 1.6%Language:HTML 0.3%Language:Shell 0.1%Language:Dockerfile 0.0%