> ## Documentation Index
> Fetch the complete documentation index at: https://docs.melt.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# deBridge Integration

> Cross-chain routing via deBridge for Smart Buy and Smart Sell

## Overview

Melt uses [deBridge](https://debridge.finance/) (DLN protocol) for all cross-chain routing. deBridge handles token swaps and bridging in a single step — users on any supported chain can acquire or exit Melt Assets without managing multi-hop transactions.

## Supported Chains

All chains supported by deBridge are available for Smart Buy/Sell. Key chains include:

| Chain       | Chain ID | deBridge Internal ID |
| ----------- | -------- | -------------------- |
| HyperEVM    | 999      | 100000022            |
| Hyperliquid | —        | —                    |
| Ethereum    | 1        | 1                    |
| Base        | 8453     | 8453                 |
| BNB Chain   | 56       | 56                   |
| Solana      | -101     | 7565164              |
| Arbitrum    | 42161    | 42161                |
| Avalanche   | 43114    | 43114                |
| Polygon     | 137      | 137                  |
| Optimism    | 10       | 10                   |
| Abstract    | 2741     | 100000017            |
| Linea       | 59144    | 59144                |
| Berachain   | 80094    | 100000020            |
| Gnosis      | 100      | 100                  |

For the full list of supported chains, see the [deBridge documentation](https://docs.debridge.finance/).

## Smart Buy Flow (Inbound)

1. User signs a deBridge transaction on the source chain
2. deBridge solver fills the order — USDC arrives on HyperEVM
3. USDC is deposited to HyperCore via CoreDepositWallet
4. Spot buy order executes on the Hyperliquid order book

## Smart Sell Flow (Outbound)

1. Spot sell order executes on Hyperliquid (Melt Asset → USDC)
2. USDC is transferred from HyperCore to HyperEVM
3. deBridge bridges USDC from HyperEVM to the destination chain (with optional swap to target token)

## MeltDebridgeHook

`MeltDebridgeHook` is a contract on HyperEVM that auto-deposits USDC from deBridge into HyperCore, reducing inbound trades from 4 signatures to 2.

When the hook is active, deBridge delivers USDC directly to the hook contract, which calls `CoreDepositWallet.depositFor()` to deposit into the user's HyperCore spot balance.

| Contract          | Address                                      | Chain    |
| ----------------- | -------------------------------------------- | -------- |
| MeltDebridgeHook  | `0x9b2C0fD7416b4d038967141495E0a44BCb7A63BA` | HyperEVM |
| Native USDC       | `0xb88339CB7199b77E23DB6E890353E22632Ba630f` | HyperEVM |
| CoreDepositWallet | `0x6B9E773128f453f5c2C60935Ee2DE2CBc5390A24` | HyperEVM |

## Order Monitoring

Track deBridge order status:

```
GET https://dln.debridge.finance/v1.0/dln/order/status?orderId={id}
```

Status progression: `Created` → `Fulfilled` → `SentUnlock` → `ClaimedUnlock`
