Skip to content

fix: rewards UI#26

Merged
aminsammara merged 6 commits intomainfrom
fix/rewards-ui
Feb 13, 2026
Merged

fix: rewards UI#26
aminsammara merged 6 commits intomainfrom
fix/rewards-ui

Conversation

@robertbrada
Copy link
Collaborator

Fixes UI issues related to staking rewards. Issues identified:

  1. Token Vault detail was incorrectly showing total sum of accumulated staking rewards
  2. Data weren't properly refetched during claim process (stale arguments were used for the withdraw transaction)

robertbrada and others added 4 commits February 13, 2026 11:27
The ATP Details Modal was showing 0 AZTEC rewards for all delegations
because useMultipleStakeWithProviderRewards only queried split contract
balances, missing rewards still in the rollup contract.

Updated the hook to query both rollup.getSequencerRewards() and
token.balanceOf() for each delegation, matching the correct implementation
in useAggregatedStakingData. Now uses calculateTotalUserShareFromSplitRewards
to combine both sources.

This fix ensures consistency between the Overview Breakdown Section and
ATP Details Modal, making the "Claim Rewards" button properly enabled when
rewards are available.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@robertbrada robertbrada requested a review from a team February 13, 2026 11:27
@aminsammara aminsammara merged commit 9d59458 into main Feb 13, 2026
5 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.

2 participants

Comments