We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4ff67f commit 37cd82fCopy full SHA for 37cd82f
1 file changed
src/adaptors/fraxlend/index.js
@@ -276,6 +276,9 @@ const main = async () => {
276
const totalBorrowUsd = new BigNumber(totalBorrows[index].amount)
277
.dividedBy(BIG_10.pow(18))
278
.times(prices[FRAX.toLowerCase()]);
279
+ const isDustBorrowMismatch = tvlUsd.lt(10) && totalBorrowUsd.gt(tvlUsd);
280
+
281
+ if (isDustBorrowMismatch) return null;
282
283
const debtCeilingUsd = new BigNumber(totalSupplys[index])
284
@@ -314,7 +317,7 @@ const main = async () => {
314
317
underlyingTokens: [collateralContracts[index]],
315
318
};
316
319
})
- .filter((e) => e.tvlUsd);
320
+ .filter((e) => e?.tvlUsd);
321
322
return addMerklRewardApy(pools, 'fraxlend');
323
0 commit comments