File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
primitives/share-pool/src Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -150,13 +150,10 @@ where
150
150
. saturating_sub ( U64F64 :: saturating_from_num ( shares_per_update. neg ( ) ) ) ;
151
151
let mut new_share = current_share
152
152
. saturating_sub ( U64F64 :: saturating_from_num ( shares_per_update. neg ( ) ) ) ;
153
- let shares_per_update_u64f64 = U64F64 :: saturating_from_num ( shares_per_update. neg ( ) ) ;
154
153
155
154
// The condition here is either the share remainder is too little OR
156
155
// 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 ) )
160
157
|| shared_value
161
158
. saturating_add ( U64F64 :: saturating_from_num ( 2_628_000_000_000_000_u64 ) )
162
159
. checked_div ( new_denominator)
You can’t perform that action at this time.
0 commit comments