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

Commit

Permalink
Add $FIRE Token (#215)
Browse files Browse the repository at this point in the history
* Create fire.ts

* Update index.ts

---------

Co-authored-by: Patrik <[email protected]>
  • Loading branch information
phrankerco and shadowkora authored Feb 3, 2024
1 parent 3d7aae0 commit 37afbbe
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import empFetcher from "./tokens/emp";
import encsFetcher from "./tokens/encs";
import factFetcher from "./tokens/fact";
import fetFetcher from "./tokens/fet";
import fireFetcher from "./tokens/fire";
import flacFetcher from "./tokens/flac";
import fldtFetcher from "./tokens/fldt";
import gensFetcher from "./tokens/gens";
Expand Down Expand Up @@ -267,6 +268,7 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
pugchipFetcher,
c7dcfa416c127f630b263c7e0fe0564430cfa9c56bba43e1a37c6915474f4b4559:
gokeyFetcher,
a4da8764a57e66a0085b5bfcde96c89b798d92ee83a75f59237e375b46495245: fireFetcher,
b166a1047a8cd275bf0a50201ece3d4f0b4da300094ffcc668a6f4084b49545550:
kitupFetcher,
caff93803e51c7b97bf79146790bfa3feb0d0b856ef16113b391b9975649504552:
Expand Down
23 changes: 23 additions & 0 deletions src/tokens/fire.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const FIRE = "a4da8764a57e66a0085b5bfcde96c89b798d92ee83a75f59237e375b46495245";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 500_000_000;
const treasuryRaw = await getAmountInAddresses(blockFrost, FIRE, [
"stake1ux7k5ztvhwj7ykv5v7vwjjzq8ckjk0v74z9p9m5w0t55f9clf62eq", // MinSwap Farm Rewards
"addr1w8tqqyccvj7402zns2tea78d42etw520fzvf22zmyasjdtsv3e5rz", // DDz Rewards
"stake1u94e6kguu8zzpaeevrnagm2f4u4huhh6uazupt3jytznumq93v7dh", // Charity Wallet
]);

const treasury = Number(treasuryRaw);

return {
circulating: (total - treasury).toString(),
total: total.toString(),
};
};

export default fetcher;

0 comments on commit 37afbbe

Please sign in to comment.