v0.2.12-pre.008-fix.001
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user