- Bridge USDC from Arbitrum to Base using Across
- Swap bridged USDC → WETH on Base via Uniswap V3
- Supply the WETH to Morpho RE7’s WETH pool
- Return the RE7 vault tokens back to the user’s EOA
Demo of Composable Orchestration
Why this matters
With one user signature you can:- Bridge, swap, stake — any multi-step flow — without asking the user to sign again.
- Pay all gas for every step in one ERC-20 (USDC) instead of native ETH on multiple chains.
- Leave zero “dust”: every last token that isn’t needed is auto-returned to the user.
- Keep the user in a single, familiar wallet; no pop-ups, no chain switching, no scary approvals.
Business impact
Developers get shorter build cycles; users get a smoother checkout-style experience. That’s higher conversion and faster feature delivery with almost no smart-contract risk.Key Concepts Used
Code Walk‑Through
Below we highlight the critical parts ofsupplyToMorpho.ts
. Full file lives in your repo.
1
Initialise Multichain Account & MEE Client
2
Define Trigger & Constraints
Why: Fusion mode starts with an empty orchestrator. A single USDC transfer funds it and reveals the amount we’ll use.
3
Bridge USDC with Across
Follow the Across Integration Tutorial to learn how to encode Across.Two instructions are added:
- Approve USDC to Across
- Raw calldata deposit
4
Swap USDC → WETH on Base
runtimeERC20BalanceOf
waits until bridged USDC arrives and meets executionConstraints
.5
Supply WETH to Morpho & Return Vault Tokens
6
Quote & Execute Fusion Transaction
What You Achieved
- One signature → multi‑step, cross‑chain flow
- Gas paid in USDC, no ETH needed
- Exact amounts supplied, no guesswork
- Vault tokens automatically returned to user