IScaledBalanceToken

Git Source

Functions

scaledBalanceOf

Returns the scaled balance of the user. The scaled balance is the sum of all the updated stored balance divided by the reserve's liquidity index at the moment of the update

function scaledBalanceOf(address user) external view returns (uint256);

Parameters

NameTypeDescription
useraddressThe user whose balance is calculated

Returns

NameTypeDescription
<none>uint256The scaled balance of the user

getScaledUserBalanceAndSupply

Returns the scaled balance of the user and the scaled total supply.

function getScaledUserBalanceAndSupply(address user) external view returns (uint256, uint256);

Parameters

NameTypeDescription
useraddressThe address of the user

Returns

NameTypeDescription
<none>uint256The scaled balance of the user
<none>uint256The scaled balance and the scaled total supply

scaledTotalSupply

Returns the scaled total supply of the variable debt token. Represents sum(debt/index)

function scaledTotalSupply() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256The scaled total supply