From 73e6b7a0b8e92bcb142d629e2cc5dabacff0293b Mon Sep 17 00:00:00 2001 From: NFTKri <166889251+NFTKri@users.noreply.github.com> Date: Sat, 12 Oct 2024 23:25:39 -0400 Subject: [PATCH] Update volume.ts Updating Policy and Wallets --- src/tokens/volume.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/tokens/volume.ts b/src/tokens/volume.ts index c154da83..03b38d64 100644 --- a/src/tokens/volume.ts +++ b/src/tokens/volume.ts @@ -1,18 +1,23 @@ import { defaultFetcherOptions, SupplyFetcher } from "../types"; import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; -const VOLUME = "8d94085182fb206c28850f194defe748e455a104d5ff7466d90f537c"; +const VOLUME = "8d94085182fb206c28850f194defe748e455a104d5ff7466d90f537c566f6c756d65"; const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { const blockFrost = getBlockFrostInstance(options); const total = 1_000_000_000; + const treasuryRaw = await getAmountInAddresses(blockFrost, VOLUME, [ + "stake1uy9yuyvugtmfaaww3sxdk7fyat7tc8u2jf2q9lnqksjy5aq9veu76", // Treasury + ]); + const burnRaw = await getAmountInAddresses(blockFrost, VOLUME, [ "addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", // burn address ]); + const treasury = Number(treasuryRaw); const burn = Number(burnRaw); return { - circulating: (total - burn).toString(), + circulating: (total - treasury - burn).toString(), total: (total - burn).toString(), }; };