Skip to main content
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_vault as the protocol, you must provide the market parameter.