You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 apply
Recommendation
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:
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: