Skip to content

Commit

Permalink
Refactor getAaveV3ProtocolData
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinciarka committed Oct 16, 2024
1 parent f1e25e5 commit 713fb8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export async function getAaveV3ProtocolData({
})
const isCollateralEthCorrelated = collateralTokenSymbol?.toUpperCase().includes('ETH') || false
const isDebtEthCorrelated = debtTokenSymbol?.toUpperCase().includes('ETH') || false
const reserveEModeCategory = isCollateralEthCorrelated || isDebtEthCorrelated ? 1 : 0
const reserveEModeCategory = isCollateralEthCorrelated && isDebtEthCorrelated ? 1 : 0

let eModeCategoryData
if (pool && reserveEModeCategory !== 0) {
Expand Down

0 comments on commit 713fb8d

Please sign in to comment.