@@ -19,43 +19,6 @@ contract SFCLib is SFCBase {
19
19
event UpdatedSlashingRefundRatio (uint256 indexed validatorID , uint256 refundRatio );
20
20
event RefundedSlashedLegacyDelegation (address indexed delegator , uint256 indexed validatorID , uint256 amount );
21
21
22
- /*
23
- Getters
24
- */
25
-
26
- function getEpochValidatorIDs (uint256 epoch ) public view returns (uint256 [] memory ) {
27
- return getEpochSnapshot[epoch].validatorIDs;
28
- }
29
-
30
- function getEpochReceivedStake (uint256 epoch , uint256 validatorID ) public view returns (uint256 ) {
31
- return getEpochSnapshot[epoch].receivedStake[validatorID];
32
- }
33
-
34
- function getEpochAccumulatedRewardPerToken (uint256 epoch , uint256 validatorID ) public view returns (uint256 ) {
35
- return getEpochSnapshot[epoch].accumulatedRewardPerToken[validatorID];
36
- }
37
-
38
- function getEpochAccumulatedUptime (uint256 epoch , uint256 validatorID ) public view returns (uint256 ) {
39
- return getEpochSnapshot[epoch].accumulatedUptime[validatorID];
40
- }
41
-
42
- function getEpochAccumulatedOriginatedTxsFee (uint256 epoch , uint256 validatorID ) public view returns (uint256 ) {
43
- return getEpochSnapshot[epoch].accumulatedOriginatedTxsFee[validatorID];
44
- }
45
-
46
- function getEpochOfflineTime (uint256 epoch , uint256 validatorID ) public view returns (uint256 ) {
47
- return getEpochSnapshot[epoch].offlineTime[validatorID];
48
- }
49
-
50
- function getEpochOfflineBlocks (uint256 epoch , uint256 validatorID ) public view returns (uint256 ) {
51
- return getEpochSnapshot[epoch].offlineBlocks[validatorID];
52
- }
53
-
54
- function rewardsStash (address delegator , uint256 validatorID ) public view returns (uint256 ) {
55
- Rewards memory stash = _rewardsStash[delegator][validatorID];
56
- return stash.lockupBaseReward.add (stash.lockupExtraReward).add (stash.unlockedReward);
57
- }
58
-
59
22
/*
60
23
Constructor
61
24
*/
@@ -239,10 +202,6 @@ contract SFCLib is SFCBase {
239
202
emit Withdrawn (delegator, toValidatorID, 0xffffffffff , amount);
240
203
}
241
204
242
- function updateSFTMFinalizer (address v ) public onlyOwner {
243
- sftmFinalizer = v;
244
- }
245
-
246
205
function isSlashed (uint256 validatorID ) view public returns (bool ) {
247
206
return getValidator[validatorID].status & CHEATER_MASK != 0 ;
248
207
}
0 commit comments