We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dae3ac3 commit 122ecbeCopy full SHA for 122ecbe
fees/aave/index.ts
@@ -236,6 +236,8 @@ const v2Graphs = (graphUrls: ChainEndpoints) => {
236
+ reserveFactorUSD;
237
}, 0);
238
239
+ if (chain === POLYGON && dailyFee > 1e6) throw new Error(`Polygon V2 daily fee is too high: ${dailyFee}`)
240
+
241
let dailyRev = todaysReserves.reduce((acc: number, reserve: V2Reserve) => {
242
const yesterdaysReserve = yesterdaysReserves.find((r: any) => r.reserve.symbol === reserve.reserve.symbol)
243
0 commit comments