Platform: Code4rena
Start Date: 01/09/2023
Pot Size: $36,500 USDC
Total HM: 4
Participants: 70
Period: 6 days
Judge: kirk-baird
Id: 281
League: ETH
Rank: 69/70
Findings: 1
Award: $7.08
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: adriro
Also found by: 0x6980, 0xStalin, 0xanmol, 0xmystery, 0xpanicError, Arz, Aymen0909, BenRai, Breeje, Lalanda, MohammedRizwan, Raihan, SovaSlava, Stormreckson, Udsen, ast3ros, bin2chen, castle_chain, catellatech, codegpt, dev0cloo, gkrastenov, hals, klau5, kutugu, ladboy233, matrix_0wl, nirlin, ohm, peanuts, pipidu83, sandy, wahedtalash77
7.08 USDC - $7.08
Divide Before Multiply
Performing integer division before multiplication truncates the low bits, losing the precision of calculation.
In RWADynamicOracle
:
x := div(xxRound, base)
let zx := mul(z, x)
Consider applying multiplication before division to avoid loss of precision.
#0 - c4-pre-sort
2023-09-08T08:17:06Z
raymondfam marked the issue as low quality report
#1 - c4-judge
2023-09-21T10:06:50Z
kirk-baird marked the issue as grade-c
#2 - c4-judge
2023-09-23T00:45:33Z
kirk-baird marked the issue as grade-b