ripple / explorer

Open Source XRP Ledger Explorer

Home Page:https://livenet.xrpl.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Other balances" dropdown in account view shows wrong number

elmurci opened this issue · comments

It seems like the Other Balances dropdown number is adding account issued balances to the total balance.

For example, this account holds 66,000 EUR.rG9aydr2Z6zt1bMoG2cnyK6mANKED2CjeA and has issued 32,956 EUR.rfsVJXis34tuvpRxVbTyuHbQ3jBopVZRXo to 2 other accounts.

{
    "result": {
        "account": "rfsVJXis34tuvpRxVbTyuHbQ3jBopVZRXo",
        "ledger_current_index": 25538449,
        "lines": [
            {
                "account": "rG9aydr2Z6zt1bMoG2cnyK6mANKED2CjeA",
                "balance": "66000",
                "currency": "EUR",
                "limit": "1000000000",
                "limit_peer": "0",
                "no_ripple": false,
                "no_ripple_peer": false,
                "quality_in": 0,
                "quality_out": 0
            },
            {
                "account": "rPgexZVqf875hcB7E8pqj4m36o6meHg1Hx",
                "balance": "-21923",
                "currency": "EUR",
                "limit": "1000000000",
                "limit_peer": "100000000",
                "no_ripple": false,
                "no_ripple_peer": false,
                "quality_in": 0,
                "quality_out": 0
            },
            {
                "account": "rwTPpSAwkZmZ4a7sx46yn86ey5gC1cycpF",
                "balance": "-11033",
                "currency": "EUR",
                "limit": "0",
                "limit_peer": "1000000000",
                "no_ripple": false,
                "no_ripple_peer": false,
                "quality_in": 0,
                "quality_out": 0
            }
        ],
        "status": "success",
        "validated": false
    }
}

The dropdown is adding the sum of self issued tokens to the total balance. (66,000 + 11,033 + 21,923 = 98,956 in this example).

image

The dropdown balance should only show the total sum of non self issued tokens, 66,000 in this example.