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

Bubble token - adding circulating supply #219

Closed
wants to merge 1 commit into from
Closed
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
29 changes: 29 additions & 0 deletions src/bubble.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const BUBBLE =
"4fde92c2f6dbcfa2879b44f7453872b31394cfb2f70f1d4c411169ac427562626c65";
const TEAM_AND_DISTRIBUTORS = [
"addr1qx42lkkh8qhnetve4cmx74mzqx4qkssxz9ltmsn8nmgcxxs6gw4tkslgkhp8m2pgkedxlhtx7e8k5dj5xn7yt88p54kq69nh0h", // team 1
"addr1qxzngvw7el7kj9j0egldcmgeygjh93vy8s0q7llerp0kan6zhw8y7c92vew3fqwy7u4yrq66d2yt8wmd0tm3uyhsxapsxl5pm3", // team 2
"addr1q92ur5xeg5tv0xm9mkpsevcd8vvczjgkqc3n3tc9e0tgzdnexu7umnn2eu26y0mqcrty2zrhsfx3kq4je0hpqskm2desyce9tu", // team 3
"addr1wy0uq9nh5h22qxje9ck9hs5srnagduf9ylhnmrcdm0mhx0gch2l65", // dripdropz distribution
"addr1qxpeczj2lluh88sa2g3tm0e3fj39c34rlctmvcszjs67g6wjj9djsz0020h68nz3rxknzdh93nryqzhq6h9z0nnzf0rshrectt", // tosidrop distribution
"addr1qxkmr0m22xeqludcg5rjdmecjxasu9fat0680qehtcsnftaadgykewa9ufvegeuca9yyq03d9v7ea2y2zthgu7hfgjtsddp6gr", // minswap farm distribution
"addr1qx3wvec7uhweerzqaeezzepmrwft8sfpucgk50tsuluz8f8cfhlykwhxy66aazkjmfp4euf0yhpeezx3exncm7e69pvs7jetw6", // starcada distribution
];

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

export default fetcher;
Loading