30671 - [SC - Critical] Reward token permanent freeze due to bulk call ...
Description
Brief/Intro
Vulnerability Details
/// @inheritdoc IVoter
function poke(uint256 _tokenId) public {
// Previous boost will be taken into account with weights being pulled from the votes mapping
uint256 _boost = 0;
if (msg.sender != admin) {
require(IVotingEscrow(veALCX).isApprovedOrOwner(msg.sender, _tokenId), "not approved or owner");
}
address[] memory _poolVote = poolVote[_tokenId];
uint256 _poolCnt = _poolVote.length;
uint256[] memory _weights = new uint256[](_poolCnt);
for (uint256 i = 0; i < _poolCnt; i++) {
_weights[i] = votes[_tokenId][_poolVote[i]];
}
_vote(_tokenId, _poolVote, _weights, _boost);
}Impact Details
Proof of Concept
Previous30667 - [SC - Medium] Unlimited gauge numbers can DoS users distribut...Next30682 - [SC - Critical] Insufficient slippage control in RevenueHandler...
Last updated
Was this helpful?