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 56 forks source link

[QA] "ERC20: transfer amount exceeds balance" error appears in Console, tx USDC Arbitrum → Base using Automatic route #2396

Open tsadovska opened 4 weeks ago

tsadovska commented 4 weeks ago

Describe the current behavior in detail

Checked on wormhole-connect-mainnet (Connect v2) with macOS Sonoma 14.5 and Google Chrome Version 127.0.6533.120 (Official Build) (arm64).

Steps:

  1. Fill in the fields in From section: USDC, Arbitrum (MetaMask)
  2. Fill in the fields in To section: USDC, Avalanche (MetaMask)
  3. Enter Amount, 0.6
  4. Select "Automatic route" option
  5. Click on "Review transaction"
  6. Confirm transfer

Actual result: Transaction fails. Expected result: Transaction proceeds without errors.

Notes/ Attachments

Wormhole Connect: error completing transfer Error: execution reverted: "ERC20: transfer amount exceeds balance" (action="estimateGas", data="0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002645524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63650000000000000000000000000000000000000000000000000000", reason="ERC20: transfer amount exceeds balance", transaction={ "data": "0xe4269fc4000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000000927c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f18f923480dc144326e6c65d4f3d47aa459bb41c0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000010494454a5d000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000000927c000000000000000000000000000000000000000000000000000000000000338c400000000000000000000000000000000000000000000000000000000000000000000000000000000000000009631288f4050f7cfbf77b77f8540decf6cfc70120000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f18f923480dc144326e6c65d4f3d47aa459bb41c000000000000000000000000f18f923480dc144326e6c65d4f3d47aa459bb41c00000000000000000000000000000000000000000000000000000000", "from": "0x9631288F4050F7CFbf77B77f8540DeCF6cfC7012", "to": "0x0654874eb7F59C6f5b39931FC45dC45337c967c3" }, invocation=null, revert={ "args": [ "ERC20: transfer amount exceeds balance" ], "name": "Error", "signature": "Error(string)" }, code=CALL_EXCEPTION, version=6.13.2)
    at makeError (main-BlRpU2F-.js:235:71362)
    at getBuiltinCallException (main-BlRpU2F-.js:236:107247)
    at M1.getBuiltinCallException (main-BlRpU2F-.js:236:108201)
    at Ya.getRpcError (main-BlRpU2F-.js:236:211293)
    at Ya.getRpcError (evm-C3A2TvAW.js:2:1682)
    at main-BlRpU2F-.js:236:215228

https://github.com/user-attachments/assets/be55212c-1f2e-4538-88cf-e918dff7f4eb

emreboga commented 2 weeks ago

@tsadovska I've tried the same source/dest configuration as well as another one with a low balance. I can't seem to repro the issue above. Can you verify on your end as well?

agodlevska commented 3 days ago

Checked on wormhole-connect-mainnet.

The first attempt to execute the transaction as described above resulted in an error (att. 1).

Wormhole Connect: error completing transfer Error: No receipt for 0x2d1b7e94fb5a1d3aeae44691bd35e90a4fb9c609907a215afd5fb1a6d4e5fc7e on Arbitrum
    at E.parseTransactionDetails (index-lccCmM9l.js:1:3905)
    at async CircleTransfer.st [as getTransferMessage] (main-RPuOtJsw.js:245:18376)
    at async AutomaticCCTPRoute.initiate (main-RPuOtJsw.js:245:53829)
    at async SDKv2Route.send (main-RPuOtJsw.js:273:70761)
    at async St (main-RPuOtJsw.js:313:66416)

However, upon retrying, the transaction was successfully completed without any issues (att. 2).

Attachment 1:

https://github.com/user-attachments/assets/1f9f16ae-f6b5-46e0-a802-cba56865ffd4

Attachment 2:

Screenshot 2024-09-11 at 15 08 10