shapeshift / rFOX

rFOX - RUNE rewards for FOX stakers
MIT License
0 stars 0 forks source link

chore: initial rewards distribution cli scaffolding #50

Closed woodenfurniture closed 4 weeks ago

woodenfurniture commented 1 month ago

Initial scaffolding of rewards distribution script. Runs rewards calculation using a typescript implementation of the accounting logic and compares it to the on-chain implementation, and throws an error if the results differ.

Test with

ARBITRUM_JSON_RPC_URL="https://arbitrum-mainnet.infura.io/v3/<your infura api key>" ts-node scripts/rewards-distribution/index.ts

For reference, the contract is deployed on-chain here https://arbiscan.io/address/0xd612B64A134f3D4830542B7463CE8ca8a29D7268