Principal hooks
Customizing makerExecute
makerExecuteLast look before trade
/// @notice Hook that implements a last look check during Taker Order's execution.
/// @param order is a recall of the taker order that is at the origin of the current trade.
/// @return data is a message that will be passed to posthook provided `makerExecute` does not revert.
/// @dev __lastLook__ should revert if trade is to be reneged on. If not, returned `bytes32` are passed to `makerPosthook` in the `makerData` field.
/// @custom:hook overrides of this hook should be conservative and call `super.__lastLook__(order)`.
function __lastLook__(MgvLib.SingleOrder calldata order) internal virtual returns (bytes32 data) {
order; //shh
data = bytes32(0);
}Managing taker's payment
Sourcing liquidity
Customizing makerPosthook
makerPosthookPosthook after trade success
Posthook after trade failure
Last updated
Was this helpful?