aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-30 18:29:01 -0800
committerAdam Soltys <[email protected]>2024-12-30 19:45:00 -0800
commitd96e1580757a1d0531fec0854e4238214ec8c00b (patch)
tree9a3fd2195b6ffe6eb1d0e6444abf6b94841e8f72 /src
parent39b8f61274902b2dcdc9682a1466dc3cb4b9e893 (diff)
downloadcoinos-ui-d96e1580757a1d0531fec0854e4238214ec8c00b.tar.gz
coinos-ui-d96e1580757a1d0531fec0854e4238214ec8c00b.zip
msats math
Diffstat (limited to 'src')
-rw-r--r--src/components/Lnurlw.svelte5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte
index bf9fd593..5dc980c2 100644
--- a/src/components/Lnurlw.svelte
+++ b/src/components/Lnurlw.svelte
@@ -31,7 +31,7 @@
e.preventDefault();
$fiat = false;
await tick();
- amount = maxWithdrawable;
+ amount = Math.floor(maxWithdrawable / 1000);
};
</script>
@@ -87,7 +87,8 @@
class="btn !w-auto grow"
onclick={setMax}
disabled={submitting}
- onkeydown={setMax}>Max ⚡️{s(maxWithdrawable)}</button
+ onkeydown={setMax}
+ >Max ⚡️{s(Math.floor(maxWithdrawable / 1000))}</button
>
{/if}