OrderRFQMixin
RFQ Limit Order mixin
Derives
Permitable
Functions
invalidatorForOrderRFQ
Returns bitmask for double-spend invalidators based on lowest byte of order.info and filled quotes
Parameters:
Name | Type | Description |
---|---|---|
| address | |
| uint256 |
Return Values:
Name | Type | Description |
---|---|---|
| uint256 | Each bit represents whether corresponding was already invalidated |
cancelOrderRFQ
Cancels order's quote
Parameters:
Name | Type | Description |
---|---|---|
| uint256 |
fillOrderRFQ
Fills order's quote, fully or partially (whichever is possible)
Parameters:
Name | Type | Description |
---|---|---|
| struct OrderRFQMixin.Order | Order quote to fill |
| bytes | Signature to confirm quote ownership |
| uint256 | Making amount |
| uint256 | Taking amount |
fillOrderRFQToWithPermit
Fills Same as fillOrderRFQ
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:
Name | Type | Description |
---|---|---|
| struct OrderRFQMixin.Order | Order quote to fill |
| bytes | Signature to confirm quote ownership |
| uint256 | Making amount |
| uint256 | Taking amount |
| address | Address that will receive swap funds |
| bytes | Should consist of abiencoded token address and encoded |
fillOrderRFQTo
Same as fillOrderRFQ
but allows to specify funds destination instead of msg.sender
Parameters:
Name | Type | Description |
---|---|---|
| struct OrderRFQMixin.Order | Order quote to fill |
| bytes | Signature to confirm quote ownership |
| uint256 | Making amount |
| uint256 | Taking amount |
| address | Address that will receive swap funds |
Events
OrderFilledRFQ
Emitted when RFQ gets filled
Parameters:
Name | Type | Description |
---|---|---|
| bytes32 | |
| uint256 |
Last updated