Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dglowinski committed Mar 21, 2024
1 parent a360ba4 commit 49966fa
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 30 deletions.
32 changes: 16 additions & 16 deletions src/EVault/IEVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -416,20 +416,20 @@ interface IEVault is
IBalanceForwarder,
IGovernance
{
/// @notice Fetch address of the `Initialize` module
function MODULE_INITIALIZE() external view returns(address);
/// @notice Fetch address of the `Token` module
function MODULE_TOKEN() external view returns(address);
/// @notice Fetch address of the `Vault` module
function MODULE_VAULT() external view returns(address);
/// @notice Fetch address of the `Borrowing` module
function MODULE_BORROWING() external view returns(address);
/// @notice Fetch address of the `Liquidation` module
function MODULE_LIQUIDATION() external view returns(address);
/// @notice Fetch address of the `RiskManager` module
function MODULE_RISKMANAGER() external view returns(address);
/// @notice Fetch address of the `BalanceForwarder` module
function MODULE_BALANCE_FORWARDER() external view returns(address);
/// @notice Fetch address of the `Governance` module
function MODULE_GOVERNANCE() external view returns(address);
/// @notice Fetch address of the `Initialize` module
function MODULE_INITIALIZE() external view returns (address);
/// @notice Fetch address of the `Token` module
function MODULE_TOKEN() external view returns (address);
/// @notice Fetch address of the `Vault` module
function MODULE_VAULT() external view returns (address);
/// @notice Fetch address of the `Borrowing` module
function MODULE_BORROWING() external view returns (address);
/// @notice Fetch address of the `Liquidation` module
function MODULE_LIQUIDATION() external view returns (address);
/// @notice Fetch address of the `RiskManager` module
function MODULE_RISKMANAGER() external view returns (address);
/// @notice Fetch address of the `BalanceForwarder` module
function MODULE_BALANCE_FORWARDER() external view returns (address);
/// @notice Fetch address of the `Governance` module
function MODULE_GOVERNANCE() external view returns (address);
}
16 changes: 8 additions & 8 deletions src/EVault/modules/Dispatch.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ abstract contract Dispatch is
BalanceForwarderModule,
GovernanceModule
{
address immutable public MODULE_INITIALIZE;
address immutable public MODULE_TOKEN;
address immutable public MODULE_VAULT;
address immutable public MODULE_BORROWING;
address immutable public MODULE_LIQUIDATION;
address immutable public MODULE_RISKMANAGER;
address immutable public MODULE_BALANCE_FORWARDER;
address immutable public MODULE_GOVERNANCE;
address public immutable MODULE_INITIALIZE;
address public immutable MODULE_TOKEN;
address public immutable MODULE_VAULT;
address public immutable MODULE_BORROWING;
address public immutable MODULE_LIQUIDATION;
address public immutable MODULE_RISKMANAGER;
address public immutable MODULE_BALANCE_FORWARDER;
address public immutable MODULE_GOVERNANCE;

struct DeployedModules {
address initialize;
Expand Down
2 changes: 0 additions & 2 deletions test/unit/evault/Dispatch.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ pragma solidity ^0.8.0;

import "./EVaultTestBase.t.sol";

import { console2 as console } from "forge-std/console2.sol";

contract DispatchTest is EVaultTestBase {
function test_Dispatch_moduleGetters() public view {
assertEq(eTST.MODULE_INITIALIZE(), initializeModule);
Expand Down
2 changes: 0 additions & 2 deletions test/unit/evault/EVaultTestBase.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ contract EVaultTestBase is AssertionsCustomTypes, Test, DeployPermit2 {
IEVault public eTST;
IEVault public eTST2;


address initializeModule;
address tokenModule;
address vaultModule;
Expand All @@ -65,7 +64,6 @@ contract EVaultTestBase is AssertionsCustomTypes, Test, DeployPermit2 {
address balanceForwarderModule;
address governanceModule;


function setUp() public virtual {
admin = vm.addr(1000);
feeReceiver = makeAddr("feeReceiver");
Expand Down
1 change: 0 additions & 1 deletion test/unit/evault/modules/Vault/skim.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

pragma solidity ^0.8.0;

import {console2} from "forge-std/Test.sol";
import {EVaultTestBase} from "../../EVaultTestBase.t.sol";

import "src/EVault/shared/types/Types.sol";
Expand Down
1 change: 0 additions & 1 deletion test/unit/evault/modules/Vault/withdraw.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

pragma solidity ^0.8.0;

import {console2} from "forge-std/Test.sol";
import {EVaultTestBase} from "../../EVaultTestBase.t.sol";
import {Events} from "src/EVault/shared/Events.sol";
import {SafeERC20Lib} from "src/EVault/shared/lib/SafeERC20Lib.sol";
Expand Down

0 comments on commit 49966fa

Please sign in to comment.