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

Commit

Permalink
Add $TRTL burn addresses (#229)
Browse files Browse the repository at this point in the history
* add  token

* Add $TRTL burn addresses
  • Loading branch information
BenElferink authored Jan 16, 2024
1 parent 8900b85 commit 2ade3c8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/tokens/trtl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,24 @@ const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);

const total = 356_000_000_000;

const treasuryRaw = await getAmountInAddresses(blockFrost, TRTL, [
"stake1u858q8m5vxffh7rpff7p9spcqtvjac0xce620zlvqyd8rcgxfw9lj", // $TRTL
"stake1u908d0tv3re46g58vnwndvjewd7s6mccs7k2gecs7f0n7cq5g89gp", // Panic
"stake1u908d0tv3re46g58vnwndvjewd7s6mccs7k2gecs7f0n7cq5g89gp", // Owner
]);

const treasury = Number(treasuryRaw);

const burnRaw = await getAmountInAddresses(blockFrost, TRTL, [
"addr1xy9phln4e5q23w533z7nme7sxr3p6lpldqhsyc8u5qd9c2mudsgax8xq9e4qr8f4yu4cxsghtapg282z5wn0nyjgtmsspwevz8",
"addr1x8gm0yhvdzv2a4n6rm02vfyez6x49nsj2dls4ml7t3rl7tw3k7fwc6yc4mt858k75cjfj95d2t8py5mlpthluhz8luks03cwcj",
]);

const burn = Number(burnRaw);

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

Expand Down

0 comments on commit 2ade3c8

Please sign in to comment.