Skip to main content

Action

Git Source - Generated with forge doc

Per-action parameters.

take carries the Midnight take parameters (MidnightTakeData).

allowRevert only catches reverts from the inner take call; other per-action paths still abort the batch.

feeAdjuster/feeAdjusterData are trusted to mirror the callback's actual fee (formula and rate); the router does not cross-check them against callbacks that may charge fees to the initiator. Misconfigured fee adjustment params may skew fill/slippage accounting for the whole batch. feeAdjuster may safely be set to address(0) when callbacks don't charge fees to initiator.

struct Action {
MidnightTakeData take;
bool allowRevert;
Offer offer;
address clamp;
bytes clampData;
address feeAdjuster;
bytes feeAdjusterData;
}