Aave.

Publicación

Comparte tu conocimiento.

Aaveator.
Jan 29, 2023
P&R expertos

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
Cuota
Comentarios
.

Respuestas

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

Sabes la respuesta?

Inicie sesión y compártalo.

Usamos cookies para asegurarnos de que obtenga la mejor experiencia en nuestro sitio web.
Más información