wormhole-foundation / wormhole-connect

Wormhole Connect brings all the functionality and utility of Wormhole right into your application and removes all of the complexity.
https://connect-in-style.wormhole.com/
Other
78 stars 58 forks source link

[Bug] USDC automatic routes not showing? #2705

Open Wesleyleung opened 6 days ago

Wesleyleung commented 6 days ago

Description and context

For many EVM L2 -> ETH, automatic routes are not showing. Mayan routes are also not showing. Only manual shows.

Further, only a generic error message shows and does not tell the user if the reason there are no routes is because they need to input a higher amount of USDC

Steps to reproduce

  1. Select an EVM L2 for From
  2. Select Eth for To
  3. Enter $10 or a smaller number.
  4. See nothing but a generic error or manual CCTP route only.

Experienced behavior

Screenshot 2024-09-23 at 11 23 21 PM Screenshot 2024-09-23 at 11 26 14 PM Screenshot 2024-09-23 at 11 26 05 PM

Expected behavior

Solution recommendation

This may be happening because due to network costs, at least $10 is required to bridge into EVM. However, the min amount error message seems to be broken. Neither the min amount warning shows (when no routes are found) nor gray info message shows (when the user has at least 1 successful route)

emreboga commented 6 days ago

I can see the expected behavior in latest Netlify deployment:

Screenshot 2024-09-24 at 1 47 11 PM

This could have been fixed. @Wesleyleung, can you double-check?

kev1n-peters commented 5 days ago

This is an issue in the SDK not throwing the MinAmountError for the automatic CCTP route. Here is the fix: https://github.com/wormhole-foundation/wormhole-sdk-ts/pull/703