Helpful Walnut Meerkat
Medium
The GovernanceStaker::_stake
function fetches the _earningPower
from the earningPowerCalculator
. However, when the STALE_ORACLE_WINDOW
is exceeded, the function assumes and returns the maximum possible _earningPower
. In scenarios with low activity or a very short STALE_ORACLE_WINDOW
, this behavior can be exploited.
The logic shows that when the STALE_ORACLE_WINDOW
is exceeded, the maximum possible _earningPower
is assumed and returned.
-
A very short STALE_ORACLE_WINDOW.
-
Low protocol activity.
No response
No response
Users could exploit these conditions to obtain the maximum EarningPower
from delegates who do not meet the delegateeEligibilityThresholdScore
minimum requirements.
The _isDelegateeEligible
check should be enforced to prevent abuse.