Platform: Code4rena
Start Date: 04/01/2022
Pot Size: $25,000 USDC
Total HM: 3
Participants: 40
Period: 3 days
Judge: Ivo Georgiev
Total Solo HM: 1
Id: 75
League: ETH
Rank: 30/40
Findings: 1
Award: $37.37
🌟 Selected for report: 0
🚀 Solo Findings: 0
37.3718 USDC - $37.37
certora
it cannot be exploit by users because this function can be used only by the owner. but still it is better to verrify that the arrays sizes are equal to avoid un pleasent things that can be caused by owner mistake.
https://github.com/XDeFi-tech/xdefi-distribution/blob/master/contracts/XDEFIDistribution.sol#L77
vscode
verrify that the sizes of both arrays are matching before itterate over them.
#0 - deluca-mike
2022-01-08T22:18:24Z
If there are more multipliers
than durations
, then the extra multipliers
are ignored. If there are more durations
than multipliers
, then the function will revert anyway. Further, if the admin did make a mistake, they can just call the function again. This results in cheaper happy-path costs, especially since wallets usually alert/prevent user from signing/broadcasting transactions that will revert.
#1 - deluca-mike
2022-01-09T10:44:04Z
Duplicate #38