Skip to content

Wrong surplus displayed on the UI #6629

@theChim9

Description

@theChim9

Description
A user reported this bug where after a swap + bridge transaction, the UI showed the wrong surplus.

How to Reproduce
Steps to reproduce the behavior:

  1. Make an order for swap + bridge (Near in this case)
  2. Change the currency at the bottom of the swap box when placing an order
  3. Place the order
  4. After the swap is done, you see a surplus that is wrong on the UI.

Expected behavior
In the case of the user report, the 2.10 USDT surplus became 2.10 ETH ($6.6k) on the UI - see screenshot below : https://explorer.cow.fi/orders/0x6a06d904fab1827a4d978f2237aa0fc6b46629bd418e1b11b96f30b422c3a2c8cce4ea7f0006d7ef6040524b19b146945ba8a8846935eced?tab=overview

Screenshots
The wrong surplus:

Image

The currency switch at the bottom of the swap box who caused the bug :

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingMediumSeverity indicator. It causes some undesirable behavior, but the system is still functional

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions