Skip to content

Conversation

@Douglasacost
Copy link
Collaborator

No description provided.

…. Includes functions to perform staking, claim rewards, withdraw in case of emergency and allow unstake. Events are added to track actions and validations are implemented to ensure proper staking conditions
@linear
Copy link

linear bot commented May 15, 2025

CHA-620

…ble modifier is added to allow pausing and resuming staking operations, as well as new validations and related events. Custom errors are introduced to improve exception handling, and staking, reclaiming and unstaking functions are adjusted to respect the paused state
…ble, implementing specific roles for reward and emergency management. Pause-related events are removed and functions are adjusted to require roles instead of Ownable. A new test file is added to validate role functionality and contract operations
… functions to perform staking, claim rewards, withdraw in case of emergency and allow unstaking. Events are added to track actions and validations are implemented to ensure proper staking conditions. A new test file is included to validate the functionality of the staking contract
@Douglasacost Douglasacost marked this pull request as ready for review May 25, 2025 16:32
@Douglasacost Douglasacost requested a review from trsmarc May 26, 2025 12:45
…on of a PRECISION constant, a new ‘unstaked’ state in the StakeInfo structure, and the private _calculateReward function to calculate rewards with high precision. Validations in the staking and claim functions are adjusted to correctly handle the new states, and related custom events and errors are updated. Additionally, ensures that the available reward balance is properly managed during staking and claiming operations
…aging rewards. Redundant comments are removed and validations are adjusted to ensure that available rewards are correctly verified before claiming. New reward management and emergency roles are introduced in testing, and test coverage is improved to verify the behavior of staking and claiming functions
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