Skip to content

Commit

Permalink
use into for type convert
Browse files Browse the repository at this point in the history
  • Loading branch information
open-junius committed Dec 6, 2024
1 parent 8710131 commit fcd3220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/subtensor/src/rpc_info/delegate_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ impl<T: Config> Pallet<T> {

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)
Expand Down

0 comments on commit fcd3220

Please sign in to comment.