♻️ Better bound implementation#220
Conversation
|
great work! can you run |
first time using it. i ran it and got this; didn't change anything. |
ah yup yup looks like the script wasn't setup properly, good find! |
|
Since afaik solmate now relies on forge, instead of upstreaming this why not just use the forge-std version directly? Similarly, in solmate's DSTestPlus we can remove Right now you cannot have |
bound implementation|
great work thank you so much @ZeroEkkusu !! |
|
@mds1 will remove bound once we switch to use forge-std, gotta finish reviewing andreas' PR regardless, having in here in the meantime is nice for historical reasons |
Description
Change the implementation of
boundto perfectly bound the input every time:Logic
x---->resultExamples
You can find numerous examples here.
Checklist
Ensure you completed all of the steps below before submitting your pull request:
forge snapshot?npm run lint?forge test?Pull requests with an incomplete checklist will be thrown out.