IsleGlobals

Git Source

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

_authorizeUpgrade

function _authorizeUpgrade(address newImplementation_) internal override onlyGovernor;

initialize

Initializes the contract.

function initialize(address governor_) external override initializer;

Parameters

setIsleVault

Sets the address of the Isle vault.

function setIsleVault(address vault_) external override onlyGovernor;

Parameters

setProtocolPaused

Pause or unpause the protocol.

function setProtocolPaused(bool protocolPaused_) external override onlyGovernor;

Parameters

setContractPaused

Pause or unpause a specific contract.

function setContractPaused(address contract_, bool contractPaused_) external override onlyGovernor;

Parameters

setFunctionUnpaused

Unpause or ununpause a specific function in a contract.

function setFunctionUnpaused(address contract_, bytes4 sig_, bool functionUnpaused_) external override onlyGovernor;

Parameters

setProtocolFee

Sets the protocol fee.

function setProtocolFee(uint24 protocolFee_) external override onlyGovernor;

Parameters

setValidReceivableAsset

Sets the validity of a receivable asset (should match ERC-721).

function setValidReceivableAsset(address receivableAsset_, bool isValid_) external override onlyGovernor;

Parameters

setValidPoolAsset

Sets the validity of the pool asset (should match ERC-20).

function setValidPoolAsset(address poolAsset_, bool isValid_) external override onlyGovernor;

Parameters

setValidPoolAdmin

Sets the validity of a pool admin.

function setValidPoolAdmin(address poolAdmin_, bool isValid_) external override onlyGovernor;

Parameters

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

Returns

isFunctionPaused

Returns the pause status of a specific function in a contract.

function isFunctionPaused(bytes4 sig_) external view override returns (bool functionIsPaused_);

Parameters

Returns

Last updated