Skip to content

Commit

Permalink
Update sharl.ts (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardanative authored Jul 10, 2024
1 parent 5b3eb68 commit 8d990d3
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/tokens/sharl.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
import { SupplyFetcher } from "../types";
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const SHARL =
"590f6d119b214cdcf7ef7751f8b7f1de615ff8f6de097a5ce62b257b534841524c";
const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);

const fetcher: SupplyFetcher = async () => {
const total = 999_000_000_000;
const treasury_team_and_distributorsRaw = await getAmountInAddresses(
blockFrost,
SHARL,
[
"addr1x8mpnsx06npcg40wnrk0umup7qcvyfz0nq7s5fv7pxdhk20kr8qvl4xrs327ax8vlehcrupscgjylxpapgjeuzvm0v5s0xgeht", // community wallet
]
);

const uncirculated = Number(treasury_team_and_distributorsRaw);

return {
circulating: total.toString(),
circulating: (total - uncirculated).toString(),
total: total.toString(),
};
};
Expand Down

0 comments on commit 8d990d3

Please sign in to comment.