diff --git a/src/index.ts b/src/index.ts index 85ad94db..ef53e182 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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"; @@ -456,4 +457,5 @@ export const supplyFetchers: Record = { fightFetcher, "81926a57a567c11f6dc502254c5ed2d11fdba4ed9f898916699c6f1753414645": safeFetcher, + dce34158d07be7187401a756a3273b792f6476e2ea09c3f2ae7b229d63756c74: cultFetcher, }; diff --git a/src/tokens/cult.ts b/src/tokens/cult.ts new file mode 100644 index 00000000..3b551a31 --- /dev/null +++ b/src/tokens/cult.ts @@ -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;