Merge pull request #2716 from 0xProject/fix/buy-orders-quote-report

fix: fixed a small bug with buys and quote reporter
This commit is contained in:
Daniel Pyrathon
2020-10-01 10:39:47 -07:00
committed by GitHub

View File

@@ -408,10 +408,10 @@ export class MarketOperationUtils {
shouldBatchBridgeOrders: _opts.shouldBatchBridgeOrders,
});
let quoteReport: QuoteReport | undefined;
if (_opts.shouldGenerateQuoteReport && _opts.rfqt && _opts.rfqt.quoteRequestor) {
if (_opts.shouldGenerateQuoteReport) {
quoteReport = MarketOperationUtils._computeQuoteReport(
nativeOrders,
_opts.rfqt.quoteRequestor,
_opts.rfqt ? _opts.rfqt.quoteRequestor : undefined,
marketSideLiquidity,
optimizerResult,
);