IIsleGlobals

Git Source

Inherits: IIsleGlobalsEvents

Interface for the IsleGlobals contract

This interface provides functions for managing the global settings of the Isle protocol

Functions

initialize

Initializes the contract

function initialize(address governor_) external;

Parameters

NameTypeDescription

governor_

address

The address of the governor

setIsleVault

Sets the address of the Isle vault.

function setIsleVault(address isleVault_) external;

Parameters

NameTypeDescription

isleVault_

address

The address of the Isle vault.

setProtocolPaused

Sets the protocol pause.

function setProtocolPaused(bool protocolPaused_) external;

Parameters

NameTypeDescription

protocolPaused_

bool

A boolean indicating the status of the protocol pause.

setContractPaused

Sets the pause status of a specific contract

function setContractPaused(address contract_, bool contractPaused_) external;

Parameters

NameTypeDescription

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

Sets the unpause status of a specific function in a contract

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

Parameters

NameTypeDescription

contract_

address

The address of the contract

sig_

bytes4

The function signature

functionUnpaused_

bool

A boolean indicating the unpause status of the function

setProtocolFee

Sets the protocol fee

function setProtocolFee(uint24 protocolFee_) external;

Parameters

NameTypeDescription

protocolFee_

uint24

A uint24 indicating the protocol fee

setValidCollateralAsset

Sets the validity of a collateral asset.

function setValidCollateralAsset(address collateralAsset_, bool isValid_) external;

Parameters

NameTypeDescription

collateralAsset_

address

The address of the collateral asset to set the validity for.

isValid_

bool

A boolean indicating the validity of the collateral asset.

setValidPoolAsset

Sets the validity of the pool asset.

function setValidPoolAsset(address poolAsset_, bool isValid_) external;

Parameters

NameTypeDescription

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;

Parameters

NameTypeDescription

poolAdmin_

address

The address of the pool admin to set the validity for.

isValid_

bool

A boolean indicating the validity of the pool admin.

setMaxCoverLiquidation

Sets the max cover liquidation that is applied for the pool admin

function setMaxCoverLiquidation(address poolConfigurator_, uint24 maxCoverLiquidation_) external;

Parameters

NameTypeDescription

poolConfigurator_

address

The address of the pool admin

maxCoverLiquidation_

uint24

The max cover liquidation as a percentage for the pool admin

setMinCover

Sets the min cover required for the pool admin.

function setMinCover(address poolConfigurator_, uint104 minCover_) external;

Parameters

NameTypeDescription

poolConfigurator_

address

The address of the pool admin.

minCover_

uint104

The min cover required for the pool admin.

setPoolLimit

Sets the pool limit for the pool configurator

function setPoolLimit(address poolConfigurator_, uint104 poolLimit_) external;

Parameters

NameTypeDescription

poolConfigurator_

address

The address of the pool configurator

poolLimit_

uint104

The size limit of the pool

protocolFee

Returns the protocol fee

function protocolFee() external view returns (uint24 protocolFee_);

Returns

NameTypeDescription

protocolFee_

uint24

A uint24 indicating the protocol fee

isleVault

Gets isle vault address.

function isleVault() external view returns (address isleVault_);

Returns

NameTypeDescription

isleVault_

address

The address of the isle vault.

protocolPaused

Gets the status of the protocol pause.

function protocolPaused() external view returns (bool protocolPaused_);

Returns

NameTypeDescription

protocolPaused_

bool

A boolean indicating the status of the protocol pause.

isContractPaused

Returns the pause status of a specific contract

function isContractPaused(address contract_) external view returns (bool contractPaused_);

Parameters

NameTypeDescription

contract_

address

The address of the contract to check

Returns

NameTypeDescription

contractPaused_

bool

A boolean indicating the pause status of the contract

isFunctionUnpaused

Returns the unpause status of a specific function in a contract

function isFunctionUnpaused(address contract_, bytes4 sig_) external view returns (bool functionUnpaused_);

