Skip to content

feat(contract): implement batch payment processing (#723 - #813

Merged
Abdulazeem-code merged 4 commits into
Abdulazeem-code:mainfrom
Samuel-21-eng:feature/contract-batch-payments
Oct 6, 2026
Merged

Abdulazeem-code merged 4 commits into
Abdulazeem-code:mainfrom
Samuel-21-eng:feature/contract-batch-payments

Conversation

@Samuel-21-eng

Copy link
Copy Markdown
Contributor

DESCRIPTION:

  • Added batch_pay function in payment_router/src/lib.rs to process multiple payments in a single contract invocation.
  • Iterates through recipients and amounts, calculating platform fees and executing token transfers atomically.
  • Added input validation ensuring recipients and amounts vectors match in length.
  • Ensured atomic execution and automatic rollback on partial failures (e.g., insufficient funds).
  • Added comprehensive unit tests covering successful batch execution, length mismatch errors, and insufficient funds atomicity/revert behavior.

Closes #723

@vercel

vercel Bot commented Sep 26, 2026

Copy link
Copy Markdown

@Samuel-21-eng is attempting to deploy a commit to the Abdulazeem's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

@Samuel-21-eng 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

@Abdulazeem-code

Copy link
Copy Markdown
Owner

Kindly resolve conflicts

@Abdulazeem-code
Abdulazeem-code merged commit da542c1 into Abdulazeem-code:main Oct 6, 2026
9 of 17 checks passed
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.

Smart Contracts: Implement Batch Payment Processing

2 participants