Omnichain Vaults
Cross-chain vault operations enable Flux Protocol managers to execute strategies that span multiple blockchain networks from a single vault position. By leveraging cross-chain messaging protocols, managers can deploy capital across ecosystems—borrowing on Ethereum, deploying to Arbitrum, and farming yield on Base—all while maintaining unified health accounting and liquidation protection.
This capability transforms Flux from a single-chain lending protocol into a true omnichain capital coordination layer, where liquidity providers on one chain can fund strategies executing across the entire blockchain ecosystem.
Why Cross-Chain Operations?
The Multi-Chain Reality
DeFi liquidity is fragmented across dozens of networks. The best yield opportunities often exist on chains different from where capital resides:
Yield Fragmentation
Miss opportunities on other chains
Access yield anywhere
Capital Inefficiency
Idle capital on low-yield chains
Deploy to highest-yield venues
Arbitrage Gaps
Can't exploit cross-chain mispricings
Unified position for arb
Risk Concentration
All exposure on one chain
Diversify across ecosystems
Key Benefits
Unified Leverage — Borrow once, deploy everywhere
Cross-Chain Arbitrage — Exploit price differences across DEXs on different chains
Yield Optimization — Automatically route capital to highest-yield venues
Risk Diversification — Spread positions across multiple networks
Capital Efficiency — Single bond secures multi-chain positions
Architecture Overview

Core Components
1. Cross-Chain Router
The router is the source-chain gateway for initiating cross-chain operations:
2. Cross-Chain Receiver
The receiver handles incoming messages and executes operations on the destination chain:
3. Remote Position Tracker
Tracks manager positions on remote chains and provides value attestations:
Cross-Chain Asset Wrappers
Cross-chain wrappers extend the standard IAsset interface to manage positions on remote chains:
Cross-Chain Health Accounting
Unified Health Calculation
The vault aggregates both local and remote positions for health calculations:
Attestation-Based Valuation
Since remote chain state cannot be read synchronously, Flux uses an attestation model:
Staleness Protection
Messaging Protocol Integration
Flux supports multiple cross-chain messaging protocols through an adapter pattern:
LayerZero Integration
Chainlink CCIP Integration
Adapter Selection
Cross-Chain Callback Execution
Managers can execute complex cross-chain strategies using the callback pattern:
Example: Cross-Chain Yield Farming
Remote Execution Handler
Cross-Chain Liquidation
Challenge: Multi-Chain Position Liquidation
When a manager's health drops below threshold, liquidators must handle positions across multiple chains:
Coordinated Liquidation Contract
Cross-Chain Oracle Synchronization
Oracle Price Attestations
Remote chains attest their oracle prices to ensure consistent valuation:
Security Considerations
1. Message Verification
Always verify cross-chain message authenticity:
2. Replay Protection
Prevent message replay attacks:
3. Finality Considerations
Different chains have different finality guarantees:
Ethereum
Probabilistic → Finalized
2 epochs (~13 min)
Wait for finalization
Arbitrum
Optimistic
7 days (challenge period)
Use fast finality for small amounts
Base
Optimistic
7 days
Consider fraud proof window
Polygon
PoS
~128 blocks (~4 min)
Checkpoint to Ethereum
4. Bridge Risk Mitigation
5. Attestation Liveness
Ensure remote positions are regularly attested:
Best Practices
For Vault Curators
Set Conservative Attestation Windows — Require attestations every 30-60 minutes for volatile assets
Configure Bridge Limits — Cap per-transaction and daily bridge volumes
Whitelist Chains Carefully — Only enable chains with proven bridge security
Monitor Attestation Liveness — Alert if attestations stop arriving
For Managers
Understand Finality Delays — Cross-chain operations are not instant
Maintain Buffer Above Liquidation — Account for attestation lag in health calculations
Diversify Across Bridges — Don't concentrate all value through one bridge
Monitor Gas Costs — Cross-chain operations incur fees on multiple networks
For Developers
Implement Idempotent Handlers — Remote operations may be retried
Use Optimistic Updates Carefully — Always validate with attestations
Handle Partial Failures — Design for cases where some chains succeed, others fail
Test with Realistic Delays — Simulate 10-30 minute message delivery in tests
Related Concepts
Vaults — Core vault architecture and position model
Asset Wrappers — How wrappers abstract asset interactions
Oracle Registry — Price oracle integration
Strategies — Strategy contracts and risk parameters
Liquidation — Health calculations and liquidation mechanics
Last updated