49671 sc insight wrong emission in stake
Description
Summary
Vulnerability Details
/**
* @notice Emitted when tokens are staked in the contract
* @param staker Address of the staker
* @param validatorId ID of the validator receiving the stake
* @param amount Amount of tokens staked
* @param fromCooled Amount of tokens used from cooled tokens
* @param fromParked Amount of tokens used from parked (withdrawn) tokens
* @param pendingRewards Amount of tokens staked from pending rewards
*/
event Staked(
address indexed staker,
uint16 indexed validatorId,
uint256 amount,
uint256 fromCooled,
uint256 fromParked,
uint256 pendingRewards
);Impact
Recommendation
Proof of Concept
Previous52706 sc low multi quantity prize claims revert until all winners are drawn freezing early winnersNext50252 sc high rounding excess yield tokens become permanently stuck when last holder is yield restricted
Was this helpful?