iotaledger / inx-chronicle

IOTA permanode implemented using the IOTA Node Extension (INX) interface.
Apache License 2.0
14 stars 12 forks source link

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

Closed begonaalvarezd closed 3 months ago

begonaalvarezd commented 4 months ago

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 commented 4 months ago

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