From 98c2bfce2040e47c99c3515a32e87857a60d84e8 Mon Sep 17 00:00:00 2001 From: andreivladbrg Date: Mon, 14 Oct 2024 16:13:48 +0300 Subject: [PATCH] test: lower the rps bound range --- tests/invariant/handlers/FlowCreateHandler.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/invariant/handlers/FlowCreateHandler.sol b/tests/invariant/handlers/FlowCreateHandler.sol index 5772b2fa..17cd473e 100644 --- a/tests/invariant/handlers/FlowCreateHandler.sol +++ b/tests/invariant/handlers/FlowCreateHandler.sol @@ -137,11 +137,11 @@ contract FlowCreateHandler is BaseHandler { // For 18 decimal, check the rate per second is within a realistic range. if (decimals == 18) { - vm.assume(params.ratePerSecond > 0.00001e18 && params.ratePerSecond <= UINT128_MAX / 30 days); + vm.assume(params.ratePerSecond > 0.00001e18 && params.ratePerSecond <= 1e18); } // For all other decimals, choose the minimum rps such that it takes 100 seconds to stream 1 token. else { - vm.assume(params.ratePerSecond > mvt / 100 && params.ratePerSecond <= UINT128_MAX / 30 days); + vm.assume(params.ratePerSecond > mvt / 100 && params.ratePerSecond <= 1e18); } } }