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

Commit

Permalink
Add HUNT treasury addresses (#133)
Browse files Browse the repository at this point in the history
* Add HUNT treasury addresses

* mend
  • Loading branch information
nmelentjevs authored Sep 28, 2023
1 parent 739aa38 commit 69217f5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import gensFetcher from "./tokens/gens";
import gensxFetcher from "./tokens/gensx";
import geroFetcher from "./tokens/gero";
import herbFetcher from "./tokens/herb";
import huntFetcher from "./tokens/hunt";
import hoskyFetcher from "./tokens/hosky";
import iagFetcher from "./tokens/iag";
import ibtcFetcher from "./tokens/ibtc";
Expand Down Expand Up @@ -92,6 +93,8 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
cnetaFetcher,
"29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c64d494e74":
mintFetcher,
"95a427e384527065f2f8946f5e86320d0117839a5e98ea2c0b55fb0048554e54":
huntFetcher,
"1d7f33bd23d85e1a25d87d86fac4f199c3197a2f7afeb662a0f34e1e776f726c646d6f62696c65746f6b656e":
wmtFetcher,
c88bbd1848db5ea665b1fffbefba86e8dcd723b5085348e8a8d2260f44414e41: danaFetcher,
Expand Down
23 changes: 23 additions & 0 deletions src/tokens/hunt.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 HUNT = "95a427e384527065f2f8946f5e86320d0117839a5e98ea2c0b55fb0048554e54";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 100_000_000;
const treasuryRaw = await getAmountInAddresses(blockFrost, HUNT, [
"stake1uxdgnz5awy9ntz82xscxs62dgwtnjhwwchr5lrfcwlzyl6qtke3pl", // $dexhunter.team
"stake1uxapatrmk76xuu5xh780men8ndym9kgq9ktdk6v6h8as2mcu65pka", // $dexhunter.trade
"stake1u9jtef02ge2d290qu86szjwnz2gx9aypw7hwdwpm3kjevqc234y2z", // $dexhunter.rwrds
"stake1uyqtfsvt7ky3zhullz2rqewu3pz8ksga5g3nd3vj293hpgcvuezsq", // $dexhunter.mrkt
]);

const treasury = Number(treasuryRaw);
return {
circulating: (total - treasury).toString(),
total: (total).toString(),
};
};

export default fetcher;

0 comments on commit 69217f5

Please sign in to comment.