3139ffa25e
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs) - pallet/ directories → pezpallet/ (4 locations) - Fixed pezpallet.rs self-include recursion bug - Fixed sc-chain-spec hardcoded crate name in derive macro - Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API) - Added BizinikiwiConfig type alias for zombienet tests - Deleted obsolete session state files Verified: pezsnowbridge-pezpallet-*, pezpallet-staking, pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
40 lines
1.6 KiB
Markdown
40 lines
1.6 KiB
Markdown
# Treasury Pezpallet
|
|
|
|
The Treasury pezpallet provides a "pot" of funds that can be managed by stakeholders in the system and
|
|
a structure for making spending proposals from this pot.
|
|
|
|
## Overview
|
|
|
|
The Treasury Pezpallet itself provides the pot to store funds, and a means for stakeholders to propose,
|
|
approve, and deny expenditures. The chain will need to provide a method (e.g.inflation, fees) for
|
|
collecting funds.
|
|
|
|
By way of example, the Council could vote to fund the Treasury with a portion of the block reward
|
|
and use the funds to pay developers.
|
|
|
|
### Terminology
|
|
|
|
- **Proposal:** A suggestion to allocate funds from the pot to a beneficiary.
|
|
- **Beneficiary:** An account who will receive the funds from a proposal if the proposal is
|
|
approved.
|
|
- **Deposit:** Funds that a proposer must lock when making a proposal. The deposit will be returned
|
|
or slashed if the proposal is approved or rejected respectively.
|
|
- **Pot:** Unspent funds accumulated by the treasury pezpallet.
|
|
|
|
## Interface
|
|
|
|
### Dispatchable Functions
|
|
|
|
General spending/proposal protocol:
|
|
- `spend_local` - Propose and approve a spend of treasury funds, enables the
|
|
creation of spends using the native currency of the chain, utilizing the funds
|
|
stored in the pot
|
|
- `spend` - Propose and approve a spend of treasury funds, allows spending any
|
|
asset kind managed by the treasury
|
|
- `remove_approval` - Force a previously approved proposal to be removed from
|
|
the approval queue
|
|
- `payout` - Claim a spend
|
|
- `check_status` - Check the status of the spend and remove it from the storage
|
|
if processed
|
|
- `void_spend` - Void previously approved spend
|