From 20e260297973d718751e2b5fa8c70e63dc27e024 Mon Sep 17 00:00:00 2001 From: OneEuroQuestion Date: Thu, 19 Dec 2024 16:55:27 +0100 Subject: [PATCH] only count ulava denom --- src/indexer/lavarpc_agregators/SupplyProcessor.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/indexer/lavarpc_agregators/SupplyProcessor.ts b/src/indexer/lavarpc_agregators/SupplyProcessor.ts index 203bad9..9b2d17b 100644 --- a/src/indexer/lavarpc_agregators/SupplyProcessor.ts +++ b/src/indexer/lavarpc_agregators/SupplyProcessor.ts @@ -30,7 +30,9 @@ async function getTotalTokenSupply(client: LavaClient): Promise { let totalSupply = 0n; supplies.supply.forEach((supply) => { - totalSupply += BigInt(supply.amount); + if (supply.denom === 'ulava') { + totalSupply += BigInt(supply.amount); + } }); return totalSupply;