Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correct decimal nebula
Browse files Browse the repository at this point in the history
ljttl3q04t committed Dec 28, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 107a46f + 12679ce commit fcbfe12
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/tokens/nebula.ts
Original file line number Diff line number Diff line change
@@ -7,17 +7,19 @@ const NEBULA =
const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 1e9;
const treasuryRaw = await getAmountInAddresses(blockFrost, NEBULA, [
const treasuryRaw = [
"addr1qyruqqptlds9ruwxq45y28669y7q4qu233hmzt2ck260f2s296su9q00c29c8ud846jhyayzeprsa4fygumw0ycrmgssxu8q3z",
"addr1q8s7yqngv2lpwrf6e3wn0qplz6dsw2f9scdex78uxfg58xv69yv7hnkjauqsj33hktr6ygamt58m7rsjm4elpmlaycssdyaju6",
]);
];

const burnRaw = await getAmountInAddresses(blockFrost, NEBULA, [
const burnRaw = [
"addr1qxte5udxtcgd32grn4pd2w2faw7cax3p4lj22e6exmftu28ezkp45z5cs5g5yfpksh8uupjrzkjjyv3c2t23ah04s0tq40n2va",
]);
];

const treasury = Number(treasuryRaw);
const burn = Number(burnRaw);
const treasury =
Number(await getAmountInAddresses(blockFrost, NEBULA, treasuryRaw)) / 1e8;
const burn =
Number(await getAmountInAddresses(blockFrost, NEBULA, burnRaw)) / 1e8;

return {
circulating: (total - treasury - burn).toString(),

0 comments on commit fcbfe12

Please sign in to comment.