3 releases (breaking)

new 0.2.0 Feb 5, 2026
0.1.1 Jan 22, 2026
0.0.0 Jan 9, 2026

#61 in Magic Beans

Download history 391/week @ 2026-01-22 364/week @ 2026-01-29

755 downloads per month
Used in 16 crates (3 directly)

Apache-2.0

2.5MB
43K SLoC

Dynamic Allocation Pool (DAP) Pallet

This pallet implements OnUnbalanced to collect funds (e.g., slashes) into a buffer account instead of burning them. The buffer account must be pre-funded with at least ED (existential deposit), e.g., via balances genesis config or a transfer. If the buffer account is not pre-funded, deposits below ED will be silently burned.

Incoming funds are deactivated to exclude them from governance voting. When DAP distributes funds (e.g., to validators, nominators, treasury, collators), those funds must be reactivated before transfer.

Future phases will add:

  • FundingSource (request_funds) for pulling funds
  • Issuance curve and minting logic
  • Distribution rules and scheduling

Dependencies

~29–50MB
~716K SLoC