hyperbridge icon indicating copy to clipboard operation
hyperbridge copied to clipboard

Relayer DPoS

Open 4meta5 opened this issue 9 months ago • 5 comments

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

4meta5 avatar May 15 '24 00:05 4meta5