metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Bug]: Cannot Bridge SOL.SOL > ETH.ETH

Open chaoticgoodpanda opened this issue 1 year ago • 8 comments

Describe the bug

Bridging from SOL.SOL to ETH.ETH fetches valid quotes but does not execute the transaction. The issue occurs despite the quotes appearing correctly. Testing with SOL.USDT to ETH.ETH confirms that the issue is specific to SOL.SOL transactions.

Expected behavior

  • The SOL.SOL bridging transaction should execute successfully once a valid quote is fetched.
  • If bridging SOL.SOL is not supported, an appropriate error message should be displayed instead of returning an unexecuted quote.

Screenshots/Recordings

Steps to reproduce

  1. Fetch a quote for SOL.SOL to ETH.ETH via Mayan Swift.
  2. Observe that a quote is returned.
  3. Attempt to execute the transaction.
  4. Notice that the transaction is never constructed or sent.

Error messages or log output

No transaction is constructed after fetching a quote.

There is no error message explaining why the transaction does not proceed.

Quote: https://bridge.api.cx.metamask.io/getQuote?walletAddress=4CT8Uuah9FCv37NfkKZaTmaJXsC9KWd7cE2btFgChmvV&destWalletAddress=0x9b170F9392F675463e597f7eb339668E87aCf4f8&srcChainId=1151111081099710&destChainId=1&srcTokenAddress=0x0000000000000000000000000000000000000000&destTokenAddress=0x0000000000000000000000000000000000000000&srcTokenAmount=1000000000&slippage=0.5&insufficientBal=false&resetApproval=false

Detection stage

In production (default)

Version

12.14.0

Build type

Beta

Browser

Brave

Operating system

MacOS

Hardware wallet

No response

Additional context

  • Other routes like SOL.USDT to ETH.ETH work as expected.
  • The issue may be related to handling SOL.SOL transactions via Wormhole messaging.
  • The issue could be a mapping issue between SOL and wSOL on Ethereum.
  • JSON response indicates that Mayan Swift uses Wormhole for cross-chain messaging, but the execution step fails.

Severity

High – Users attempting to bridge SOL.SOL to ETH.ETH cannot complete their transactions.

chaoticgoodpanda avatar Mar 18 '25 13:03 chaoticgoodpanda

https://github.com/user-attachments/assets/e2b58537-16b8-4917-a981-551527611ca3

Screen recording.

And flaky behavior. Sometimes tx is constructed, sometimes not. Sometimes when tx is constructed, and click Confirm, it's never sent, sometimes it is but fails. Failed tx URL: https://explorer.solana.com/tx/3YKXT6YyRcPok44gqfkTu5tcPvvU2NJyPenYEiECJyLZxb9bY7ZbDyWmhHzDZdRiu6GQKVs3832t7riqxJdQ5Tgx

Tx not constructed:

Image

But sometimes it is. And sometimes it'll populate and then not populate based on quote refresh interval.

Image

cc @GustavoRSSilva @micaelae @ChingizMardanov

chaoticgoodpanda avatar Mar 18 '25 13:03 chaoticgoodpanda

@aganglada we believe this is a Solana Snap team issue, as the error occurs on the Snap confirmation page.

chaoticgoodpanda avatar Mar 18 '25 15:03 chaoticgoodpanda

Can you provide any errors on the console when that's happening? Been trying to reproduce, but no luck. @chaoticgoodpanda

aganglada avatar Mar 18 '25 17:03 aganglada

@aganglada sent you .har files and state logs just now ser

chaoticgoodpanda avatar Mar 19 '25 13:03 chaoticgoodpanda

Interesting, the only time where we say it's Not available is when the api returns an error. We can track that with security alerts api

aganglada avatar Mar 27 '25 12:03 aganglada

@chaoticgoodpanda Just retested this on the latest main and it works for me. No flaky behaviour and after a few estimation changes I clicked confirm and the bridge was successful.

Image

Should be fine to be tested on 12.15-beta

aganglada avatar Mar 27 '25 13:03 aganglada

@chaoticgoodpanda could you confirm this is the case?

aganglada avatar Apr 01 '25 09:04 aganglada

Same here, I made some bridges and worked fine, should we close this ticket?

javiergarciavera avatar Apr 02 '25 08:04 javiergarciavera