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

Fixed derp token #185

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ export const supplyFetchers: Record<string, SupplyFetcher> = {
bookFetcher,
"5c1c91a65bedac56f245b8184b5820ced3d2f1540e521dc1060fa6834a454c4c59":
jellyFetcher,
"961f2cac0bb1967d74691af179350c1e1062c7298d1f7be1e4696e31": derpFetcher,
"961f2cac0bb1967d74691af179350c1e1062c7298d1f7be1e4696e312444455250":
derpFetcher,
"2d587111358801114f04df83dc0015de0a740b462b75cce5170fc935434749": cgiFetcher,
"03c2eb4f942703fa965df42ba8ac57e27c5e86802d058da63f4d888b4c4343": lccFetcher,
f6696363e9196289ef4f2b4bf34bc8acca5352cdc7509647afe6888f: tedyFetcher,
Expand Down
6 changes: 4 additions & 2 deletions src/tokens/derp.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import { getAmountInAddresses, getBlockFrostInstance } from "../utils";

const DERP = "961f2cac0bb1967d74691af179350c1e1062c7298d1f7be1e4696e3144455250";
const DERP =
"961f2cac0bb1967d74691af179350c1e1062c7298d1f7be1e4696e312444455250";

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const blockFrost = getBlockFrostInstance(options);
const total = 100_000_000n;
const treasury = await getAmountInAddresses(blockFrost, DERP, [

let treasury = await getAmountInAddresses(blockFrost, DERP, [

Check failure on line 11 in src/tokens/derp.ts

View workflow job for this annotation

GitHub Actions / build-and-test

'treasury' is never reassigned. Use 'const' instead
"stake1uy6r37f83ahqq47rx4wxgl28anmekvz9wqqgr2u09pw48egyaeqhv",
"stake1u894gzwp4kg0uwmtz8k23g8cpkkc54gs6kd2ts4sedxanmcas4kh8",
"stake1u8fhqlvckhllm0l0pkjl3a2zhvgpn966ljgu3was9s80s7suf7rzg",
Expand Down
Loading