-
Notifications
You must be signed in to change notification settings - Fork 374
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
Enable Reclaiming of Escrowed Payments #10
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.
Good progress! Some comment below :)
packages/mobile/src/notifications/EscrowedPaymentReminderNotification.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.
Two small things, otherwise LGTM
packages/mobile/src/escrow/ReclaimPaymentConfirmationScreen.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.
Almost there! Just some nits, we should be able to merge today.
Also, please include a screenshot here.
const payment = this.getReclaimPaymentInput() | ||
const convertedAmount = divideByWei(payment.amount.toString()) |
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.
Why do we need a toString() here?
It'd be more clever to make divideByWei accept other types, including null 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.
it's bc payment.amount
is a BigNumber
not bc its null
divideByWei
can't take BigNums
Now that I think if it, BigNumber.valueOf()
might be better and more explicit than toString()
. Will change it to that
Description
Allows for the reclaiming of escrowed payments. Once the payment has expired, it gives the sender a notification on the wallet to either remind the sender through a text message, or allows the sender to reclaim the payment.
Tested
Tested the following tests between two accounts.
Screenshots of the notification and the Reclaim Payment Confirmation Screen:
![Screen Shot 2019-07-25 at 3 07 53 PM](https://user-images.githubusercontent.com/28763615/61912150-31a72d80-aeee-11e9-89e9-247f2ddc1c9d.png)
Other changes
Related issues
Backwards compatibility
none