- Forked from Angle Protocol: Uniswap-Incentives-Computer
- Install dependencies by running
yarn
- Fill
.env
following.env.example
- Launch the express server by running
yarn run run
Go to http://localhost:8080/mainnet
in browser
- Weekly distribution is split against every swap that happened proportionally to their volume
To test on Göerli:
- see the newo-testnet repo
- LP directly provided on Uniswap through the
NonfungiblePositionManager
- For each swap, the rewards are split between all LPs position in range, proportionally to:
- (0.4 _ (fees earned by the position) / (fees of the swap) + 0.4 _ (NEWO in the position) / (NEWO in the pool) + 0.2 _ (other token in the position) / (other token in the pool)) _ veNEWO boost
- Uses a standard
RewardDistributor
contract, sending rewards to the contract and allowing claiming through a merkle root
abis.ts
- stores the abis of each contract usedgithub.ts
- used for auto-uploading to githubindex.ts
- todoipfs.ts
- doing stuff with ipfsprovider.ts
- todoscripts.ts
- computes the uniswap v3 incentivesuniswap.ts
- todoutils.ts
- todo