GetReserveConfigurationData

Aave V2 Getter Plugin - GetReserveConfigurationData

Description

Returns the configuration data for asset.

Method

getReserveConfigurationData(address)

Input Parameters

No required input parameters

Method Parameters

NamePlugin TypeDescription

asset

FctAddress

Address of asset

Returned Values

NamePlugin TypeDescription

decimals

FctValue

The decimals used by the reserve

ltv

FctValue

Loan To Value

liquidationThreshold

FctValue

The liquidation threshold of the reserve

liquidationBonus

FctValue

The bonus awarded to liquidators

reserveFactor

FctValue

The reserve factor

usageAsCollateralEnabled

FctBoolean

Whether the reserve is enabled as collateral

borrowingEnabled

FctBoolean

Whether borrowing is enabled on the reserve

stableBorrowRateEnabled

FctBoolean

Whether stable borrowing is enabled

isActive

FctBoolean

Whether the reserve is active

isFrozen

FctBoolean

Whether the reserve is frozen / disabled

Example

Example with initParams

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

Example without initParams

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

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

Learn more

Learn more about Aave V2 get reserve configuration data method here

Last updated