31397 - [SC - Critical] In Bribesol _writeVotingCheckpoint isnt called ...
Description
Brief/Intro
Vulnerability Details
function deposit(uint256 amount, uint256 tokenId) external {
require(msg.sender == voter);
totalSupply += amount;
balanceOf[tokenId] += amount;
totalVoting += amount;
_writeCheckpoint(tokenId, balanceOf[tokenId]);
_writeSupplyCheckpoint();
_writeVotingCheckpoint();
emit Deposit(msg.sender, tokenId, amount);
}Impact Details
References
Proof of Concept
Previous31390 - [SC - High] Precision Loss in FluxTokensolgetClaimableFluxNext31399 - [SC - High] RewardDistributor claims can be DoSed through e...
Last updated
Was this helpful?