Ascript to sort the accounts in the last bag
for participation in the staking election
developed by Michalis Fragkiadakis
5 Polkadot
Some context
22,500 accounts can participate in NPoS election
Accounts are put in bags based on their stake
Bags are sorted based on stake but accounts in them are not
Accounts are iterated from top bag to lowest until 22,500th
The lowest stake within these 22,500 determines
*minimum_active_stake”
e Accounts below the 22,500th may have a higher stake than
*minimum_active_stake' but won't get in the active set
e Accounts with higher stake can position themselves in front of :
ones with lower with *put_in_front_of” ys
e More info in the wiki and the support page F
T
However, this was not obvious to everyday users and cau:
frustration