Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify inconsistency between getReserveNormalizedVariableDebt() and _updateIndexes (#754) #768

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions contracts/interfaces/IPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,13 @@ interface IPool {

/**
* @notice Returns the normalized variable debt per unit of asset
* IMPORTANT the utility of this function is primarily for the protocol itself,
* to get a "dynamic" variable index based on time, current stored index and
* virtual rate at the current moment (approx. a borrower would get if opening a position).
* This means that is always used in combination with variable debt supply/balances.
* If using this function externally, it is fundamental to understand that is possible
* to have an increasing normalized variable debt that is not equivalent on how the
* variable debt index would be updated in storage (e.g. if there is variable debt supply)
miguelmtzinf marked this conversation as resolved.
Show resolved Hide resolved
* @param asset The address of the underlying asset of the reserve
* @return The reserve normalized variable debt
*/
Expand Down