From a8f3a47240c1a0adabbdd60ca82c8c98b4f07851 Mon Sep 17 00:00:00 2001 From: "F. Eugene Aumson" Date: Mon, 31 Aug 2020 16:36:00 -0400 Subject: [PATCH] asset-swapper: Update comments --- packages/asset-swapper/src/utils/quote_requestor.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/asset-swapper/src/utils/quote_requestor.ts b/packages/asset-swapper/src/utils/quote_requestor.ts index 3826c2b798..d39e9efdcf 100644 --- a/packages/asset-swapper/src/utils/quote_requestor.ts +++ b/packages/asset-swapper/src/utils/quote_requestor.ts @@ -214,6 +214,11 @@ export class QuoteRequestor { ): Promise { const _opts: RfqtRequestOpts = { ...constants.DEFAULT_RFQT_REQUEST_OPTS, ...options }; + // Originally a takerAddress was required for indicative quotes, but + // now we've eliminated that requirement. @0x/quote-server, however, + // is still coded to expect a takerAddress. So if the client didn't + // send one, just use the null address to satisfy the quote server's + // expectations. if (!_opts.takerAddress) { _opts.takerAddress = constants.NULL_ADDRESS; }