Skip to content

Commit

Permalink
fix: remove useless interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Grimal committed Oct 23, 2023
1 parent 1b4e825 commit 97f6551
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
7 changes: 0 additions & 7 deletions src/interfaces/ICompoundV2MigrationBundler.sol

This file was deleted.

7 changes: 0 additions & 7 deletions src/interfaces/IWNativeBundler.sol

This file was deleted.

5 changes: 2 additions & 3 deletions test/forge/ethereum/WNativeBundlerEthereumTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pragma solidity ^0.8.0;
import {ErrorsLib} from "../../../src/libraries/ErrorsLib.sol";

import "../../../src/mocks/bundlers/WNativeBundlerMock.sol";
import "../../../src/interfaces/IWNativeBundler.sol";

import "./helpers/EthereumTest.sol";

Expand All @@ -22,7 +21,7 @@ contract WNativeBundlerEthereumTest is EthereumTest {
amount = bound(amount, MIN_AMOUNT, MAX_AMOUNT);

vm.expectRevert(bytes(ErrorsLib.UNINITIATED));
IWNativeBundler(address(bundler)).wrapNative(amount);
WNativeBundlerMock(payable(address(bundler))).wrapNative(amount);
}

function testWrapZeroAmount() public {
Expand Down Expand Up @@ -57,7 +56,7 @@ contract WNativeBundlerEthereumTest is EthereumTest {
amount = bound(amount, MIN_AMOUNT, MAX_AMOUNT);

vm.expectRevert(bytes(ErrorsLib.UNINITIATED));
IWNativeBundler(address(bundler)).unwrapNative(amount);
WNativeBundlerMock(payable(address(bundler))).unwrapNative(amount);
}

function testUnwrapZeroAmount() public {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pragma solidity ^0.8.0;
import {IComptroller} from "../../../../src/migration/interfaces/IComptroller.sol";

import "../../../../src/migration/CompoundV2MigrationBundler.sol";
import "../../../../src/interfaces/ICompoundV2MigrationBundler.sol";

import "./helpers/EthereumMigrationTest.sol";

Expand All @@ -31,7 +30,7 @@ contract CompoundV2EthLoanMigrationBundlerEthereumTest is EthereumMigrationTest
amount = bound(amount, MIN_AMOUNT, MAX_AMOUNT);

vm.expectRevert(bytes(ErrorsLib.UNINITIATED));
ICompoundV2MigrationBundler(address(bundler)).compoundV2Repay(C_DAI_V2, amount);
CompoundV2MigrationBundler(payable(address(bundler))).compoundV2Repay(C_DAI_V2, amount);
}

function testCompoundV2RepayCEthZeroAmount() public {
Expand Down

0 comments on commit 97f6551

Please sign in to comment.