Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoscelynFarr committed Mar 29, 2024
1 parent 04548cf commit 4b8e22d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/impl/DegenDealerFundTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ contract DegenFundTest is Checkers {
function testDegenDeposit() public {
vm.startPrank(traders[0]);
usdc.approve(address(degenDealer), 1000e6);
degenDealer.deposit(traders[0], 1000e6);
degenDealer.deposit(traders[0], traders[0], 1000e6);
assertEq(usdc.balanceOf(address(degenDealer)), 1000e6);
}

function testDegenWithdraw() public {
vm.startPrank(traders[0]);
usdc.approve(address(degenDealer), 1000e6);
degenDealer.deposit(traders[0], 1000e6);
degenDealer.deposit(traders[0], traders[0], 1000e6);
vm.stopPrank();

degenDealer.withdraw(traders[0], 500e6, 1, false);
Expand All @@ -40,7 +40,7 @@ contract DegenFundTest is Checkers {
1000e6,
0,
false,
abi.encodeWithSignature("depositToDegenDealer(address,address)", traders[0], traders[0])
abi.encodeWithSignature("depositToDegenDealer(address,address)", traders[0])
);
vm.stopPrank();
}
Expand Down

0 comments on commit 4b8e22d

Please sign in to comment.