Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(morpho): Fix max debt props
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich committed Nov 15, 2023
1 parent f0cd28d commit 0adee80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apps/morpho/ethereum/morpho.position-presenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export class EthereumMorphoPositionPresenter extends PositionPresenterTemplate<E
morphoAaveV3.read.liquidityData([address]),
]);

const maxDebtMA3 = BigNumber.from(liquidityDataMA3Raw[1]);
const debtMA3 = BigNumber.from(liquidityDataMA3Raw[2]);
const maxDebtMA3 = BigNumber.from(liquidityDataMA3Raw.maxDebt);
const debtMA3 = BigNumber.from(liquidityDataMA3Raw.debt);
const unit = parseUnits('1');

const healthFactorMA2 = +formatUnits(BigNumber.from(healthFactorMA2Raw));
Expand Down

0 comments on commit 0adee80

Please sign in to comment.