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
At the moment, BondingManager.claimEarnings() cannot be invoked when the current round is not initialized. This logic should be changed to the following:
If the current round is initialized, a user should be able to claim earnings through the current round. If the current round is not initialized, a user should be able to claim earnings through current round - 1. The latter condition is because if the current round is not initialized and the user claims earnings through the current round and then the current round is subsequently initialized then it is possible for a delegator to have rewards and fees associated with the round that it will not be able to claim anymore because its lastClaimRound is already set to the current round at this point.
The text was updated successfully, but these errors were encountered:
At the moment,
BondingManager.claimEarnings()
cannot be invoked when the current round is not initialized. This logic should be changed to the following:If the current round is initialized, a user should be able to claim earnings through the current round. If the current round is not initialized, a user should be able to claim earnings through current round - 1. The latter condition is because if the current round is not initialized and the user claims earnings through the current round and then the current round is subsequently initialized then it is possible for a delegator to have rewards and fees associated with the round that it will not be able to claim anymore because its
lastClaimRound
is already set to the current round at this point.The text was updated successfully, but these errors were encountered: