> ## Documentation Index
> Fetch the complete documentation index at: https://0xcaptain.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cross-chain deposits into AgentBank from any EVM chain

> Bridge assets from Ethereum, Arbitrum, BNB Chain, or Base into AgentBank vaults on Mantle using LayerZero V2 OFT. Receive vault shares on your origin chain.

AgentBank supports cross-chain deposits from any of the major EVM networks via **LayerZero V2 OFT**. You can deposit assets from Ethereum, Arbitrum, BNB Chain, or Base without first bridging manually to Mantle. Vault shares (ABV2) are minted on Mantle and the OFT mechanism lets you hold them on your origin chain.

> [!NOTE]
>
> Cross-chain functionality uses the `CrossChainEntrypoint` contract on your source chain and `AgentBankOFT` for omnichain share representation. Contract deployments for OFT adapters on Ethereum, Arbitrum, and Base are pending — check [Contract Addresses](https://0xcaptain.mintlify.site/contracts/addresses.md) for current status.

## How it works

```
Your wallet (Arbitrum)
       ↓
CrossChainEntrypoint (Arbitrum) — sends LayerZero V2 message
       ↓
IntentRouter or Vault (Mantle) — receives funds, executes deposit
       ↓
ABV2 OFT shares minted on Mantle
       ↓
LayerZero V2 message back to Arbitrum
       ↓
You hold ABV2 shares on Arbitrum
```

Yield accrues on Mantle. When you withdraw, the process reverses: shares are burned on Arbitrum, assets are withdrawn from the Mantle vault, and funds are bridged back to your wallet.

## Supported chains

| Chain | LayerZero Chain ID | Status |
| - | - | - |
| Ethereum | 30101 | Pending |
| Arbitrum | 30110 | Pending |
| BNB Chain | 30102 | Pending |
| Base | 30184 | Pending |
| Mantle (native) | 30181 | Live |

## Cross-chain message format

Every cross-chain operation uses a standardized message envelope:

```solidity theme={null}
struct CrossChainMessage {
    uint8  msgType;    // INTENT_POST, DEPOSIT, WITHDRAW, YIELD_CLAIM
    address sender;    // origin chain sender
    uint16  srcChainId;// LayerZero chain ID
    bytes   payload;   // type-specific encoded data
    uint256 nonce;     // replay protection
}
```

## Bridge \$ABNK cross-chain

The `ABNKToken` on Mantle supports OFT bridging to Ethereum, Arbitrum, and Base for DEX liquidity. Total supply is conserved across all chains — the bridge burns on source and mints on destination.

```
Supply invariant: supply_mantle + supply_ethereum + supply_arbitrum + supply_base = total_minted
```

## Using the Telegram Mini App

The AgentBank Telegram Mini App (available inside Telegram) provides a full GUI for cross-chain deposits:

1. Open AgentBank inside Telegram
2. Go to **Bridge** tab
3. Select your source chain and amount
4. Confirm — the app handles the LayerZero message for you

The Mini App uses Privy non-custodial wallets so you don't need a separate browser extension.

## Fees

| Operation | Fee |
| - | - |
| Cross-chain deposit | 0.05% of bridged amount (protocol fee) + LayerZero messaging fee |
| Cross-chain bridge of ABNK | 0.05% of bridged amount + LayerZero messaging fee |

LayerZero messaging fees are paid in the native gas token of your source chain (ETH on Ethereum, etc.).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.