How to Find the Rank of Borrowers for a Specific Asset in Protocol (like eth to Aave)?

  • Aave Protocol
  • Borrow rate
  • Aave

I'm looking for the rank of borrowers for a specific asset like ETH to Aave. I understand that I need to first find the debtToken and then create a Dune query to get the borrower ranking. However, the Aave frontend only shows the original asset (in this case, ETH) and its corresponding aToken (aETH).

I'm wondering if there is a way to find the debtToken address for ETH or any other method to get the borrower ranking for the asset.

Thank you in advance for your help.

Answers 1

The ProtocolDataProvider (V2) or PoolDataProvider (V3) has this function to query the debtToken addresses for each asset.