Skip to main content
Your inventory lives in a contract you own that implements IMMProvider. The executor calls it to settle each fill.

executeSwap parameters

The executor computes amountOut only from a ladder your key signed, within its size, expiry and protections. Delivering less than amountOut makes the trade revert on the taker’s minAmountOut.

Deploy BasicMMProvider

BasicMMProvider.sol is the reference implementation. It accepts fills from the executor only and pays amountOut.

Implement IMMProvider on an existing contract

If your inventory already sits in a contract, add the three functions to it.