@0x/asset-swapper: Add rfqtTakerAddress to FillQuoteTransformerData
This commit is contained in:
committed by
Lawrence Forman
parent
dba6972281
commit
a6cf8ae0b6
@@ -93,6 +93,10 @@
|
|||||||
{
|
{
|
||||||
"note": "Use `IZeroExContract` in EP swap quote consumer.",
|
"note": "Use `IZeroExContract` in EP swap quote consumer.",
|
||||||
"pr": 2657
|
"pr": 2657
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"note": "Set `rfqtTakerAddress` to null in EP consumer",
|
||||||
|
"pr": 2692
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ export class ExchangeProxySwapQuoteConsumer implements SwapQuoteConsumerBase {
|
|||||||
refundReceiver: refundReceiver || NULL_ADDRESS,
|
refundReceiver: refundReceiver || NULL_ADDRESS,
|
||||||
fillAmount: firstHopOrder.takerAssetAmount,
|
fillAmount: firstHopOrder.takerAssetAmount,
|
||||||
maxOrderFillAmounts: [],
|
maxOrderFillAmounts: [],
|
||||||
|
rfqtTakerAddress: NULL_ADDRESS,
|
||||||
orders: [firstHopOrder],
|
orders: [firstHopOrder],
|
||||||
signatures: [firstHopOrder.signature],
|
signatures: [firstHopOrder.signature],
|
||||||
}),
|
}),
|
||||||
@@ -131,6 +132,7 @@ export class ExchangeProxySwapQuoteConsumer implements SwapQuoteConsumerBase {
|
|||||||
side: FillQuoteTransformerSide.Sell,
|
side: FillQuoteTransformerSide.Sell,
|
||||||
fillAmount: MAX_UINT256,
|
fillAmount: MAX_UINT256,
|
||||||
maxOrderFillAmounts: [],
|
maxOrderFillAmounts: [],
|
||||||
|
rfqtTakerAddress: NULL_ADDRESS,
|
||||||
orders: [secondHopOrder],
|
orders: [secondHopOrder],
|
||||||
signatures: [secondHopOrder.signature],
|
signatures: [secondHopOrder.signature],
|
||||||
}),
|
}),
|
||||||
@@ -145,6 +147,7 @@ export class ExchangeProxySwapQuoteConsumer implements SwapQuoteConsumerBase {
|
|||||||
side: isBuyQuote(quote) ? FillQuoteTransformerSide.Buy : FillQuoteTransformerSide.Sell,
|
side: isBuyQuote(quote) ? FillQuoteTransformerSide.Buy : FillQuoteTransformerSide.Sell,
|
||||||
fillAmount: isBuyQuote(quote) ? quote.makerAssetFillAmount : quote.takerAssetFillAmount,
|
fillAmount: isBuyQuote(quote) ? quote.makerAssetFillAmount : quote.takerAssetFillAmount,
|
||||||
maxOrderFillAmounts: [],
|
maxOrderFillAmounts: [],
|
||||||
|
rfqtTakerAddress: NULL_ADDRESS,
|
||||||
orders: quote.orders,
|
orders: quote.orders,
|
||||||
signatures: quote.orders.map(o => o.signature),
|
signatures: quote.orders.map(o => o.signature),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user