Skip to content

feat(vara): raise treasury spending caps and restrict treasury calls - #5658

Draft
ukint-vs wants to merge 6 commits into
gear-tech:masterfrom
ukint-vs:treasury-v6-pr1-3-review
Draft

ukint-vs wants to merge 6 commits into
gear-tech:masterfrom
ukint-vs:treasury-v6-pr1-3-review

Conversation

@ukint-vs

@ukint-vs ukint-vs commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

"## Summary\n\n- Raise the Small Spender, Medium Spender, Big Spender and Treasurer caps to 500,000, 10 million, 50 million and 100 million VARA, respectively. Leave tipper caps and referendum tracks unchanged.\n- Block non-Root dispatch of Treasury::spend_local and Bounties::approve_bounty. Preserve Root and authorized Whitelist-to-Root dispatch, existing approvals, and the modern spend lifecycle.\n- Add TreasuryPoolOperator at SCALE index 6. It permits bond_extra, plus unbond and withdraw_unbonded only for the Treasury member. Update GSDK metadata without changing builtin proxy request encoding.\n\n## Verification\n\nRun cargo nextest run --locked -p vara-runtime --features dev -E 'test(treasury)' to run the affected treasury regressions.\n\n## Release conditions\n\nReview only. The higher treasury spending caps and the approved referendum safeguards must ship together in a published Vara runtime release. Submit only the verified Wasm from that release through governance. Recheck affected referenda, queues, confirmation deadlines and scheduled calls before proposal submission and again before enactment. Verify finalized runtime enactment before setting up the Treasury pool. Pool activation and treasury funding require separate authorization.\n"

Raise the four spender caps without changing referendum tracks or the tipper caps.
Review only. Do not enact with the old voting rules without explicit release authorization.
Filter spend_local and approve_bounty for non-Root dispatch. Preserve Root and authenticated Whitelist enactment, existing obligations, and modern spend lifecycle calls.
Append the operator proxy at SCALE index 6. Allow only bond_extra and treasury-targeted unbond and withdraw_unbonded, without changing the builtin proxy wire format.
Generate dev SDK metadata from the final runtime and preserve pre-existing pallet, call, and proxy indices.
Exercise delayed dispatch with both Any and TreasuryPoolOperator grants.
Verify that an unassigned forced type leaves the announcement intact, then check the restricted inner dispatch.
Check liquid versus locked legacy settlement, reject voiding a paid spend, and assert announced filter denials preserve custody.
- Match rustfmt for the unlocked payout control.
@ukint-vs ukint-vs changed the title feat(vara): implement Treasury v6 runtime changes feat(vara): raise treasury spending caps and restrict treasury calls Nov 27, 2026

This branch has not been deployed

No deployments
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.

1 participant