Skip to content

Commit ffb883a

Browse files
committed
docs(gas-rebate): fix rebate 66 reproduction commands
1 parent 5e568b2 commit ffb883a

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

packages/affiliates/gas-rebate/README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,17 @@ Do not raise `MAX_BLOCK_LOOK_BACK` for production payouts unless the audit repor
6363

6464
### March 2026 Rebate 66 Rerun
6565

66-
The March 2026 recompute uses the original paid Rebate 66 block range and policy parameters. Replace only the placeholder RPC URL:
66+
The March 2026 recompute uses the original paid Rebate 66 block range and policy parameters. Because the paid
67+
`Rebate_66.json` artifact is committed, temporarily remove it for this reproduction run so the monthly script sees
68+
Rebate 65 as the latest paid rebate and writes `Rebate_66.json`. Replace only the placeholder RPC URL:
6769

6870
```bash
6971
cd packages/affiliates
7072

73+
REBATE_66_BACKUP_DIR="$(mktemp -d)"
74+
cp gas-rebate/rebates/Rebate_66.json "$REBATE_66_BACKUP_DIR/Rebate_66.json"
75+
rm gas-rebate/rebates/Rebate_66.json
76+
7177
CUSTOM_NODE_URL="<mainnet-rpc-url>" \
7278
NODE_OPTIONS="--max-old-space-size=24000" \
7379
OVERRIDE_FROM_BLOCK=24558868 \
@@ -77,6 +83,8 @@ TRANSACTION_CONCURRENCY=100 \
7783
MAX_BLOCK_LOOK_BACK=250 \
7884
MAX_PRIORITY_FEE_GWEI=0.001 \
7985
yarn hardhat run ./gas-rebate/VoterGasRebateV2.ts --network mainnet
86+
87+
diff -u "$REBATE_66_BACKUP_DIR/Rebate_66.json" gas-rebate/rebates/Rebate_66.json
8088
```
8189

8290
### Output Format
@@ -202,11 +210,16 @@ cd packages/affiliates
202210

203211
CUSTOM_NODE_URL="<mainnet-rpc-url>" \
204212
NODE_OPTIONS="--max-old-space-size=24000" \
213+
OUTPUT_DIR="$(mktemp -d)" \
205214
AUDIT_MANIFEST=gas-rebate/corrections/Rebate_66_Correction_Manifest.json \
206215
yarn hardhat run ./gas-rebate/AuditVoterGasRebateV2.ts --network mainnet
207216
```
208217

209-
The script writes `Correction_Rebate_66.json`, `Correction_Rebate_66.audit.json`, and `Correction_Rebate_66.audit.md` under `gas-rebate/corrections/` unless `OUTPUT_DIR` changes the destination. Correction payout ETH amounts are emitted as decimal strings so they round-trip to exact wei. The `.audit.json` file is intentionally git-ignored because it can contain large transaction-level evidence; commit the correction payout JSON and `.audit.md` reviewer summary.
218+
The command above writes `Correction_Rebate_66.json`, `Correction_Rebate_66.audit.json`, and
219+
`Correction_Rebate_66.audit.md` to a fresh temporary directory so it does not overwrite committed correction artifacts.
220+
Without `OUTPUT_DIR`, the script writes under `gas-rebate/corrections/`. Correction payout ETH amounts are emitted as
221+
decimal strings so they round-trip to exact wei. The `.audit.json` file is intentionally git-ignored because it can
222+
contain large transaction-level evidence; commit the correction payout JSON and `.audit.md` reviewer summary.
210223

211224
### Overpayments
212225

0 commit comments

Comments
 (0)