GetReserveData

Aave V2 Getter Plugin - GetReserveData

Description

Returns the state and configuration of the reserve

Method

getReserveData(address)

Input Parameters

No required input parameters

Method Parameters

NamePlugin TypeDescription

asset

FctAddress

Address of asset

Returned Values

NamePlugin TypeDescription

configuration

FctValue

liquidityIndex

FctValue128

Liquidity index in ray

variableBorrowIndex

FctValue128

Variable borrow index in ray

currentLiquidityRate

FctValue128

Current supply / liquidity / deposit rate in ray

currentVariableBorrowRate

FctValue128

Current variable borrow rate in ray

currentStableBorrowRate

FctValue128

Current stable borrow rate in ray

lastUpdateTimestamp

FctValue40

Timestamp of when reserve data was last updated

aTokenAddress

FctAddress

Address of associated aToken (tokenised deposit)

stableDebtTokenAddress

FctAddress

Address of associated stable debt token

variableDebtTokenAddress

FctAddress

Address of associated variable debt token

interestRateStrategyAddress

FctAddress

Address of interest rate strategy.

id

FctValue8

The position in the list of active reserves

Example

Example with initParams

const getReserveData = new AaveV2.getter.GetReserveData({
   chainId: 1,
   initParams: {
     methodParams: {
       asset: "0x...",
     }
   }
})

Example without initParams

const getReserveData = new AaveV2.getter.GetReserveDataceOf({ chainId: 1 })

getReserveData.input.set({
    methodParams: {
      asset: "0x...",
    }
})

Learn more

Learn more about Aave V2 get reserve data method here

Last updated