pontem-network / pontem

🚀 Pontem Parachain node with Move VM onboard.
https://pontem.network
Apache License 2.0
77 stars 43 forks source link

Refactor balances (value * PONT) #141

Closed borispovod closed 2 years ago

borispovod commented 2 years ago

Description:

Currently we are using the following approach when announcing balances 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);

Requirenments: