From 1df2ed676a1c8c976bc4916f048bd268a6ee9586 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 22 Dec 2023 16:25:19 -0800 Subject: round fee --- src/routes/(app)/send/lightning/[payreq]/+page.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/+page.svelte index 539765bb..6a5eca87 100644 --- a/src/routes/(app)/send/lightning/[payreq]/+page.svelte +++ b/src/routes/(app)/send/lightning/[payreq]/+page.svelte @@ -32,7 +32,7 @@ }; $: amount = form?.amount || data.amount; - $: maxfee = + $: maxfee = Math.round( amount < 100 ? amount * 5 : amount < 1000 @@ -43,7 +43,7 @@ ? amount * 0.1 : amount < 1000000 ? amount * 0.05 - : amount * 0.01; + : amount * 0.01); let loading; let submit = () => (loading = true); @@ -121,7 +121,7 @@