From 406ffa615b4632e840a9eb70866fbdba1e4f460e Mon Sep 17 00:00:00 2001 From: boufni95 Date: Thu, 20 Jun 2024 20:26:55 +0200 Subject: [PATCH] fix --- src/services/lnd/lsp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/lnd/lsp.ts b/src/services/lnd/lsp.ts index 2effc8c1..63d6bedf 100644 --- a/src/services/lnd/lsp.ts +++ b/src/services/lnd/lsp.ts @@ -263,7 +263,7 @@ export class VoltageLSP extends LSP { return json } - getFees = async (amtMsat: string, pubkey: string) => { + getFees = async (amtMsat: number, pubkey: string) => { const res = await fetch(`${this.settings.voltageServiceUrl}/fee`, { method: "POST", body: JSON.stringify({ amount_msat: amtMsat, pubkey }), @@ -288,7 +288,7 @@ export class VoltageLSP extends LSP { const lndInfo = await this.lnd.GetInfo() const myPub = lndInfo.identityPubkey - const amtMsats = this.settings.channelThreshold.toString() + "000" + const amtMsats = this.settings.channelThreshold * 1000 const fee = await this.getFees(amtMsats, myPub) const feeSats = fee.fee_amount_msat / 1000 const relativeFee = feeSats / this.settings.channelThreshold