IsleGlobals
Inherits: IIsleGlobals, VersionedInitializable, Governable, UUPSUpgradeable
State Variables
ISLE_GLOBALS_REVISION
protocolFee
isleVault
protocolPaused
isContractPaused
isFunctionUnpaused
isPoolAdmin
isReceivableAsset
isPoolAsset
Functions
getRevision
Returns the revision number of the contract
Needs to be defined in the inherited class as a constant.
Returns
revision_
uint256
The revision number
_authorizeUpgrade
initialize
Initializes the contract.
Parameters
governor_
address
The address of the governor.
setIsleVault
Sets the address of the Isle vault.
Parameters
vault_
address
The address of the Isle vault.
setProtocolPaused
Pause or unpause the protocol.
Parameters
protocolPaused_
bool
A boolean indicating the status of the protocol pause.
setContractPaused
Pause or unpause a specific contract.
Parameters
contract_
address
The address of the contract to set the pause status for.
contractPaused_
bool
A boolean indicating the pause status of the contract.
setFunctionUnpaused
Unpause or ununpause a specific function in a contract.
Parameters
contract_
address
The address of the contract.
sig_
bytes4
The function signature.
functionUnpaused_
bool
A boolean indicating whether the function is unpaused.
setProtocolFee
Sets the protocol fee.
Parameters
protocolFee_
uint24
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
receivableAsset_
address
The address of the receivable asset to set the validity for.
isValid_
bool
A boolean indicating the validity of the receivable asset.
setValidPoolAsset
Sets the validity of the pool asset (should match ERC-20).
Parameters
poolAsset_
address
The address of the pool asset to set the validity for.
isValid_
bool
A boolean indicating the validity of the pool asset.
setValidPoolAdmin
Sets the validity of a pool admin.
Parameters
poolAdmin_
address
The address of the pool admin to set the validity for.
isValid_
bool
A boolean indicating the validity of the pool admin.
isFunctionPaused
Returns the pause status of a specific function in a contract.
Parameters
contract_
address
The address of the contract.
sig_
bytes4
The function signature.
Returns
functionIsPaused_
bool
isFunctionPaused_ A boolean indicating the pause status of the function.
isFunctionPaused
Returns the pause status of a specific function in a contract.
Parameters
sig_
bytes4
The function signature.
Returns
functionIsPaused_
bool
isFunctionPaused_ A boolean indicating the pause status of the function.
Last updated