Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed May 9, 2024
1 parent 81c7218 commit 8fef6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/dapp-staking-v3/src/lib.rs
Expand Up @@ -1782,8 +1782,8 @@ pub mod pallet {
for (dapp_id, staked_amount) in dapp_stakes
.iter()
.skip(dapp_tiers.len())
.take(*tier_capacity as usize)
.take_while(|(_, amount)| tier_threshold.is_satisfied(*amount))
.take(*tier_capacity as usize)
{
let rank = RankedTier::find_rank(lower_bound, upper_bound, *staked_amount);
tier_slots.insert(*dapp_id, RankedTier::new_saturated(tier_id as u8, rank));
Expand Down

0 comments on commit 8fef6b6

Please sign in to comment.