From 222e40f0828c8d1e6037d36d68603302d27005e5 Mon Sep 17 00:00:00 2001 From: 0xAustrian Date: Thu, 16 May 2024 10:29:30 -0300 Subject: [PATCH] test: improve weights in assumes --- test/unit/BPool.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/BPool.t.sol b/test/unit/BPool.t.sol index 56d5865c..991ef9e4 100644 --- a/test/unit/BPool.t.sol +++ b/test/unit/BPool.t.sol @@ -1040,9 +1040,9 @@ contract BPool_Unit_JoinswapPoolAmountOut is BasePoolTest { function _assumeHappyPath(JoinswapPoolAmountOut_FuzzScenario memory _fuzz) internal view { // safe bound assumptions - _fuzz.tokenInDenorm = bound(_fuzz.tokenInDenorm, MIN_WEIGHT, MAX_WEIGHT); + _fuzz.tokenInDenorm = bound(_fuzz.tokenInDenorm, MIN_WEIGHT, MAX_WEIGHT / 2); _fuzz.swapFee = bound(_fuzz.swapFee, MIN_FEE, MAX_FEE); - _fuzz.totalWeight = bound(_fuzz.totalWeight, MIN_WEIGHT * MAX_BOUND_TOKENS, MAX_WEIGHT * MAX_BOUND_TOKENS); + _fuzz.totalWeight = bound(_fuzz.totalWeight, MIN_WEIGHT * MAX_BOUND_TOKENS, MAX_TOTAL_WEIGHT); // min vm.assume(_fuzz.totalSupply >= INIT_POOL_SUPPLY);