Skip to content

Commit

Permalink
refactor: remove an unused helper
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent committed Dec 13, 2023
1 parent fae7061 commit a681d28
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions solidity/test/utils/Helpers.sol
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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
*
Expand Down

0 comments on commit a681d28

Please sign in to comment.