OrderMixin
Regular Limit Order mixin
Derives
Permitable
Functions
remaining
Returns unfilled amount for order. Throws if order does not exist
Parameters:
remainingRaw
Returns unfilled amount for order
Parameters:
Return Values:
remainingsRaw
Same as remainingRaw
but for multiple orders
Parameters:
simulateCalls
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:
cancelOrder
Cancels order by setting remaining amount to zero
Parameters:
fillOrder
Fills an order. If one doesn't exist (first fill) it will be created using order.makerAssetData
Parameters:
fillOrderToWithPermit
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:
fillOrderTo
Same as fillOrder
but allows to specify funds destination instead of msg.sender
Parameters:
checkPredicate
Checks order predicate
Parameters:
hashOrder
Parameters:
Events
OrderFilled
Emitted every time order gets filled, including partial fills
Parameters:
OrderCanceled
Emitted when order gets cancelled
Parameters:
Last updated