Skip to content

Commit

Permalink
Add $cult marketcap (#364)
Browse files Browse the repository at this point in the history
* Add token

* Update index.ts

* Run formatting

---------

Co-authored-by: patrik <51710571+shadowkora@users.noreply.github.com>
  • Loading branch information
cult-facilitate and shadowkora committed Aug 29, 2024
1 parent 44abb92 commit 712edbc
Show file tree
Hide file tree
Showing 2 changed files with 23 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 @@ -36,6 +36,7 @@ import cnetaFetcher from "./tokens/cneta";
import copiFetcher from "./tokens/copi";
import cswapFetcher from "./tokens/cswap";
import ctvFetcher from "./tokens/ctv";
import cultFetcher from "./tokens/cult";
import daddyFetcher from "./tokens/daddy";
import danaFetcher from "./tokens/dana";
import danzoFetcher from "./tokens/danzo";
Expand Down Expand Up @@ -456,4 +457,5 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
fightFetcher,
"81926a57a567c11f6dc502254c5ed2d11fdba4ed9f898916699c6f1753414645":
safeFetcher,
dce34158d07be7187401a756a3273b792f6476e2ea09c3f2ae7b229d63756c74: cultFetcher,
};
21 changes: 21 additions & 0 deletions src/tokens/cult.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const cult = "dce34158d07be7187401a756a3273b792f6476e2ea09c3f2ae7b229d63756c74";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 69_000_000_000;

const burnRaw = await getAmountInAddresses(blockFrost, cult, [
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", //$burnsnek
]);

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

export default fetcher;

0 comments on commit 712edbc

Please sign in to comment.