We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12a0f71 + 2016b12 commit 8654557Copy full SHA for 8654557
pallets/subtensor/src/rpc_info/delegate_info.rs
@@ -65,7 +65,8 @@ impl<T: Config> Pallet<T> {
65
66
let return_per_1000: U64F64 = if total_stake > U64F64::from_num(0) {
67
emissions_per_day
68
- .saturating_mul(U64F64::from_num(0.82))
+ .saturating_mul(u16::MAX.saturating_sub(take.0).into())
69
+ .saturating_div(u16::MAX.into())
70
.saturating_div(total_stake.saturating_div(U64F64::from_num(1000)))
71
} else {
72
U64F64::from_num(0)
0 commit comments