diff --git a/src/adaptors/impermax-finance/index.js b/src/adaptors/impermax-finance/index.js index 9e29a7bac3..10f9df6b21 100644 --- a/src/adaptors/impermax-finance/index.js +++ b/src/adaptors/impermax-finance/index.js @@ -593,9 +593,9 @@ async function getTokenPrices(tokens, chain, allCoins) { const totalLiquidity = pairs .map((p) => p.liquidity.usd) - .reduce((a, b) => a + b); + .reduce((a, b) => a + b, 0); return ( - pairs.map((p) => p.priceUsd * p.liquidity.usd).reduce((a, b) => a + b) / + pairs.map((p) => p.priceUsd * p.liquidity.usd).reduce((a, b) => a + b, 0) / totalLiquidity ); }