Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Remove meta-staking in favor of having consumers stake directly? #47

@Art3miX

Description

@Art3miX

To calculate rewards correctly, we need to withdraw rewards from validator (meta-staking) every time we do stake / unstake / withdraw rewards action on provider, this lead to a very complex msg tree talking with 3 contracts:

  1. Provider do IBC call to consumer
  2. Consumer do withdraw rewards call to meta-staking
  3. Meta staking withdraw rewards from validator
  4. Meta staking calculate rewards of the calling consumer
  5. Meta staking sends the funds to consumer
  6. Consumer calculate the rewards of the calling delegator
  7. Consumer sends IBC-funds to delegator.

Removing meta-staking will allow us to simplify this flow by a lot and go with a more straight forwards flow:

  1. Provider do IBC call to consumer
  2. Consumer withdraw rewards from validator
  3. Consumer calculate rewards of calling delegator
  4. Consumer sends IBC-funds to delegator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions