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

[Phase-3] Reward for multi-staking #1519

@jrwbabylonlab

Description

@jrwbabylonlab

The UI changes for viewing and claiming rewards in multi-staking are complete.

However, we’re still missing the actual implementation for:
1. Decoding the RPC rewards response denom when there are multi-token rewards.
2. Claiming those multi-staking rewards.

Please see the Slack history for example data that can be used:
https://babylonlabsworkspace.slack.com/archives/C07DYV8MA1M/p1753205883219249?thread_ts=1752772097.340709&cid=C07DYV8MA1M

Note: There are 3 types of tokens:

1. BABY token (we already handle this)

2. IBC token:
This require an rpc call to fetch its corresponding denom. We can memorise this info on FE for now until our BE will keep track of such information in the future. For example, https://babylon-archive.nodes.guru/api/ibc/apps/transfer/v1/denom_traces/ibc/65D0BEC6DAD96C7F5043D1E54E54B6BB5D5B3AEC3FF6CEBB75B9E059F3580EA3 where this ibc/65D...A3 is response returned from the query rewards.

example address that contains ibc rewards bbn1s2af8g5jz6m4mf0ezx2p6t6dymfha2pjjy4e48 on bsn-devnet.

3. Factory token:
The token has format of factory/<creator_address>/<subdenom> which we can use the subdenom directly.
For its metadata such as name, symbol, decimal and display denom etc. We will need to fetch from
https://lcd.bsn-devnet.babylonlabs.io/cosmos/bank/v1beta1/denoms_metadata/factory/bbn1q20gf0tnfjkpjduv6tgtzv40m3qc0jvjwl2g2h/liamsupertoken if it exist

The mapping of the denom <-> bsnId should be found via the bsn-registry babylonlabs-io/babylon-toolkit#135

Image

(no need to show the USD value)
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions