-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relayer DPoS #214
Comments
I think it makes sense to try to leverage pallet-collator-selection in some way, the only thing to keep in mind is, relayers won't bid with the native token to become a collator. They'll bid with their "accrued revenue", which is the revenue they've accrued relaying for hyperbridge. This revenue accrual is currently tracked in pallet-ismp-relayer, although it is deleted when relayers make a withdrawal. I think it makes sense to figure out how to use it for collator selection |
We'll need some form of identity pallet that relayers can use to associate a hyperbridge account to any number of accounts that have successfully accumulated fees in |
Thanks for the feedback @seunlanlege @Wizdave97 ! Is there a preferred way for estimating the value of the accrued fees in terms of the native asset (to represent accrued fees as stake to bid for a collator spot in Another idea is to fork |
The accrued fees are are already denominated in USD, we would not need to know the equivalent in terms of the native asset. The conditions for selecting relayers would be in the following order:
For nominations, nominators are not directly staking on relayers but are contributing their nominations to a global nomination pool, the goal is to allow any account who has some amount in the pool to receive some portion of the protocol revenue. We would use some sort of curve to gradually increase the minimum amount to be staked or nominated gradually as the network grows. |
Likely we don't need this and we can maybe track the accrued fees in pallet-assets and use |
Goal: configure simple, efficient DPoS to enable relayer revenue sharing
requirements
implementation ideas
Early idea is to add a new
pallet-delegate
which (in)directly uses/requires polkadot-sdk/collator-selection pallet (and also configurepallet-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
:pallet_delegate::Calls
:The text was updated successfully, but these errors were encountered: