Skip to content

Commit

Permalink
fix: make clippy happy and update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Dec 17, 2024
1 parent ae2cf32 commit db30521
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed

- Kusama Treasury: remove funding to the Kappa Sigma Mu Society and disable burn ([polkadot-fellows/runtimes#507](https://github.com/polkadot-fellows/runtimes/pull/507))
- Kusama Treasury: allow burn parameters to be set via OpenGov ([polkadot-fellows/runtimes#511](https://github.com/polkadot-fellows/runtimes/pull/511))

#### From [#490](https://github.com/polkadot-fellows/runtimes/pull/490)

Expand Down
8 changes: 4 additions & 4 deletions relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ parameter_types! {
pub const MaxPeerInHeartbeats: u32 = 10_000;
}

use frame_support::traits::{Currency, Imbalance, OnUnbalanced};
use frame_support::traits::{Currency, OnUnbalanced};

pub type BalancesNegativeImbalance = <Balances as Currency<AccountId>>::NegativeImbalance;
pub struct TreasuryBurnHandler;
Expand All @@ -877,11 +877,11 @@ impl OnUnbalanced<BalancesNegativeImbalance> for TreasuryBurnHandler {
if let Some(TreasuryBurnParameters { account, .. }) =
dynamic_params::treasury::BurnParameters::get()
{
let _numeric_amount = amount.peek();
// Must resolve into existing but better to be safe.
let _ = Balances::resolve_creating(&account, amount);
Balances::resolve_creating(&account, amount);
} else {
//
// If no account to destinate the funds to, just drop the
// imbalance.
<() as OnUnbalanced<_>>::on_nonzero_unbalanced(amount)
}
}
Expand Down

0 comments on commit db30521

Please sign in to comment.