Skip to content

Front end for an Alchemix community compounding tool

License

Notifications You must be signed in to change notification settings

benber86/alcom_front

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alchemix Community Compounding Tool - Front End

This is a React based front-end for the autocompounding contracts for ALCX pools. To run it, set the following environment variables or specify them in a .env file:

REACT_APP_MAINNET_PROVIDER= your RPC provider url
REACT_APP_ALCX_STAKING_POOLS_CONTRACT= "0xAB8e74017a8Cc7c15FFcCd726603790d26d7DeCa" (on ETH Mainnet)
REACT_APP_ALCX_TOKEN= "0xdBdb4d16EdA451D0503b854CF79D55697F90c8DF" (on ETH Mainnet)
REACT_APP_VAULT_CONTRACT= Address of the autocompounding vault's contract
REACT_APP_CHAIN_ID= 1 (for ETH Mainnet)

Install the dependencies,

yarn install

Then launch the app in development mode:

yarn start

Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

To build the app for production, use

yarn build

To do:

  • Refactor the contract calling logic to reduce duplicated code (create a higher order function that takes contract function name + arguments and returns ready to call function)
  • Split root reducer
  • Add tests
  • Better error handling for actions
  • Rewrite and DRY the selector hooks

About

Front end for an Alchemix community compounding tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published