diff --git a/adapters/conic-finance/index.ts b/adapters/conic-finance/index.ts index d381e73..d85d290 100644 --- a/adapters/conic-finance/index.ts +++ b/adapters/conic-finance/index.ts @@ -47,21 +47,5 @@ export async function rebalancing(): Promise { }), ); - // const sections: CliffAdapterResult[] = []; - // let atStart: boolean = true; - // for (let i = 0; i < emitted.length; i++) { - // const thisBalance: number | null = emitted[i]; - - // if ((atStart && thisBalance == 0) || thisBalance == null) continue; - // atStart = false; - - // const amount = (thisBalance - emitted[i - 1]) / 10 ** decimals; - // if (amount == 0) continue; - - // const start = blockHeights[i].timestamp; - // sections.push({ type: "cliff", start, amount }); - // } - - // return sections; return filterRawAmounts(chainData, decimals); } diff --git a/utils/convertToChartData.ts b/utils/convertToChartData.ts index e6258a9..7d1e72e 100644 --- a/utils/convertToChartData.ts +++ b/utils/convertToChartData.ts @@ -65,9 +65,8 @@ async function appendMissingDataSections( let res = await fetch(`https://api.llama.fi/emission/${protocol}`).then((r) => r.json(), ); - // res = res.body ? JSON.parse(res.body).data : []; + res = res.body ? JSON.parse(res.body).data : []; - res = []; incompleteSections.map((i: IncompleteSection) => { const sectionRes: any = res.find((s: ApiChartData) => s.label == i.key); @@ -218,7 +217,6 @@ function consolidateDuplicateKeys(data: ChartSection[], isTest: boolean) { const maxSectionLength: number = Math.max(...sectionLengths); data.map((d: any) => { - // if (d.section != "Rewards") return; const sortedKeys = sortedData.map((s: any) => s.section); // normalize to extrapolations