This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
Increasing delegate eligibility score will make some delegatees instantly bumpable (skipping grace period) #37
Labels
Low/Info
A Low/Info severity issue.
Description
The
BinaryEligibilityOracleEarningPowerCalculator
determines the earning power for a delegatee to be either 0 or 100% depending on the score of the delegatee is greater or below a threshold. When a delegatee first crosses below the threshold, a grace period is applied in order for the delegatee to not be instantly punished by a bump which would incentivize delegators to delegate to another.BinaryEligibilityOracleEarningPowerCalculator.sol#L234-L242:
BinaryEligibilityOracleEarningPowerCalculator.sol#L153-L157:
However we can note that in the case the delegate eligibility score is updated, the criteria to see if the delegatee has just become ineligible returns
false
. This means that the calculator will consider that the delegatee was previously ineligible and the grace period will not applyRecommendation
Please consider adding a timestamp
lastEligibilityScoreUpdated
which should also be compared against when determining grace period.The text was updated successfully, but these errors were encountered: