asset-s/QuoteRequestor: use constructor assignment

This commit is contained in:
F. Eugene Aumson
2020-04-28 20:14:25 -04:00
parent 19b28a58d6
commit 4eb20ca4b6

View File

@@ -81,14 +81,12 @@ function hasExpectedAssetData(
}
export class QuoteRequestor {
private readonly _rfqtMakerEndpoints: string[];
private readonly _schemaValidator: SchemaValidator = new SchemaValidator();
private readonly _warningLogger: (s: string) => void;
constructor(rfqtMakerEndpoints: string[], logger: (s: string) => void = s => logUtils.warn(s)) {
this._rfqtMakerEndpoints = rfqtMakerEndpoints;
this._warningLogger = logger;
}
constructor(
private readonly _rfqtMakerEndpoints: string[],
private readonly _warningLogger: (s: string) => void = s => logUtils.warn(s),
) {}
public async requestRfqtFirmQuotesAsync(
makerAssetData: string,