IsleGlobals
Inherits: IIsleGlobals, VersionedInitializable, Adminable, UUPSUpgradeable
State Variables
ISLE_GLOBALS_REVISION
HUNDRED_
protocolFee
isleVault
protocolPaused
isContractPaused
isFunctionUnpaused
poolConfigurators
isPoolAdmin
isCollateralAsset
isPoolAsset
Functions
_authorizeUpgrade
getImplementation
getRevision
Returns the revision number of the contract
Needs to be defined in the inherited class as a constant.
Returns
Name | Type | Description |
---|---|---|
|
| The revision number |
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 |
---|---|---|
|
|
setProtocolPaused
Sets the protocol pause.
Parameters
Name | Type | Description |
---|---|---|
|
| A boolean indicating the status of the protocol pause. |
setContractPaused
Sets the pause status of 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
Sets the unpause status of a specific function in a contract
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the contract |
|
| The function signature |
|
| A boolean indicating the unpause status of the function |
setProtocolFee
Sets the protocol fee
Parameters
Name | Type | Description |
---|---|---|
|
| A uint24 indicating the protocol fee |
setValidCollateralAsset
Sets the validity of a collateral asset.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the collateral asset to set the validity for. |
|
| A boolean indicating the validity of the collateral asset. |
setValidPoolAsset
Sets the validity of the pool asset.
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. |
setMaxCoverLiquidation
Sets the max cover liquidation that is applied for the pool admin
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the pool admin |
|
| The max cover liquidation as a percentage for the pool admin |
setMinCover
Sets the min cover required for the pool admin.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the pool admin. |
|
| The min cover required for the pool admin. |
setPoolLimit
Sets the pool limit for the pool configurator
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the pool configurator |
|
| The size limit of the pool |
governor
Returns the address of the governor
Returns
Name | Type | Description |
---|---|---|
|
| The address of the governor |
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 |
---|---|---|
|
| isFunctionPaused_ A boolean indicating the pause status of the function |
isFunctionPaused
Returns the pause status of a specific function in a contract
Parameters
Name | Type | Description |
---|---|---|
|
| The function signature |
Returns
Name | Type | Description |
---|---|---|
|
| isFunctionPaused_ A boolean indicating the pause status of the function |
maxCoverLiquidation
Returns the max cover liquidation as a percentage for the pool configurator
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the pool configurator |
Returns
Name | Type | Description |
---|---|---|
|
| maxCoverLiquidation_ The max cover liquidation as a percentage for the pool configurator |
minCover
Returns the min cover required for a pool configurator
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the pool configurator |
Returns
Name | Type | Description |
---|---|---|
|
| The min cover required for the pool configurator |
poolLimit
Returns the pool limit of the pool under the pool configurator
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the pool configurator |
Returns
Name | Type | Description |
---|---|---|
|
| The limit for the pool under the pool configurator |
Last updated