Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CHECKLIST] 馃挧Liquid staking #2316

Open
1 of 17 tasks
drewstone opened this issue May 17, 2024 · 0 comments
Open
1 of 17 tasks

[CHECKLIST] 馃挧Liquid staking #2316

drewstone opened this issue May 17, 2024 · 0 comments
Assignees

Comments

@drewstone
Copy link
Contributor

drewstone commented May 17, 2024

Overview

We want to integrate a liquid staking UI similar to Bifrost's https://bifrost.app/vstaking. This UI should allow users to specify an amount of tokens to liquid stake and optionally select the validator on the respective chain for nomination/delegated staking. The chains in question are Polkadot, Phala, Moonbeam, Astar, Manta, and ideally Tangle (de-facto liquid restaking token).

Vocab

  • Liquid staking/staked token (LST) is a token that represents some underlying staked token like DOT. An LST tgDOT represents a staked DOT. The core principle is that the underlying DOT is generating yield.
  • LST Parachain is where liquid staking occurs. Assets likely (initially until future integrations) need to be bridged into this chain to be staked. This is where LSTs will be unstaked.
  • Target Chain is the chain where the asset that generates an LST originates from.

Checklist: High-level, pages, UI & functionality

Checklist: Extrinsics & hooks

Staking/Unstaking

  • Consider using our bridge UI to fulfill staking/unstaking. In this UI, we can show the DOT -> tgDOT for stake and tgDOT -> DOT for unstake.
  • We want to allow a user to select their validators. This is most similar to bond & nominate on Tangle. Roughly the same process, we want to liquid stake and nominate validators on the target chain.
    • Can be done with a radio button and then selection modal.
  • On button click the stake action is triggered (likely bond) (or bondExtra).
  • On button click the unstake action is triggered (likely unbond) (unbondAll)
  • Show the price of the tgDOT and the unstake/unbond
  • Show the unstake fee, show the unstake/unbonding time delay.

Unstaking requests

  • Show all active unstaking requests
  • List the time unstaked, the remaining time to unstake from the delay, the amount.

Validators

  • Show the validators that have been selected by the default selection system.

Governance

  • Grab open governance proposals / data from the Target Chain. This requires querying the Target Chain's RPC.
  • Put all active proposals for voting in a table.
  • On click each proposal show specific proposal voting component.
  • On click vote w/ data, call vote
@yurixander yurixander pinned this issue May 24, 2024
@yurixander yurixander changed the title [CHECKLIST] Liquid staking UI [CHECKLIST] 馃挧Liquid staking Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: EPICS 馃殌
Development

No branches or pull requests

7 participants