Independence Note: Execute solely using Rust native u32 comparison logic.
Context:
When processing buffered payouts in a batch, we must limit the count per call to stay within the Soroban gas bounds.
Objective:
Restrict the maximum size of a single payout batch call.
Acceptance Criteria:
Technical Pointers:
- Clamping input is safer than outright panicking if the user accidentally submits a huge number.
Independence Note: Execute solely using Rust native
u32comparison logic.Context:
When processing buffered payouts in a batch, we must limit the count per call to stay within the Soroban gas bounds.
Objective:
Restrict the maximum size of a single payout batch call.
Acceptance Criteria:
MAX_BATCH_SIZE = 25.process_payout_batch(count), assert thatcount <= MAX_BATCH_SIZE.MAX_BATCH_SIZEamount and log the remainder.Technical Pointers: