-
Notifications
You must be signed in to change notification settings - Fork 19
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
Incorporate network fees in Create Payment #3275
Conversation
e957ee9
to
ae8803e
Compare
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.
src/modules/dashboard/components/Dialogs/CreatePaymentDialog/CreatePaymentDialogForm.tsx
Outdated
Show resolved
Hide resolved
Good point @ArmandoGraterol. Fixed that in the last commit. One point worth noting is that now there is no easy way for the payment initiator to know exactly how much they spent on a payment including fees. |
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 looks ok, I just have a question about come number calculations.
src/modules/dashboard/components/ActionsPage/ActionsComponents/DefaultMotion.tsx
Outdated
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.
src/modules/dashboard/components/ActionsPage/ActionsComponents/DefaultMotion.tsx
Outdated
Show resolved
Hide resolved
@arrenv Thanks for the comments. I will change the font weight. However, IMO the colon is consistent with the Available Funds subtitle. What do you think? About the spacing - it is the same spacing as the Available Funds subtitle (which is also not following the spec). Do you want me to change both? If yes, what do you suggest to deal with the conflict with the insufficient balance warning? |
I agree with you, good observation.
Another good pickup. It seems there is no decided solution for this after to chatting to Karol. One idea though was to have only one visible at a time, i.e. either the error message or the sub-text be visible at any given time. Although, that would be a separate issue to this. For the purpose of this PR, what you have makes sense. |
efab502
to
15237c7
Compare
15237c7
to
925788b
Compare
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.
Now the amount shown in the action list seems to be after fees so good work! However, I still found something that might be confusing:
I paid myself 10 and 11 tokens, when I went to the action page or to the token activation popover I see that it's shown as 9.9999... and 10.999... which is a different amount than what we show in the action list.
So from this, I have questions, is the amount shown on the action page/token activation popover the real value, and the one shown in the action list is rounded up? Or is the value in the action page/token activation popover wrong?
@dit7ya Yeah, I am seeing the same as Armando, it seems as though it has reverted back to how it was originally. And ignoring the fee, despite showing it. |
@ArmandoGraterol I will take a look at the rounding tomorrow and do the needful. @arrenv What do you mean by it has gone back to how it was? I did some tests and it seems like it is just the rounding error of |
I think it is just to do with the rounding errors. |
925788b
to
b9b156d
Compare
@ArmandoGraterol @arrenv Figured that out. It was happening because the contract adds an extra 1 Wei of fee after the percentage calculation. For large amounts it was getting rounded in the UI (but not actually in the wallet balance). Changed the calculation equation and it should be good now. |
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.
Working for me now, nice work!
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.
Nice work! It's looking good in every place that I could check
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.
Looking good now - nice work!
Description
This PR
Resolves #3266.