Skip to content

Latest commit

 

History

History
81 lines (52 loc) · 1.86 KB

README.md

File metadata and controls

81 lines (52 loc) · 1.86 KB

HaloDAO Interface

Styled With Prettier

An open source interface for HaloDAO -- a protocol for decentralized exchange of Ethereum tokens.

Accessing the HaloDAO Interface

To access the development app, visit dev.app.halodao.com.

Production app can be accessed at app.halodao.com

Development

Environment variables

A list of all env vars are available in .env.example, simply copy and rename to .env

But for simplicity, you can just copy the halodao-interface .env entry from the 1password vault

Install Dependencies

yarn

Run

yarn start

Supported networks:

  • Ethereum Kovan
  • Ethereum Mainnet
  • Polygon Mainnet
  • Arbitrum Rinkeby
  • Arbitrum One/Mainnet

Testing

Run unit tests

yarn test

Integration tests

Please refer to INTEGRATION_TESTS.md

Deployment

yarn build
yarn deploy:<target>

<target> can either be:

  • dev (dev.app.halodao.com)
  • dev-beta (dev.beta.app.halodao.com)
  • beta (beta.app.halodao.com)
  • prod (app.halodao.com)

Contributions

Please open all pull requests against the develop branch. CI checks will run against all PRs.

Feature Notes

Base APR

To calculate for base APR, we need to know the first deposit transaction of each pool. We currently store this info under DEPOSIT_TXHASH constant on src/constants/pools.ts.

When adding a new pool, don't forget to add the first deposit tx of the pool to the DEPOSIT_TXHASH constant or the base APR won't be displayed.