Parameters

NameTypeDescription

contract_

address

The address of the contract

sig_

bytes4

The function signature

Returns

NameTypeDescription

functionUnpaused_

bool

A boolean indicating the unpause status of the function

isCollateralAsset

Gets the validity of a collateral asset.

function isCollateralAsset(address collateralAsset_) external view returns (bool isCollateralAsset_);

Parameters

NameTypeDescription

collateralAsset_

address

The address of the collateralAsset to query.

Returns

NameTypeDescription

isCollateralAsset_

bool

A boolean indicating the validity of the collateral asset.

isPoolAsset

Gets the validity of a pool asset.

function isPoolAsset(address poolAsset_) external view returns (bool isPoolAsset_);

Parameters

NameTypeDescription

poolAsset_

address

The address of the poolAsset to query.

Returns

NameTypeDescription

isPoolAsset_

bool

A boolean indicating the validity of the pool asset.

governor

Returns the address of the governor

function governor() external view returns (address governor_);

Returns

NameTypeDescription

governor_

address

The address of the governor

getImplementation

Returns the address of the implementation contract

function getImplementation() external view returns (address implementation_);

Returns

NameTypeDescription

implementation_

address

The address of the implementation contract

isFunctionPaused

Returns the pause status of a specific function in a contract

function isFunctionPaused(address contract_, bytes4 sig_) external view returns (bool isFunctionPaused_);

Parameters

NameTypeDescription

contract_

address

The address of the contract

sig_

bytes4

The function signature

Returns

NameTypeDescription

isFunctionPaused_

bool

A boolean indicating the pause status of the function

isFunctionPaused

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

function isFunctionPaused(bytes4 sig_) external view returns (bool isFunctionPaused_);

Parameters

NameTypeDescription

sig_

bytes4

The function signature

Returns

NameTypeDescription

isFunctionPaused_

bool

A boolean indicating the pause status of the function

poolConfigurators

Returns the configuration info of a pool configurator

function poolConfigurators(address poolConfigurator_)
    external
    view
    returns (uint24 maxCoverLiquidation_, uint104 minCover_, uint104 poolLimit_);

Parameters

NameTypeDescription

poolConfigurator_

address

The address of the pool configurator

Returns

NameTypeDescription

maxCoverLiquidation_

uint24

The max cover liquidation as a percentage for the pool configurator

minCover_

uint104

The min cover required for the pool configurator

poolLimit_

uint104

The limit for the pool under the pool configurator

isPoolAdmin

Returns if the account is a valid poolAdmin

function isPoolAdmin(address account_) external view returns (bool isPoolAdmin_);

Parameters

NameTypeDescription

account_

address

The address of the account to check

Returns

NameTypeDescription

isPoolAdmin_

bool

Whether the account is a valid poolAdmin

maxCoverLiquidation

Returns the max cover liquidation as a percentage for the pool configurator

function maxCoverLiquidation(address poolConfigurator_) external view returns (uint24 maxCoverLiquidation_);

Parameters

NameTypeDescription

poolConfigurator_

address

The address of the pool configurator

Returns

NameTypeDescription

maxCoverLiquidation_

uint24

The max cover liquidation as a percentage for the pool configurator

minCover

Returns the min cover required for a pool configurator

function minCover(address poolConfigurator_) external view returns (uint104 minCover_);

Parameters

NameTypeDescription

poolConfigurator_

address

The address of the pool configurator

Returns

NameTypeDescription

minCover_

uint104

The min cover required for the pool configurator

poolLimit

Returns the pool limit of the pool under the pool configurator

function poolLimit(address poolConfigurator_) external view returns (uint104 poolLimit_);

Parameters

NameTypeDescription

poolConfigurator_

address

The address of the pool configurator

Returns

NameTypeDescription

poolLimit_

uint104

The limit for the pool under the pool configurator

Last updated