Module sp_staking::currency_to_vote

source ·

Structs§

  • A naive implementation of CurrencyConvert that simply saturates all conversions.
  • An implementation of CurrencyToVote tailored for chain’s that have a balance type of u128.

Traits§

  • A trait similar to Convert to convert values from B an 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)