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

[QA] "Error computing receive amount" occurs when sending asset via wstETH Bridge #2024

Open tsadovska opened 4 months ago

tsadovska commented 4 months ago

Environment

Checked on https://wormhole-connect-mainnet.netlify.app/ with macOS Sonoma 14.4.1 and Google Chrome Version 124.0.6367.93 (Official Build) (arm64).

{
  env: 'mainnet',
  "bridgeDefaults": {
    fromNetwork: 'arbitrum',
    toNetwork: 'optimism',
    token: 'wstETHarbitrum',
  }
}

Describe the current behavior in detail

Steps:

  1. Open wormhole-connect
  2. Enter 0.0000001 in Amount field

Actual result: Warning is shown - Error computing receive amount. Expected result: Warning that input amount is too small is shown.

Notes/ Attachments

image

tsadovska commented 4 months ago

Error "Error computing receive amount" occurs on https://deploy-preview-2080--wormhole-connect-mainnet.netlify.app/ [Mainnet] when sending 0.000668 wstETH from Polygon (Rabby) to BSC (Rabby).

image

tsadovska commented 3 months ago

Rechecked scenarios mentioned in the ticket.

tsadovska commented 3 months ago

Reproducible on https://deploy-preview-2143--wormhole-connect-mainnet.netlify.app/ [Mainnet] when sending 0.0003 ETH from Optimism (MetaMask) to Polygon (MetaMask).

Error appears in Console after clicking on "Approve and proceed with transaction" button:

Error: Error computing receive amount
    at H6.computeReceiveAmountInternal (main-KkNX3ZDf.js:509:31694)
    at H6.computeReceiveAmountWithFees (main-KkNX3ZDf.js:509:32190)
    at Operator.computeReceiveAmountWithFees (main-KkNX3ZDf.js:509:92529)
    at tr (main-KkNX3ZDf.js:547:15337)
    at main-KkNX3ZDf.js:547:15627
    at Qj (main-KkNX3ZDf.js:41:26721)
    at Hk (main-KkNX3ZDf.js:41:46757)
    at Wk (main-KkNX3ZDf.js:41:45450)
    at Pk (main-KkNX3ZDf.js:41:44404)
    at Ek (main-KkNX3ZDf.js:41:40660)

image