Skip to content

Commit

Permalink
Make source changes needed for certora verification
Browse files Browse the repository at this point in the history
We need to change two private functions to internal so we can harness them
and verify properties of these functions.
See related PR that builds on this change: #256
  • Loading branch information
andrew-certora committed Jul 25, 2024
1 parent 20973e1 commit 5d33e3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EVault/modules/Liquidation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ abstract contract LiquidationModule is ILiquidation, BalanceUtils, LiquidityUtil
address violator,
address collateral,
uint256 desiredRepay
) private view returns (LiquidationCache memory liqCache) {
) internal view returns (LiquidationCache memory liqCache) {
// Init cache

liqCache.liquidator = liquidator;
Expand Down
2 changes: 1 addition & 1 deletion src/EVault/shared/Cache.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ 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.
function initVaultCache(VaultCache memory vaultCache) private view returns (bool dirty) {
function initVaultCache(VaultCache memory vaultCache) internal view returns (bool dirty) {
dirty = false;

// Proxy metadata
Expand Down

0 comments on commit 5d33e3e

Please sign in to comment.