Skip to content

feat: support multi-account settlement splits in settle_payment#125

Merged
Pvsaint merged 2 commits into
MetroLogic:mainfrom
olawaleakanbi035-maker:feat/multi-account-settlement
Apr 27, 2026
Merged

feat: support multi-account settlement splits in settle_payment#125
Pvsaint merged 2 commits into
MetroLogic:mainfrom
olawaleakanbi035-maker:feat/multi-account-settlement

Conversation

@olawaleakanbi035-maker

Copy link
Copy Markdown
Contributor
  • Add SettlementSplit{recipient, amount} contracttype
  • Add InvalidSettlement error (code 24)
  • Replace treasury_address param with Vec
  • Validate: non-empty, all amounts > 0, total == payment.amount
  • Update integration_test call site
  • Add 5 tests: single split, multi split, mismatch, empty, zero amount

closes #119

- Add SettlementSplit{recipient, amount} contracttype
- Add InvalidSettlement error (code 24)
- Replace treasury_address param with Vec<SettlementSplit>
- Validate: non-empty, all amounts > 0, total == payment.amount
- Update integration_test call site
- Add 5 tests: single split, multi split, mismatch, empty, zero amount
@drips-wave

drips-wave Bot commented Apr 27, 2026

Copy link
Copy Markdown

@olawaleakanbi035-maker 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

@Pvsaint Pvsaint merged commit a30abaa into MetroLogic:main Apr 27, 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

Development

Successfully merging this pull request may close these issues.

Multi-Merchant Settlement

2 participants