Skip to content

Commit

Permalink
chore(lint): format files
Browse files Browse the repository at this point in the history
  • Loading branch information
PierrickGT committed Aug 9, 2023
1 parent 1a20916 commit 294f199
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/contracts/external/FixedMathLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ library FixedMathLib {
require(a <= type(uint224).max, "FixedMathLib/a-less-than-224-bits");
return (a * multiplier) / UFixed32x4.unwrap(b);
}
}
}
2 changes: 1 addition & 1 deletion test/contracts/external/LiquidatorLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,4 @@ library LiquidatorLib {
_minK
);
}
}
}
2 changes: 1 addition & 1 deletion test/contracts/mock/MockLiquidatorLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ contract MockLiquidatorLib {
uint256 amountIn = LiquidatorLib.getAmountIn(amountOut, virtualReserveIn, virtualReserveOut);
return amountIn;
}
}
}
17 changes: 12 additions & 5 deletions test/unit/Vault/Deposit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ contract VaultDepositTest is UnitBaseSetup, BrokenToken {
underlyingAsset.mint(alice, _amount);
underlyingAsset.approve(address(vault), type(uint256).max);

vm.expectRevert(abi.encodeWithSelector(DepositMoreThanMax.selector, alice, _amount, type(uint96).max));
vm.expectRevert(
abi.encodeWithSelector(DepositMoreThanMax.selector, alice, _amount, type(uint96).max)
);
vault.deposit(_amount, alice);

vm.stopPrank();
Expand All @@ -190,7 +192,6 @@ contract VaultDepositTest is UnitBaseSetup, BrokenToken {
function testDepositMoreThanYieldVaultMax() external {
vm.startPrank(alice);


uint256 _amount = uint256(type(uint88).max) + 1;

underlyingAsset.mint(alice, _amount);
Expand All @@ -202,7 +203,9 @@ contract VaultDepositTest is UnitBaseSetup, BrokenToken {
abi.encode(type(uint88).max)
);

vm.expectRevert(abi.encodeWithSelector(DepositMoreThanMax.selector, alice, _amount, type(uint88).max));
vm.expectRevert(
abi.encodeWithSelector(DepositMoreThanMax.selector, alice, _amount, type(uint88).max)
);
vault.deposit(_amount, alice);

vm.stopPrank();
Expand Down Expand Up @@ -415,7 +418,9 @@ contract VaultDepositTest is UnitBaseSetup, BrokenToken {
underlyingAsset.mint(alice, _amount);
underlyingAsset.approve(address(vault), type(uint256).max);

vm.expectRevert(abi.encodeWithSelector(MintMoreThanMax.selector, alice, _amount, type(uint96).max));
vm.expectRevert(
abi.encodeWithSelector(MintMoreThanMax.selector, alice, _amount, type(uint96).max)
);

vault.mint(_amount, alice);

Expand All @@ -436,7 +441,9 @@ contract VaultDepositTest is UnitBaseSetup, BrokenToken {
abi.encode(type(uint88).max)
);

vm.expectRevert(abi.encodeWithSelector(MintMoreThanMax.selector, alice, _amount, type(uint88).max));
vm.expectRevert(
abi.encodeWithSelector(MintMoreThanMax.selector, alice, _amount, type(uint88).max)
);

vault.mint(_amount, alice);

Expand Down

0 comments on commit 294f199

Please sign in to comment.