Skip to content

Commit cc245c0

Browse files
committed
Missing Allocator.sol interface
1 parent ada6257 commit cc245c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/interfaces/IAllocator.sol

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ interface IAllocator {
7070
*/
7171
function addAllowance(address allocator, uint256 amount) external;
7272

73+
/**
74+
* @notice Decrease Allocator allowance
75+
* @dev This function can only be called by the owner
76+
* @param allocator Allocator whose allowance is reduced
77+
* @param amount Amount to decrease the allowance
78+
* @dev Emits AllowanceChanged event
79+
* @dev Reverts if trying to decrease allowance by 0
80+
* @dev Reverts if allocator allowance is already 0
81+
*/
82+
function decreaseAllowance(address allocator, uint256 amount) external;
83+
7384
/**
7485
* @notice Set allowance of an Allocator. Can be used to remove allowance.
7586
* @param allocator Allocator

0 commit comments

Comments
 (0)