Skip to content

Add edge case tests for maximum fee limit#180

Merged
Mosas2000 merged 1 commit intomainfrom
test/fee-edge-cases
Feb 26, 2026
Merged

Add edge case tests for maximum fee limit#180
Mosas2000 merged 1 commit intomainfrom
test/fee-edge-cases

Conversation

@Mosas2000
Copy link
Copy Markdown
Owner

Summary

Add missing boundary condition tests for the set-fee-basis-points function.

Tests Added

  • Exact max (1000 basis points): Confirms 10% fee cap is accepted and calculates correctly
  • Above max (1001 basis points): Verifies rejection with error u101
  • Zero fee: Confirms fee can be set to 0 to disable platform fees
  • Non-owner rejection: Verifies non-owners cannot modify fees

All 33 tests pass.

Closes #70

Test the maximum fee limit at exactly 1000 basis points (10%),
rejection above 1000, zero fee to disable platform fees, and
non-owner fee change rejection. All 33 tests pass.
@Mosas2000 Mosas2000 merged commit ba9df0e into main Feb 26, 2026
2 of 4 checks passed
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.

Smart contract tests do not cover edge cases for maximum fee limit

1 participant