Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed May 9, 2024
1 parent cab6918 commit 81c7218
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pallets/dapp-staking-v3/src/lib.rs
Expand Up @@ -1783,10 +1783,8 @@ pub mod pallet {
.iter()
.skip(dapp_tiers.len())
.take(*tier_capacity as usize)
.take_while(|(_, amount)| tier_threshold.is_satisfied(*amount))
{
if !tier_threshold.is_satisfied(*staked_amount) {
break;
}
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 81c7218

Please sign in to comment.