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

Added MarketRaker circulating supply to MinSwap #192

Merged
merged 5 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import paviaFetcher from "./tokens/pavia";
import pepeblueFetcher from "./tokens/pepeblue";
import proxiesFetcher from "./tokens/proxies";
import prsprFetcher from "./tokens/prspr";
import rakerFetcher from "./tokens/raker";
import revuFetcher from "./tokens/revu";
import rjvFetcher from "./tokens/rjv";
import shenFetcher from "./tokens/shen";
Expand Down Expand Up @@ -248,5 +249,7 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
nebulaFetcher,
bbd0ec94cf9ccc1407b3dbc66bfbbff82ea49718ae4e3dceb817125f24574f524b:
workFetcher,
ace2ea0fe142a3687acf86f55bcded860a920864163ee0d3dda8b60252414b4552:
rakerFetcher,
a00fdf4fb9ab6c8c2bd1533a2f14855edf12aed5ecbf96d4b5f5b9394334: c4Fetcher,
};
2 changes: 1 addition & 1 deletion src/tokens/mtc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 1e6; // 1 million
const treasury = Number(
await getAmountInAddresses(blockFrost, MTC, TEAM_ADDRESSES),
await getAmountInAddresses(blockFrost, MTC, TEAM_ADDRESSES)
);
return {
circulating: (total - treasury).toString(),
Expand Down
56 changes: 28 additions & 28 deletions src/tokens/nftc.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";
const NFTC = "b0af30edf2c7f11465853821137e0a6ebc395cab71ee39c24127ffb44e465443";
const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 10_000_000_000;
const treasuryRaw = await getAmountInAddresses(blockFrost, NFTC, [
"stake1uxvujg8rmtyr94wt6u0mn2yzvqwd5m0vg3t6rfe9zacp5lsurk408", // 12.4M NFTC Drip
"stake1uykz753y0jx3fjhcnplltwncw07h5repj2lhw8wzq6ctelglhevnc", // 11M Faucet
"stake1u83wpvg0gq76qsww7v0ct7qvu09yf9w8pkht9fwvlna6qjgm32732", // 2.69 B Reserve
"stake1u8q5zzjlw660awfk9ka62fsy5esngpej3dsp2qlcmjzjhwgnq5weg", // 2.5 B SUPPLY
"stake1u828c3c2kvswe7asfcct8zervwfshx4s30y9mqsfdlk9cmsd9ddkl", // 1.77 B Funnel back to dapps
"stake1u9t5x4k3selfsas5c9p9w0z5pggw37mna9umaxq5t2ssedc9xv9ak", // 1.4 B LP Funds
"stake1u9f9v0z5zzlldgx58n8tklphu8mf7h4jvp2j2gddluemnssjfnkzz", // 90.89M - MINSWAP
"stake1u9uekhsgm69hvk6d0q79gawhcyaxy5p7ryq363mrpjzr83q948gaf", // 53.50M - VYFI
"stake1ux9f4e03lvna7l2lpycgssy7chnrmc06ufvskk5szrxmfqq78z5ch", // 32.70M - OUR LIQUIDITY POOL
"stake1ux7k5ztvhwj7ykv5v7vwjjzq8ckjk0v74z9p9m5w0t55f9clf62eq", // 17.82M - MINSWAP FARM.
]);
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 NFTC = "b0af30edf2c7f11465853821137e0a6ebc395cab71ee39c24127ffb44e465443";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 10_000_000_000;
const treasuryRaw = await getAmountInAddresses(blockFrost, NFTC, [
"stake1uxvujg8rmtyr94wt6u0mn2yzvqwd5m0vg3t6rfe9zacp5lsurk408", // 12.4M NFTC Drip
"stake1uykz753y0jx3fjhcnplltwncw07h5repj2lhw8wzq6ctelglhevnc", // 11M Faucet
"stake1u83wpvg0gq76qsww7v0ct7qvu09yf9w8pkht9fwvlna6qjgm32732", // 2.69 B Reserve
"stake1u8q5zzjlw660awfk9ka62fsy5esngpej3dsp2qlcmjzjhwgnq5weg", // 2.5 B SUPPLY
"stake1u828c3c2kvswe7asfcct8zervwfshx4s30y9mqsfdlk9cmsd9ddkl", // 1.77 B Funnel back to dapps
"stake1u9t5x4k3selfsas5c9p9w0z5pggw37mna9umaxq5t2ssedc9xv9ak", // 1.4 B LP Funds
"stake1u9f9v0z5zzlldgx58n8tklphu8mf7h4jvp2j2gddluemnssjfnkzz", // 90.89M - MINSWAP
"stake1u9uekhsgm69hvk6d0q79gawhcyaxy5p7ryq363mrpjzr83q948gaf", // 53.50M - VYFI
"stake1ux9f4e03lvna7l2lpycgssy7chnrmc06ufvskk5szrxmfqq78z5ch", // 32.70M - OUR LIQUIDITY POOL
"stake1ux7k5ztvhwj7ykv5v7vwjjzq8ckjk0v74z9p9m5w0t55f9clf62eq", // 17.82M - MINSWAP FARM.
]);
const treasury = Number(treasuryRaw);
return {
circulating: (total - treasury).toString(),
total: total.toString(),
};
};

