Skip to content

Commit

Permalink
Merge pull request #3 from gear-foundation/do-fix
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
EugenWay authored Nov 6, 2023
2 parents 8da3671 + 9ebb8a7 commit 498ce4d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/calculators/circulation-supply.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
AIRDROP_POOL,
DEVELOPER_PROJECTS_GRANTS_POOL,
FOUNDATION_AND_ECOSYSTEM_DEVELOPMENT_POOL,
INITIAL_BALANCE_INFLATION_OFFSETTING_POOL,
INFLATION_OFFSETTING_POOL,
EDUCATION_BOOTCAMP_PR_EVENT_POOL,
PROTOCOL_DEVELOPMENT_POOL,
PROTOCOL_RESERVE_POOL,
Expand Down Expand Up @@ -83,9 +83,9 @@ export async function circulationSupply() {
AIRDROP_POOL,
MARKET_POOL,
AIRDROP_3RD_PARTY_1,
INFLATION_OFFSETTING_POOL,
...CUSTODY,
];
// INFLATION_OFFSETTING_POOL;

const [supply, vesting, staking, pools] = await Promise.all([
totalSupply(),
Expand All @@ -94,11 +94,7 @@ export async function circulationSupply() {
getBalances(addresses),
]);

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

return supply - total;
}

0 comments on commit 498ce4d

Please sign in to comment.