Aave.

Publication

Partagez vos connaissances.

Aaveator.
Jan 29, 2023
Questions et Réponses avec des Experts

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
Partager
Commentaires
.

Réponses

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
Commentaires
.

Connaissez-vous la réponse ?

Veuillez vous connecter et la partager.

Nous utilisons des cookies pour vous assurer la meilleure expérience sur notre site Web.
Plus d'infos