aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-22 16:25:19 -0800
committerAdam Soltys <[email protected]>2023-12-22 16:25:19 -0800
commit1df2ed676a1c8c976bc4916f048bd268a6ee9586 (patch)
treee8cf5049699772f7c517506c681af447a8058a62 /src
parent5718637f976e982f37d417d8622a0d5451c521e8 (diff)
downloadcoinos-ui-1df2ed676a1c8c976bc4916f048bd268a6ee9586.tar.gz
coinos-ui-1df2ed676a1c8c976bc4916f048bd268a6ee9586.zip
round fee
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/send/lightning/[payreq]/+page.svelte6
1 files 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 @@
<div class="flex">
<input
- id="maxfee"
+ id="maxfee"
name="maxfee"
bind:value={maxfee}
class="border-r-0 rounded-r-none py-2"