IonLens

Git Source

Inherits: IIonLens

State Variables

IonPoolStorageLocation

bytes32 private constant IonPoolStorageLocation = 0xceba3d526b4d5afd91d1b752bf1fd37917c20a6daf576bcb41dd1c57c1f67e00;

EXTSLOAD_SELECTOR

bytes4 private constant EXTSLOAD_SELECTOR = 0x1e2eaeaf;

Functions

constructor

constructor();

_getIonPoolStorage

function _getIonPoolStorage() internal pure returns (IonPoolStorage storage $);

_toUint256PointerMapping

function _toUint256PointerMapping(mapping(bytes32 => uint256) storage inPtr)
    private
    pure
    returns (mapping(address => StorageSlot.Uint256Slot) storage outPtr);

queryPoolSlot

ilkCount

Returns

Name
Type
Description

<none>

uint256

The total amount of collateral in the pool.

getIlkIndex

Returns

Name
Type
Description

<none>

uint8

The index of the collateral with ilkAddress.

totalNormalizedDebt

Returns

Name
Type
Description

<none>

uint256

The total amount of normalized debt for collateral with index ilkIndex.

rateUnaccrued

Returns

Name
Type
Description

<none>

uint256

The rate that has been persisted to storage.

lastRateUpdate

Returns

Name
Type
Description

<none>

uint256

The timestamp of the last rate update for collateral with index ilkIndex.

spot

Returns

Name
Type
Description

<none>

address

The spot oracle for collateral with index ilkIndex.

debtCeiling

Returns

Name
Type
Description

<none>

uint256

The debt ceiling for collateral with index ilkIndex.

dust

Returns

Name
Type
Description

<none>

uint256

The dust value for collateral with index ilkIndex.

gem

Returns

Name
Type
Description

<none>

uint256

Amount of gem that user has for collateral with index ilkIndex.

unbackedDebt

Returns

Name
Type
Description

<none>

uint256

The amount of unbacked debt user has.

isOperator

Returns

Name
Type
Description

<none>

bool

Whether or not operator is an operator on user's positions.

debtUnaccrued

debt

This includes unbacked debt.

Returns

Name
Type
Description

<none>

uint256

The total amount of debt.

liquidity

Returns

Name
Type
Description

<none>

uint256

The total amount of ETH liquidity in the pool.

supplyCap

Returns

Name
Type
Description

<none>

uint256

The supply cap

totalUnbackedDebt

Returns

Name
Type
Description

<none>

uint256

The total amount of unbacked debt.

interestRateModule

Returns

Name
Type
Description

<none>

address

The address of the interest rate module.

whitelist

Errors

SloadFailed

InvalidFieldSlot

Structs

Ilk

Vault

IonPoolStorage