Skip to content

Commit

Permalink
Fix by review
Browse files Browse the repository at this point in the history
  • Loading branch information
thaarok committed Nov 8, 2024
1 parent e05967e commit 6069760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/sfc/SFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ contract SFC is Initializable, Ownable, Version {

// the number of elements the average is calculated from
uint128 n = prev.epochs + 1;
// use lemma to add new value into the average
// add new value into the average
uint128 tmp = (n - 1) * uint128(prev.averageUptime) + uint128(newValue) + prev.remainder;

cur.averageUptime = uint64(tmp / n);
Expand Down

0 comments on commit 6069760

Please sign in to comment.