Regular Limit Order mixin
Copy function remaining (
bytes32 orderHash
) external returns ( uint256 ) Returns unfilled amount for order. Throws if order does not exist
Parameters: arrow-up-right
Returns unfilled amount for order
Parameters: arrow-up-right
Return Values: arrow-up-right
Unfilled amount of order plus one if order exists. Otherwise 0
Same as remainingRaw but for multiple orders
Parameters: arrow-up-right
Calls every target with corresponding data. Then reverts with CALL_RESULTS_0101011 where zeroes and ones denote failure or success of the corresponding call
Parameters: arrow-up-right
Array of addresses that will be called
Array of data that will be passed to each call
Cancels order by setting remaining amount to zero
Parameters: arrow-up-right
Fills an order. If one doesn't exist (first fill) it will be created using order.makerAssetData
Parameters: arrow-up-right
Signature to confirm quote ownership
Specifies maximum allowed takingAmount when takingAmount is zero, otherwise specifies minimum allowed makingAmount
Same as fillOrder but calls permit first, allowing to approve token spending and make a swap in one transaction. Also allows to specify funds destination instead of msg.sender
See tests for examples
Parameters: arrow-up-right
Signature to confirm quote ownership
Specifies maximum allowed takingAmount when takingAmount is zero, otherwise specifies minimum allowed makingAmount
Address that will receive swap funds
Should consist of abiencoded token address and encoded IERC20Permit.permit call.
Same as fillOrder but allows to specify funds destination instead of msg.sender
Parameters: arrow-up-right
Signature to confirm quote ownership
Specifies maximum allowed takingAmount when takingAmount is zero, otherwise specifies minimum allowed makingAmount
Address that will receive swap funds
Checks order predicate
Parameters: arrow-up-right
Parameters: arrow-up-right
Emitted every time order gets filled, including partial fills
Parameters: arrow-up-right
Emitted when order gets cancelled
Parameters: arrow-up-right