IsleGlobals

Git Source

Inherits: IIsleGlobals, VersionedInitializable, Adminable, UUPSUpgradeable

State Variables

ISLE_GLOBALS_REVISION

uint256 public constant ISLE_GLOBALS_REVISION = 0x1;

HUNDRED_

uint256 public constant HUNDRED_ = 1_000_000;

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;

poolConfigurators

mapping(address => Globals.PoolConfigurator) public override poolConfigurators;

isPoolAdmin

mapping(address => bool) public override isPoolAdmin;

isCollateralAsset

mapping(address => bool) public override isCollateralAsset;

isPoolAsset

mapping(address => bool) public override isPoolAsset;

Functions

_authorizeUpgrade

function _authorizeUpgrade(address newImplementation_) internal override onlyAdmin;

getImplementation

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

getRevision

Returns the revision number of the contract

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

function getRevision() internal pure virtual override returns (uint256 revision_);

Returns

NameTypeDescription

revision_

uint256

The revision number

initialize

Initializes the contract

function initialize(address governor_) external override initializer;

Parameters

NameTypeDescription

governor_

address

The address of the governor

setIsleVault

Sets the address of the Isle vault.

function setIsleVault(address vault_) external override onlyAdmin;

Parameters

NameTypeDescription

vault_

address

setProtocolPaused

Sets the protocol pause.

function setProtocolPaused(bool protocolPaused_) external override onlyAdmin;

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 override onlyAdmin;

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 override onlyAdmin;

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 override onlyAdmin;

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 override onlyAdmin;

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 override onlyAdmin;

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 override onlyAdmin;

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 override onlyAdmin;

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 override onlyAdmin;

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 override onlyAdmin;

Parameters

NameTypeDescription

poolConfigurator_

address

The address of the pool configurator

poolLimit_

uint104

The size limit of the pool

governor

Returns the address of the governor

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

Returns

NameTypeDescription

governor_

address

The address of the governor

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

NameTypeDescription

contract_

address

The address of the contract

sig_

bytes4

The function signature

Returns

NameTypeDescription

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

NameTypeDescription

sig_

bytes4

The function signature

Returns

NameTypeDescription

functionIsPaused_

bool

isFunctionPaused_ A boolean indicating the pause status of the function

maxCoverLiquidation

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

function maxCoverLiquidation(address poolConfigurator_) external view override returns (uint24 maxCoverLiqduidation_);

Parameters

NameTypeDescription

poolConfigurator_

address

The address of the pool configurator

Returns

NameTypeDescription

maxCoverLiqduidation_

uint24

maxCoverLiquidation_ 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 override 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 override 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