Plans
Plan Reinvest Rewards
Create a plan to claim rewards, swap them, and resupply
POST
Plan Reinvest Rewards
Plan Reinvest Rewards
Creates a plan that atomically claims protocol rewards, swaps them into the supply asset, and resupplies into the protocol. This automates the “reinvest rewards” flow in a single transaction. 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 claim, swap, and supply all happen atomically in a single transaction.
- Each reward asset in the list generates a separate claim and swap operation.
- A 0.15% Legend fee is applied to the buy side of each swap quote.
- When using
morpho_vaultas the protocol, you must provide themarketparameter.
Plan Reinvest Rewards