generated from Kwenta/foundry-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅ test unwindCollateral UNAUTHORIZED
- Loading branch information
1 parent
8327981
commit 2b70360
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity 0.8.27; | ||
|
||
import {Bootstrap, Engine} from "test/utils/Bootstrap.sol"; | ||
import {IEngine} from "src/interfaces/IEngine.sol"; | ||
|
||
contract UnwindTest is Bootstrap { | ||
function setUp() public { | ||
vm.rollFork(ARBITRUM_BLOCK_NUMBER); | ||
initializeArbitrum(); | ||
} | ||
|
||
function test_unwindCollateral_UNAUTHORIZED() public { | ||
vm.expectRevert(abi.encodeWithSelector(IEngine.Unauthorized.selector)); | ||
engine.unwindCollateral(accountId, 1, 1, address(0), 1, 1, 1, ""); | ||
} | ||
|
||
function test_unwindCollateralETH_UNAUTHORIZED() public { | ||
vm.expectRevert(abi.encodeWithSelector(IEngine.Unauthorized.selector)); | ||
engine.unwindCollateral(accountId, 1, 1, address(0), 1, 1, 1, ""); | ||
} | ||
|
||
function test_unwindCollateral() public { | ||
// todo add test | ||
assertEq(true, false); | ||
} | ||
} |