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

Include raw stored mana (undecayed) in the address mana balance endpoint (Nova) [low] #1361

Closed
begonaalvarezd opened this issue Feb 28, 2024 · 1 comment

Comments

@begonaalvarezd
Copy link
Member

Description

Priority: low

/api/explorer/v3/balance/[address] returns eg

{
    "totalBalance": {
        "amount": "85567958",
        "mana": {
            "stored": "374782896",
            "potential": "683261"
        }
    },
    "availableBalance": {
        "amount": "85567958",
        "mana": {
            "stored": "374782896",
            "potential": "683261"
        }
    },
    "ledgerIndex": xxxx
}

It would be good to include the undecayed stored mana too so we can show users how much its decayed

Motivation

Provide decay in mana balance

Requirements

Open questions (optional)

Are you planning to do it yourself in a pull request?

No.

@DaughterOfMars
Copy link
Collaborator

Implemented by separating the field into stored_mana and decayed_mana which contains both decayed stored and potential.

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

No branches or pull requests

2 participants