Aave.

Bài viết

Chia sẻ kiến thức của bạn.

Aaveator.
Jan 29, 2023
Hỏi đáp Chuyên Gia

Сan we get the data about the amount of tokens a particular user can borrow?

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

  • Aave Protocol
  • Borrow rate
0
1
Chia sẻ
Bình luận
.

Câu trả lời

1
Aaveator.
Feb 2 2023, 16:45

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 and here

0
Bình luận
.

Bạn có biết câu trả lời không?

Hãy đăng nhập và chia sẻ nó.

Chúng tôi sử dụng cookie để đảm bảo bạn có trải nghiệm tốt nhất trên trang web của chúng tôi.
Thêm thông tin