Platform: Code4rena
Start Date: 08/05/2023
Pot Size: $90,500 USDC
Total HM: 17
Participants: 102
Period: 7 days
Judge: 0xean
Total Solo HM: 4
Id: 236
League: ETH
Rank: 58/102
Findings: 1
Award: $66.59
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Team_Rocket
Also found by: 0xkazim, BPZ, Bauchibred, BoltzmannBrain, Brenzee, DeliChainSec, Franfran, Lilyjjo, MohammedRizwan, SaeedAlipoor01988, Yardi256, ast3ros, berlin-101, carlitox477, fs0c, peritoflores, sashik_eth, sces60107, thekmj, volodya, zzykxx
66.5871 USDC - $66.59
Incorrect calculation of critical parameters like baseRatePerBlock
.
The constant blocksPerYear
is incorrectly set
uint256 public constant blocksPerYear = 2102400; // @audit 15 seconds per block
However, for Binance Smart Chain the blocks are being produced every 3 seconds.
[-] uint256 public constant blocksPerYear = 2102400; [+] uint256 public constant blocksPerYear = 5 * 2102400;
Error
#0 - c4-judge
2023-05-16T09:21:37Z
0xean marked the issue as duplicate of #559
#1 - c4-judge
2023-06-05T14:02:51Z
0xean marked the issue as satisfactory
#2 - c4-judge
2023-06-05T14:38:22Z
0xean changed the severity to 2 (Med Risk)
#3 - c4-judge
2023-06-05T14:38:32Z
0xean changed the severity to 3 (High Risk)