Supposed to use bound for most things,
Only use vm.assume for very narrow checks
For broad checks, such as ensuring a uint256 falls within a certain range, you can bound your input with the modulo operator or Forge Standard's boundarrow-up-right method.
uint256
bound
https://book.getfoundry.sh/cheatcodes/assume.htmlarrow-up-right
Last updated 3 years ago