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
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
For reference, the contract is deployed on-chain here https://arbiscan.io/address/0xd612B64A134f3D4830542B7463CE8ca8a29D7268