Basic ERC20 implementation of scaled balance token
Constructor.
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.
Returns the scaled total supply of the scaled balance token. Represents sum(debt/index)
Returns last index interest was accrued to the user's balance
Implements the basic logic to mint a scaled balance token.
Implements the basic logic to burn a scaled balance token.
In some instances, a burn transaction will emit a mint event if the amount to burn is less than the interest that the user accrued
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
pool
contract IPool
The reference to the main Pool contract
name
string
The name of the token
symbol
string
The symbol of the token
decimals
uint8
The number of decimals of the token
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 total supply
[0]
uint256
The scaled total supply
user
address
The address of the user
[0]
uint256
The last index interest was accrued to the user's balance, expressed in ray
caller
address
The address performing the mint
onBehalfOf
address
The address of the user that will receive the scaled tokens
amount
uint256
The amount of tokens getting minted
index
uint256
The next liquidity index of the reserve
[0]
bool
true
if the the previous balance of the user was 0
user
address
The user which debt is burnt
target
address
The address that will receive the underlying, if any
amount
uint256
The amount getting burned
index
uint256
The variable debt index of the reserve