Expand description
§Dynamic Allocation Pool (DAP) Pallet
Generic issuance drip and distribution engine.
§Key Responsibilities:
- Issuance Drip: Mints new tokens on a configurable cadence (per-block or every N minutes)
based on an [
IssuanceCurve]. - Budget Distribution: Distributes minted issuance across registered
[
sp_staking::budget::BudgetRecipient]s according to a governance-updatableBoundedBTreeMap<BudgetKey, Perbill>that must sum to exactly 100%. - Burn Collection: Implements
OnUnbalancedto intercept any burn source wired to it (staking slashes, transaction fees, dust removal, EVM gas rounding, etc.) and redirect funds into the buffer account. Incoming funds are deactivated to exclude them from governance voting.
Re-exports§
pub use pallet::*;
Modules§
- benchmarking
- Benchmarks for pallet-dap.
- migrations
- DAP pallet migrations.
- pallet
- The
palletmodule in each FRAME pallet hosts the most important items needed to construct this pallet. - weights
- Autogenerated weights for
pallet_dap
Structs§
- DapLegacy
Adapter - Adapter that redirects
NegativeImbalancefrom the legacyCurrencytrait to the DAP buffer.
Constants§
- DAP_
PALLET_ ID - The [
PalletId] used to represent the central DAP pallet. - MAX_
BUDGET_ RECIPIENTS - Maximum number of budget recipients.
Type Aliases§
- Balance
Of - Type alias for balance.
- Budget
Allocation Map - Type alias for the budget allocation map.
- Credit
Of - Type alias for credit (negative imbalance - funds that were slashed/removed).