From 9a9d786bf94d9e4cac89fbe1ab7825a0deea9298 Mon Sep 17 00:00:00 2001 From: slasher125 Date: Wed, 18 Dec 2024 11:00:43 +0400 Subject: [PATCH] impermax fix --- src/adaptors/impermax-finance/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/adaptors/impermax-finance/index.js b/src/adaptors/impermax-finance/index.js index 8a56bd44d8..3fb6dceaf0 100644 --- a/src/adaptors/impermax-finance/index.js +++ b/src/adaptors/impermax-finance/index.js @@ -422,7 +422,10 @@ const main = async () => { } // Geckoterminal is reporting the wrong price - if (underlying.id.toLowerCase() === '0x0f929C29dcE303F96b1d4104505F2e60eE795caC'.toLowerCase()) { + if ( + underlying.id.toLowerCase() === + '0x0f929C29dcE303F96b1d4104505F2e60eE795caC'.toLowerCase() + ) { continue; } @@ -481,11 +484,11 @@ const main = async () => { const chainVaults = lendingVaultProfiles[chain] || []; const lendingVault = chainVaults.find( - (v) => v.address.toLowerCase() === id.toLowerCase() + (v) => v?.address.toLowerCase() === id.toLowerCase() ); pools.push({ - pool: `${lendingVault.address}-${underlying.symbol}-${chain}`.toLowerCase(), + pool: `${lendingVault?.address}-${underlying.symbol}-${chain}`.toLowerCase(), poolMeta: `${lendingVault?.risk}`, chain, project: 'impermax-finance',