Sense Portal
An fully-featured interface for exploring rates in DeFi and interacting with the Sense Protocol. ## Development Install it and run: ```bash npm install npm run dev # or yarn yarn dev ``` _Requires node version >= v11.15.0_ ### Environment 1. Create a local `.env` file 2. Set `INFURA_KEY` to a valid Infura API key 3. Set `ALCHEMY_KEY` to a valid Alchemy API key 4. Set `RATES_DATABASE_URL` to the rates db postgres url (ex: `postgresql://.../defirates`) 5. Set `APP_DATABASE_URL` to the app db postgres url (ex: `postgresql://.../app`) 6. Set `MNEMONIC` to the mnemonic of the testchain deployer 7. Set `REDIS_URL` to the redis instance url (ex: `rediss://`) 8. Set `NEXT_PUBLIC_FATHOM_SITE_ID` to a valid Fathom Site ID, or leave empty ### Testing with a local testchain To start a local testchain, run the testchain script: ```bash yarn testchain ``` The script will prompt you to chose a `tag` from the [Sense v1](https://github.com/sense-finance/sense-v1) contracts repo. Note that the `tag` has implications for the contracts *and* the deploy scripts. Once the testchain is up and running, use the following script to fill an address with ETH and Target. ```bash yarn testchain-task faucet ```