UMAprotocol / protocol

UMA Protocol Running on Ethereum
https://uma.xyz
GNU Affero General Public License v3.0
359 stars 174 forks source link

feat: gas rebates may 2024 #4762

Closed Reinis-FRP closed 3 weeks ago

Reinis-FRP commented 3 weeks ago

Run script with:

export CUSTOM_NODE_URL=https://mainnet.infura.io/v3/<your-key>
cd packages/affiliates
yarn hardhat run ./gas-rebate/VoterGasRebateV2.ts --network mainnet

Script output:

Running UMA2.0 Gas rebate script! This script assumes you are running it for the previous month🍌.
Current time: 2024-06-13T05:27:25+00:00
Previous Month Start: 2024-05-01T00:00:00+00:00 & block 19771560
Previous Month End: 2024-05-31T23:59:59+00:00 & block 19993250
In aggregate, refund 1806 commits and 1655 Reveals for a total of 1582 transactions
The next rebate number is 44
🗄  File successfully written to /home/reinism/repos/UMAprotocol/protocol/packages/affiliates/gas-rebate/rebates/Rebate_44.json
Done in 1366.42s.