- Bridge USDT0 from Plasma to Ethereum via Stargate
- Check USDT balance on Ethereum after bridge
- Swap USDT to syrupUSDT on Ethereum
- Bridge syrupUSDT back to Plasma via CCIP
- Check syrupUSDT balance on Plasma after bridge
- Deposit syrupUSDT into AAVE V3 on Plasma
mixedBridgeProtocols.ts
- Nested callbacks: The CCIP bridge action is itself a callback within the Stargate bridge, creating nested crosschain execution
- Protocol selection: Stargate for fast outbound bridging, CCIP for secure return with DeFi callback
- Callback data limits: The inner CCIP callback (~30KB limit) must fit within Stargate’s callback limit (~9.5KB) - plan accordingly
- Gas estimation: Each bridge hop has its own gas requirements; the Bundle API handles estimation across all chains
- Finalization timing: CCIP waits for source chain finalization before executing the final callback
When to Use Mixed Protocols
| Scenario | Recommended Approach |
|---|---|
| Fast outbound, secure return | Stargate out → CCIP back |
| Large callback on return | Stargate out → Relay back |
| Maximum security both ways | CCIP both directions |
| Native token support needed | Relay or Stargate |
Resources
- Crosschain Routing Guide - Complete guide to crosschain operations
- CCIP Bridge - CCIP-specific documentation
- Stargate Bridge - Stargate-specific documentation
Updated
