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

ABW-3715 Disable Accounts with Insufficient Funds #1291

Merged
merged 6 commits into from
Aug 21, 2024

Conversation

kugel3
Copy link
Contributor

@kugel3 kugel3 commented Aug 20, 2024

Jira ticket: ABW-3715

Description

When selecting fee payer accounts, we already filter out accounts with no XRD at all. We should also disable ones that don't have enough to pay the transfer and the fee. And show the "Insufficient balance" error.

Notes

Additional notes.

How to test

  • Make sure there is an account with a very small but non-zero XRD balance, say 0.1

  • Make a transfer in the app, from another account

  • Try to change the fee payer
    -> On the selection screen, the low balance account should be disabled for selection

  • Also try transferring an amount of XRD from an account that is just above the balance of that account. Enough to cover the transfer (or the fee alone), but not the fee AND the transfer.
    -> Should lead to same result

Screenshot

image

PR submission checklist

  • I have tested account to account transfer flow and have confirmed that it works

Copy link
Contributor

@matiasbzurovski matiasbzurovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, some UI question only

@kugel3 kugel3 merged commit 379af48 into main Aug 21, 2024
6 checks passed
@kugel3 kugel3 deleted the ABW-3715_Filter-Insufficient branch August 21, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants