Module sp_staking::currency_to_vote
source · Structs
- A naive implementation of
CurrencyConvertthat simply saturates all conversions. - An implementation of
CurrencyToVotetailored for chain’s that have a balance type of u128.
Traits
- A trait similar to
Convertto convert values fromBan abstract balance type into u64 and back from u128. (This conversion is used in election and other places where complex calculation over balance type is needed)