This commit is contained in:
boufni95 2025-12-18 20:56:07 +00:00
parent 824e98f007
commit 284aa58a74

View file

@ -223,6 +223,8 @@ export class LiquidityProvider {
const fees = this.GetFees()
const providerServiceFee = this.GetServiceFee(decodedAmount, fees)
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")
}
this.pendingPayments[invoice] = decodedAmount + providerServiceFee