Skip to content

Commit

Permalink
impermax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Dec 18, 2024
1 parent d920dec commit 9a9d786
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/adaptors/impermax-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 9a9d786

Please sign in to comment.