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

Commit

Permalink
Add the O token (#389)
Browse files Browse the repository at this point in the history
add the O token
  • Loading branch information
zygomeb authored Nov 22, 2024
1 parent e0d068d commit 099a701
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/tokens/o.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const O = "2852268cf6e2db42e20f2fd3125f541e5d6c5a3d70b4dda17c2daa82";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 25e6;
const treasuryRaw = await getAmountInAddresses(blockFrost, O, [
"stake178j4fcxw7pwgxw92yu28c2zqmjxnumumj52hxr9jtr6qwngf2ve5n", // O Vesting Multisig
]);
const treasury = Number(treasuryRaw) / 1e6;
return {
circulating: (total - treasury).toString(),
total: total.toString(),
};
};

export default fetcher;

0 comments on commit 099a701

Please sign in to comment.