Security model

What the covenants guarantee to makers and LPs, what they deliberately don't, and how the guarantees are tested.

Guarantees (enforced on-chain)

Party Guarantee Enforced by
Maker Receives ≥ the covenant minimum, or gets everything back Intent fill() / cancel()
Maker One payout output can't satisfy two intents Index binding
Maker Refunds go only to makerPkh cancel() output check
LP A pool is paid at least its price for what it releases StrategyCovenantV2.fill() derived amounts
LP Only the owner can withdraw dock() signature check
LP Two pools can't share one recreated output Index binding

Not guaranteed

Off-chain hardening

Testing

Suite Result
Contracts test:security:v2 39/39: prior drain patterns rejected, index binding, funding edge cases, Dutch windows, composition
Server npm test 91/91: pool maths = covenant maths, windows, funding rules, surplus, routing
Live chipnet Fills via all three routes, surplus modes, cancel, TWAP, refunds

To document