Skip to content

Commit

Permalink
Mynth (MNT) market-cap addition (#94)
Browse files Browse the repository at this point in the history
* Mynth (MNT) market-cap addition

* fixed unused var

* updated response on MNT token
  • Loading branch information
christian-anunciado authored Jul 26, 2023
1 parent f91afdb commit c96cdc3
Show file tree
Hide file tree
Showing 2 changed files with 24 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 meldFetcher from "./tokens/meld";
import milkFetcher from "./tokens/milk";
import minFetcher from "./tokens/min";
import mintFetcher from "./tokens/mint";
import mntFetcher from "./tokens/mnt";
import moaiFetcher from "./tokens/moai";
import newmFetcher from "./tokens/newm";
import ninjazFetcher from "./tokens/ninjaz";
Expand Down Expand Up @@ -159,5 +160,6 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
bubbleFetcher,
"09f5f55fcad17503e6b7acc81de7c80f84b76e76d17085f0e32f1ce241574f4f":
awooFetcher,
"43b07d4037f0d75ee10f9863097463fc02ff3c0b8b705ae61d9c75bf": mntFetcher,
"1ddcb9c9de95361565392c5bdff64767492d61a96166cb16094e54be4f5054": optFetcher,
};
22 changes: 22 additions & 0 deletions src/tokens/mnt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAxiosInstance } from "../utils";

// eslint-disable-next-line unused-imports/no-unused-vars
const MNT = "43b07d4037f0d75ee10f9863097463fc02ff3c0b8b705ae61d9c75bf";

const TOTAL_SUPPLY = 100_000_000;

const MNT_SUPPLY_ADDRESS = "https://www.mynth.ai/api/token-supply";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const axios = getAxiosInstance(options);
const response = await axios.get(MNT_SUPPLY_ADDRESS);
const treasury = response.data.current_supply;

return {
circulating: treasury.toString(),
total: TOTAL_SUPPLY.toString(),
};
};

export default fetcher;

0 comments on commit c96cdc3

Please sign in to comment.