ExecuteParams
Git Source - Generated with forge doc
Parameters for batch execution.
maxFill/minFill = type(uint256).max is a renewal/close-out sentinel resolved against onchain state,
not the ERC-20 "unlimited" idiom; resolution reverts if it yields 0, so opening flows must pass explicit bounds.
maxFill must be at most type(uint128).max after sentinel resolution (MaxFillTooLarge); a batched
fill can theoretically exceed it, but the cap is sufficient for all practical purposes.
fillAxis == ASSETS caps and the slippage denominator both pin to the batch's side; see _initiatorIsBuyer.
_execute enforces that all actions share the same market (InconsistentMarket) and the same side
(InconsistentSide). The initiator is always the Midnight taker.
struct ExecuteParams {
uint256 deadline; // block.timestamp must be <= deadline (0 = no deadline).
FillAxis fillAxis;
uint256 maxFill; // Denominated in assets or units depending on fillAxis.
uint256 minFill; // Denominated in assets or units depending on fillAxis.
uint256 minPrice; // WAD-scaled assets-per-unit floor on the batch side (0 disables).
uint256 maxPrice; // WAD-scaled assets-per-unit ceiling on the batch side (MaxUint disables).
uint256 maxContinuousFee; // Ceiling on the batch market's continuous fee (MaxUint disables).
bool reduceOnly; // Crossing protection: reverts if the initiator's wrong side grows.
}