Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CERTORA I-02 Remove unnecessary inheritance from Base contract #226

Merged
merged 1 commit into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/EVault/Dispatch.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import "./shared/Constants.sol";
/// @author Euler Labs (https://www.eulerlabs.com/)
/// @notice Contract which ties in the EVault modules and provides utilities for routing calls to modules and the EVC
abstract contract Dispatch is
Base,
InitializeModule,
TokenModule,
VaultModule,
Expand Down
2 changes: 1 addition & 1 deletion src/EVault/modules/Borrowing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import "../shared/types/Types.sol";
/// @custom:security-contact [email protected]
/// @author Euler Labs (https://www.eulerlabs.com/)
/// @notice An EVault module handling borrowing and repaying of vault assets
abstract contract BorrowingModule is IBorrowing, Base, AssetTransfers, BalanceUtils, LiquidityUtils {
abstract contract BorrowingModule is IBorrowing, AssetTransfers, BalanceUtils, LiquidityUtils {
using TypesLib for uint256;
using SafeERC20Lib for IERC20;

Expand Down
2 changes: 1 addition & 1 deletion src/EVault/modules/Governance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import "../shared/types/Types.sol";
/// @custom:security-contact [email protected]
/// @author Euler Labs (https://www.eulerlabs.com/)
/// @notice An EVault module handling governance, including configuration and fees
abstract contract GovernanceModule is IGovernance, Base, BalanceUtils, BorrowUtils, LTVUtils {
abstract contract GovernanceModule is IGovernance, BalanceUtils, BorrowUtils, LTVUtils {
using TypesLib for uint16;

// Protocol guarantees for the governor
Expand Down
2 changes: 1 addition & 1 deletion src/EVault/modules/Initialize.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import "../shared/types/Types.sol";
/// @custom:security-contact [email protected]
/// @author Euler Labs (https://www.eulerlabs.com/)
/// @notice An EVault module implementing the initialization of the new vault contract
abstract contract InitializeModule is IInitialize, Base, BorrowUtils {
abstract contract InitializeModule is IInitialize, BorrowUtils {
using TypesLib for uint16;

// Initial value of the interest accumulator: 1 ray
Expand Down
2 changes: 1 addition & 1 deletion src/EVault/modules/Liquidation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "../shared/types/Types.sol";
/// @custom:security-contact [email protected]
/// @author Euler Labs (https://www.eulerlabs.com/)
/// @notice An EVault module handling liquidations of unhealthy accounts
abstract contract LiquidationModule is ILiquidation, Base, BalanceUtils, LiquidityUtils {
abstract contract LiquidationModule is ILiquidation, BalanceUtils, LiquidityUtils {
using TypesLib for uint256;

struct LiquidationCache {
Expand Down
2 changes: 1 addition & 1 deletion src/EVault/modules/RiskManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import "../shared/types/Types.sol";
/// @custom:security-contact [email protected]
/// @author Euler Labs (https://www.eulerlabs.com/)
/// @notice An EVault module handling risk management, including vault and account health checks
abstract contract RiskManagerModule is IRiskManager, Base, LiquidityUtils {
abstract contract RiskManagerModule is IRiskManager, LiquidityUtils {
/// @inheritdoc IRiskManager
function accountLiquidity(address account, bool liquidation)
public
Expand Down
2 changes: 1 addition & 1 deletion src/EVault/modules/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "../shared/types/Types.sol";
/// @custom:security-contact [email protected]
/// @author Euler Labs (https://www.eulerlabs.com/)
/// @notice An EVault module handling ERC20 behaviour of vault shares
abstract contract TokenModule is IToken, Base, BalanceUtils {
abstract contract TokenModule is IToken, BalanceUtils {
using TypesLib for uint256;

/// @inheritdoc IERC20
Expand Down
2 changes: 1 addition & 1 deletion src/EVault/modules/Vault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import "../shared/types/Types.sol";
/// @custom:security-contact [email protected]
/// @author Euler Labs (https://www.eulerlabs.com/)
/// @notice An EVault module handling ERC4626 standard behaviour
abstract contract VaultModule is IVault, Base, AssetTransfers, BalanceUtils {
abstract contract VaultModule is IVault, AssetTransfers, BalanceUtils {
using TypesLib for uint256;
using SafeERC20Lib for IERC20;

Expand Down
Loading