BribeRewarder contract Creates a Bigger _rewards Array Than It Should
Summary
The BribeRewarder contract creates a bigger _rewards array. This array should have the length of the valid periods. Failing to set the adequate number of period affects in different scenarios to reward distribution.
Vulnerability Detail
The _bribe function of the BribeRewarder contract creates a one extra index for a period that cant be voted.
Impact
This disrupts the normal function of the contract and helps to increase severity on other vulnerabilities. It mainly affects to reward distribution.
slowfi
Medium
BribeRewarder
contract Creates a Bigger_rewards
Array Than It ShouldSummary
The
BribeRewarder
contract creates a bigger_rewards
array. This array should have the length of the valid periods. Failing to set the adequate number of period affects in different scenarios to reward distribution.Vulnerability Detail
The
_bribe
function of theBribeRewarder
contract creates a one extra index for a period that cant be voted.Impact
This disrupts the normal function of the contract and helps to increase severity on other vulnerabilities. It mainly affects to reward distribution.
Code Snippet
BribeRewarder.sol#L249-L251
Tool used
Manual Review
Recommendation
Cha
Duplicate of #689