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

"Other balances" dropdown in account view shows wrong number #940

Open
elmurci opened this issue Feb 16, 2024 · 0 comments
Open

"Other balances" dropdown in account view shows wrong number #940

elmurci opened this issue Feb 16, 2024 · 0 comments

Comments

@elmurci
Copy link

elmurci commented Feb 16, 2024

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.

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.

1 participant