How to query the smart contract of an aToken market to get the estimated APY?
- undefined Aave
Hey guys, id like to query the smart contract of an aToken market to get the estimated APY anyone know what function to call?
Checkout [this page](https://docs.aave.com/developers/v/2.0/guides/apy-and-apr) 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](https://etherscan.io/address/0x057835Ad21a177dbdd3090bB1CAE03EaCF78Fc6d#readContract).