Skip to content

Review design of IBC rewards distribution #81

@ethanfrey

Description

@ethanfrey

We currently use a ConsumerPacket::DistributeRewards packet to send the tokens from consumer to distribute to the stakers on the provider. We need to review the semantics of that.

First, we need to allow multiple such packets in parallel, as we will want to distribute to all validators at the epoch. We may make one batch packet eg DistributeRewards (see #77) to match the two API calls on converter, which will do all work in one packet.

However, we also need some logic for rollback / commit on error / success, which is missing. It is unclear what needs to be done in an error case. How do we account for those tokens?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions