IComptrollerable
Contract module that provides a setter and getter for the Sablier Comptroller.
Functions
comptroller
Retrieves the address of the comptroller contract.
function comptroller() external view returns (ISablierComptroller);
setComptroller
Sets the comptroller to a new address.
Emits a SetComptroller event. Requirements:
msg.sendermust be the current comptroller.- The new comptroller must return
truefrom {supportsInterface} with the comptroller's minimal interface ID which is defined as the XOR of the following function selectors:
- {calculateMinFeeWeiFor}
- {convertUSDFeeToWei}
- {execute}
- {getMinFeeUSDFor}
function setComptroller(ISablierComptroller newComptroller) external;
Parameters
| Name | Type | Description |
|---|---|---|
newComptroller | ISablierComptroller | The address of the new comptroller contract. |
transferFeesToComptroller
Transfers the fees to the comptroller contract.
Emits a TransferFeesToComptroller event.
function transferFeesToComptroller() external;
Events
SetComptroller
Emitted when the comptroller address is set by the admin.
event SetComptroller(ISablierComptroller oldComptroller, ISablierComptroller newComptroller);
TransferFeesToComptroller
Emitted when the fees are transferred to the comptroller contract.
event TransferFeesToComptroller(ISablierComptroller indexed comptroller, uint256 feeAmount);