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