chore: restore production thresholds (2100 sats / 69420 sats)

Removed testing values and restored proper production thresholds
This commit is contained in:
Gigi
2025-10-15 01:44:45 +02:00
parent 84ea0df550
commit 46a6d4fe0c

View File

@@ -10,13 +10,13 @@ export interface ZapSender {
pubkey: string
totalSats: number
zapCount: number
isWhale: boolean // >= 21 sats (testing: normally 69420)
isWhale: boolean // >= 69420 sats
}
/**
* Fetches zap receipts (kind:9735) for Boris and aggregates by sender
* @param relayPool - The relay pool to query
* @returns Array of senders who zapped >= 2 sats, sorted by total desc
* @returns Array of senders who zapped >= 2100 sats, sorted by total desc
*/
export async function fetchBorisZappers(
relayPool: RelayPool
@@ -104,15 +104,14 @@ export async function fetchBorisZappers(
console.log(`👥 Found ${senderTotals.size} unique senders`)
// Filter >= 2 sats, mark whales >= 21 sats, sort by total desc
// TODO: Restore to >= 2100 sats and >= 69420 sats for production
// Filter >= 2100 sats, mark whales >= 69420 sats, sort by total desc
const zappers: ZapSender[] = Array.from(senderTotals.entries())
.filter(([, data]) => data.totalSats >= 2)
.filter(([, data]) => data.totalSats >= 2100)
.map(([pubkey, data]) => ({
pubkey,
totalSats: data.totalSats,
zapCount: data.zapCount,
isWhale: data.totalSats >= 21
isWhale: data.totalSats >= 69420
}))
.sort((a, b) => b.totalSats - a.totalSats)