Skip to content

MIN_PAYMENT_AMOUNT = 100 is a magic number without rationale #577

Description

@therealjhay

ProblemThe minimum payment constant (lib.rs:162) has no doc explaining its derivation or policy; changing it silently changes payment viability.

  1. No rationale comment.
  2. Magic number.
  3. Policy opacity.

Solution

  • Document the rationale and add a constant test.

Acceptance Criteria

  • Rationale documented.
  • Constant tested.
  • cargo test --workspace passes.

Note for Contributors: Write a clear PR description. Show the rationale doc.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions