Skip to content

feat: add batch allocation entrypoint#534

Closed
dangelo352 wants to merge 1 commit into
Commitlabs-Org:masterfrom
dangelo352:feature/batch-allocation-476
Closed

feat: add batch allocation entrypoint#534
dangelo352 wants to merge 1 commit into
Commitlabs-Org:masterfrom
dangelo352:feature/batch-allocation-476

Conversation

@dangelo352

Copy link
Copy Markdown

Summary

  • add BatchAllocateParams/BatchAllocateResult plus admin-gated batch_allocate using shared BatchProcessor limits and BatchMode semantics
  • keep single allocate behavior shared through an internal allocation helper, with distinct caller auth handling for batch items
  • preflight Atomic mode against simulated pool liquidity so failures do not write partial allocations
  • add BestEffort partial-failure reporting, capacity-failure coverage, empty/max-batch tests, and benchmark entrypoint coverage
  • document batch allocation semantics and limits

Fixes #476

Tests

  • CARGO_TARGET_DIR=/tmp/commitlabs-batch-allocation-target cargo test -p allocation_logic batch_allocate -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-batch-allocation-target cargo test -p allocation_logic allocate -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-batch-allocation-target cargo test -p allocation_logic rebalance -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-batch-allocation-bench-target cargo test -p allocation_logic --features benchmark benchmark_batch_allocate -- --nocapture

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.

Add batch-allocation entrypoint to allocation_logic for multi-commitment deposits

2 participants