Why This Matters
Save gas and reduce user friction by combining actions. The problem: Traditional DeFi requires separate transactions for each action. Swap ETH to USDC? One transaction. Deposit USDC into a vault? Another transaction. Each requires a signature, gas payment, and confirmation wait. Users drop off at every step. What Compass enables: Bundle multiple actions into a single atomic transaction. Users sign once, and all actions execute together. UX example: User wants to Earn on USDC venue, but only holds ETH. Without bundle: swap tokens and deposit into a vaul. With bundling: 1 transaction, 1 signature.How It Works
Example: Swap and deposit in one transaction- Call /earn/bundle with a list of actions
- API returns a single transaction that executes all actions in order
- User signs once
- All actions execute atomically.
Supported Actions
The bundle endpoint supports these action types:| Action Type | What it does |
|---|---|
V2_SWAP | Swap tokens within the Earn Account |
V2_MANAGE | Deposit or withdraw from ERC-4626 vaults or Aave markets |
Combining with Other Features
With Gas Sponsorship
Setgas_sponsorship=true to get EIP-712 typed data. The owner signs off-chain, and a sender broadcasts the transaction paying gas.
Then submit the signature to /gas_sponsorship/prepare.
With Embedded Fees
Add fees to individualV2_MANAGE actions (coming soon - for now, use individual endpoints for fee collection).