diff --git a/src/index.ts b/src/index.ts index 6e7e874b..87f4fa51 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,3 @@ -import fetFetcher from "./tokens/fet"; import aadaFetcher from "./tokens/aada"; import agcFetcher from "./tokens/agc"; import agixFetcher from "./tokens/agix"; @@ -21,6 +20,7 @@ import djedFetcher from "./tokens/djed"; import empFetcher from "./tokens/emp"; import encsFetcher from "./tokens/encs"; import factFetcher from "./tokens/fact"; +import fetFetcher from "./tokens/fet"; import flacFetcher from "./tokens/flac"; import gensFetcher from "./tokens/gens"; import gensxFetcher from "./tokens/gensx"; diff --git a/src/tokens/fet.ts b/src/tokens/fet.ts index c7755ed5..081f000c 100644 --- a/src/tokens/fet.ts +++ b/src/tokens/fet.ts @@ -1,25 +1,25 @@ -import { defaultFetcherOptions, SupplyFetcher } from "../types"; -import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; - -const FET = "815418a1b078a259e678ecccc9d7eac7648d10b88f6f75ce2db8a25a"; - -const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { - const total = 200e6; - const blockFrost = getBlockFrostInstance(options); - const treasuryRaw = await getAmountInAddresses(blockFrost, FET, [ - "stake1uyyxjvthz4udwdrzr9pkkudpylasg99ufdzu7gpdfckxf2s5peell", - "stake1ux94pdq42nwx0g24ea3myjcnd8tvl354ku4ygedtgm7sfgc2hugz9", - "stake1uxerycuwj09h2n6wydjp4vk936la23p9dvn37ezlkmdl5ycq38hr4", - "stake1uypwcfxvg7uyzkyeue8fglq6fx7uxmampr2ahylyy4rg38cvky2pr", - "stake1ux7pa94sgkzd0yawsu9e9ddj0vr07psyezksfek24m9wn2qtjf62u", - "stake1u8qzt94vyvfvvs4qan02axtfwj2hz4dcqefpehara5rdh4q6h9xka", - "stake1uy74mhj5x3jdf8d9446xcwrw723pvqelksxwwxu5c6t799qcnww0q", - ]); - const treasury = Number(treasuryRaw); - return { - circulating: (total - treasury).toString(), - total: total.toString(), - }; -}; - -export default fetcher; +import { defaultFetcherOptions, SupplyFetcher } from "../types"; +import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; + +const FET = "815418a1b078a259e678ecccc9d7eac7648d10b88f6f75ce2db8a25a"; + +const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { + const total = 200e6; + const blockFrost = getBlockFrostInstance(options); + const treasuryRaw = await getAmountInAddresses(blockFrost, FET, [ + "stake1uyyxjvthz4udwdrzr9pkkudpylasg99ufdzu7gpdfckxf2s5peell", + "stake1ux94pdq42nwx0g24ea3myjcnd8tvl354ku4ygedtgm7sfgc2hugz9", + "stake1uxerycuwj09h2n6wydjp4vk936la23p9dvn37ezlkmdl5ycq38hr4", + "stake1uypwcfxvg7uyzkyeue8fglq6fx7uxmampr2ahylyy4rg38cvky2pr", + "stake1ux7pa94sgkzd0yawsu9e9ddj0vr07psyezksfek24m9wn2qtjf62u", + "stake1u8qzt94vyvfvvs4qan02axtfwj2hz4dcqefpehara5rdh4q6h9xka", + "stake1uy74mhj5x3jdf8d9446xcwrw723pvqelksxwwxu5c6t799qcnww0q", + ]); + const treasury = Number(treasuryRaw); + return { + circulating: (total - treasury).toString(), + total: total.toString(), + }; +}; + +export default fetcher;