From a681d2804b9c5c6a981a9aeefa8ea7fbead8505a Mon Sep 17 00:00:00 2001 From: Gas One Cent <86567384+gas1cent@users.noreply.github.com> Date: Wed, 13 Dec 2023 22:00:53 +0400 Subject: [PATCH] refactor: remove an unused helper --- solidity/test/utils/Helpers.sol | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/solidity/test/utils/Helpers.sol b/solidity/test/utils/Helpers.sol index 81b580dd..9e7beab2 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 *