File tree 4 files changed +0
-9
lines changed
4 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -331,8 +331,6 @@ contract SFC is SFCBase, Version {
331
331
}
332
332
333
333
snapshot.epochFee = ctx.epochFee;
334
- snapshot.totalBaseRewardWeight = ctx.totalBaseRewardWeight;
335
- snapshot.totalTxRewardWeight = ctx.totalTxRewardWeight;
336
334
if (totalSupply > snapshot.epochFee) {
337
335
totalSupply -= snapshot.epochFee;
338
336
} else {
Original file line number Diff line number Diff line change @@ -316,7 +316,6 @@ contract SFCLib is SFCBase {
316
316
uint256 penalty = getSlashingPenalty (amount, isCheater, slashingRefundRatio[toValidatorID]);
317
317
delete getWithdrawalRequest[delegator][toValidatorID][wrID];
318
318
319
- totalSlashedStake += penalty;
320
319
if (amount <= penalty) {
321
320
revert StakeIsFullySlashed ();
322
321
}
Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ contract SFCState is Initializable, Ownable {
40
40
uint256 public totalStake;
41
41
// total stake of active (OK_STATUS) validators (total weight)
42
42
uint256 public totalActiveStake;
43
- // sum of penalties subtracted from successful withdrawals - TODO misleading - remove?
44
- uint256 public totalSlashedStake;
45
43
46
44
// delegator => validator ID => stashed rewards (to be claimed/restaked)
47
45
mapping (address => mapping (uint256 => Rewards)) internal _rewardsStash;
@@ -88,8 +86,6 @@ contract SFCState is Initializable, Ownable {
88
86
uint256 endTime;
89
87
uint256 endBlock;
90
88
uint256 epochFee; // gas fees from txs in the epoch
91
- uint256 totalBaseRewardWeight; // sum( stake * uptimeRatio ^ 2 ) TODO write only - remove?
92
- uint256 totalTxRewardWeight; // sum( originatedTxsFee * uptimeRatio ) TODO write only - remove?
93
89
uint256 baseRewardPerSecond; // the base reward to divide among validators for each second of the epoch
94
90
uint256 totalStake; // total weight of all validators
95
91
uint256 totalSupply; // total supply of native tokens
Original file line number Diff line number Diff line change @@ -125,8 +125,6 @@ interface SFCUnitTestI {
125
125
uint256 endTime ,
126
126
uint256 endBlock ,
127
127
uint256 epochFee ,
128
- uint256 totalBaseRewardWeight ,
129
- uint256 totalTxRewardWeight ,
130
128
uint256 _baseRewardPerSecond ,
131
129
uint256 totalStake ,
132
130
uint256 totalSupply
You can’t perform that action at this time.
0 commit comments