Skip to content

Commit 5be77a5

Browse files
authored
Remove SealEpochRewards treasury transfer status check (#89)
* Add docs for `SFC` contract * Fix lint warnings * Fix comments * Remove `SealEpochRewards` transfer status check * Fix solhint warning * Fix typo * Update comment
1 parent 351728c commit 5be77a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contracts/sfc/SFC.sol

+3-1
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,10 @@ contract SFC is Initializable, Ownable, Version {
932932
uint256 feeShare = (ctx.epochFee * c.treasuryFeeShare()) / Decimal.unit();
933933
_mintNativeToken(feeShare);
934934
(bool success, ) = treasuryAddress.call{value: feeShare, gas: 1000000}("");
935+
// solhint-disable-next-line no-empty-blocks
935936
if (!success) {
936-
revert TransferFailed();
937+
// ignore treasury transfer failure
938+
// the treasury failure must not endanger the epoch sealing
937939
}
938940
}
939941
}

0 commit comments

Comments
 (0)