Skip to content

feat: position shares, multi-token, dispute resolution, partial repayment - #705

Merged
levi0005 merged 2 commits into
OpenLedger-Foundation:mainfrom
henrypeters:feature/issue-563-566
Aug 29, 2026
Merged

feat: position shares, multi-token, dispute resolution, partial repayment#705
levi0005 merged 2 commits into
OpenLedger-Foundation:mainfrom
henrypeters:feature/issue-563-566

Conversation

@henrypeters

@henrypeters henrypeters commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements four feature requests with minimal contract changes:

Key files

  • contracts/financing_pool/src/lib.rs — split/transfer/share sale/buy/repay_partial, share-aware distribute_yield, dispute gate in mark_default.
  • contracts/shared/src/types.rsPositionShare, ShareSaleOffer, Dispute.
  • contracts/shared/src/events.rs — share and dispute events.
  • contracts/shared/src/errors.rs — new error variants.
  • contracts/dispute_resolution/src/lib.rs — new contract.
  • contracts/marketplace/src/lib.rs — minor test-setup updates.

Testing

  • Added unit tests for split/transfer/share sale/buy/repay_partial.
  • Added multi-token listing test.
  • Updated all existing test harnesses for the new initialize signature.

Closes #563
Closes #564
Closes #565
Closes #566

…tial repayment

- Add PositionShare/ShareSaleOffer/Dispute types and events
- Implement split_position, transfer_share, list/buy_share in financing_pool
- Add repay_partial for immediate pro-rata yield distribution
- Create dispute_resolution contract with open_dispute/submit_evidence/resolve_dispute
- Integrate dispute check into financing_pool mark_default
- Update all test setups for new initialize signature
- Add multi-token support tests

Closes OpenLedger-Foundation#563, OpenLedger-Foundation#564, OpenLedger-Foundation#565, OpenLedger-Foundation#566
@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@henrypeters 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

@levi0005
levi0005 merged commit 812e9c6 into OpenLedger-Foundation:main Aug 29, 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