Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions contracts/staking/IApplication.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion contracts/staking/IStaking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,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(
Expand Down
4 changes: 3 additions & 1 deletion contracts/staking/TokenStaking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down