Skip to content

Commit

Permalink
improve checkLiquidity comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dglowinski committed Jul 16, 2024
1 parent 8f2124f commit 87b8f77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EVault/shared/LiquidityUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ abstract contract LiquidityUtils is BorrowUtils, LTVUtils {
liabilityValue = getLiabilityValue(vaultCache, account, vaultStorage.users[account].getOwed(), liquidation);
}

// Check that the value of the collateral, adjusted for borrowing LTV, is greater than the liability value.
// Since this function uses bid/ask prices, it should only be used within the account status check, and not
// for determining whether an account can be liquidated (which uses mid-point prices).
// Check that there is no liability, or the value of the collateral, adjusted for borrowing LTV, is greater than the
// liability value. Since this function uses bid/ask prices, it should only be used within the account status check,
// and not for determining whether an account can be liquidated (which uses mid-point prices).
function checkLiquidity(VaultCache memory vaultCache, address account, address[] memory collaterals)
internal
view
Expand Down

0 comments on commit 87b8f77

Please sign in to comment.