lint fix
This commit is contained in:
@@ -243,7 +243,7 @@ export interface RfqmRequestOptions extends RfqRequestOpts {
|
|||||||
export interface RfqRequestOpts {
|
export interface RfqRequestOpts {
|
||||||
takerAddress: string;
|
takerAddress: string;
|
||||||
txOrigin: string;
|
txOrigin: string;
|
||||||
integrator: Integrator
|
integrator: Integrator;
|
||||||
apiKeyWhitelist?: string[];
|
apiKeyWhitelist?: string[];
|
||||||
intentOnFilling: boolean;
|
intentOnFilling: boolean;
|
||||||
isIndicative?: boolean;
|
isIndicative?: boolean;
|
||||||
@@ -300,7 +300,7 @@ export interface Integrator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface SwapQuoterRfqOpts {
|
export interface SwapQuoterRfqOpts {
|
||||||
integratorsWhitelist: Integrator[]
|
integratorsWhitelist: Integrator[];
|
||||||
makerAssetOfferings: RfqMakerAssetOfferings;
|
makerAssetOfferings: RfqMakerAssetOfferings;
|
||||||
txOriginBlacklist: Set<string>;
|
txOriginBlacklist: Set<string>;
|
||||||
altRfqCreds?: {
|
altRfqCreds?: {
|
||||||
|
|||||||
@@ -77,10 +77,10 @@ export interface MetricsProxy {
|
|||||||
* means that the network response was successful.
|
* means that the network response was successful.
|
||||||
*/
|
*/
|
||||||
logRfqMakerNetworkInteraction(interaction: {
|
logRfqMakerNetworkInteraction(interaction: {
|
||||||
isLastLook: boolean,
|
isLastLook: boolean;
|
||||||
integrator: Integrator;
|
integrator: Integrator;
|
||||||
url: string;
|
url: string;
|
||||||
quoteType: 'firm' | 'indicative'
|
quoteType: 'firm' | 'indicative';
|
||||||
statusCode: number | undefined;
|
statusCode: number | undefined;
|
||||||
latencyMs: number;
|
latencyMs: number;
|
||||||
included: boolean;
|
included: boolean;
|
||||||
@@ -479,8 +479,8 @@ export class QuoteRequestor {
|
|||||||
// filter out requests to skip
|
// filter out requests to skip
|
||||||
const isBlacklisted = rfqMakerBlacklist.isMakerBlacklisted(typedMakerUrl.url);
|
const isBlacklisted = rfqMakerBlacklist.isMakerBlacklisted(typedMakerUrl.url);
|
||||||
const partialLogEntry = { url: typedMakerUrl.url, quoteType, requestParams, isBlacklisted };
|
const partialLogEntry = { url: typedMakerUrl.url, quoteType, requestParams, isBlacklisted };
|
||||||
const {isLastLook, integrator} = options;
|
const { isLastLook, integrator } = options;
|
||||||
const {sellTokenAddress, buyTokenAddress} = requestParams;
|
const { sellTokenAddress, buyTokenAddress } = requestParams;
|
||||||
if (isBlacklisted) {
|
if (isBlacklisted) {
|
||||||
this._metrics?.logRfqMakerNetworkInteraction({
|
this._metrics?.logRfqMakerNetworkInteraction({
|
||||||
isLastLook: false,
|
isLastLook: false,
|
||||||
@@ -621,7 +621,7 @@ export class QuoteRequestor {
|
|||||||
rfqMakerBlacklist.logTimeoutOrLackThereof(typedMakerUrl.url, latencyMs >= timeoutMs);
|
rfqMakerBlacklist.logTimeoutOrLackThereof(typedMakerUrl.url, latencyMs >= timeoutMs);
|
||||||
this._warningLogger(
|
this._warningLogger(
|
||||||
convertIfAxiosError(err),
|
convertIfAxiosError(err),
|
||||||
`Failed to get RFQ-T ${quoteType} quote from market maker endpoint ${typedMakerUrl.url} for integrator ${options.integrator.integratorId} (${options.integrator.label}) for taker address ${options.takerAddress} and tx origin ${options.txOrigin}`
|
`Failed to get RFQ-T ${quoteType} quote from market maker endpoint ${typedMakerUrl.url} for integrator ${options.integrator.integratorId} (${options.integrator.label}) for taker address ${options.takerAddress} and tx origin ${options.txOrigin}`,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user