How to use Squid UI for cross-chain deposits to dYdX V4
Last updated
Last updated
Squid
is a single click cross-chain transaction builder, supporting cross chain swaps in under 20 seconds. Squid
utilizes Axelar’s decentralized interoperability infrastructure, approved by Uniswap’s bridge provider assessment. Squid provides interoperability services via an API, SDK and front end developer tools to teams across 60+ chains, and has done over $200 million in volume since its launch in January 2023.
See: https://dydx.exchange/blog/1-click-onboarding
Let’s say you have USDC on e.g. Arbitrum and you wish to deposit to DYDX via Squid. For any Cosmos chain, the following happens all in one click:
Squid routes and converts your source funds into axlUSDC
axlUSDC is sent to Osmosis via Axelar General Message Passing (GMP), where it is the canonical representation of USDC
Swapped to Noble USDC on Osmosis
Bridged from Noble USDC to dYdX Chain from Osmosis via the Noble chain.
In order to bridge some USDC from Arbitrum to DYDX v4 mainnet, first connect your source wallet (e.g. Metamask). You can swap any fund from any chain that is made available through Squid. Note that you will need to pay for gas fees. Squid might make an overestimate, but the remaining fee will be refunded to you in case you used less.
Switch the source chain network e.g. Arbitrum
Add Keplr as destination wallet, to select dYdX
as destination and approve the dYdX
and Osmosis
connections in keplr. Note that you may need to approve Osmosis as well.
Fill in the amount to bridge. After estimations are fetched for the bridged amount, you will need to give permissions to spend this amount in your source wallet (Metamask).
(Optional) we can use GMP Express
to receive funds faster ~20s (if available) and use arrival gas (not needed on dYdX). Note that you will need to pay more to use GMP Express, so only use when needed.
Now confirm in wallet
After the transaction is successfully submitted. This may take up to ~30min
as the transaction also needs to be finalized on the source chain e.g. Arbitrum.
Check your transaction. When you click view, you will be redirected to Axelarscan (example), which shows your transaction. Here you can track and trace what is happening, which is handy in case you don’t see your funds arriving within the expected time.
If completed successful, you can check your Keplr wallet to confirm the balance has arrived.