60527 sc insight delegationexitrequested event emits inconsistent exit period values
Previous60533 sc high overlap which will lead to loss of fundNext60525 sc insight levelcirculatingsupplyupdated not emitted during supply changes
Was this helpful?
Was this helpful?
@>> (, uint32 exitBlock) = $.protocolStakerContract.getDelegationPeriodDetails(delegationId);
// ...
emit DelegationExitRequested(
_tokenId,
delegation.validator,
delegationId,
@>> exitBlock
);return []any{ //note this is the golang return statement from the node impleementation.
delegation.Validation,
staker.ToWei(delegation.Stake),
delegation.Multiplier,
isLocked,
delegation.FirstIteration,
lastPeriod,
} /// @notice Emitted when a delegation exit is requested
/// @dev When the delegation is pending, exit is immediate and this event is emitted
/// @param tokenId The ID of the token that was delegated
/// @param validator The validator that was delegated to
/// @param delegationId The ID of the delegation
/// @param exitBlock The block at which the delegation exit will be processed,
/// in case the delegation is pending it will be the current block
event DelegationExitRequested(
uint256 indexed tokenId,
address indexed validator,
uint256 indexed delegationId,
uint48 exitBlock
);DelegationExitRequested(..., exitBlock);