Skip to content

Add batch_charge fee support #201

@orunganiekan

Description

@orunganiekan

Complexity: High (200 points)

Description
batch::batch_charge() calls the internal charge logic but bypasses the fee deduction added in issue #1 because it duplicates charge logic rather than calling lib.rs::charge().

Requirements and context

  • Refactor batch.rs to reuse the same fee-aware charge path
  • Ensure ChargeResult variants still work correctly
  • Add test: batch charge with fee configured deducts fee per user

Suggested execution

git checkout -b feat/batch-charge-fee
  • Edit contract/src/batch.rs
  • Add test to contract/src/test.rs

Acceptance criteria

  • cargo test passes
  • Fee applied consistently in batch and single charge

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions