Skip to content

Commit

Permalink
ADD $MOM TOKEN (#372)
Browse files Browse the repository at this point in the history
Added mom.ts and include it on index.ts

Co-authored-by: Patrik <51710571+shadowkora@users.noreply.github.com>
  • Loading branch information
noroxi7 and shadowkora authored Sep 11, 2024
1 parent 22556fd commit 44343d5
Show file tree
Hide file tree
Showing 2 changed files with 28 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 @@ -94,6 +94,7 @@ import mintFetcher from "./tokens/mint";
import miraFetcher from "./tokens/mira";
import mntFetcher from "./tokens/mnt";
import moaiFetcher from "./tokens/moai";
import momFetcher from "./tokens/mom";
import mrHankeyFetcher from "./tokens/mrhankey";
import mtcFetcher from "./tokens/mtc";
import myieldFetcher from "./tokens/myield";
Expand Down Expand Up @@ -468,6 +469,7 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
"07ccfad78099fef727bfc64de1cf2e684c0872aab3c3bb3bed5e1081": peepeeFetcher,
"05c4bcecccff054c9aefff8bdc310e1edb8baa0756d912b47ae45d694d65656d":
meemFetcher,
ed5517ccf67c60004355cee3c546c77226cd89a04b3aaeae6a65589e4d6f6d: momFetcher,
b9ae7e3566ad889aae93f500746869e7b3c71480329acd0a9bc01652555341: usaFetcher,
"9d8c863907e6e58823c9af13759e196dbf5da172b7d4ce37d5d1147950494755":
piguFetcher,
Expand Down
26 changes: 26 additions & 0 deletions src/tokens/mom.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const MOM = "ed5517ccf67c60004355cee3c546c77226cd89a04b3aaeae6a65589e4d6f6d";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 2_000_000_000;
const treasuryRaw = await getAmountInAddresses(blockFrost, MOM, [
"addr1xyns7vaffqfnufk7cz9ndul7c06603rsuh9ypqmtfh8d4xp8pue6jjqn8cndasytxmelasl45lz8pew2gzpkknwwm2vq83rpx3", //Mom Treasury
"addr1q9nvqt25uglec56600jem5cjny8rkmwqrtn3p2xzjsy4ya7nc6gnpw22jv2gv4qnwujfuuhpglfxv0eqy995aea4gnpqdjmqhl", // Mom Treasury Dapps
]);

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

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

export default fetcher;

0 comments on commit 44343d5

Please sign in to comment.