Closed borispovod closed 2 years ago
Currently we are using the following approach when announcing balances Balance = value * PONT.
Balance = value * PONT
Example:
pub const MinimumDeposit: Balance = 100 * PONT;
Would be nice to replace this calls with function, e.g.:
CurrencyId::PONT.to_units(1.5) CurrencyId::KSM.to_units(100.0)
After refactoring it should looks so:
pub const MinimumDeposit: Balance = CurrencyId::PONT.to_units(100.0);
Balance
u64
Description:
Currently we are using the following approach when announcing balances
Balance = value * PONT
.Example:
Would be nice to replace this calls with function, e.g.:
After refactoring it should looks so:
Requirenments:
Balance
inu64
if we overflow it, we should returnu64