Aave.

Post

Share your knowledge.

Aaveator.
Jan 29, 2023
Expert Q&A

How to compute how a withdrawal or borrowing of assets will affect our health factor?

Is there anyway to compute how a withdrawal or borrowing of assets will affect our health factor before making the actual smart contract call?

  • Aave Protocol
0
1
Share
Comments
.

Answers

1
Aaveator.
Feb 2 2023, 16:27

You can compute the new health factor by looping through all supplied and borrowed reserves in Aave Protocol to compute the new collateral balances, borrow balances, and LTV then convert this to HF with this function

0
Comments
.

Do you know the answer?

Please log in and share it.

We use cookies to ensure you get the best experience on our website.
More info