Skip to content

Commit

Permalink
make src same as master again
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-certora committed Aug 7, 2024
1 parent c104f09 commit 3e69020
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/EVault/modules/Liquidation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ abstract contract LiquidationModule is ILiquidation, BalanceUtils, LiquidityUtil
executeLiquidation(vaultCache, liqCache, minYieldBalance);
}

// Munged to internal by certora to enable harnessing
function calculateLiquidation(
VaultCache memory vaultCache,
address liquidator,
Expand Down Expand Up @@ -158,8 +157,10 @@ abstract contract LiquidationModule is ILiquidation, BalanceUtils, LiquidityUtil
uint256 maxRepayValue = liabilityValue;
uint256 maxYieldValue = maxRepayValue * 1e18 / discountFactor;

// Limit yield to borrower's available collateral, and reduce repay if necessary. This can happen when borrower
// has multiple collaterals and seizing all of this one won't bring the violator back to solvency
// Limit yield to borrower's available collateral, and reduce repay if necessary. This can happen when
// seizing all of the collateral won't bring the violator back to solvency. It can happen simply because
// the account health is very low, or because borrower has multiple collaterals and liquidating this one
// is not sufficient.

if (collateralValue < maxYieldValue) {
maxRepayValue = collateralValue * discountFactor / 1e18;
Expand Down
1 change: 0 additions & 1 deletion src/EVault/shared/Cache.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ contract Cache is Storage, Errors {
// Takes a VaultCache struct, overwrites it with VaultStorage data and, if time has passed since VaultStorage
// was last updated, updates VaultStorage.
// Returns a boolean if the cache is different from storage. VaultCache param is updated to this block.
// Munged from private to internal by Certora to enable harnessing
function initVaultCache(VaultCache memory vaultCache) internal view returns (bool dirty) {
dirty = false;

Expand Down

0 comments on commit 3e69020

Please sign in to comment.