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
[VDG] Fix less option sends the same amount #10332
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WalletWasabi.Fluent/ViewModels/Wallets/Send/ChangeAvoidanceSuggestionViewModel.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not easy to understand the suggestion in this case if you do not pay attention to the fee.
IMO the change avoidance message should somehow emphasize that we are sending the same amount but using less fees.
Shouldn't we add some unit test for this case?
WalletWasabi.Fluent/ViewModels/Wallets/Send/ChangeAvoidanceSuggestionViewModel.cs
Outdated
Show resolved
Hide resolved
In general ACK, but should be well thought out about how to display that information too without overwhelming the user. (Notice it can be Less/More/Same too). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be a good idea to extract out the suggestion generating algorithm outside the ViewModel. It's usually a good idea when algorithms are not quite obvious. It could also help testability.
The guys are working to make the ViewModels testable, there will be a test for sure once they get to this point. |
…gestionViewModel.cs Co-authored-by: yahiheb <52379387+yahiheb@users.noreply.github.com>
I created #10399 for this.
We should keep track of these to not forget about them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #7861
#7861 (comment):
In this commit I moved a similar check to have everything in the same place.
I don't know how to test it, review it carefully.