hyperbridge
hyperbridge copied to clipboard
Relayer DPoS
Goal: configure simple, efficient DPoS to enable relayer revenue sharing
requirements
- use accrued relayer fees for collator stake
- permissionless delegations
- slashing?
implementation ideas
Early idea is to add a new pallet-delegate
which (in)directly uses/requires polkadot-sdk/collator-selection pallet (and also configure pallet-collator-selection
in the runtime). Building on this pallet for the initial implementation is safe because it is already audited as well as tested by widespread ecosystem usage.
pallet_delegate::Config
:
- Currency
- MinDelegation
pallet_delegate::Calls
:
- delegate: increase/initiate delegation
- undelegate: decrease/remove delegation