mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-03 19:47:56 +03:00
fix: logger
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user