You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
healthDelta is the value of the user's available collateral in USD, aka the value of their borrowing capacity in USD.
To determine how many tokens they can borrow, the price of the free collateral should be divided by the price of the token, not multiplied by it.
The text was updated successfully, but these errors were encountered:
In
BorrowModule.sol
:everscalend-contracts/smart-contracts/src/ModulesForMarket/BorrowModule.sol
Lines 99 to 100 in 8d24e26
Should be replaced by:
healthDelta
is the value of the user's available collateral in USD, aka the value of their borrowing capacity in USD.To determine how many tokens they can borrow, the price of the free collateral should be divided by the price of the token, not multiplied by it.
The text was updated successfully, but these errors were encountered: