GenericPoolOrderBookV3FlashBorrower
Inherits: OrderBookV3FlashBorrower
Functions
constructor
constructor(DeployerDiscoverableMetaV3ConstructionConfig memory config)
OrderBookV3FlashBorrower(CALLER_META_HASH, config);
_exchange
Hook that inheriting contracts MUST implement in order to achieve
anything other than raising the ambient temperature of the room.
_exchange is responsible for converting the flash loaned assets into
the assets required to fill the orders. Generally this can only be
achieved by interacting with an external liquidity source that is
offering a better price than the orders require.
function _exchange(TakeOrdersConfigV2 memory takeOrders, bytes memory exchangeData) internal virtual override;
Parameters
| Name | Type | Description |
|---|---|---|
takeOrders | TakeOrdersConfigV2 | As per arb. |
exchangeData | bytes | As per arb. |
fallback
Allow receiving gas.
fallback() external onlyNotInitializing;