allBorrowLendReserveStates

Returns the borrow/lend reserve state for every token reserve as a list of [tokenIndex, reserveState] pairs.

Field
Type
Description

type

string

Must be "allBorrowLendReserveStates"

Request

curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "allBorrowLendReserveStates"
  }'

Response Fields

Field
Type
Description

(root)

array

Array of [tokenIndex, reserveState] pairs

[n][0]

int

Token index

[n][1].borrowYearlyRate

string

Annualized borrow rate

[n][1].supplyYearlyRate

string

Annualized supply rate

[n][1].balance

string

Reserve balance

[n][1].utilization

string

Utilization ratio (borrowed / supplied)

[n][1].oraclePx

string

Oracle price of the token

[n][1].ltv

string

Loan-to-value ratio

[n][1].totalSupplied

string

Total supplied to the reserve

[n][1].totalBorrowed

string

Total borrowed from the reserve

Response (trimmed)

Last updated