Skip to content

fix(shared,risk_registry,docs): resolve issues #276 #280 #283 #343#361

Merged
OxDev-max merged 1 commit into
OpenLedger-Foundation:mainfrom
katefominmoore23:fix/issues-276-280-283-343
Jun 30, 2026
Merged

fix(shared,risk_registry,docs): resolve issues #276 #280 #283 #343#361
OxDev-max merged 1 commit into
OpenLedger-Foundation:mainfrom
katefominmoore23:fix/issues-276-280-283-343

Conversation

@katefominmoore23

Copy link
Copy Markdown
Contributor

#343: Fix duplicate KoraError discriminant 95 (EmptyBytes/Reentrancy)

  • EmptyBytes = 97, Reentrancy = 98; NoContribution keeps 95
  • Eliminates E0081 compile error and silent error misreporting
  • BREAKING: clients matching Reentrancy by raw u32 must update to 98

#283: Implement verifier-delegated sub-accounts in risk_registry

  • add_sub_account / remove_sub_account for primary verifiers
  • resolve_verifier() resolves sub-account → primary transparently
  • All SME ops by sub-accounts attributed to primary in SmeProfile.verifier
  • Added get_primary_verifier() and is_sub_account() view functions
  • require_verifier_primary() enforces delegation management is primary-only

#280: Add docs/storage-rent-cost-model.md

  • Persistent/instance/temporary tier comparison
  • TTL constants per contract with duration annotations
  • Cost projections at 1k and 10k active invoices
  • Keeper bot and archival responsibilities

#276: Add docs/treasury.md

  • fee_bps lifecycle, whitelist model, accounting ledger
  • withdraw and emergency_withdraw flow with step ordering
  • Reentrancy guard design and rolling 24h rate-limit
  • Two-step cap/upgrade timelock, full API table, storage layout
  • Security analysis: stolen key, reentrancy, non-whitelisted token

Closes #343
Closes #283
Closes #280
Closes #276

 OpenLedger-Foundation#280 OpenLedger-Foundation#283 OpenLedger-Foundation#343

OpenLedger-Foundation#343: Fix duplicate KoraError discriminant 95 (EmptyBytes/Reentrancy)
- EmptyBytes = 97, Reentrancy = 98; NoContribution keeps 95
- Eliminates E0081 compile error and silent error misreporting
- BREAKING: clients matching Reentrancy by raw u32 must update to 98

OpenLedger-Foundation#283: Implement verifier-delegated sub-accounts in risk_registry
- add_sub_account / remove_sub_account for primary verifiers
- resolve_verifier() resolves sub-account → primary transparently
- All SME ops by sub-accounts attributed to primary in SmeProfile.verifier
- Added get_primary_verifier() and is_sub_account() view functions
- require_verifier_primary() enforces delegation management is primary-only

OpenLedger-Foundation#280: Add docs/storage-rent-cost-model.md
- Persistent/instance/temporary tier comparison
- TTL constants per contract with duration annotations
- Cost projections at 1k and 10k active invoices
- Keeper bot and archival responsibilities

OpenLedger-Foundation#276: Add docs/treasury.md
- fee_bps lifecycle, whitelist model, accounting ledger
- withdraw and emergency_withdraw flow with step ordering
- Reentrancy guard design and rolling 24h rate-limit
- Two-step cap/upgrade timelock, full API table, storage layout
- Security analysis: stolen key, reentrancy, non-whitelisted token
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@katefominmoore23 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 c675c89 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

Labels

None yet

Projects

None yet

2 participants