referrerpolicy=no-referrer-when-downgrade

Crate pallet_dap

Crate pallet_dap 

Source
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-updatable BoundedBTreeMap<BudgetKey, Perbill> that must sum to exactly 100%.
  • Burn Collection: Implements OnUnbalanced to 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 pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.
weights
Autogenerated weights for pallet_dap

Structs§

DapLegacyAdapter
Adapter that redirects NegativeImbalance from the legacy Currency trait 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§

BalanceOf
Type alias for balance.
BudgetAllocationMap
Type alias for the budget allocation map.
CreditOf
Type alias for credit (negative imbalance - funds that were slashed/removed).