Comptrollerable
Inherits: IComptrollerable
Title: Comptrollerable
See the documentation in IComptrollerable.
State Variables
comptroller
Retrieves the address of the comptroller contract.
ISablierComptroller public override comptroller
Functions
onlyComptroller
Reverts if called by any account other than the comptroller.
modifier onlyComptroller() ;
constructor
constructor(address initialComptroller) ;
Parameters
| Name | Type | Description |
|---|---|---|
initialComptroller | address | The address of the initial comptroller contract. |
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 override onlyComptroller;
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 override;
_checkComptroller
See the documentation for the user-facing functions that call this private function.
function _checkComptroller() private view;
_setComptroller
See the documentation for the user-facing functions that call this private function.
function _setComptroller(
ISablierComptroller previousComptroller,
ISablierComptroller newComptroller,
bytes4 minimalInterfaceId
)
private;