Aave.

Допис

Діліться своїми знаннями.

Aaveator.
Jan 29, 2023
Питання та відповіді експертів

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
Поділитися
Коментарі
.

Відповіді

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
Коментарі
.

Ви знаєте відповідь?

Будь ласка, увійдіть та поділіться нею.

Ми використовуємо файли cookie, щоб гарантувати вам найкращий досвід на нашому сайті.
Детальніше