Plans
Plan Swap and Supply
Create a plan to swap an asset and supply the result to a protocol
POST
Plan Swap and Supply
Plan Swap and Supply
Creates a plan that atomically swaps one asset for another and immediately supplies the result into a DeFi yield protocol. This is useful for one-step “zap” operations where you have one asset but want to earn on another. Returns a plan ID and an EIP-712 digest that must be signed to authorize execution.Request
Path parameters
Body parameters
Examples
Response (201 Created)
Response fields
Errors
Notes
- Plans expire after 2 minutes. Sign and execute via Execute Plan before expiry.
- The swap and supply happen atomically in a single transaction.
- A 0.15% Legend fee is applied to the buy side of the swap quote.
- The full swapped amount (after fee) is deposited into the protocol.
- When using
morpho_vaultas the protocol, you must provide themarketparameter.
Plan Swap and Supply