Skip to content

Conversation

@md0x
Copy link
Contributor

@md0x md0x commented Jan 19, 2026

Description

This PR improves the UMA voter gas rebate script by capping refunded priority fees, adding missing configurability, and documenting the workflow.

Fixes UMA-2991

@linear
Copy link

linear bot commented Jan 19, 2026

@md0x md0x changed the title feat: voter gas rebates cap max priority fee feat[Gas rebate V2]: cap refunded priority fees, add block lookback config, and document usage Jan 19, 2026
@md0x md0x marked this pull request as ready for review January 19, 2026 12:02
fromBlock,
toBlock,
maxBlockLookBack: 20000,
maxBlockLookBack,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional config so we can lower lookback when getting this errors:

error ProviderError: query returned more than 10000 results. Try with this block range [0x16D05BC, 0x16D1EE6].

md0x added 2 commits January 19, 2026 12:06
Signed-off-by: Pablo Maldonado <[email protected]>
Signed-off-by: Pablo Maldonado <[email protected]>
# With custom configuration
OVERRIDE_FROM_BLOCK=18000000 \
OVERRIDE_TO_BLOCK=18500000 \
MIN_STAKED_TOKENS=1000 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also update the fallback value from 500 to 1000 in the script?

@md0x md0x merged commit 12f35a2 into master Jan 19, 2026
7 checks passed
@md0x md0x deleted the pablo/uma-2991-gas-rebates-refine-gas-rebate-script2 branch January 19, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants