51966 sc low totalamountclaimable reverts instead of returning the claimable reward for historical tokens
Description
Brief/Intro
Vulnerability Details
/**
* @notice Get the total amount of a specific token claimable across all users.
* @param token Address of the token to check.
* @return amount Total amount of the token claimable.
*/
function totalAmountClaimable(
address token
) external view returns (uint256 amount) {
PlumeStakingStorage.Layout storage $ = PlumeStakingStorage.layout();
// @audit - revert when token is historical reward token
@> require($.isRewardToken[token], "Token is not a reward token");
// Return the total claimable amount
return $.totalClaimableByToken[token];
}Impact Details
Recommended Change
Proof of Concept
Previous51320 sc low malicious teller parameter allow event data manipulationNext50399 sc low broken access control in particular contract functions due lack of pause unpause functionality
Was this helpful?