Skip to main content
Yield alone picks the riskiest market. Ampli limits where new money can go. These rules only restrict new deposits. They never force a withdrawal from a position you already hold.

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 in constraints. 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.
This spreads across at least three markets with at least 5% each, caps Superform at 40%, caps Moonwell at 250 USDC (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.