From 2a0713a35cd2daacae67a20a1f7807edda3b1606 Mon Sep 17 00:00:00 2001 From: Sam Sweet Date: Tue, 5 Aug 2025 11:45:56 -0400 Subject: [PATCH] account for burned supply in circulating supply stats --- src/config/index.ts | 1 + src/stats/supplyStats.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/index.ts b/src/config/index.ts index f613544..2225696 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -36,6 +36,7 @@ export const config = { apiUrl: '', verbose: false, genesisSHMSupply: 249000000, + burnedSupply: 500000, // 500,000 SHM burned dbPath: process.env.DB_PATH?.replace(/\/+$/, '') || '.', // remove rateLimit: 100, GTM_Id: '', diff --git a/src/stats/supplyStats.ts b/src/stats/supplyStats.ts index f67a7a5..23a59c4 100644 --- a/src/stats/supplyStats.ts +++ b/src/stats/supplyStats.ts @@ -221,7 +221,7 @@ export async function updateSupplyStatsCache(): Promise { const secureAccountsBalance = await calculateSecureAccountsBalance() - const circulatingSupply = BASE_SUPPLY - totalShmBurned + totalShmRewarded - secureAccountsBalance + const circulatingSupply = BASE_SUPPLY - totalShmBurned + totalShmRewarded - secureAccountsBalance - config.burnedSupply await saveSupplyStatsCache({ lastCycle: latestCycle,