Skip to content

Commit b57130f

Browse files
committed
Remove unused variable
1 parent a0e4165 commit b57130f

File tree

1 file changed

+1
-4
lines changed
  • primitives/share-pool/src

1 file changed

+1
-4
lines changed

primitives/share-pool/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,10 @@ where
150150
.saturating_sub(U64F64::saturating_from_num(shares_per_update.neg()));
151151
let mut new_share = current_share
152152
.saturating_sub(U64F64::saturating_from_num(shares_per_update.neg()));
153-
let shares_per_update_u64f64 = U64F64::saturating_from_num(shares_per_update.neg());
154153

155154
// The condition here is either the share remainder is too little OR
156155
// the new_denominator is too low compared to what shared_value + year worth of emissions would be
157-
if (new_share
158-
.safe_div(current_share)
159-
< U64F64::saturating_from_num(0.00001))
156+
if (new_share.safe_div(current_share) < U64F64::saturating_from_num(0.00001))
160157
|| shared_value
161158
.saturating_add(U64F64::saturating_from_num(2_628_000_000_000_000_u64))
162159
.checked_div(new_denominator)

0 commit comments

Comments
 (0)