From bc40137e0da33d4a5a3c1aa87725337ff68d0ff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20Dorado=20Su=C3=A1rez?= Date: Mon, 16 Dec 2024 21:21:51 -0500 Subject: [PATCH] fix: clippy and update CHANGELOG.md --- CHANGELOG.md | 1 + relay/kusama/src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0eff501227..f1568b27e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/relay/kusama/src/lib.rs b/relay/kusama/src/lib.rs index e01459a7e8..a561bd0cf6 100644 --- a/relay/kusama/src/lib.rs +++ b/relay/kusama/src/lib.rs @@ -877,11 +877,11 @@ impl OnUnbalanced 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) } }