Skip to content

Commit 65d06f3

Browse files
committed
chore: remove community funding and bounties section
1 parent 7b89672 commit 65d06f3

7 files changed

Lines changed: 0 additions & 264 deletions

File tree

.env.example

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,5 @@ CHARGE_INTERVAL_MS=3600000
1818

1919
# Node info
2020

21-
# Community funding app IDs (integer IDs from Alby Hub /api/v2/apps/<id>)
22-
APP_ID_FUND_CHANNELS=
23-
APP_ID_FUND_HOSTING=
24-
CHANNEL_FUNDING_TARGET_SATS=500000
25-
MONTHLY_COSTS_TARGET_SATS=120000
26-
27-
# Feature bounty app IDs
28-
APP_ID_BOUNTY_L402=
29-
APP_ID_BOUNTY_TOPUP_LENDASAT=
30-
APP_ID_BOUNTY_TOPUP_FIXEDFLOAT=
31-
APP_ID_BOUNTY_ROUTING_REWARDS=
32-
APP_ID_BOUNTY_NWC_APP_STORE=
33-
3421
# Blog image generation (PPQ AI API — https://ppq.ai)
3522
PPQ_API_KEY=

frontend/src/components/funding-bars.tsx

Lines changed: 0 additions & 74 deletions
This file was deleted.

frontend/src/lib/api.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ export async function createWallet(message?: string): Promise<string> {
1313
return res.text();
1414
}
1515

16-
export interface FundEntry {
17-
key: string;
18-
label: string;
19-
lud16: string | null;
20-
balanceSats: number;
21-
targetSats: number;
22-
}
23-
2416
export interface Stats {
2517
stats: {
2618
totalWalletsCreated: number;
@@ -45,8 +37,6 @@ export interface Stats {
4537
routing: { totalForwarded: number; forwardsCount: number };
4638
nodeAlias: string | null;
4739
nodePubkey: string | null;
48-
communityFunds: FundEntry[];
49-
bounties: FundEntry[];
5040
}
5141

5242
export async function fetchStats(): Promise<Stats> {

frontend/src/pages/Home.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { NodeStats } from "@/components/node-stats";
99
import { StatCard } from "@/components/stat-card";
1010
import { LeaderboardTable } from "@/components/leaderboard-table";
1111
import { AchievementShelf } from "@/components/achievement-shelf";
12-
import { FundingBars } from "@/components/funding-bars";
1312
import { useStats } from "@/hooks/use-stats";
1413
import { fetchLeaderboard, type LeaderboardEntry } from "@/lib/api";
1514

@@ -70,9 +69,6 @@ export function Home() {
7069
<AchievementShelf stats={stats} />
7170
</section>
7271

73-
<section>
74-
<FundingBars stats={stats} />
75-
</section>
7672
</div>
7773
);
7874
}

src/app.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { statsRoutes } from "./routes/stats.js";
1313
import { graveyardRoutes } from "./routes/graveyard.js";
1414
import { startChargeLoop } from "./charge-loop.js";
1515
import { initNodeStats } from "./node-stats.js";
16-
import { startFundBalanceLoop } from "./nwc-balances.js";
1716

1817
const __dirname = path.dirname(fileURLToPath(import.meta.url));
1918

@@ -104,7 +103,6 @@ if (fs.existsSync(frontendDist)) {
104103
const start = async () => {
105104
try {
106105
initNodeStats();
107-
startFundBalanceLoop();
108106
await startChargeLoop();
109107

110108
await fastify.listen({

src/nwc-balances.ts

Lines changed: 0 additions & 159 deletions
This file was deleted.

src/routes/stats.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { prisma } from "../db.js";
33
import { getTitle, formatAge } from "../titles.js";
44
import { getTPS, getVPS, getLiquidity, getBalances } from "../node-stats.js";
55
import { getNodeInfo } from "../hub.js";
6-
import { getFundBalances } from "../nwc-balances.js";
76

87
let nodeAlias: string | null = null;
98
let nodePubkey: string | null = null;
@@ -70,7 +69,6 @@ export async function statsRoutes(fastify: FastifyInstance) {
7069
routing: { totalForwarded: 0, forwardsCount: 0 }, // TODO: populate when Hub API supports it
7170
nodeAlias,
7271
nodePubkey,
73-
...getFundBalances(),
7472
};
7573
});
7674

0 commit comments

Comments
 (0)