cennznet / plug-blockchain

PL^G: a framework for building customised blockchains
GNU General Public License v3.0
11 stars 3 forks source link

Support multi-token economic model for staking #59

Closed jordy25519 closed 5 years ago

jordy25519 commented 5 years ago

This PR allows staking reward payouts in different currencies

It adds the RewardCurrency type to staking Trait to allow reward payment in potentially different currency.

Currency is a term used in the staking module but can be thought of as simply a different asset or token type.

It re-implements the previous changes with the addition of fixing the TODO. This means the reward currency can still be the staked currency and the rewarded amount will be re-staked if that is the stakers preferred payment account.

Closes #41 and #58

jordy25519 commented 5 years ago

@elim0322 test step timed out part way through but otherwise build and run ok