Onboarding

Deposit Flow to HyperSwell

Flow Overview

Deposit process involves bridging USDe, swapping for USDC, and depositing USDC into Hyperliquid:

  1. Switch to Arbitrum: Sign a USDC permit to authorize contract usage.

  2. Switch to Swellchain: Submit a bridge transaction.

Detailed Deposit Process

  1. Authorize USDC Usage on Arbitrum

  • Switch your wallet to the Arbitrum network.

  • Sign a permit transaction to grant contract permission to use your USDC for deposit.

  1. Bridge USDe from Swellchain to Arbitrum & Swap to USDC

  • Switch to the Swellchain network.

  • Submit a bridge transaction to transfer USDe from Swellchain to Arbitrum via LayerZero.

  • Automatically swap USDe to USDC on Arbitrum.

  1. Deposit USDC into Hyperliquid

  • The swapped USDC is then deposited directly into Hyperliquid.

This streamlined process ensures smooth interaction between Swellchain, Arbitrum, and Hyperliquid, optimizing the deposit experience for users.

Deposit action: https://vimeo.com/1072088124

Note: Ensure that the minimum amount received is more than 5 USDC, and your wallet has enough ETH to cover LayerZero’s fee for depositing into HyperSwell.

Withdraw Flow

  1. Authorize USDC Swap to USDe: Sign a USDC permit to grant contract permission to swap USDC → USDe.

  2. Sign Swap Order Data: Sign the order data required to execute the swap transaction.

  3. Withdraw USDC from Hyperliquid & Bridge USDe to Swellchain

  • Sign a permit to withdraw USDC from Hyperliquid to the user’s Arbitrum wallet.

  • Submit a backend API request to process the withdrawal:

    • Retrieve USDC from the user’s Arbitrum wallet.

    • Swap USDC → USDe.

    • Bridge USDe back to Swellchain.

Withraw action: https://vimeo.com/1072088097

Note: The minimum withdrawal amount is 2.01 USDC.

Retry When Deposit/Withdrawal Fails

In some edge cases, a deposit or withdrawal transaction may fail. If this happens, the UI will display a message as shown in the image below. Simply click the "Resubmit" button and wait for the process to complete.

Resubmit Action: https://vimeo.com/1072088078

Last updated