[822] General: Add cargo-fuzz harness for vault share-price math - #833
Merged
Junirezz merged 9 commits intoJun 26, 2026
Conversation
|
@Max-Owolabi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Extract host-buildable share-price-math crate, wire libFuzzer target with seed corpus and invariants, and add CI fuzz job. Closes Junirezz#822 Co-authored-by: Cursor <cursoragent@cursor.com>
Max-Owolabi
force-pushed
the
fix/822-general-add-cargo-fuzz-harness-for-vault-share-price-math
branch
from
June 24, 2026 22:18
42ba1d4 to
6deca0c
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…on for CI. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…bucketing. Co-authored-by: Cursor <cursoragent@cursor.com>
…rve cursor state. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
contracts/vault/fuzz/libFuzzer crate withshare_price_mathtarget wired to sharedfuzz_invariantsmoduletry_assets_to_shares/try_shares_to_assetshelpers inmath.rsfor fuzz and proptest reusefuzz/corpus/share_price_math/) and JSON fixtures (fuzz/seed_fixtures/)rust-wasm.ymlandrust-security.ymlCI workflowsCloses #822
Test plan
cargo test --all-features --workspaceincontracts/(CI)cargo +nightly fuzz run share_price_math -- -max_total_time=60(CI)fuzz_math.rscontinues to pass