Skip to content

Feat(vault): atomic batch_deduct with tests - #305

Merged
greatest0fallt1me merged 3 commits into
CalloraOrg:mainfrom
IjayAbby:feature/vault-batch-deduct
Apr 24, 2026
Merged

Feat(vault): atomic batch_deduct with tests#305
greatest0fallt1me merged 3 commits into
CalloraOrg:mainfrom
IjayAbby:feature/vault-batch-deduct

Conversation

@IjayAbby

Copy link
Copy Markdown
Contributor

closes #226


Description

batch_deduct must be all-or-nothing: validate the full batch, then apply state updates and external transfers consistently; emit one deduct event per item only on success.

Deliverables

  • lib.rs + test.rs: success, fail mid-batch, empty batch behavior, per-item max exceed.
  • Update INVARIANTS.md batch section if needed.

@drips-wave

drips-wave Bot commented Apr 24, 2026

Copy link
Copy Markdown

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

@greatest0fallt1me
greatest0fallt1me merged commit d1bdc9a into CalloraOrg:main Apr 24, 2026
0 of 3 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.

Vault: batch_deduct atomicity and per-item limits

2 participants