1.Make API for lists of supported tokens and supported farms
2.Add addresses for router and factory on optimism mainnet
3.Implemet Lending page
yarn
yarn start
To have the interface default to a different network when a wallet is not connected:
- Make a copy of
.env
named.env.local
- Change
REACT_APP_NETWORK_ID
to"{YOUR_NETWORK_ID}"
- Change
REACT_APP_NETWORK_URL
to your JSON-RPC provider
Note that the interface only works on testnets where both Pangolin and multicall are deployed. The interface will not work on other networks.
This code was adapted from this Uniswap repo: uniswap-interface.