-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary inheritance from Base contract
- Loading branch information
1 parent
af7a883
commit 7be2f89
Showing
8 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
||
|