Skip to content

Commit 59ee595

Browse files
committed
Fix typo in _checkTokenLTV
1 parent 90b2469 commit 59ee595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/LiquidityPool.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ contract LiquidityPool is AccessControlUpgradeable, EIP712Upgradeable {
289289

290290
if (collateralUnit > borrowUnit) {
291291
currentLtv = totalBorrowPrice.mulDiv(collateralUnit / borrowUnit, collateralPrice);
292-
} else if (borrowDecimals > collateralDecimals) {
292+
} else if (borrowUnit > collateralUnit) {
293293
currentLtv = totalBorrowPrice / (collateralPrice * (borrowUnit / collateralUnit));
294294
} else {
295295
currentLtv = totalBorrowPrice / collateralPrice;

0 commit comments

Comments
 (0)