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

[Task]: Kickoff mana balance to all address pages #1074

Closed
begonaalvarezd opened this issue Feb 4, 2024 · 0 comments · Fixed by #1206
Closed

[Task]: Kickoff mana balance to all address pages #1074

begonaalvarezd opened this issue Feb 4, 2024 · 0 comments · Fixed by #1206
Assignees

Comments

@begonaalvarezd
Copy link
Member

begonaalvarezd commented Feb 4, 2024

Task description

below the base token balance, we should also add the mana balance

⚠️ When an address belongs to an output, the mana of the output itself has to be calculated by us, like we do with the balance

🔈 Lets not include delegation rewards for now, that is for another task

With the SDK and chronicle we can get all we need for now

  • stored: chronicle /api/explorer/v3/balance/[adddress]: note this is already decayed, so we cant calculate de decay yet, we will do that after chronicle updates their implementation. Note if the address is the addres of an output, we have to calculate the decayed stored mana of the output too and add it
  • potential: chronicle /api/explorer/v3/balance/[adddress]. Note if the address is the addres of an output, we have to calculate the decayed potential mana of the output too and add it
  • BIC: when its an account address we need to add BIC, we can use the sdk client for this, this is part of available mana
  • Staking Rewards: when its an account address we need to add the staking rewards, we can use the sdk client for this, this is part of available mana
  • Total: sum of all above
@begonaalvarezd begonaalvarezd changed the title [Task]: Add mana balance to all address pages [Task]: Add mana balance to all address pages: stored, decay, BIC, potential Feb 28, 2024
@begonaalvarezd begonaalvarezd changed the title [Task]: Add mana balance to all address pages: stored, decay, BIC, potential [Task]: Kickoff mana balance to all address pages Feb 28, 2024
@msarcev msarcev self-assigned this Feb 28, 2024
@msarcev msarcev linked a pull request Mar 1, 2024 that will close this issue
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 a pull request may close this issue.

3 participants