Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builld: upgrade to PRBMath V4 and update minimum pragma #432

Merged
merged 11 commits into from
Apr 13, 2023
Merged

Conversation

PaulRBerg
Copy link
Member

@PaulRBerg PaulRBerg commented Apr 13, 2023

This PR makes four significant changes:

  1. Upgrades to PRBMath v4, which contains the fix for https://github.com/cantinasec/sablier/issues/2 and https://github.com/cantinasec/sablier/issues/1.
  2. Bumps all other submodules to their most recent versions.
  3. Increases the minimum Solidity pragma to v0.8.19, since this is a requirement of PRBMath V4.
  4. Adds a test to prove the monotonicity of the streamedAmountOf function (Write fuzz test that shows streamedAmountOf is a monotonic function #421)

@andreivladbrg, you can start reviewing this, though FYI I have also started working on #421, and I would like to include that test in this PR.

Update: I just pushed a commit to address #421 by adding a test that verifies the monotonicity of the streamedAmountOf function. The PR is ready to be merged now, subject to your review, @andreivladbrg.

andreivladbrg

This comment was marked as off-topic.

@PaulRBerg

This comment was marked as off-topic.

@andreivladbrg

This comment was marked as off-topic.

@PaulRBerg

This comment was marked as off-topic.

@PaulRBerg
Copy link
Member Author

I ran the monotonicity test on main, and it failed as expected:

https://app.warp.dev/block/1VaIFbZoyyUwZYc17lNAhV

@PaulRBerg PaulRBerg mentioned this pull request Apr 13, 2023
@andreivladbrg
Copy link
Member

I ran the monotonicity test on main, and it failed as expected:

It was indeed a critical issue.

PaulRBerg and others added 10 commits April 13, 2023 23:07
build: bump "forge-std" submodule
build: bump "prb-contracts" submodule
build: bump "prb-test" submodule
build: bump "prettier" Node.js dep
chore: use "rm -rf" in "clean" script
docs: add new keyword in "package.json"
test: document more invariants
test: add more context in comments
test: disable protocol fee in "setUp" function
test: fuzz segments in all "streamedAmountOf" fuzz tests
test: rename fuzzing helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants