Skip to content

Commit

Permalink
staking research: npos reward pool account address
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanmieghem committed Nov 18, 2021
1 parent ce22861 commit 4e7f35c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions research/pos/pos.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ This pallet also supports nominated POS (NPOS), it actually relies on it. This h

The staking pallet uses a yearly inflation curve where rewards are newly minted tokens. For tfchain this is not an option.

Instead 5% of the payed contract vales should go to a `pos_reward` account and at each payout time, 1% of the pos_reward account is distributed (minimizes variance).
Instead 5% of the payed contract vales should go to a `npos_reward` account and at each payout time, 1% of the pos_reward account is distributed (minimizes variance).

**This is no default pallet_staking functionality.**
But it should be possible by overriding the [make_payout function](https://github.com/paritytech/substrate/blob/755569d202b4007179cc250279bad55df45b5f7d/frame/staking/src/pallet/impls.rs#L223).

Currently [transaction fees are also burned](https://github.com/threefoldtech/tfchain/issues/72). This causes a little of deflation. The transaction fees should also go to the pos_reward pool.
Currently [transaction fees are also burned](https://github.com/threefoldtech/tfchain/issues/72). This causes a little of deflation. The transaction fees should also go to the npos_reward pool.

## Using vested tokens to paricipate in POS

Expand All @@ -40,3 +40,14 @@ If we run high uptime validators, why would someone else run a validator and why
Comission is the percentage the validator gets for being a validator and is taken from the payout to the nominators.

A simple way to stimulate community paricipation and decentralization is by setting the comission of our validators to a high but acceptable value. This way other validators can be preferred if they set their comission lower than ours.

## npos reward pool adress

It would be nice if the npos reward pool account address would be a human readable one that obviously has no possible private key associated with it.

Besides the fact that this is very clear, no private key that can leak or kept secret is present.

The Base58 alphabet consists of the following characters:
123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz

`NposRewardPoolAccount11....` should as such be possible, prefixed with the network type and the checksum at the end that should match according to the [SS58 format](https://docs.substrate.io/v3/advanced/ss58/).

0 comments on commit 4e7f35c

Please sign in to comment.