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

isPoolAdmin

isReceivableAsset

isPoolAsset

Functions

getRevision

Returns the revision number of the contract

Needs to be defined in the inherited class as a constant.

Returns

Name
Type
Description

revision_

uint256

The revision number

_authorizeUpgrade

initialize

Initializes the contract.

Parameters

Name
Type
Description

governor_

address

The address of the governor.

setIsleVault

Sets the address of the Isle vault.

Parameters

Name
Type
Description

vault_

address

The address of the Isle vault.

setProtocolPaused

Pause or unpause the protocol.

Parameters

Name
Type
Description

protocolPaused_

bool

A boolean indicating the status of the protocol pause.

setContractPaused

Pause or unpause a specific contract.

Parameters

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

contract_

address

The address of the contract.

sig_

bytes4

The function signature.

Returns

Name
Type
Description

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

Name
Type
Description

sig_

bytes4

The function signature.

Returns

Name
Type
Description

functionIsPaused_

bool

isFunctionPaused_ A boolean indicating the pause status of the function.

Last updated