How to query the smart contract of an aToken market to get the estimated APY?

Expert

Hey guys, id like to query the smart contract of an aToken market to get the estimated APY anyone know what function to call?

Answers 1

Checkout this page to find the APY;

You can find liquidityRate on protocolDataProvider contract. Call getReserveData() or getUserReserveData() to get the liquidityRate.For Ethereum Mainnet, this should be the contract.