diff --git a/solidity/test/utils/Helpers.sol b/solidity/test/utils/Helpers.sol index 81b580d..9e7beab 100644 --- a/solidity/test/utils/Helpers.sol +++ b/solidity/test/utils/Helpers.sol @@ -1,9 +1,9 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; -import {DSTestPlus} from '@defi-wonderland/solidity-utils/solidity/test/DSTestPlus.sol'; import {IOracle} from '@defi-wonderland/prophet-core-contracts/solidity/interfaces/IOracle.sol'; +import {DSTestPlus} from '@defi-wonderland/solidity-utils/solidity/test/DSTestPlus.sol'; +import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import {IAccountingExtension} from '../../interfaces/extensions/IAccountingExtension.sol'; import {TestConstants} from './TestConstants.sol'; @@ -53,21 +53,6 @@ contract Helpers is DSTestPlus, TestConstants { vm.expectCall(_receiver, _calldata); } - function _forBondDepositERC20( - IAccountingExtension _accountingExtension, - address _depositor, - IERC20 _token, - uint256 _depositAmount, - uint256 _balanceIncrease - ) internal { - vm.assume(_balanceIncrease >= _depositAmount); - deal(address(_token), _depositor, _balanceIncrease); - vm.startPrank(_depositor); - _token.approve(address(_accountingExtension), _depositAmount); - _accountingExtension.deposit(_token, _depositAmount); - vm.stopPrank(); - } - /** * @notice Computes the ID of a given request as it's done in the Oracle *