Skip to content

Commit 090bd70

Browse files
authored
Merge pull request #114 from ReynardoEW/patch-1
change rocketpool to rocket-pool
2 parents 36904b0 + c1a2e71 commit 090bd70

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

adapters/rocketpool/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { call, multiCall } from "@defillama/sdk/build/abi/abi2";
2-
import adapter from "./emissions";
32
import abi from "./abi";
43
import { findBlockHeightArray } from "../../utils/chainCalls";
54
import { PromisePool } from "@supercharge/promise-pool";
@@ -18,7 +17,6 @@ interface ExtendedChainData extends TimeSeriesChainData {
1817
}
1918

2019
const ONE_ETHER = BigInt("1000000000000000000");
21-
const WEEK = 7 * 24 * 60 * 60;
2220
const RPL_TOKEN = "0xD33526068D116cE69F19A9ee46F0bd304F21A51f";
2321
const ROCKET_STORAGE = "0x1d8f8f00cfa6758d7be78336684788fb0ee0fa46";
2422
const INFLATION_SETTINGS_KEY = "0x36b7eef85823b64ca08056c771cf2b8dd4f9f4491b3adfa282c1d3dd7b847af8";
@@ -92,7 +90,7 @@ function calculateEmissions(
9290
export async function latest(reference: number): Promise<number> {
9391
let r;
9492
try {
95-
r = await fetch(`https://api.llama.fi/emission/rocketpool`).then((r) =>
93+
r = await fetch(`https://api.llama.fi/emission/rocket-pool`).then((r) =>
9694
r.json(),
9795
);
9896
} catch {
@@ -220,4 +218,4 @@ export async function emission(timestamp: number, type?: "node" | "trusted" | "p
220218
return sections.filter((_, idx) => idx % 3 === startIdx);
221219
}
222220
return sections;
223-
}
221+
}

0 commit comments

Comments
 (0)