IsleGlobals
Inherits: IIsleGlobals, VersionedInitializable, Governable, UUPSUpgradeable
State Variables
ISLE_GLOBALS_REVISION
uint256 private constant ISLE_GLOBALS_REVISION = 0x1;protocolFee
uint24 public override protocolFee;isleVault
address public override isleVault;protocolPaused
bool public override protocolPaused;isContractPaused
mapping(address => bool) public override isContractPaused;isFunctionUnpaused
mapping(address => mapping(bytes4 => bool)) public override isFunctionUnpaused;isPoolAdmin
mapping(address => bool) public override isPoolAdmin;isReceivableAsset
mapping(address => bool) public override isReceivableAsset;isPoolAsset
mapping(address => bool) public override isPoolAsset;Functions
getRevision
Returns the revision number of the contract
Needs to be defined in the inherited class as a constant.
function getRevision() public pure virtual override returns (uint256 revision_);Returns
revision_
uint256
The revision number
_authorizeUpgrade
function _authorizeUpgrade(address newImplementation_) internal override onlyGovernor;initialize
Initializes the contract.
function initialize(address governor_) external override initializer;Parameters
governor_
address
The address of the governor.
setIsleVault
Sets the address of the Isle vault.
function setIsleVault(address vault_) external override onlyGovernor;Parameters
vault_
address
The address of the Isle vault.
setProtocolPaused
Pause or unpause the protocol.
function setProtocolPaused(bool protocolPaused_) external override onlyGovernor;Parameters
protocolPaused_
bool
A boolean indicating the status of the protocol pause.
setContractPaused
Pause or unpause a specific contract.
function setContractPaused(address contract_, bool contractPaused_) external override onlyGovernor;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.
function setFunctionUnpaused(address contract_, bytes4 sig_, bool functionUnpaused_) external override onlyGovernor;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.
function setProtocolFee(uint24 protocolFee_) external override onlyGovernor;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).
function setValidReceivableAsset(address receivableAsset_, bool isValid_) external override onlyGovernor;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).
function setValidPoolAsset(address poolAsset_, bool isValid_) external override onlyGovernor;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.
function setValidPoolAdmin(address poolAdmin_, bool isValid_) external override onlyGovernor;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.
function isFunctionPaused(address contract_, bytes4 sig_) public view override returns (bool functionIsPaused_);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.
function isFunctionPaused(bytes4 sig_) external view override returns (bool functionIsPaused_);Parameters
sig_
bytes4
The function signature.
Returns
functionIsPaused_
bool
isFunctionPaused_ A boolean indicating the pause status of the function.
Last updated