Skip to content

35. Fee Configuration Constraints (Hard Bounds + Rounding Guarantees) #435

@Cedarich

Description

@Cedarich

Status: Open (Wave 5 – financial)
Complexity: Medium (150 points)
Summary
Add strict bounds and rounding rules for fee calculations to prevent misconfiguration and ensure predictable results across assets.
Tasks

  • Define maximum fee bps and enforce it on-chain.
  • Implement deterministic rounding rules (floor/ceil) and document via tests.
  • Add tests for extreme values and small-amount edge cases.
  • Emit events when fee config changes with before/after snapshots.
    Acceptance Criteria
  • Fee config cannot exceed safe limits.
  • Fees are deterministic and tested across assets.
  • Fee changes are fully auditable via events.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions