Skip to content

Commit

Permalink
Mynth (MNT) market-cap addition
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-anunciado committed Jul 20, 2023
1 parent 62f8f67 commit c898bdb
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 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 @@ -158,4 +159,5 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
bubbleFetcher,
"09f5f55fcad17503e6b7acc81de7c80f84b76e76d17085f0e32f1ce241574f4f":
awooFetcher,
"43b07d4037f0d75ee10f9863097463fc02ff3c0b8b705ae61d9c75bf": mntFetcher,
};
21 changes: 21 additions & 0 deletions src/tokens/mnt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAxiosInstance } from "../utils";

const MNT = "43b07d4037f0d75ee10f9863097463fc02ff3c0b8b705ae61d9c75bf";

Check failure on line 4 in src/tokens/mnt.ts

View workflow job for this annotation

GitHub Actions / build-and-test

'MNT' is assigned a value but never used. Allowed unused vars must match /^_/u

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 = Number(response.data.current_supply) / 1e6;

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

export default fetcher;

0 comments on commit c898bdb

Please sign in to comment.