Skip to content

Commit

Permalink
eth patch
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Apr 26, 2024
1 parent 845f551 commit f234f25
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions adapters/ethereum/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const processCsvData = async (): Promise<{
sections: LinearAdapterResult[];
csvAmount: number;
}> => {
const data = await parseCSVToJSON("./adapters/ethereum/etherscan.csv");
const data = await parseCSVToJSON("./defi/emissions-adapters/adapters/ethereum/etherscan.csv");
const sections: LinearAdapterResult[] = [];

data.map((t: any, i: number) => {
Expand Down Expand Up @@ -36,9 +36,7 @@ const processCsvData = async (): Promise<{

export const inflation = async (): Promise<LinearAdapterResult[]> => {
const { sections, csvAmount } = await processCsvData();
const res = await (
await fetch(`https://ultrasound.money/api/v2/fees/supply-over-time`)
).json();
const res = await (await fetch(`https://ultrasound.money/api/v2/fees/supply-over-time`)).json();

const start = sections[sections.length - 1].end;
let end = Number(start) + periodToSeconds.day;
Expand Down

0 comments on commit f234f25

Please sign in to comment.