Skip to content

test(revenue-pool): define empty batch_distribute behavior#198

Open
quickweb-stack wants to merge 1 commit intoCalloraOrg:mainfrom
quickweb-stack:test/revenue-pool-batch-empty
Open

test(revenue-pool): define empty batch_distribute behavior#198
quickweb-stack wants to merge 1 commit intoCalloraOrg:mainfrom
quickweb-stack:test/revenue-pool-batch-empty

Conversation

@quickweb-stack
Copy link
Copy Markdown

Close: #165

Implemented the behavior change in [lib.rs] and [test.rs] : batch_distribute now panics on an empty payments vector with batch_distribute requires at least one payment, matching the vault’s batch_deduct policy and making malformed admin batch jobs fail explicitly instead of silently no-oping. I also added a short doc note at [revenue-pool-batch-distribute.md].

cargo fmt --all completed successfully. The requested cargo clippy --all-targets --all-features -- -D warnings, cargo test, and cargo build --target wasm32-unknown-unknown --release -p callora-revenue-pool all failed for an environment reason, not a contract error: the machine is out of disk space. Get-PSDrive shows only about 0.01 GB free on C:, and Rust reported repeated no space on device / There is not enough space on the disk errors while compiling dependencies. Coverage is also blocked right now because cargo tarpaulin is not installed (error: no such command: tarpaulin).

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@quickweb-stack Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@quickweb-stack
Copy link
Copy Markdown
Author

Done, Close: #198

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.

Revenue pool: define batch_distribute behavior for empty input vector

2 participants