Skip to content

Commit

Permalink
test: lower the rps bound range
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Oct 14, 2024
1 parent 9ff1175 commit 98c2bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/invariant/handlers/FlowCreateHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 98c2bfc

Please sign in to comment.