diff --git a/contracts/sfc/SFC.sol b/contracts/sfc/SFC.sol index 159f91f..aa6e69c 100644 --- a/contracts/sfc/SFC.sol +++ b/contracts/sfc/SFC.sol @@ -1014,6 +1014,7 @@ contract SFC is OwnableUpgradeable, UUPSUpgradeable, Version { if (cur.averageUptime > Decimal.unit()) { cur.averageUptime = uint64(Decimal.unit()); + cur.remainder = 0; // reset the remainder when capping the averageUptime } if (prev.epochs < c.averageUptimeEpochWindow()) { cur.epochs = prev.epochs + 1;