Skip to content
Request an audit

‹ All findings

DoS risk in IRamsesGauge(gauge).getReward() when enough periods have passed

Low/InfoYieldoor Gauges·0xSimao · Leveraged yield farming · 12th May 2025L-1

Description:

IRamsesGauge(gauge).getReward() iterates through all periods since the first period in the Gauge, which means that whenever a new token is added, it will loop through all periods. Thus, given enough time, there is a DoS risk, although it is likely not significant as it would require a lot of time to pass (probably not even in a lifetime).

Recommended Mitigation:

The Gauge has a getPeriodReward() function which can be used to collect rewards.