Skip to content

Commit 5557c5e

Browse files
committed
chore: remove named returns
Signed-off-by: Tomás Migone <[email protected]>
1 parent 77ab0c7 commit 5557c5e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Diff for: packages/horizon/contracts/data-service/utilities/ProvisionManager.sol

+9-9
Original file line numberDiff line numberDiff line change
@@ -266,28 +266,28 @@ abstract contract ProvisionManager is Initializable, GraphDirectory, ProvisionMa
266266

267267
/**
268268
* @notice Gets the range for the provision tokens.
269-
* @return min The minimum allowed value for the provision tokens.
270-
* @return max The maximum allowed value for the provision tokens.
269+
* @return The minimum allowed value for the provision tokens.
270+
* @return The maximum allowed value for the provision tokens.
271271
*/
272-
function _getProvisionTokensRange() internal view virtual returns (uint256 min, uint256 max) {
272+
function _getProvisionTokensRange() internal view virtual returns (uint256, uint256) {
273273
return (_minimumProvisionTokens, _maximumProvisionTokens);
274274
}
275275

276276
/**
277277
* @notice Gets the range for the thawing period.
278-
* @return min The minimum allowed value for the thawing period.
279-
* @return max The maximum allowed value for the thawing period.
278+
* @return The minimum allowed value for the thawing period.
279+
* @return The maximum allowed value for the thawing period.
280280
*/
281-
function _getThawingPeriodRange() internal view virtual returns (uint64 min, uint64 max) {
281+
function _getThawingPeriodRange() internal view virtual returns (uint64, uint64) {
282282
return (_minimumThawingPeriod, _maximumThawingPeriod);
283283
}
284284

285285
/**
286286
* @notice Gets the range for the verifier cut.
287-
* @return min The minimum allowed value for the max verifier cut.
288-
* @return max The maximum allowed value for the max verifier cut.
287+
* @return The minimum allowed value for the max verifier cut.
288+
* @return The maximum allowed value for the max verifier cut.
289289
*/
290-
function _getVerifierCutRange() internal view virtual returns (uint32 min, uint32 max) {
290+
function _getVerifierCutRange() internal view virtual returns (uint32, uint32) {
291291
return (_minimumVerifierCut, _maximumVerifierCut);
292292
}
293293

Diff for: packages/horizon/contracts/staking/HorizonStakingBase.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ abstract contract HorizonStakingBase is
7474
}
7575

7676
/// @inheritdoc IHorizonStakingBase
77-
function getIdleStake(address serviceProvider) external view override returns (uint256 tokens) {
77+
function getIdleStake(address serviceProvider) external view override returns (uint256) {
7878
return _getIdleStake(serviceProvider);
7979
}
8080

0 commit comments

Comments
 (0)