Skip to content

Commit

Permalink
chore: add liquidity badge
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Aug 18, 2024
1 parent 839bcdf commit 104d1ee
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ndk, useStore } from "./store";
import { JIM_INSTANCE_KIND } from "./types";
import {
Bitcoin,
Droplets,
ExternalLink,
MicVocal,
Router,
Expand Down Expand Up @@ -190,7 +191,17 @@ export default function App() {
</span>
<span className="badge flex gap-2">
<Bitcoin className="w-4" />{" "}
{Math.floor(jim.reserves.totalAppBalance / 1000)} sats
{Intl.NumberFormat().format(
Math.floor(jim.reserves.totalAppBalance / 1000),
)}{" "}
sats
</span>
<span className="badge flex gap-2">
<Droplets className="w-4" />{" "}
{Intl.NumberFormat().format(
Math.floor(jim.reserves.totalChannelCapacity / 1000),
)}{" "}
sats
</span>
{jim.reserves.hasPublicChannels && (
<span className="badge flex gap-2">
Expand Down

0 comments on commit 104d1ee

Please sign in to comment.