[pallet-broker] Fix claim revenue behaviour for zero timeslices (#3997)
This PR adds a check that `max_timeslices > 0` and errors if not. It also adds a test for this behaviour and cleans up some misleading docs.
Showing
- prdoc/pr_3997.prdoc 16 additions, 0 deletionsprdoc/pr_3997.prdoc
- substrate/frame/broker/src/dispatchable_impls.rs 1 addition, 0 deletionssubstrate/frame/broker/src/dispatchable_impls.rs
- substrate/frame/broker/src/lib.rs 7 additions, 6 deletionssubstrate/frame/broker/src/lib.rs
- substrate/frame/broker/src/tests.rs 5 additions, 0 deletionssubstrate/frame/broker/src/tests.rs
prdoc/pr_3997.prdoc
0 → 100644
Please register or sign in to comment