Skip to content

Commit

Permalink
Merge pull request #4 from gear-foundation/tokens-sent-to-cb
Browse files Browse the repository at this point in the history
add constant with amount of tokens sent to coinbase
  • Loading branch information
osipov-mit authored Nov 26, 2023
2 parents 498ce4d + 089f3cc commit 6346a76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calculators/circulation-supply.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
CUSTODY,
AIRDROP_3RD_PARTY_1,
DECIMALS,
SENT_TO_CB,
} from '../consts.js';
import { totalSupply } from './total-supply.js';

Expand Down Expand Up @@ -94,7 +95,7 @@ export async function circulationSupply() {
getBalances(addresses),
]);

const total = pools.reduce((accumulator, current) => accumulator + current, 0) + vesting + staking;
const total = pools.reduce((accumulator, current) => accumulator + current, 0) + vesting + staking + SENT_TO_CB;

return supply - total;
}
2 changes: 2 additions & 0 deletions src/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ export const CUSTODY = [
'kGiVY7G1mJkqaAjKzLnRmwCy5GcvuGQvG5mUtojhVHdLfBd1P',
];

export const SENT_TO_CB = 309_999_000;

export const DECIMALS = 12;

0 comments on commit 6346a76

Please sign in to comment.