deb
This commit is contained in:
parent
824e98f007
commit
284aa58a74
1 changed files with 2 additions and 0 deletions
|
|
@ -223,6 +223,8 @@ export class LiquidityProvider {
|
||||||
const fees = this.GetFees()
|
const fees = this.GetFees()
|
||||||
const providerServiceFee = this.GetServiceFee(decodedAmount, fees)
|
const providerServiceFee = this.GetServiceFee(decodedAmount, fees)
|
||||||
if (feeLimit && providerServiceFee > feeLimit) {
|
if (feeLimit && providerServiceFee > feeLimit) {
|
||||||
|
this.log("fees", fees)
|
||||||
|
this.log("provider service fee is greater than the fee limit", providerServiceFee, feeLimit)
|
||||||
throw new Error("provider service fee is greater than the fee limit")
|
throw new Error("provider service fee is greater than the fee limit")
|
||||||
}
|
}
|
||||||
this.pendingPayments[invoice] = decodedAmount + providerServiceFee
|
this.pendingPayments[invoice] = decodedAmount + providerServiceFee
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue