Problem Statement
Existing fuzz tests cap amount at 10^12. The i128 boundaries
(i128::MAX, i128::MIN, 0) are not exercised.
Why it matters
A tip() overflow at any cast or arithmetic step is a fatal DoS.
Technical Context
Existing proptests in src/fuzz.rs.
Expected Outcome
A fuzz that picks amounts drawn from (-1, 0, 1, i128::MAX, i128::MIN, u64::MAX, u64::MAX as i128, ...) and asserts the contract panics with
InvalidAmount or BelowMinimum rather than overflowing.
Acceptance Criteria
Files/Modules Likely Affected
Difficulty Easy. Estimated Effort S.
Labels
area:testing, area:fuzzing,
area:smart-contract-safety, priority:high
Imported from docs/open-issues-draft.md as draft issue #30 (commit 7becd4b). Original draft-order cross-references in this body have been remapped to current GitHub issue numbers at import time.
Problem Statement
Existing fuzz tests cap
amountat 10^12. Thei128boundaries(i128::MAX, i128::MIN, 0) are not exercised.
Why it matters
A
tip()overflow at any cast or arithmetic step is a fatal DoS.Technical Context
Existing proptests in
src/fuzz.rs.Expected Outcome
A fuzz that picks amounts drawn from
(-1, 0, 1, i128::MAX, i128::MIN, u64::MAX, u64::MAX as i128, ...)and asserts the contract panics withInvalidAmountorBelowMinimumrather than overflowing.Acceptance Criteria
cargo test fuzzruns ≥ 1000 cases for the new range.Files/Modules Likely Affected
src/fuzz.rsDifficulty Easy. Estimated Effort S.
Labels
area:testing,area:fuzzing,area:smart-contract-safety,priority:highImported from
docs/open-issues-draft.mdas draft issue #30 (commit7becd4b). Original draft-order cross-references in this body have been remapped to current GitHub issue numbers at import time.