Skip to content

Commit 8742aa7

Browse files
Update primitives/share-pool/src/lib.rs
Co-authored-by: Cameron Fairchild <[email protected]>
1 parent 5c5d232 commit 8742aa7

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

primitives/share-pool/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ where
154154

155155
// The condition here is either the share remainder is too little OR
156156
// the new_denominator is too low compared to what shared_value + year worth of emissions would be
157-
if (current_share
158-
.saturating_sub(shares_per_update_u64f64)
157+
if (new_share
159158
.safe_div(current_share)
160159
< U64F64::saturating_from_num(0.00001))
161160
|| shared_value

0 commit comments

Comments
 (0)