export default fetcher;
2 changes: 1 addition & 1 deletion src/tokens/optim.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const OPTIM =
const OPTIM =
"e52964af4fffdb54504859875b1827b60ba679074996156461143dc14f5054494d";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
Expand Down
8 changes: 4 additions & 4 deletions src/tokens/proxies.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const PROXIES = "20cd68533b47565f3c61efb39c30fdace9963bfa4c0060b613448e3c50524f584945";
const PROXIES =
"20cd68533b47565f3c61efb39c30fdace9963bfa4c0060b613448e3c50524f584945";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = Number(21000000000000);
const treasuryRaw = await getAmountInAddresses(blockFrost, PROXIES, [
"stake1uxrtzq4epgjxz7xulm97ups30rml843trc5x8zulxxzf2rq7effsj", // Treasury
"stake1uxrtzq4epgjxz7xulm97ups30rml843trc5x8zulxxzf2rq7effsj", // Treasury
]);
const treasury = Number(treasuryRaw);

Expand All @@ -17,5 +18,4 @@ const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
};
};


export default fetcher;
export default fetcher;
22 changes: 22 additions & 0 deletions src/tokens/raker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const RAKER =
"ace2ea0fe142a3687acf86f55bcded860a920864163ee0d3dda8b60252414b4552";
const TREASURY_ADDRESSES = [
"addr1q8djvsvq45pff7vmyvqdujpudkwpzr3cdejqsxg5r6qg60utvn6keknqc0ea3rs3c96naytguxq3pspqn5fkjltmr95srtewf6", // main wallet
];

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 10_614_254; // 10,614,254 million
const treasury = Number(
await getAmountInAddresses(blockFrost, RAKER, TREASURY_ADDRESSES)
);
return {
circulating: (total - treasury).toString(),
total: total.toString(),
};
};

export default fetcher;
61 changes: 35 additions & 26 deletions src/tokens/spf.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,44 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import {
getAmountInAddresses,
getBlockFrostInstance,
} from "../utils";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const SPF = "09f2d4e4a5c3662f4c1e6a7d9600e9605279dbdcedb22d4507cb6e75535046";

const SPECTRUM_NETWORK_VAULT_ADDRESSES = ["addr1v8njca4vkseetespu6jjtlk25sy46ya3qvrcp7n5c7zy9esj2g22a"];
const SPF_TREASURY_ADDRESSES = ["addr1vy8h9l37fzdwpq8etmftagdc80trh9jjg0avt3je26szu8g820gnj"];
const SPF_REWARDS_ADDRESSES = ["addr1vx3vcluw7qtulynhzsy4prfdmnjth8w52ejg2qeclsz7argu26gcf"];
const SPECTRUM_NETWORK_VAULT_ADDRESSES = [
"addr1v8njca4vkseetespu6jjtlk25sy46ya3qvrcp7n5c7zy9esj2g22a",
];
const SPF_TREASURY_ADDRESSES = [
"addr1vy8h9l37fzdwpq8etmftagdc80trh9jjg0avt3je26szu8g820gnj",
];
const SPF_REWARDS_ADDRESSES = [
"addr1vx3vcluw7qtulynhzsy4prfdmnjth8w52ejg2qeclsz7argu26gcf",
];

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 1e9; // 1 billion

const treasury =
Number(await getAmountInAddresses(blockFrost, SPF, SPF_TREASURY_ADDRESSES)) /
1e6;

const spnVault =
Number(await getAmountInAddresses(blockFrost, SPF, SPECTRUM_NETWORK_VAULT_ADDRESSES)) /
1e6;

const unclaimed =
Number(await getAmountInAddresses(blockFrost, SPF, SPF_REWARDS_ADDRESSES)) /
1e6;

return {
circulating: (total - treasury - spnVault - unclaimed).toString(),
total: total.toString(),
};
const blockFrost = getBlockFrostInstance(options);
const total = 1e9; // 1 billion

const treasury =
Number(
await getAmountInAddresses(blockFrost, SPF, SPF_TREASURY_ADDRESSES)
) / 1e6;

const spnVault =
Number(
await getAmountInAddresses(
blockFrost,
SPF,
SPECTRUM_NETWORK_VAULT_ADDRESSES
)
) / 1e6;

const unclaimed =
Number(await getAmountInAddresses(blockFrost, SPF, SPF_REWARDS_ADDRESSES)) /
1e6;

return {
circulating: (total - treasury - spnVault - unclaimed).toString(),
total: total.toString(),
};
};

export default fetcher;