Implementation of the interest bearing token for the ParaSpace protocol
Calculates the balance of the user: principal balance + interest generated by the principal
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Returns the scaled balance of the user and the scaled total supply.
calculates the total supply of the specific aToken since the balance of every single user increases over time, the total supply does that too.
Returns the scaled total supply of the variable debt token. Represents sum(debt/index)
return token type`of xToken
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
user
address
The user whose balance is calculated
[0]
uint256
The balance of the user
user
address
The user whose balance is calculated
[0]
uint256
The scaled balance of the user
user
address
The address of the user
[0]
uint256
The scaled balance of the user
[1]
uint256
The scaled balance and the scaled total supply
[0]
uint256
the current total supply
[0]
uint256
the scaled total supply
[0]
uint256
Current rebasing index of stETH in RAY