Skip to content

Commit

Permalink
update return_per_1000 to have integer value
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteolaf committed Dec 15, 2023
1 parent 2765fa9 commit e491531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/subtensor/src/delegate_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl<T: Config> Pallet<T> {
let mut return_per_1000: U64F64 = U64F64::from_num(0);

if total_stake > U64F64::from_num(0) {
return_per_1000 = ( emissions_per_day * U64F64::from_num(0.82)) / (total_stake / U64F64::from_num(1000));
return_per_1000 = emissions_per_day * U64F64::from_num(820_000_000) / total_stake;
}

return DelegateInfo {
Expand Down

0 comments on commit e491531

Please sign in to comment.