@@ -13,10 +13,7 @@ import { PPMMath } from "../libraries/PPMMath.sol";
13
13
import { LinkedList } from "../libraries/LinkedList.sol " ;
14
14
15
15
import { HorizonStakingBase } from "./HorizonStakingBase.sol " ;
16
-
17
- /**
18
- * @title HorizonStaking contract
19
- * @notice The {HorizonStaking} contract allows service providers to stake and provision tokens to verifiers to be used
16
+ e The {HorizonStaking} contract allows service providers to stake and provision tokens to verifiers to be used
20
17
* as economic security for a service . It also allows delegators to delegate towards a service provider provision .
21
18
* @dev Implements the {IHorizonStakingMain} interface.
22
19
* @dev This is the main Staking contract in The Graph protocol after the Horizon upgrade .
@@ -361,7 +358,7 @@ contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain {
361
358
) {
362
359
tokensToWithdraw = delegation.__DEPRECATED_tokensLocked;
363
360
}
364
- require (tokensToWithdraw > 0 , " !tokens " );
361
+ require (tokensToWithdraw > 0 , HorizonStakingNothingToWithdraw () );
365
362
366
363
// Reset lock
367
364
delegation.__DEPRECATED_tokensLocked = 0 ;
@@ -402,7 +399,7 @@ contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain {
402
399
verifierDestination
403
400
)
404
401
);
405
- require (success, " Delegatecall: legacySlash failed " );
402
+ require (success, HorizonStakingLegacySlashFailed () );
406
403
return ;
407
404
}
408
405
@@ -562,6 +559,15 @@ contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain {
562
559
return _isAuthorized (serviceProvider, verifier, operator);
563
560
}
564
561
562
+ /*
563
+ * GETTERS
564
+ */
565
+
566
+ /// @inheritdoc IHorizonStakingMain
567
+ function getStakingExtension () external view override returns (address ) {
568
+ return STAKING_EXTENSION_ADDRESS;
569
+ }
570
+
565
571
/*
566
572
* PRIVATE FUNCTIONS
567
573
*/
0 commit comments