From fcd3220bc37dcd469403ed79170cab073d5bda0a Mon Sep 17 00:00:00 2001 From: open-junius Date: Fri, 6 Dec 2024 21:56:57 +0800 Subject: [PATCH] use into for type convert --- pallets/subtensor/src/rpc_info/delegate_info.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pallets/subtensor/src/rpc_info/delegate_info.rs b/pallets/subtensor/src/rpc_info/delegate_info.rs index 36949d0f0..cb73e8a0b 100644 --- a/pallets/subtensor/src/rpc_info/delegate_info.rs +++ b/pallets/subtensor/src/rpc_info/delegate_info.rs @@ -64,8 +64,8 @@ impl Pallet { let return_per_1000: U64F64 = if total_stake > U64F64::from_num(0) { emissions_per_day - .saturating_mul(U64F64::from_num(u16::MAX.saturating_sub(take.0))) - .saturating_div(U64F64::from_num(u16::MAX)) + .saturating_mul(u16::MAX.saturating_sub(take.0).into()) + .saturating_div(u16::MAX.into()) .saturating_div(total_stake.saturating_div(U64F64::from_num(1000))) } else { U64F64::from_num(0)