ICS rewards that fail distribution are lost in the distribution module #2292
Labels
scope: provider
Issues related to the provider chain
source: codereview
To indicate an issue found during a code review.
type: bug
Issues that need priority attention -- something isn't working
Problem
The ICS rewards intended for distribution to the validators in the consumer validator set are first moved to the distribution module account (see here). Then, these rewards are distributed to validators via the
AllocateTokensToConsumerValidators
method. However, the rewards that failed to be allocated remain in the distribution module account.Closing criteria
Use the return value of
AllocateTokensToConsumerValidators
to compute the amount of rewards that were not distributed to validators and transfer them back from the distribution module account. These rewards should be left in theconsumer_rewad_pool
to be distributed next time.The text was updated successfully, but these errors were encountered: