File tree 4 files changed +4
-14
lines changed
packages/subgraph-service
4 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -370,14 +370,6 @@ contract DisputeManager is
370
370
return fishermanRewardCut;
371
371
}
372
372
373
- /**
374
- * @notice Get the dispute period.
375
- * @return Dispute period in seconds
376
- */
377
- function getDisputePeriod () external view override returns (uint64 ) {
378
- return disputePeriod;
379
- }
380
-
381
373
/**
382
374
* @notice Get the stake snapshot for an indexer.
383
375
* @param indexer The indexer address
Original file line number Diff line number Diff line change @@ -461,11 +461,11 @@ contract SubgraphService is
461
461
/**
462
462
* @notice Getter for the accepted thawing period range for provisions
463
463
* @dev This override ensures {ProvisionManager} uses the thawing period from the {DisputeManager}
464
- * @return min The minimum thawing period which is defined by {DisputeManager-getDisputePeriod }
464
+ * @return min The minimum thawing period which is defined by {DisputeManager-disputePeriod }
465
465
* @return max The maximum is unbounded
466
466
*/
467
467
function _getThawingPeriodRange () internal view override returns (uint64 min , uint64 max ) {
468
- uint64 disputePeriod = _disputeManager ().getDisputePeriod ();
468
+ uint64 disputePeriod = _disputeManager ().disputePeriod ();
469
469
return (disputePeriod, type (uint64 ).max);
470
470
}
471
471
@@ -535,7 +535,7 @@ contract SubgraphService is
535
535
if (tokensCollected > 0 ) {
536
536
// lock stake as economic security for fees
537
537
uint256 tokensToLock = tokensCollected * stakeToFeesRatio;
538
- uint256 unlockTimestamp = block .timestamp + _disputeManager ().getDisputePeriod ();
538
+ uint256 unlockTimestamp = block .timestamp + _disputeManager ().disputePeriod ();
539
539
_lockStake (indexer, tokensToLock, unlockTimestamp);
540
540
541
541
if (tokensCurators > 0 ) {
Original file line number Diff line number Diff line change @@ -216,8 +216,6 @@ interface IDisputeManager {
216
216
217
217
function getVerifierCut () external view returns (uint32 );
218
218
219
- function getDisputePeriod () external view returns (uint64 );
220
-
221
219
function isDisputeCreated (bytes32 disputeId ) external view returns (bool );
222
220
223
221
function encodeReceipt (Attestation.Receipt memory receipt ) external view returns (bytes32 );
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ contract SubgraphServiceTest is SubgraphServiceSharedTest {
325
325
LinkedList.List memory claimsList = _getClaimList (_indexer);
326
326
bytes32 claimId = _buildStakeClaimId (_indexer, claimsList.nonce - 1 );
327
327
IDataServiceFees.StakeClaim memory stakeClaim = _getStakeClaim (claimId);
328
- uint64 disputePeriod = disputeManager.getDisputePeriod ();
328
+ uint64 disputePeriod = disputeManager.disputePeriod ();
329
329
assertEq (stakeClaim.tokens, tokensToLock);
330
330
assertEq (stakeClaim.createdAt, block .timestamp );
331
331
assertEq (stakeClaim.releaseAt, block .timestamp + disputePeriod);
You can’t perform that action at this time.
0 commit comments