Skip to content

Commit 77ab0c7

Browse files
committed
chore: better getter name in dispute manager
Signed-off-by: Tomás Migone <[email protected]>
1 parent 4f60b0c commit 77ab0c7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/subgraph-service/contracts/DisputeManager.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ contract DisputeManager is
290290
}
291291

292292
/// @inheritdoc IDisputeManager
293-
function getVerifierCut() external view override returns (uint32) {
293+
function getFishermanRewardCut() external view override returns (uint32) {
294294
return fishermanRewardCut;
295295
}
296296

packages/subgraph-service/contracts/SubgraphService.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,11 @@ contract SubgraphService is
441441

442442
/**
443443
* @notice Getter for the accepted verifier cut range for provisions
444-
* @return The minimum verifier cut which is defined by {DisputeManager-getVerifierCut}
444+
* @return The minimum verifier cut which is defined by the fisherman reward cut {DisputeManager-getFishermanRewardCut}
445445
* @return The maximum is 100% in PPM
446446
*/
447447
function _getVerifierCutRange() internal view override returns (uint32, uint32) {
448-
return (_disputeManager().getVerifierCut(), DEFAULT_MAX_VERIFIER_CUT);
448+
return (_disputeManager().getFishermanRewardCut(), DEFAULT_MAX_VERIFIER_CUT);
449449
}
450450

451451
/**

packages/subgraph-service/contracts/interfaces/IDisputeManager.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,10 @@ interface IDisputeManager {
498498
// -- Getters --
499499

500500
/**
501-
* @notice Get the verifier cut.
502-
* @return Verifier cut in percentage (ppm)
501+
* @notice Get the fisherman reward cut.
502+
* @return Fisherman reward cut in percentage (ppm)
503503
*/
504-
function getVerifierCut() external view returns (uint32);
504+
function getFishermanRewardCut() external view returns (uint32);
505505

506506
/**
507507
* @notice Get the dispute period.

0 commit comments

Comments
 (0)