Skip to content

Commit

Permalink
Update scale.ts (#347)
Browse files Browse the repository at this point in the history
Update scale.ts

I neglected to include the decimal places, resulting in an inaccurate total count for circulation.
  • Loading branch information
NFTKri authored Jul 19, 2024
1 parent 8d990d3 commit 46b14e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tokens/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", // burn address
]);

const treasury = Number(treasuryRaw);
const burn = Number(burnRaw);
const treasury = Number(treasuryRaw) / 1e6;
const burn = Number(burnRaw) / 1e6;
return {
circulating: (total - treasury - burn).toString(),
total: (total - burn).toString(),
Expand Down

0 comments on commit 46b14e7

Please sign in to comment.