Сan we get the data about the amount of tokens a particular user can borrow?
- undefined Aave
Hello All, Can we get the data about the amount of tokens a particular user can borrow, from the Aave smart contract or do we need to calculate it manually taking the LTV into the consideration? Much thanks in advance
Well you can query pool with `getUserAccountData `which gives you `availableBorrow `in market's base currency and then you will have to divide that by asset price in base currency to get amount of respective asset that can be borrowed More info on Aave [docs ](https://docs.aave.com/developers/core-contracts/pool#getuseraccountdata) and [here](https://aave.peeranha.io/feed)