diff --git a/contracts/staking/IApplication.sol b/contracts/staking/IApplication.sol index c241c52a..0b36754a 100644 --- a/contracts/staking/IApplication.sol +++ b/contracts/staking/IApplication.sol @@ -48,6 +48,9 @@ interface IApplication { /// pending decrease and respond to the staking contract with /// `approveAuthorizationDecrease` at its discretion. It may /// happen right away but it also may happen several months later. + /// If there is already a pending authorization decrease request + /// for the application, and the application does not agree for + /// overwriting it, the function should revert. function authorizationDecreaseRequested( address stakingProvider, uint96 fromAmount, diff --git a/contracts/staking/IStaking.sol b/contracts/staking/IStaking.sol index d9094192..9ff6adbd 100644 --- a/contracts/staking/IStaking.sol +++ b/contracts/staking/IStaking.sol @@ -110,7 +110,9 @@ interface IStaking { /// it happens depends on the application. Can only be called by the /// given staking provider’s authorizer. Overwrites pending /// authorization decrease for the given staking provider and - /// application. + /// application if the application agrees for that. If the + /// application does not agree for overwriting, the function + /// reverts. /// @dev Calls `authorizationDecreaseRequested(address stakingProvider, uint256 amount)` /// on the given application. See `IApplication`. function requestAuthorizationDecrease( diff --git a/contracts/staking/TokenStaking.sol b/contracts/staking/TokenStaking.sol index 91948676..17d1164d 100644 --- a/contracts/staking/TokenStaking.sol +++ b/contracts/staking/TokenStaking.sol @@ -1281,7 +1281,9 @@ contract TokenStaking is Initializable, IStaking, Checkpoints { /// it happens depends on the application. Can only be called by the /// given staking provider’s authorizer. Overwrites pending /// authorization decrease for the given staking provider and - /// application. + /// application if the application agrees for that. If the + /// application does not agree for overwriting, the function + /// reverts. /// @dev Calls `authorizationDecreaseRequested` callback on the given /// application. See `IApplication`. function requestAuthorizationDecrease(