From 2c7aa4355ea20909b1b5349d6ac443772600955c Mon Sep 17 00:00:00 2001 From: Dmitry Osipov Date: Mon, 4 Dec 2023 16:03:07 +0100 Subject: [PATCH 1/3] add addresses --- src/calculators/circulation-supply.js | 6 +++++- src/consts.js | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/calculators/circulation-supply.js b/src/calculators/circulation-supply.js index ccfcda9..9c85a37 100644 --- a/src/calculators/circulation-supply.js +++ b/src/calculators/circulation-supply.js @@ -13,6 +13,8 @@ import { AIRDROP_3RD_PARTY_1, DECIMALS, SENT_TO_CB, + CB_COLD_WALLETS, + TYAN, } from '../consts.js'; import { totalSupply } from './total-supply.js'; @@ -85,7 +87,9 @@ export async function circulationSupply() { MARKET_POOL, AIRDROP_3RD_PARTY_1, INFLATION_OFFSETTING_POOL, + TYAN, ...CUSTODY, + ...CB_COLD_WALLETS, ]; const [supply, vesting, staking, pools] = await Promise.all([ @@ -95,7 +99,7 @@ export async function circulationSupply() { getBalances(addresses), ]); - const total = pools.reduce((accumulator, current) => accumulator + current, 0) + vesting + staking + SENT_TO_CB; + const total = pools.reduce((accumulator, current) => accumulator + current, 0) + vesting + staking; return supply - total; } diff --git a/src/consts.js b/src/consts.js index 04c0a1b..98202ce 100644 --- a/src/consts.js +++ b/src/consts.js @@ -27,6 +27,15 @@ export const CUSTODY = [ 'kGiVY7G1mJkqaAjKzLnRmwCy5GcvuGQvG5mUtojhVHdLfBd1P', ]; +export const CB_COLD_WALLETS = [ + 'kGjM8es47bQ3i73sMBfQhZte3xE1aD1Syvsfu3rXkPC3kAKZv', + 'kGj1E8yFzVVKQxkP65ExcZttnYRCGoGyGzgEUopthjRhEWeum', + 'kGghFAwYWw4MH9PXzrkpHctLQTfBNcCwk6Pu4RQ7ckgUFzLcq', + 'kGhzLBaaHM66zJrFPqCrA4MJc2jhiKKdndB5cNCeGVpY7wpG2', +]; + +export const TYAN = 'kGgYvzyAgbd9j7QvLQ3iEyuWEJYZroTxSraQD8d4NCSTdVX7i'; + export const SENT_TO_CB = 309_999_000; export const DECIMALS = 12; From 3098149554bdf1793758cfaab0bd5d865e12a9a9 Mon Sep 17 00:00:00 2001 From: Dmitry Osipov Date: Mon, 4 Dec 2023 16:03:56 +0100 Subject: [PATCH 2/3] rm SENT_TO_CB const --- src/consts.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/consts.js b/src/consts.js index 98202ce..e2fffd7 100644 --- a/src/consts.js +++ b/src/consts.js @@ -36,6 +36,4 @@ export const CB_COLD_WALLETS = [ export const TYAN = 'kGgYvzyAgbd9j7QvLQ3iEyuWEJYZroTxSraQD8d4NCSTdVX7i'; -export const SENT_TO_CB = 309_999_000; - export const DECIMALS = 12; From 9f06bb3a99cc7793a01b4a2a812f145d70bf5b36 Mon Sep 17 00:00:00 2001 From: Dmitry Osipov Date: Mon, 4 Dec 2023 20:35:01 +0100 Subject: [PATCH 3/3] fix: import --- src/calculators/circulation-supply.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/calculators/circulation-supply.js b/src/calculators/circulation-supply.js index 9c85a37..85d95fc 100644 --- a/src/calculators/circulation-supply.js +++ b/src/calculators/circulation-supply.js @@ -12,7 +12,6 @@ import { CUSTODY, AIRDROP_3RD_PARTY_1, DECIMALS, - SENT_TO_CB, CB_COLD_WALLETS, TYAN, } from '../consts.js';