Skip to content

feat: add initiate_swap_installment for partial payment support (#466)#608

Open
iheomadev wants to merge 1 commit into
AtomicIP:mainfrom
iheomadev:feature/466-swap-partial-payment
Open

feat: add initiate_swap_installment for partial payment support (#466)#608
iheomadev wants to merge 1 commit into
AtomicIP:mainfrom
iheomadev:feature/466-swap-partial-payment

Conversation

@iheomadev
Copy link
Copy Markdown

closes #466

…icIP#466)

- Add initiate_swap_installment() entry point for installment swaps
- Seller specifies price and num_installments hint; swap created with
  is_installment=true and paid_amount=0 in Pending state
- Buyer calls submit_installment_payment() one or more times; swap
  auto-transitions to Accepted when paid_amount >= price
- Add comprehensive tests: happy path, multi-installment flow,
  zero-installments panic guard
- Add docs/swap-partial-payment.md documenting the full API and flow
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

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

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.

Add Swap Partial Payment Support

1 participant