You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note - Example of Perbill to Percent transformation: 35_700_000 = 3.57%
TierConfig storage value: TiersConfiguration type is refactored
number_of_slots field is removed,
tier_thresholds field type is refactored from a vector of TierThresholds to a vector of Balances (u128).
This simplifies tier threshold amounts parsing as now item 0 of the vector refers to tier 1's threshold, item 1 to tier 2's threshold, and so on. The total number of slots can still be compute summing all items in slots_per_tier vector.
The text was updated successfully, but these errors were encountered:
This PR will be merged soon. For additional context, a forum post explains the motivation.
This feature introduces a storage migration from v7 to v8 for pallet dappStaking.
Here are the small breaking changes introduced on types:
TierThreshold
enum is updatedNote - Example of Perbill to Percent transformation: 35_700_000 = 3.57%
TierConfig
storage value:TiersConfiguration
type is refactorednumber_of_slots
field is removed,tier_thresholds
field type is refactored from a vector ofTierThreshold
s to a vector ofBalance
s (u128).This simplifies tier threshold amounts parsing as now item 0 of the vector refers to tier 1's threshold, item 1 to tier 2's threshold, and so on. The total number of slots can still be compute summing all items in
slots_per_tier
vector.The text was updated successfully, but these errors were encountered: