Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make sanity public
  • Loading branch information
kianenigma committed Aug 8, 2022
commit a07d2db2b38e1b499659e0bc09ae209fd82a8cb6
4 changes: 2 additions & 2 deletions frame/nomination-pools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,6 @@ impl<T: Config> RewardPool<T> {
id: PoolId,
bonded_points: BalanceOf<T>,
) -> Result<T::RewardCounter, Error<T>> {
dbg!(&self, &bonded_points);
let balance = Self::current_balance(id);
let payouts_since_last_record = balance
.saturating_add(self.total_rewards_claimed)
Expand Down Expand Up @@ -1106,7 +1105,7 @@ impl<T: Config> SubPools<T> {
}

/// The sum of all unbonding balance, regardless of whether they are actually unlocked or not.
#[cfg(any(test, debug_assertions))]
#[cfg(any(feature = "std", test, debug_assertions))]
fn sum_unbonding_balance(&self) -> BalanceOf<T> {
self.no_era.balance.saturating_add(
self.with_era
Expand Down Expand Up @@ -2470,6 +2469,7 @@ impl<T: Config> Pallet<T> {
sum_unbonding_balance
);
}

Ok(())
}

Expand Down