Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions TEST_OUTPUT.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ When validating limits, specifically boundaries, off-by-one errors frequently ha
- **Invoice Amount**: Prevented an off-by-one vulnerability where `min_invoice_amount` check in `admin.rs` and `init.rs` only validated `cfg.min_invoice_amount == 0`. It was fixed to `cfg.min_invoice_amount <= 0` to properly reject negative invalid bounds.
- **Due Date**: The `max_due_date_days` has been rigorously verified to allow exactly `730` but fail securely at `731`.
- **Business Capacity**: Validated the `max_invoices_per_business` boundary. For a limit $N$, the protocol properly permits the $N^{th}$ creation and completely blocks the $(N+1)^{th}$ creation, preventing state exhaustion.

4 changes: 4 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@
- [ ] Run `cargo test -p quicklendx-contracts --lib` to verify all 9 tests pass
- [ ] Run `cargo clippy --workspace --all-targets -- -D warnings`





Loading