IScaledBalanceToken
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
Name | Type | Description |
---|---|---|
user | address | The user whose balance is calculated |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The 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
Name | Type | Description |
---|---|---|
user | address | The address of the user |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The scaled balance of the user |
<none> | uint256 | The 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
Name | Type | Description |
---|---|---|
<none> | uint256 | The scaled total supply |