@@ -19,6 +19,12 @@ import "./IApplication.sol";
1919
2020/// @title Interface for Threshold Network applications with delay after decrease request
2121interface IApplicationWithDecreaseDelay is IApplication {
22+ /// @notice Approves the previously registered authorization decrease
23+ /// request. Reverts if authorization decrease delay has not passed
24+ /// yet or if the authorization decrease was not requested for the
25+ /// given staking provider.
26+ function approveAuthorizationDecrease (address stakingProvider ) external ;
27+
2228 /// @notice Returns authorization-related parameters of the application.
2329 /// @dev The minimum authorization is also returned by `minimumAuthorization()`
2430 /// function, as a requirement of `IApplication` interface.
@@ -48,21 +54,13 @@ interface IApplicationWithDecreaseDelay is IApplication {
4854 /// @notice Returns the amount of stake that is pending authorization
4955 /// decrease for the given staking provider. If no authorization
5056 /// decrease has been requested, returns zero.
51- function pendingAuthorizationDecrease (address _stakingProvider )
52- external
53- view
54- returns (uint96 );
57+ function pendingAuthorizationDecrease (
58+ address _stakingProvider
59+ ) external view returns (uint96 );
5560
5661 /// @notice Returns the remaining time in seconds that needs to pass before
5762 /// the requested authorization decrease can be approved.
58- function remainingAuthorizationDecreaseDelay (address stakingProvider )
59- external
60- view
61- returns (uint64 );
62-
63- /// @notice Approves the previously registered authorization decrease
64- /// request. Reverts if authorization decrease delay has not passed
65- /// yet or if the authorization decrease was not requested for the
66- /// given staking provider.
67- function approveAuthorizationDecrease (address stakingProvider ) external ;
63+ function remainingAuthorizationDecreaseDelay (
64+ address stakingProvider
65+ ) external view returns (uint64 );
6866}
0 commit comments