Closed hackfisher closed 3 years ago
Yes, Power
can simplify the logic in multi-currency system.
Power
is a dynamic value. If I found a way to store the CORRECT snapshot, that we can remove the primitives/phragmen
.
Yes,
Power
can simplify the logic in multi-currency system.
Power
is a dynamic value. If I found a way to store the CORRECT snapshot, that we can remove theprimitives/phragmen
.
Let's try to clean the concepts and terminology:
pub fn power_of(stash: &T::AccountId) -> Power;
is a common used call will return Power
at the block of calling, Power
is a trait which can
The 2th and 3th will have some redundant, but will be required at scenarios like slashing.
Thus, power_of
is dynamic, Power
can be taken as the snapshot, and the assets in the snapshot as related requirement for staking/voting
To complicate for user this way, not friendly, closing it due to this disadvantage.
Some casual ideas and summaries: