fix: logger

This commit is contained in:
Kirill Litvinov
2024-04-15 15:38:54 +03:00
parent dc1519f26c
commit 39f5287ea4
3 changed files with 20 additions and 21 deletions

View File

@@ -18,11 +18,8 @@ type PureSwapMarketParams = Omit<SwapMarketParams, 'unit'>
export default class Exchange {
private readonly unit: Unit;
public logger: ((message: string) => void) | undefined
constructor(unit: Unit, logger?: ((message: string) => void) | undefined) {
constructor(unit: Unit) {
this.unit = unit;
this.logger = logger;
}
public getSwapInfo(params: PureGetSwapMarketInfoParams) {
@@ -51,7 +48,6 @@ export default class Exchange {
return generateSwapCalldataWithUnit({
...params,
unit: this.unit,
logger: this.logger
})
}