Platform: Code4rena
Start Date: 28/09/2023
Pot Size: $36,500 USDC
Total HM: 5
Participants: 115
Period: 6 days
Judge: 0xDjango
Total Solo HM: 1
Id: 290
League: ETH
Rank: 81/115
Findings: 1
Award: $4.37
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Bauchibred
Also found by: 0x3b, 0xDetermination, 0xMosh, 0xScourgedev, 0xTheC0der, 0xTiwa, 0xWaitress, 0xdice91, 0xfusion, 0xpiken, 0xprinc, 0xweb3boy, ArmedGoose, Aymen0909, Breeje, Brenzee, Daniel526, DavidGiladi, DeFiHackLabs, Flora, Fulum, HChang26, Hama, IceBear, J4X, Krace, KrisApostolov, Maroutis, Mirror, MohammedRizwan, Norah, PwnStars, SPYBOY, TangYuanShen, Testerbot, ThreeSigma, Tricko, al88nsk, alexweb3, ast3ros, berlin-101, bin2chen, blutorque, btk, d3e4, deth, e0d1n, ether_sky, ge6a, gkrastenov, glcanvas, hals, imare, inzinko, jkoppel, jnforja, joaovwfreire, josephdara, kutugu, lotux, lsaudit, mahdirostami, merlin, n1punp, nadin, neumo, nisedo, nobody2018, oakcobalt, orion, peanuts, pep7siup, pina, ptsanev, rokinot, rvierdiiev, said, santipu_, sashik_eth, seerether, squeaky_cactus, terrancrypt, tonisives, twicek, vagrant, xAriextz, y4y
4.3669 USDC - $4.37
There are two issues regarding the release rate of tokens in PrimeLiquidityProvider:
There is also a BLOCKS_PER_YEAR
variable in Prime, I don't think this will work properly on polygon zkevm.
I cannot provide a POC simulation to control the generation rate of blocks. You can view it from https://zkevm.polygonscan.com/. The general process is as follows:
1
block/s, the protocol sets the token release rate to 1e18
, the total number of tokens to 1e24
, and is expected to be released in 12
days1
day, avoiding additional user participation and obtaining large rewards.Foundry
Use timestamp instead of block number to calculate rate
Context
#0 - c4-pre-sort
2023-10-06T21:19:58Z
0xRobocop marked the issue as duplicate of #76
#1 - c4-pre-sort
2023-10-07T00:00:29Z
0xRobocop marked the issue as duplicate of #39
#2 - c4-judge
2023-11-01T15:57:54Z
fatherGoose1 marked the issue as duplicate of #76
#3 - c4-judge
2023-11-01T15:58:10Z
fatherGoose1 changed the severity to QA (Quality Assurance)
#4 - c4-judge
2023-11-03T01:42:12Z
fatherGoose1 marked the issue as grade-b