Skip to content

fix(#274,#275,#278,#344): doc-comment audit, risk-registry docs, CI cycle guard, ArithmeticUnderflow#363

Merged
OxDev-max merged 2 commits into
OpenLedger-Foundation:mainfrom
Joel234-png:feature/issues-274-275-278-344
Jun 30, 2026
Merged

fix(#274,#275,#278,#344): doc-comment audit, risk-registry docs, CI cycle guard, ArithmeticUnderflow#363
OxDev-max merged 2 commits into
OpenLedger-Foundation:mainfrom
Joel234-png:feature/issues-274-275-278-344

Conversation

@Joel234-png

Copy link
Copy Markdown
Contributor

#274 - Bring all contracts up to marketplace's doc-comment standard:

  • access_control: full Params/Errors/Security on all 14 entrypoints
  • invoice_nft: full Params/Errors/Security on all 12 entrypoints
  • financing_pool: full Params/Errors/Security on all 19 entrypoints (fix propose_early_settlement missing block, remove duplicate one-liner on accept_early_settlement)
  • treasury: full Params/Errors/Security on all 12 entrypoints
  • risk_registry: full Params/Errors/Security on all 17 entrypoints

#275 - Document contract dependency graph and add CI cycle guard:

  • docs/ARCHITECTURE.md: acyclic dependency graph diagram + order
  • .github/workflows/ci.yml: cycle-guard job runs cargo tree on every PR and fails if a cycle is detected

#278 - Add dedicated risk registry documentation:

  • docs/risk-registry.md: verifier trust model, staking/slashing, SME registration/scoring lifecycle, debtor scoring, RiskTier thresholds, credit-limit enforcement, view functions, TTL notes

#344 - Fix undefined KoraError::ArithmeticUnderflow:

  • contracts/shared/src/errors.rs: add ArithmeticUnderflow = 91 so safe_sub compiles without error

Closes #274
Closes #275
Closes #278
Closes #344

…undation#278,OpenLedger-Foundation#344): doc-comment audit, risk-registry docs, CI cycle guard, ArithmeticUnderflow

OpenLedger-Foundation#274 - Bring all contracts up to marketplace's doc-comment standard:
  - access_control: full Params/Errors/Security on all 14 entrypoints
  - invoice_nft: full Params/Errors/Security on all 12 entrypoints
  - financing_pool: full Params/Errors/Security on all 19 entrypoints
    (fix propose_early_settlement missing block, remove duplicate
     one-liner on accept_early_settlement)
  - treasury: full Params/Errors/Security on all 12 entrypoints
  - risk_registry: full Params/Errors/Security on all 17 entrypoints

OpenLedger-Foundation#275 - Document contract dependency graph and add CI cycle guard:
  - docs/ARCHITECTURE.md: acyclic dependency graph diagram + order
  - .github/workflows/ci.yml: cycle-guard job runs cargo tree on every
    PR and fails if a cycle is detected

OpenLedger-Foundation#278 - Add dedicated risk registry documentation:
  - docs/risk-registry.md: verifier trust model, staking/slashing,
    SME registration/scoring lifecycle, debtor scoring, RiskTier
    thresholds, credit-limit enforcement, view functions, TTL notes

OpenLedger-Foundation#344 - Fix undefined KoraError::ArithmeticUnderflow:
  - contracts/shared/src/errors.rs: add ArithmeticUnderflow = 91
    so safe_sub compiles without error
@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@Joel234-png Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@OxDev-max OxDev-max merged commit 779dedb into OpenLedger-Foundation:main Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment