asset-swapper: ensure takerAddress for indiciative
Ensure the presence of a taker address query parameter in the request to market maker endpoints for indicative RFQ-T quotes. Addresses review comment https://github.com/0xProject/0x-monorepo/pull/2684#pullrequestreview-477242367
This commit is contained in:
parent
f471e1a8a3
commit
e738743c89
@ -214,6 +214,10 @@ export class QuoteRequestor {
|
||||
): Promise<RFQTIndicativeQuote[]> {
|
||||
const _opts: RfqtRequestOpts = { ...constants.DEFAULT_RFQT_REQUEST_OPTS, ...options };
|
||||
|
||||
if (!_opts.takerAddress) {
|
||||
_opts.takerAddress = constants.NULL_ADDRESS;
|
||||
}
|
||||
|
||||
const responsesWithStringInts = await this._getQuotesAsync<RFQTIndicativeQuote>( // not yet BigNumber
|
||||
makerAssetData,
|
||||
takerAssetData,
|
||||
|
Loading…
x
Reference in New Issue
Block a user