Skip to content

[TESTING & QA] Test edge case: maximum credit amount limits #420

@dev-fatima-24

Description

@dev-fatima-24

Priority: medium

Description

The system must handle attempts to mint, list, purchase, or retire amounts that exceed system limits (e.g., u64 max value, or business-defined maximums). Tests must verify that these edge cases return appropriate errors rather than panicking or overflowing.

Acceptance Criteria

  • Minting u64::MAX credits is handled gracefully (returns an error or succeeds as designed)
  • Purchasing more credits than listed returns InsufficientLiquidity
  • Retiring more credits than owned returns InsufficientCredits
  • Listing 0 credits returns ZeroAmountNotAllowed
  • All edge case tests pass in the Rust test suite

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions