Cross-chain
Architecture Overview
Hub-and-Spoke Model
xTokens are omnichain OFTs that use a hub-and-spoke architecture powered by LayerZero V2:
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Arbitrum │ │ HyperEVM │ │ Ethereum │
│ (Spoke) │◄───────►│ (Hub) │◄───────►│ (Spoke) │
└─────────────┘ └─────────────┘ └─────────────┘HyperEVM (Hub)
Where the strategy lives:
Logic and asset management
NAV tracking and share price calculation
Liquidity management for instant redemptions
Share minting and burning
Spoke Chains (Arbitrum, Ethereum..)
Where users interact:
OFT (Omnichain Fungible Token) contracts for assets and shares
Cross-chain message composition
Local balance tracking via LayerZero
Cross-Chain Flow
Deposit Flow
Example: Deposit from Arbitrum (Spoke) → HyperEVM (Hub) → Ethereum (Spoke)
User deposits USDT0 on Arbitrum
USDT0 OFT sends tokens to Hub (HyperEVM) via LayerZero
Composer receives compose message on Hub
DepositPipe accepts USDT0, mints shares to user
LayerZero Composer sends shares to Ethereum
User receives xTokens on Ethereum
Example: Deposit from Arbitrum (Spoke) → HyperEVM (Hub)
User deposits USDT0 on Arbitrum
USDT0 OFT sends tokens to HyperEVM (hub) via LayerZero
LayerZero Composer receives the compose message on HyperEVM
DepositPipe accepts the USDT0 and mints shares
User receives xTokens on HyperEVM
Example: Deposit from HyperEVM (Hub) → Ethereum (Spoke)
User deposits USDT0 directly on HyperEVM
DepositPipe mints shares immediately
LayerZero Composer sends the minted shares to Ethereum
User receives xTokens on Ethereum
Redemption Flow
LayerZero composer only handle synchronous operations, therefore making it only possible to perform instant redemption using the cross-chain infrastructure. If the user wants a standard redemption he needs to bridge his shares on HyperEVM.
Example: Redeem from Ethereum (Spoke) → HyperEVM (Hub)
User sends xToken shares from Ethereum via LayerZero
Shares arrive on HyperEVM (hub)
Redemption is performed, shares are burned and USDT0 released to the user on HyperEVM
Example: Redeem from HyperEVM (Hub) → Ethereum (Spoke)
User perform the redemption on HyperEVM to redeem shares
Shares are burned and USDT0 is released
LayerZero sends the USDT0 to Ethereum
User receives USDT0 on Ethereum
Example: Redeem from Arbitrum (Spoke) → HyperEVM (Hub) → Ethereum (Spoke)
User sends shares from Arbitrum using LayerZero
Shares arrive on HyperEVM (hub)
Redemption is performed, burns the shares and releases USDT0
USDT0 are sent to Ethereum using LayerZero
User receives USDT0 on Ethereum
Bridge flow
xTokens are omnichain OFTs, meaning bridging simply moves your xToken shares from one chain to another without interacting with the underlying strategy. No minting, burning, or position changes occur during a bridge. Only the chain location of your shares changes.
Example: Bridge from Arbitrum → HyperEVM
User initiates a bridge of xToken shares on Arbitrum
LayerZero sends the shares to HyperEVM
Shares arrive on HyperEVM and are credited to the user
No redemption, no minting, only a chain transfer
User now holds the same xToken shares on HyperEVM
Last updated