Skip to content

Commit 1a477a2

Browse files
committed
Clarification to IApplication interface docs
Application *must* revert increaseAuthorization in case the minimum required authorization is not satisfied.
1 parent 6357128 commit 1a477a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contracts/staking/IApplication.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ interface IApplication {
2525
/// @notice Used by T staking contract to inform the application that the
2626
/// authorized amount for the given staking provider increased.
2727
/// The application may do any necessary housekeeping. The
28-
/// application may revert the transaction in case the authorization
29-
/// is below the minimum required.
28+
/// application must revert the transaction in case the
29+
/// authorization is below the minimum required.
3030
function authorizationIncreased(
3131
address stakingProvider,
3232
uint96 fromAmount,

contracts/test/TokenStakingTestSet.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ contract ApplicationMock is IApplication {
274274

275275
function minimumAuthorization() external view returns (uint96) {
276276
return 0;
277-
}
277+
}
278278
}
279279

280280
contract BrokenApplicationMock is ApplicationMock {

0 commit comments

Comments
 (0)