diff --git a/packages/math-utils/src/formatters/emode/index.ts b/packages/math-utils/src/formatters/emode/index.ts index 08f4877c..06addbd9 100644 --- a/packages/math-utils/src/formatters/emode/index.ts +++ b/packages/math-utils/src/formatters/emode/index.ts @@ -59,9 +59,9 @@ export function getReservesEModes( return eModes.reduce((acc, eMode) => { const { borrowableBitmap, collateralBitmap } = eMode.eMode; const borrowingEnabled = - borrowableBitmap[borrowableBitmap.length - reserveId] === '1'; + borrowableBitmap[borrowableBitmap.length - reserveId - 1] === '1'; const collateralEnabled = - collateralBitmap[collateralBitmap.length - reserveId] === '1'; + collateralBitmap[collateralBitmap.length - reserveId - 1] === '1'; if (borrowingEnabled || collateralEnabled) { acc.push({ id: eMode.id,