Aave.

Допис

Діліться своїми знаннями.

Aaveator.
Jan 29, 2023
Питання та відповіді експертів

What would be the best way to get all the addresses with a position on a particular reserve?

What would be the best way to get all the addresses with a position on a particular reserve? Is there a query I can perform on the subgraph to retrieve so?

  • Aave Protocol
0
1
Поділитися
Коментарі
.

Відповіді

1
Aaveator.
Feb 2 2023, 16:18

You can use this subgraph query:

{
userReserves(where: {reserve: "lowercase_asset_address"}){
  user{
    id
  }
  reserve {
    liquidityIndex
    variableBorrowIndex
  }
  scaledATokenBalance
  scaledVariableDebt
    principalStableDebt
  stableBorrowRate
}
}

More info.

0
Коментарі
.

Ви знаєте відповідь?

Будь ласка, увійдіть та поділіться нею.

Aave is a decentralized non-custodial liquidity protocol where users can participate as depositors or borrowers.

213Пости230Відповіді
Sui.X.Peera.

Зароби свою частку з 1000 Sui

Заробляй бали репутації та отримуй винагороди за допомогу в розвитку спільноти Sui.

Ми використовуємо файли cookie, щоб гарантувати вам найкращий досвід на нашому сайті.
Детальніше