Skip to content

#3322 No confirmation is shown when gifting all your money#3323

Merged
LLGuru merged 1 commit intodevelopfrom
guru/viewer-3322-no_confirmation_is_shown
Jan 2, 2025
Merged

#3322 No confirmation is shown when gifting all your money#3323
LLGuru merged 1 commit intodevelopfrom
guru/viewer-3322-no_confirmation_is_shown

Conversation

@LLGuru
Copy link
Contributor

@LLGuru LLGuru commented Jan 2, 2025

No description provided.

Copy link
Contributor

@marchcat marchcat left a comment

Choose a reason for hiding this comment

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

This looks reasonable, but shouldn't it still be like gStatusBar->getBalance() >= amount?

@LLGuru
Copy link
Contributor Author

LLGuru commented Jan 2, 2025

This looks reasonable, but shouldn't it still be like gStatusBar->getBalance() >= amount?

I believe we should ask for a confirmation even if the balance is not enough
(in this case the user will be prompted to top up his balance)

First, when the amount is big, it makes sense to always double-check the target and sum
Second, just the same balance and amount comparison is being done when processing the operation

@LLGuru LLGuru marked this pull request as ready for review January 2, 2025 16:28
@LLGuru LLGuru merged commit 30aa181 into develop Jan 2, 2025
@LLGuru LLGuru deleted the guru/viewer-3322-no_confirmation_is_shown branch January 2, 2025 17:33
@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2025
@LLGuru LLGuru linked an issue Jan 2, 2025 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No confirmation is shown when gifting all your money

3 participants