Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
MTC and ASHIB fix (#176)
Browse files Browse the repository at this point in the history
* MTC and ASHIB fixes

* MTC and ASHIB fix

---------

Co-authored-by: Patrik <[email protected]>
  • Loading branch information
similiken and shadowkora authored Dec 3, 2023
1 parent 5949a61 commit dcae3f8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import minFetcher from "./tokens/min";
import mintFetcher from "./tokens/mint";
import mntFetcher from "./tokens/mnt";
import moaiFetcher from "./tokens/moai";
import mtcFetcher from "./tokens/mtc";
import myieldFetcher from "./tokens/myield";
import newmFetcher from "./tokens/newm";
import nftcFetcher from "./tokens/nftc";
Expand Down Expand Up @@ -232,6 +233,7 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
"961f2cac0bb1967d74691af179350c1e1062c7298d1f7be1e4696e312444455250":
derpFetcher,
"2d587111358801114f04df83dc0015de0a740b462b75cce5170fc935434749": cgiFetcher,
f6ac48c64aa7af16434d9f84e014d11fba38525b436acc338ff20b0d4d7463: mtcFetcher,
"03c2eb4f942703fa965df42ba8ac57e27c5e86802d058da63f4d888b4c4343": lccFetcher,
f6696363e9196289ef4f2b4bf34bc8acca5352cdc7509647afe6888f54454459: tedyFetcher,
"94cbb4fcbcaa2975779f273b263eb3b5f24a9951e446d6dc4c13586452455655":
Expand Down
2 changes: 1 addition & 1 deletion src/tokens/ashib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const total = 109e9; // 109 billion
const treasury =
Number(await getAmountInAddresses(blockFrost, ASHIB, TREASURY_ADDRESSES)) /
1e9;
1e6;
return {
circulating: (total - treasury).toString(),
total: total.toString(),
Expand Down
25 changes: 25 additions & 0 deletions src/tokens/mtc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const MTC = "f6ac48c64aa7af16434d9f84e014d11fba38525b436acc338ff20b0d4d7463";
const TEAM_ADDRESSES = [
"addr1qxw6ltkkfapk934cfhj8aswpv6pj9ejlqtuszcr3vp3nkcyl4z8jmxwk2u8knrqgptuc3f56hqxenmp45qscmeyxg0xs96x9qy", // team 1
"addr1qy567alv55pznmx8newdj77tghetevq2jr39t5uz7vrk208l95lxy69yvjzpx79wu6lsrq54as3ynftrg0t0ecyfd59sl5xcxv", // team 2
"addr1qx5705wkfz897qul8cck2w2ke4uxshal8ghu0m3tncy0sasq9sp8s22znmvqlmka7g20jckxyazqhjehg5q6h3ek0shs9cslz8", // team 3
"addr1qypnftnwqqghlv0t4n7tj4xynuvj635szue4lw0jh5nhwxkcsc7tl298q66tcrjumsqp8cmm4gaa2rh7dq5p6l0jj3jstvvp03", // team 4
"addr1q8s602mue5ecqk53yj2xa6whk3kqyadtsgm74xp8938fkwzg5vcd98mzm8sf0a2dn80nwt2k98zjpj47yhde5vtz6tqsq65km9", // team 5
];

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 1e6; // 1 million
const treasury = Number(
await getAmountInAddresses(blockFrost, MTC, TEAM_ADDRESSES),
);
return {
circulating: (total - treasury).toString(),
total: total.toString(),
};
};

export default fetcher;

0 comments on commit dcae3f8

Please sign in to comment.