Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAustrian committed May 16, 2024
1 parent 3333d8a commit 1c53d69
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/unit/BPool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ abstract contract BasePoolTest is Test, BConst, Utils, BMath {
uint256 _totalWeight,
uint256 _poolAmountIn,
uint256 _swapFee
) internal view {
) internal pure {
uint256 _normalizedWeight = bdiv(_tokenOutDenorm, _totalWeight);
uint256 _exitFee = bsub(BONE, EXIT_FEE);
vm.assume(_poolAmountIn < type(uint256).max / _exitFee);
Expand Down Expand Up @@ -1194,7 +1194,7 @@ contract BPool_Unit_ExitswapPoolAmountIn is BasePoolTest {
_setTotalWeight(_fuzz.totalWeight);
}

function _assumeHappyPath(ExitswapPoolAmountIn_FuzzScenario memory _fuzz) internal view {
function _assumeHappyPath(ExitswapPoolAmountIn_FuzzScenario memory _fuzz) internal pure {
// safe bound assumptions
_fuzz.tokenOutDenorm = bound(_fuzz.tokenOutDenorm, MIN_WEIGHT, MAX_WEIGHT);
_fuzz.swapFee = bound(_fuzz.swapFee, MIN_FEE, MAX_FEE);
Expand Down Expand Up @@ -1229,9 +1229,6 @@ contract BPool_Unit_ExitswapPoolAmountIn is BasePoolTest {
_fuzz.swapFee
);

// TODO: is needed?
vm.assume(_tokenAmountOut > 0);

// max
vm.assume(_fuzz.tokenOutBalance < type(uint256).max - _tokenAmountOut);

Expand Down

0 comments on commit 1c53d69

Please sign in to comment.