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
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 callinglib.rs::charge().Requirements and context
batch.rsto reuse the same fee-aware charge pathChargeResultvariants still work correctlySuggested execution
contract/src/batch.rscontract/src/test.rsAcceptance criteria
cargo testpasses