Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
$VOL update for Policy and Wallet (#377)
Browse files Browse the repository at this point in the history
Update volume.ts

Updating Policy and Wallets
  • Loading branch information
NFTKri authored Nov 1, 2024
1 parent 6bed651 commit 8d6af27
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/tokens/volume.ts
Original file line number Diff line number Diff line change
@@ -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(),
};
};
Expand Down

0 comments on commit 8d6af27

Please sign in to comment.