Built-in rules
When the remaining room cannot hold
total_capital, the call fails with a 400 that says how much fits. It never returns a plan that strands funds. See Errors.
Missing data
Missing data is handled conservatively:- A market whose liquidity cannot be read takes no new deposits.
- A market without enough APR history keeps its spot curve instead of the 7-day discount.
- If Morpho’s risk data is unavailable, the largest-depositor rule is skipped for that request.
Caller constraints
Add your own policy inconstraints. Each entry is { "kind": ..., "params": { ... } }. Amounts are base units. Invalid shapes and impossible combinations return 400 with the expected parameters, never a silent partial plan.
250000000), and never uses Spark.
Constraints narrow what the rules allow; they cannot loosen a built-in rule. A floor that a rule forbids, such as a minimum in a market above 95% utilization, can make the request fail with a
400.