Skip to content

Feat/tiered staking rewards#321

Open
alexatsejames-alt wants to merge 3 commits intoceejaylaboratory:mainfrom
alexatsejames-alt:feat/tiered-staking-rewards
Open

Feat/tiered staking rewards#321
alexatsejames-alt wants to merge 3 commits intoceejaylaboratory:mainfrom
alexatsejames-alt:feat/tiered-staking-rewards

Conversation

@alexatsejames-alt
Copy link
Copy Markdown

Closes #244

Problem
When a user re-staked with a shorter lock tier, lock_end was always
overwritten with now + tier.lock_seconds, allowing a 1-month re-stake
to shrink an active 12-month lock. rate_multiplier was also updated
independently, so the two fields could drift out of sync.

Fix
lock_end and rate_multiplier now only update together when the new lock
extends further than the current one. This preserves the user's best
lock window and keeps the multiplier consistent with the lock end.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 28, 2026

@alexatsejames-alt Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@alexatsejames-alt
Copy link
Copy Markdown
Author

​"Just checking in to see if there’s any additional context or testing I can provide to help with the review whenever you have a moment. Thanks!"

@alexatsejames-alt
Copy link
Copy Markdown
Author

Hi, I’ve completed the implementation for tiered staking rewards.
The PR is ready for review. Kindly take a look when you can. Thanks!

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.

Contract: Implement tiered rewards in staking contract

1 participant