IIsleGlobals
Inherits: IIsleGlobalsEvents, IGovernable
Interface for the IsleGlobals contract.
This interface provides functions to manage the global configurations of the Isle Protocol.
Functions
initialize
Initializes the contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the governor. |
setIsleVault
Sets the address of the Isle vault.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the Isle vault. |
setProtocolPaused
Pause or unpause the protocol.
Parameters
Name | Type | Description |
---|---|---|
|
| A boolean indicating the status of the protocol pause. |
setContractPaused
Pause or unpause a specific contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the contract to set the pause status for. |
|
| A boolean indicating the pause status of the contract. |
setFunctionUnpaused
Unpause or ununpause a specific function in a contract.
Normally used to unpause specific functions when a contract is paused.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the contract. |
|
| The function signature. |
|
| A boolean indicating whether the function is unpaused. |
setProtocolFee
Sets the protocol fee.
Parameters
Name | Type | Description |
---|---|---|
|
| A uint24 indicating the protocol fee (100.0000% = 1e6 (6 decimal precision)). |
setValidReceivableAsset
Sets the validity of a receivable asset (should match ERC-721).
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the receivable asset to set the validity for. |
|
| A boolean indicating the validity of the receivable asset. |
setValidPoolAsset
Sets the validity of the pool asset (should match ERC-20).
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the pool asset to set the validity for. |
|
| A boolean indicating the validity of the pool asset. |
setValidPoolAdmin
Sets the validity of a pool admin.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the pool admin to set the validity for. |
|
| A boolean indicating the validity of the pool admin. |
protocolFee
Returns the protocol fee.
Returns
Name | Type | Description |
---|---|---|
|
| A uint24 indicating the protocol fee. |
isleVault
Gets isle vault address.
Returns
Name | Type | Description |
---|---|---|
|
| The address of the isle vault. |
protocolPaused
Gets the status of the protocol pause.
Returns
Name | Type | Description |
---|---|---|
|
| A boolean indicating whether the protocol is paused. |
isContractPaused
Returns the pause status of a specific contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the contract to check. |
Returns
Name | Type | Description |
---|---|---|
|
| A boolean indicating whether a contract is paused. |
isFunctionUnpaused
Returns the unpause status of a specific function in a contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the contract. |
|
| The function signature. |
Returns
Name | Type | Description |
---|---|---|
|
| A boolean indicating whether the function is unpaused. |
isPoolAdmin
Returns if the account is a valid poolAdmin.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the account to check. |
Returns
Name | Type | Description |
---|---|---|
|
| Whether the account is a valid poolAdmin. |
isReceivableAsset
Gets the validity of a receivable asset.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the receivableAsset to query. |
Returns
Name | Type | Description |
---|---|---|
|
| A boolean indicating the validity of the receivable asset. |
isPoolAsset
Gets the validity of a pool asset.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the poolAsset to query. |
Returns
Name | Type | Description |
---|---|---|
|
| A boolean indicating the validity of the pool asset. |
isFunctionPaused
Returns the pause status of a specific function in a contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the contract. |
|
| The function signature. |
Returns
Name | Type | Description |
---|---|---|
|
| A boolean indicating the pause status of the function. |
isFunctionPaused
Returns the pause status of a specific function in the caller contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The function signature. |
Returns
Name | Type | Description |
---|---|---|
|
| A boolean indicating the pause status of the function. |
Last updated