Skip to content

Fix: show rewards as claimable on the V5 rollup - #112

Merged
koenmtb1 merged 1 commit into
AztecProtocol:mainfrom
y3v63n:fix/rewards-claimable-gate-fail-open
Jul 28, 2026
Merged

Fix: show rewards as claimable on the V5 rollup#112
koenmtb1 merged 1 commit into
AztecProtocol:mainfrom
y3v63n:fix/rewards-claimable-gate-fail-open

Conversation

@y3v63n

@y3v63n y3v63n commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What this fixes

Operators with rewards on the current (V5) rollup couldn't claim them from the dashboard. Self-stake rewards showed "Locked on this rollup", and the Operator page showed a "Rewards are currently locked on the network" banner — even though the rewards were real and could actually be claimed.

Fixes #111.

Why it happened

To decide whether to allow a claim, the dashboard called a function on the rollup contract (isRewardsClaimable) that used to signal a network-wide reward lock. The V5 rollup no longer has this function, so the call failed. The dashboard treated that failure as "locked" and disabled claiming.

The change

The dashboard now treats rewards as locked only when a rollup explicitly reports them as locked. When the check isn't available (as on V5), rewards are shown as claimable — which matches what the contract actually allows.

This affects the reward-lock state everywhere it's used: the self-stake claim modal, the coinbase/rewards address list, the Operator page banner, and the related claim buttons and notices.

Testing

  • Verified on-chain that claiming works on the V5 rollup while the old lock check is unavailable.
  • Ran the dashboard against mainnet and confirmed a gated wallet's rewards now show as claimable and the "locked" banner no longer appears.
  • Type-check and lint pass.

@y3v63n
y3v63n requested a review from a team as a code owner July 28, 2026 10:43
The staking dashboard checked a rollup function (isRewardsClaimable) to
decide whether to allow reward claims. The V5 rollup no longer has that
function, so the check failed and the dashboard treated rewards as locked
even though they could be claimed. Self-stake rewards showed "Locked on
this rollup" and operators saw a "rewards are currently locked" banner.

Now the dashboard only treats rewards as locked when a rollup explicitly
reports them as locked. If the check is unavailable (as on V5), rewards
are shown as claimable.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@y3v63n
y3v63n force-pushed the fix/rewards-claimable-gate-fail-open branch from 563c42a to 4591996 Compare July 28, 2026 10:52
@koenmtb1
koenmtb1 merged commit 41e422e into AztecProtocol:main Jul 28, 2026
2 checks passed
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.

Rewards show “Locked on this rollup” on the V5 rollup

2 participants