Skip to content

fix: stop accumulating rewards for burned bundles#1307

Open
VQToan wants to merge 1 commit into
etherisc:developfrom
VQToan:fix-rewards-accumulation
Open

fix: stop accumulating rewards for burned bundles#1307
VQToan wants to merge 1 commit into
etherisc:developfrom
VQToan:fix-rewards-accumulation

Conversation

@VQToan
Copy link
Copy Markdown

@VQToan VQToan commented May 14, 2026

Fixes #203

Description

Prevents 'Accumulated Rewards' value from growing after a risk bundle is burned. This aligns the UI calculation with the actual contract behavior, where rewards shouldn't accumulate once a bundle reaches the BURNED state.

Changes

  • Updated fetchUnclaimedRewards in staking_contract.ts to check if the bundle state is BundleState.BURNED
  • If burned, the rewardIncrement calculation is skipped and defaults to 0, ensuring the reward value stops increasing

This PR was created with AI assistance.

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.

[Bug]: "Accumulated Rewards" value is growing after the risk bundle was burned

1 participant