Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypan committed Oct 28, 2024
1 parent 37c3347 commit e244859
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pallets/parachain-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2639,9 +2639,9 @@ pub mod pallet {
let ed = <T::Currency as frame_support::traits::fungible::Inspect<T::AccountId>>::minimum_balance();
let issue_number = if ed == T::CurrencyBalance::from(0 as u32) {
T::Currency::reducible_balance(&pot, Preservation::Preserve, Fortitude::Polite)
// Avoid the pot complaint no balance there
.checked_sub(&T::CurrencyBalance::from(10 as u32))
.unwrap_or_else(Zero::zero)
// Avoid the pot complaint no balance there
.checked_sub(&T::CurrencyBalance::from(10 as u32))
.unwrap_or_else(Zero::zero)
} else {
T::Currency::reducible_balance(&pot, Preservation::Preserve, Fortitude::Polite)
};
Expand Down

0 comments on commit e244859

Please sign in to comment.