-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Staking cooldown removal #251
Conversation
test/foundry/unit/StakingRewardsV2/StakingV2Checkpointing.t.sol
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @Flocqst 💪 🔥 🎉 - glad to see this getting ripped out! Left a few comments here and there, nothing major :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preliminary review - just waiting for our sync to go further
please add your name/email/gh handle as author to contracts you modified. |
Thanks for the review @tommyrharper, took into account almost every comment you had except for the suggestion i did not include because of the incoming #252. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic-wise, everything looks good to me. Nice work 💪
The only point of concern:
Removing the cooldown could potentially lead to governance attacks, depending on the voting mechanism implementation.
For instance, with snapshot voting, a malicious actor could utilize a flashloan to artificially inflate voting power if they knew the exact block of the snapshot. This risk should be documented in the interface or another appropriate location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, thanks for addressing all my concerns!
Remove the staking cooldown for the stakingv2 contracts.
Description
contracts/StakingRewardsV2.sol
,contracts/RewardEscrowV2.sol
andcontracts/EscrowMigrator.sol
Motivation and Context
KIP-127: Staking V2 Upgrade