31527 - [SC - Critical] No accounting for totalVoting in Bribesolwithdr...
Description
Brief/Intro
Vulnerability Details
//Doesn't decrease TotalVoting
function withdraw(uint256 amount, uint256 tokenId) external {
require(msg.sender == voter);
totalSupply -= amount;
balanceOf[tokenId] -= amount;
_writeCheckpoint(tokenId, balanceOf[tokenId]);
_writeSupplyCheckpoint();
emit Withdraw(msg.sender, tokenId, amount);
}Impact Details
Suggestions/ Recommendations
References
Proof of Concept
Previous31526 - [SC - Critical] A user is able to claim more bribes than they h...Next31539 - [SC - Medium] The Voterdistribute function can continue to fail
Last updated
Was this helpful?