v0.2.12-pre.008-fix.001

This commit is contained in:
2026-08-27 14:46:41 +02:00
parent f1e365ec97
commit fe46cbe3bd
8 changed files with 125 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-wallet-desk/src/wallet_balance.rs
// version: 2
// version: 3
//! Safe Wallet balance projection produced by the typed HTTP Transport path.
@@ -112,7 +112,7 @@ pub(crate) fn average_sol_usd_prices(prices: &[ksp_offchain_transport_lib::Marke
}
fn format_scaled_decimal(mut coefficient: u128, mut scale: u8) -> String {
while scale > 0 && coefficient % 10 == 0 {
while scale > 0 && coefficient.is_multiple_of(10) {
coefficient /= 10;
scale -= 1;
}