fix
This commit is contained in:
parent
f7c26ee38a
commit
1418db224e
1 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ export class LiquidityManager {
|
||||||
if (!providerReady) {
|
if (!providerReady) {
|
||||||
throw new Error("cannot use liquidity provider, it is not ready")
|
throw new Error("cannot use liquidity provider, it is not ready")
|
||||||
}
|
}
|
||||||
const feeLimit = await this.liquidityProvider.GetExpectedFeeLimit(amount)
|
const feeLimit = this.liquidityProvider.CalculateExpectedFeeLimit(amount)
|
||||||
return { use: 'provider', feeLimit }
|
return { use: 'provider', feeLimit }
|
||||||
}
|
}
|
||||||
if (!providerReady) {
|
if (!providerReady) {
|
||||||
|
|
@ -97,7 +97,7 @@ export class LiquidityManager {
|
||||||
if (!canHandle) {
|
if (!canHandle) {
|
||||||
return { use: 'lnd' }
|
return { use: 'lnd' }
|
||||||
}
|
}
|
||||||
const feeLimit = this.liquidityProvider.CalculateExpectedFeeLimit(amount, canHandle)
|
const feeLimit = this.liquidityProvider.CalculateExpectedFeeLimit(amount)
|
||||||
return { use: 'provider', feeLimit }
|
return { use: 'provider', feeLimit }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue