-
Notifications
You must be signed in to change notification settings - Fork 378
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
[Wallet] Implement explanations of the fees and use fee drawer on exchanges #4429
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.
Looks good overall! Comment on how very small fees are displayed
@@ -39,7 +39,8 @@ export const getExchangeRateDisplayValue = (value: BigNumber.Value): string => { | |||
|
|||
export const getFeeDisplayValue = (value: BigNumber.Value | null | undefined): string => { | |||
return value |
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.
Does value evaluate to false for any non-zero values? Wondering whether the case below is ever used for non-zero values
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.
When value is a BigNumber
it would evaluate to true independently of the value in it.
@@ -1672,7 +1672,7 @@ exports[`TransferConfirmationCard renders correctly for sent escrow transaction | |||
> | |||
|
|||
$ | |||
0.001 | |||
0 |
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.
Confirming that this change is expected as we now only round up to 0.001 if it is non zero?
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.
Well, this is a tough question. When fee is precisely zero, do we want still to show 0.001
? cc: @cmcewen @jmrossy @jeanregisser
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.
After talking with @cmcewen I'm proposing the following: fees should not be zero in the long run, but now we have tobin tax set to zero and transaction fee is not present in the blockchain api for exchanges. @nityas also has agreed to if the value is exactly 0
- show zero. In the future these fees should be non-zero. Let me know what do you think? cc: @annakaz
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.
Sgtm!
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!
Description
Implement Dialog with fee explanation when use clicks on "?" icon next to a fee.
Other changes
<FeeDrawer />
for ExchangesTested
iOS Simulator
Backwards compatibility
Yes
Screenshots