-
Notifications
You must be signed in to change notification settings - Fork 50
Revenue pool: define batch_distribute behavior for empty input vector #165
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programrevenue-poolsmart-contractssorobantesting
Description
Description
Choose and implement either no-op or panic for empty payments; document rationale; align with vault batch policies if applicable.
Requirements and context
- Must be easy for admin tooling to reason about.
- Add tests proving behavior.
Suggested execution
- Fork the repo and create a branch:
git checkout -b test/revenue-pool-batch-empty - Implement changes in the Callora-Contracts Soroban workspace (
contracts/*/src/). - Run
cargo fmt,cargo clippy --all-targets --all-features -- -D warnings, andcargo testfrom the workspace root. - For WASM release builds:
cargo build --target wasm32-unknown-unknown --release -p callora-revenue-pool(adjust-pif the crate name differs).
Deliverables
lib.rs+test.rs+ short doc note.
Test and commit
- Run tests and
./scripts/coverage.sh(orcargo tarpaulinpertarpaulin.toml). - Cover edge cases; include summarized test output and brief security notes in the PR description.
Example commit message
test(revenue-pool): define empty batch_distribute behavior
Guidelines
- Minimum 95% line coverage for touched crates (workspace policy).
- Clear documentation (Rust
///on public items where applicable; repo markdown as needed). - Timeframe: 96 hours from assignment unless agreed otherwise.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programrevenue-poolsmart-contractssorobantesting