We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ada6257 commit cc245c0Copy full SHA for cc245c0
src/interfaces/IAllocator.sol
@@ -70,6 +70,17 @@ interface IAllocator {
70
*/
71
function addAllowance(address allocator, uint256 amount) external;
72
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
+
84
/**
85
* @notice Set allowance of an Allocator. Can be used to remove allowance.
86
* @param allocator Allocator
0 commit comments