Skip to content

Commit 3892978

Browse files
committed
remove unneeded function
1 parent 04e8c5f commit 3892978

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

test/helpers/CowBaseTest.sol

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -225,33 +225,6 @@ contract CowBaseTest is Test {
225225
clearingPrices[1] = 1; // eSUSDS price
226226
}
227227

228-
/// @notice Helper to set up a leveraged position for any user
229-
/// @dev More flexible version that accepts owner, account, and vault parameters
230-
/// The proceeds of the `borrow` are *NOT* deposited in the account for convienience of setup.
231-
/// So make sure that `collateralAmount` is margin + borrowValue if that is something you care about.
232-
function setupLeveragedPositionFor(
233-
address owner,
234-
address account,
235-
address collateralVault,
236-
address borrowVault,
237-
uint256 collateralAmount,
238-
uint256 borrowAmount
239-
) internal {
240-
address collateralAsset = address(IEVault(collateralVault).asset());
241-
242-
deal(collateralAsset, owner, collateralAmount);
243-
244-
vm.startPrank(owner);
245-
IERC20(collateralAsset).approve(collateralVault, type(uint256).max);
246-
EVC.enableCollateral(account, collateralVault);
247-
EVC.enableController(account, borrowVault);
248-
IERC4626(collateralVault).deposit(collateralAmount, account);
249-
vm.stopPrank();
250-
251-
vm.prank(account);
252-
IBorrowing(borrowVault).borrow(borrowAmount, address(1));
253-
}
254-
255228
/// @notice Encode wrapper data with length prefix
256229
/// @dev Takes already abi.encoded params and signature
257230
function encodeWrapperData(bytes memory paramsAndSignature) internal pure returns (bytes memory) {

0 commit comments

Comments
 (0)