Platform: Code4rena
Start Date: 03/10/2023
Pot Size: $24,500 USDC
Total HM: 6
Participants: 62
Period: 3 days
Judge: LSDan
Total Solo HM: 3
Id: 288
League: ETH
Rank: 58/62
Findings: 1
Award: $4.94
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: adriro
Also found by: 0x3b, 0xAadi, 0xDING99YA, 0xTheC0der, 0xWaitress, 0xdice91, 100su, 3docSec, BRONZEDISC, BoRonGod, Eurovickk, GKBG, HChang26, IceBear, JP_Courses, MatricksDeCoder, Mike_Bello90, SovaSlava, Topmark, albahaca, cookedcookee, gzeon, hunter_w3b, kutugu, lukejohn, marqymarq10, matrix_0wl, orion, pep7siup, radev_sw, sces60107, taner2344, tpiliposian, wahedtalash77, xAriextz, zpan
4.9369 USDC - $4.94
Multiplication should always be performed before division to avoid loss of precision.
Because of nextWeek
effects time-weighted concentrated liquidity , this could cause of miscalculation.
-- uint32 currWeek = uint32((time / WEEK) * WEEK); -- uint32 nextWeek = uint32(((time + WEEK) / WEEK) * WEEK); ++ uint32 currWeek = uint32((time * WEEK) / WEEK); ++ uint32 nextWeek = uint32(((time + WEEK) * WEEK) / WEEK);
#0 - c4-pre-sort
2023-10-09T17:22:15Z
141345 marked the issue as sufficient quality report
#1 - c4-judge
2023-10-18T22:47:52Z
dmvt marked the issue as grade-b