asset-swapp: isBlacklisted in rfqtMakerInteraction
This commit is contained in:
parent
36546480b1
commit
5d8e35fb68
@ -337,10 +337,9 @@ export class QuoteRequestor {
|
|||||||
const result: Array<{ response: ResponseT; makerUri: string }> = [];
|
const result: Array<{ response: ResponseT; makerUri: string }> = [];
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
Object.keys(this._rfqtAssetOfferings).map(async url => {
|
Object.keys(this._rfqtAssetOfferings).map(async url => {
|
||||||
if (
|
if (rfqMakerBlacklist.isMakerBlacklisted(url)) {
|
||||||
this._makerSupportsPair(url, makerAssetData, takerAssetData) &&
|
this._infoLogger({ rfqtMakerInteraction: { url, quoteType, isBlacklisted: true } });
|
||||||
!rfqMakerBlacklist.isMakerBlacklisted(url)
|
} else if (this._makerSupportsPair(url, makerAssetData, takerAssetData)) {
|
||||||
) {
|
|
||||||
const requestParamsWithBigNumbers = {
|
const requestParamsWithBigNumbers = {
|
||||||
takerAddress: options.takerAddress,
|
takerAddress: options.takerAddress,
|
||||||
...inferQueryParams(marketOperation, makerAssetData, takerAssetData, assetFillAmount),
|
...inferQueryParams(marketOperation, makerAssetData, takerAssetData, assetFillAmount),
|
||||||
@ -358,7 +357,8 @@ export class QuoteRequestor {
|
|||||||
: undefined,
|
: undefined,
|
||||||
};
|
};
|
||||||
|
|
||||||
const partialLogEntry = { url, quoteType, requestParams };
|
const partialLogEntry = { url, quoteType, requestParams, isBlacklisted: false };
|
||||||
|
|
||||||
const timeBeforeAwait = Date.now();
|
const timeBeforeAwait = Date.now();
|
||||||
const maxResponseTimeMs =
|
const maxResponseTimeMs =
|
||||||
options.makerEndpointMaxResponseTimeMs === undefined
|
options.makerEndpointMaxResponseTimeMs === undefined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user