-
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.
* add token * Add $TRTL burn addresses * add $mr.hankey * add DDoS --------- Co-authored-by: Patrik <[email protected]>
- Loading branch information
1 parent
e21f784
commit 3a61fa5
Showing
2 changed files
with
32 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,29 @@ | ||
import { defaultFetcherOptions, SupplyFetcher } from "../types"; | ||
import { getAmountInAddresses, getBlockFrostInstance } from "../utils"; | ||
|
||
const DDOS = "94bb5aa2fedb3a4097c91934c79634407f4634aa192587699ef927b744446f53"; | ||
|
||
const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => { | ||
const blockFrost = getBlockFrostInstance(options); | ||
|
||
const total = 10_000_000; | ||
|
||
const burnRaw = await getAmountInAddresses(blockFrost, DDOS, [ | ||
"addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4", // SNEK burn address | ||
]); | ||
|
||
const burn = Number(burnRaw); | ||
|
||
const teamRaw = await getAmountInAddresses(blockFrost, DDOS, [ | ||
"addr1qxt6fmumauv24fszmfngncs695yj0e9etqsr7lm5ym4zude4alypnn0x8ckrucs8tga0lfl5v48ec656shce0fgpa3fq3dq4hq", // $ddosfund | ||
]); | ||
|
||
const team = Number(teamRaw); | ||
|
||
return { | ||
circulating: (total - burn - team).toString(), | ||
total: total.toString(), | ||
}; | ||
}; | ||
|
||
export default fetcher; |