Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Amounts on the waiting pop-up and sent to the connected wallet are different #1155

Open
elena-zh opened this issue Aug 3, 2021 · 8 comments
Assignees
Labels
app:CowSwap CowSwap app Bug Something isn't working Critical Severity indicator for defects. ndicates complete shut-down of the process. Nothing can proceed furt Protofire Handled by Protofire development team

Comments

@elena-zh
Copy link

elena-zh commented Aug 3, 2021

Reproducible in Prod/Stage

  1. Specify From/To tokens, an amount to sell
  2. Press on the Swap button
  3. Verify amounts
  4. Confirm the transaction
  5. Check numbers on the Waiting pop-up and in the connected wallet

AR: in several seconds numbers on the waiting modal might be changed (I believe, due to prices are changed).
However, user needs to sign the transaction with previous amounts in the connected wallet
waiting.jpg

ER: amounts should be the same

@elena-zh elena-zh added Bug Something isn't working app:CowSwap CowSwap app Medium Severity indicator. It causes some undesirable behavior, but the system is still functional labels Aug 3, 2021
@anxolin
Copy link
Contributor

anxolin commented Aug 3, 2021

That message should be expressed in "at least" / "at most" terms (so showing what you sign)

We will not include this in the version, but I believe we should fix it asap. Maybe we could show this message like:

Sell order

Swapping XXXX for YYYY.
   Minimum received (incl. fee): ZZZZZZ

Buy order

Swapping XXXX for YYYY.
   Maximum sent (incl. fee): ZZZZZZZ

@biocom @alfetopito @W3stside WDYT?

@alfetopito
Copy link
Contributor

That's a nice improvement.

I'm also fine using the min/max-receive everywhere to be consisted with what's signed.
AFAIAA, the notification also needs to be updated

@MareenG
Copy link

MareenG commented Sep 6, 2021

I noticed that the value is not just off it changes with time. I guess the value is not frozen but updates according to fee changes.
Usually it takes quite a while until the price is udated but in the case displayed below it changes rather fast.

Confirmation.mov

@alfetopito
Copy link
Contributor

Hmm good point.
We should "lock" the amounts in the tx pending modal, since the tx signing was already triggered.

Makes sense to update them in the confirmation modal as it's not yet final, but not after that.

@anxolin
Copy link
Contributor

anxolin commented Sep 8, 2021

@MareenG great catch. I think this is super important to fix! Once you are in the confirmation, we should never change the prices without asking the user to ACCEPT them.

@W3stside, this should be something important to add to our next ones.

@elena-zh elena-zh added Critical Severity indicator for defects. ndicates complete shut-down of the process. Nothing can proceed furt and removed Medium Severity indicator. It causes some undesirable behavior, but the system is still functional labels Sep 8, 2021
@MareenG
Copy link

MareenG commented Sep 17, 2021

It actually disappears when the fee amount surpasses the from token
Bildschirmfoto 2021-09-17 um 09 54 13

@elena-zh
Copy link
Author

Hey @W3stside , here is another issue related to Waiting for Confirmation modal, that might be fixed along with this task: #1215.
Could you please take a look at it?

@anxolin anxolin mentioned this issue Nov 22, 2021
21 tasks
@anxolin anxolin assigned nenadV91 and unassigned W3stside Nov 22, 2021
@elena-zh
Copy link
Author

Still reproducible in a new activity modal

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
app:CowSwap CowSwap app Bug Something isn't working Critical Severity indicator for defects. ndicates complete shut-down of the process. Nothing can proceed furt Protofire Handled by Protofire development team
Projects
None yet
Development

No branches or pull requests

7 participants