Skip to content

Commit

Permalink
Merge pull request #7 from gear-foundation/do-add-addressess
Browse files Browse the repository at this point in the history
add addresses
  • Loading branch information
osipov-mit authored Dec 4, 2023
2 parents 66213a2 + 9f06bb3 commit 47c1711
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/calculators/circulation-supply.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import {
CUSTODY,
AIRDROP_3RD_PARTY_1,
DECIMALS,
SENT_TO_CB,
CB_COLD_WALLETS,
TYAN,
} from '../consts.js';
import { totalSupply } from './total-supply.js';

Expand Down Expand Up @@ -85,7 +86,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([
Expand All @@ -95,7 +98,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;
}
9 changes: 8 additions & 1 deletion src/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ export const CUSTODY = [
'kGiVY7G1mJkqaAjKzLnRmwCy5GcvuGQvG5mUtojhVHdLfBd1P',
];

export const SENT_TO_CB = 309_999_000;
export const CB_COLD_WALLETS = [
'kGjM8es47bQ3i73sMBfQhZte3xE1aD1Syvsfu3rXkPC3kAKZv',
'kGj1E8yFzVVKQxkP65ExcZttnYRCGoGyGzgEUopthjRhEWeum',
'kGghFAwYWw4MH9PXzrkpHctLQTfBNcCwk6Pu4RQ7ckgUFzLcq',
'kGhzLBaaHM66zJrFPqCrA4MJc2jhiKKdndB5cNCeGVpY7wpG2',
];

export const TYAN = 'kGgYvzyAgbd9j7QvLQ3iEyuWEJYZroTxSraQD8d4NCSTdVX7i';

export const DECIMALS = 12;

0 comments on commit 47c1711

Please sign in to comment.