Platform: Code4rena
Start Date: 27/04/2022
Pot Size: $50,000 MIM
Total HM: 6
Participants: 59
Period: 5 days
Judge: 0xean
Id: 113
League: ETH
Rank: 59/59
Findings: 1
Award: $43.87
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: BowTiedWardens
Also found by: 0x1f8b, 0xNazgul, 0xf15ers, 0xkatana, CertoraInc, Funen, GimelSec, Hawkeye, IllIllI, Kulk0, NoamYakov, Tadashi, Tomio, TrungOre, antonttc, catchup, defsec, delfin454000, fatherOfBlocks, gzeon, horsefacts, joestakey, kenta, oyc_109, pauliax, reassor, robee, samruna, simon135, slywaters, sorrynotsorry, z3s
43.8655 MIM - $43.87
State variable is already cached.
Therefore, move to Line 490 and use as the divisor instead of YEAR_BPS:
Also, within the loop, there's no need to access YEAR_BPS in the addition assignment denom_k based on the aforementioned.
Change :
to :
denom_k+=denom_k;
#0 - cryptolyndon
2022-05-13T05:56:57Z
This change would break things.