From dfd8684cce8a7ab0aa24e14a2cea8a04d017b2ac Mon Sep 17 00:00:00 2001 From: "F. Eugene Aumson" Date: Thu, 9 Apr 2020 13:41:22 -0400 Subject: [PATCH] Adapt to new RFQ-T namespace in SwapQuoterReqOpts --- src/services/swap_service.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/services/swap_service.ts b/src/services/swap_service.ts index 53d7fec243..1246ff450e 100644 --- a/src/services/swap_service.ts +++ b/src/services/swap_service.ts @@ -84,8 +84,13 @@ export class SwapService { gasPrice: providedGasPrice, excludedSources, // TODO(dave4506): overrides the excluded sources selected by chainId apiKey, - intentOnFilling, - takerAddress: from, + rfqt: + rfqt === undefined || from === undefined + ? undefined + : { + ...rfqt, + takerAddress: from, + }, }; if (sellAmount !== undefined) { swapQuote = await this._swapQuoter.getMarketSellSwapQuoteAsync(