From f234f25f978cd84e5433bc6ae25e3d9608793d6a Mon Sep 17 00:00:00 2001 From: waynebruce0x Date: Fri, 26 Apr 2024 15:01:28 +0100 Subject: [PATCH] eth patch --- adapters/ethereum/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/adapters/ethereum/index.ts b/adapters/ethereum/index.ts index 4c57c8c..efb7f59 100644 --- a/adapters/ethereum/index.ts +++ b/adapters/ethereum/index.ts @@ -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) => { @@ -36,9 +36,7 @@ const processCsvData = async (): Promise<{ export const inflation = async (): Promise => { 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;