asset-swapper: Update comments

This commit is contained in:
F. Eugene Aumson 2020-08-31 16:36:00 -04:00
parent db0f3a8780
commit a8f3a47240
No known key found for this signature in database
GPG Key ID: 23E6737B1374A24A

View File

@ -214,6 +214,11 @@ export class QuoteRequestor {
): Promise<RFQTIndicativeQuote[]> {
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;
}