-
Notifications
You must be signed in to change notification settings - Fork 215
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
Show net results of exited offers #4360
Comments
I presume that this issue also includes labelling a button "exit offer" instead of "cancel"? |
I like option 2. Something like a transition from
to
|
We probably need some more design work around how receiving the following is represented:
|
Sam to re-write this, especially to highlight any possible MN-1 issues this might address. |
@samsiegart and @rowgraus Please mock this up. Lowish prio for MN-1. |
See #3056 |
Tentative design:
For now, we will just display "accepted" (got at least what we wanted) versus "refused" (the contract did not give us what we wanted). In the backend, only have a |
What happens if you get at least what you wanted and at least a full refund? |
Then the offer state is "accepted" with 0 losses. |
But this does suggest a useful dichotomy that I was reaching for. A |
What is the Problem Being Solved?
If an offer is "exited" by the user, the assets may or may not have already been exchanged by the contract. Additionally, completed offers may not have actually taken all of the
give
, or may have given more than thewant
. It would be helpful for the users to see the net results of each offer after they are exited.Current Screenshot:
Description of the Design
Idea 1: Show a section at the bottom that displays the amount of each asset actually transferred by the contract.
Idea 2: Show the amount transferred next to the give/want amounts after the offer is exited.
Alternative consideration: Show a "refunded"/"exited" state for some offers instead of a completed state in all cases.
Initial discussion:
@michaelfig: "This is a good idea, maybe a "refunded" state. Zoe currently doesn't do anything to distinguish this result, so it would take some work on the Zoe service to be able to report it. We could instead hack together something in the wallet backend to heuristically determine that it was a refund (not my preference)."
@erights "'Cancelled' seems a terrible word if the proposed trade could have already happened... 'I cancelled my offer, but my offered assets are still gone'"
Details TODO
Security Considerations
Test Plan
The text was updated successfully, but these errors were encountered: