connext / monorepo

Connext is a modular stack for trust-minimized, generalized communication between blockchains.
https://docs.connext.network
MIT License
292 stars 171 forks source link

[ST] WETH to Mode ForceReceiveLocal #6319

Closed Tommy-R8 closed 1 month ago

Tommy-R8 commented 2 months ago

Describe the bug A user sent 3.6 WETH from Ethereum to Mode. Mode's WETH pool has less than 2 WETH in total so it will never go through. The user needs the calldata and instructions to be able to receive nextWETH on Mode and then bridge it elsewhere https://connextscan.io/tx/0xad8a5038d851140e8a72f5d0aa8ef5f167a8105baa5a56028718d37466a3dee7

Where did the user initiate this transfer? OKX Wallet

Link to ticket in intercom https://app.intercom.com/a/inbox/qge2vd8z/inbox/shared/all/conversation/1578?view=List

just-a-node commented 2 months ago

This is the calldata they should call on the Mode Connext contract:

0xcb8058ba00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000657468000000000000000000000000000000000000000000000000000000006d6f646500000000000000000000000000000000000000000000000000000000006574680000000000000000000000002c8da9c3166085acebc70ad9491ca2bfa10c8b9f000000000000000000000000f325666f330817319dacaaaa4d4e1e1aa705f20c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000064000000000000000000000000cd4080a4c71de49357aade8b55b9fbd5d131518f00000000000000000000000000000000000000000000000031f5b2702c2ff00000000000000000000000000000000000000000000000000031f5b2702c2ff000000000000000000000000000000000000000000000000000000000000000e1a1000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f325666f330817319dacaaaa4d4e1e1aa705f20c

Steps to manually send this calldata:

Connect to the delegate's wallet (0xf325666f330817319dacaaaa4d4e1e1aa705f20c) on Metamask -> Switch to Mode -> Send -> Use 0x7380511493DD4c2f1dD75E9CCe5bD52C787D4B51 (Connext Mode contract) -> In "Hex data", put the calldata from above -> Next -> Confirm

Here's a simulation of this transaction: https://www.tdly.co/shared/simulation/55988d84-86d8-4ead-b370-41a1110ea988

Tommy-R8 commented 1 month ago

@just-a-node The user tried it and received this error image