OrderRFQMixin

RFQ Limit Order mixin

invalidatorForOrderRFQarrow-up-right

function invalidatorForOrderRFQ(
  address maker,
  uint256 slot
) external returns (uint256)

Returns bitmask for double-spend invalidators based on lowest byte of order.info and filled quotes

Parameters:arrow-up-right

Name
Type
Description

maker

address

slot

uint256

Return Values:arrow-up-right

Name
Type
Description

Result

uint256

Each bit represents whether corresponding was already invalidated

cancelOrderRFQarrow-up-right

Cancels order's quote

Parameters:arrow-up-right

Name
Type
Description

orderInfo

uint256

fillOrderRFQarrow-up-right

Fills order's quote, fully or partially (whichever is possible)

Parameters:arrow-up-right

Name
Type
Description

order

struct OrderRFQMixin.Order

Order quote to fill

signature

bytes

Signature to confirm quote ownership

makingAmount

uint256

Making amount

takingAmount

uint256

Taking amount

fillOrderRFQToWithPermitarrow-up-right

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:arrow-up-right

Name
Type
Description

order

struct OrderRFQMixin.Order

Order quote to fill

signature

bytes

Signature to confirm quote ownership

makingAmount

uint256

Making amount

takingAmount

uint256

Taking amount

target

address

Address that will receive swap funds

permit

bytes

Should consist of abiencoded token address and encoded IERC20Permit.permit call.

fillOrderRFQToarrow-up-right

Same as fillOrderRFQ but allows to specify funds destination instead of msg.sender

Parameters:arrow-up-right

Name
Type
Description

order

struct OrderRFQMixin.Order

Order quote to fill

signature

bytes

Signature to confirm quote ownership

makingAmount

uint256

Making amount

takingAmount

uint256

Taking amount

target

address

Address that will receive swap funds

OrderFilledRFQarrow-up-right

Emitted when RFQ gets filled

Parameters:arrow-up-right

Name
Type
Description

orderHash

bytes32

makingAmount

uint256

Last updated