-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { SupplyFetcher } from "../types"; | ||
|
||
const fetcher: SupplyFetcher = async () => { | ||
const total = 1_000_000_000; // 1B | ||
return { | ||
circulating: total.toString(), | ||
total: total.toString(), | ||
}; | ||
}; | ||
|
||
export default fetcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { defaultFetcherOptions, SupplyFetcher } from "../types"; | ||
import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; | ||
|
||
const STRIKE = | ||
"f13ac4d66b3ee19a6aa0f2a22298737bd907cc95121662fc971b5275535452494b45"; | ||
|
||
const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { | ||
const blockFrost = getBlockFrostInstance(options); | ||
const total = 25_000_000; | ||
const treasuryRaw = await getAmountInAddresses(blockFrost, STRIKE, [ | ||
"addr1wxfsprv3e2ar80tf2rkex08673llh6rewhgfpzmeeqgnekqv3n2ps", // team vesting | ||
"addr1qx8xgm3zrytup3mdgzxf93d6hc4x6dxywmzhnste6kzhe4lvvwe5f7xtt25s5fyftlm468rnjznztvgn9p0gvvr72p5qhfgyug", // DAO | ||
]); | ||
|
||
const treasury = Number(treasuryRaw) / 1e6; | ||
return { | ||
circulating: (total - treasury).toString(), | ||
total: total.toString(), | ||
}; | ||
}; | ||
|
||
export default fetcher; |