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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: TAO staking #1682

Open
wants to merge 41 commits into
base: dev
Choose a base branch
from
Open

feat: TAO staking #1682

wants to merge 41 commits into from

Conversation

UrbanWill
Copy link

@UrbanWill UrbanWill commented Nov 3, 2024

Description

Implements TAO staking

Techical

  • Renamed folder/components from Nomination pool bond specific to generic bonding names, eg: NomPoolBondModal -> BondModal
  • Created bittensor and nompool folders inside a new hooks folder for organization purposes
  • Created useGetStakeInfo and useGetUnbondInfo hooks to support the wizard hooks. These hooks are responsible for returning all the information that is specific to an Asset that is being staked/unbonded.
  • Removed fake fee estimate, use a fee estimation that defaults to 0n for maxPlancks calculation, disable form if planks is < 0n

TODO's

  • Hooks for fetching TAO delegator data
  • Pop up UI for selecting delegator
  • Dashboard UI for selecting a delegator
  • Refactor dashboard asset view to display the amount stake per Delegator
  • Hook to track the block number when the user unstaked the total balance from a delegator (used for 360 blocks cooldown)

Type of change

  • WIP
  • Ready to merge

🖼️ Screenshots:

Screen.Recording.2024-11-14.at.20.33.17.mov

fetch payload with 0n plancks and invalidate form if pancks is < 0n
@UrbanWill UrbanWill marked this pull request as ready for review November 13, 2024 16:00
Copy link
Contributor

github-actions bot commented Nov 13, 2024

🦋 Changeset(s) detected

This PR includes changeset(s) for the following changed packages:

"@talismn/util"

Not sure what this means? Click here to learn what changesets are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant