PoolToken
PoolToken
Ownership of the token represents the lender shares in the respective pools.
_decimals
constructor
Creates a new PoolToken.
Name | Type | Description |
---|---|---|
name | string | Token name |
symbol | string | Token symbol |
tokenDecimals | uint8 | The number of decimal digits used to represent the fractional part of the token values. |
mint
Mint tokens.
Hook for the lending pool for mining tokens upon pool entry operations. Caller must be the lending pool that owns this token.
Name | Type | Description |
---|---|---|
to | address | Address the tokens are minted for |
amount | uint256 | The amount of tokens to minte |
burn
Burn tokens.
Hook for the lending pool for burning tokens upon pool exit or stake loss operations. Caller must be the lending pool that owns this token.
Name | Type | Description |
---|---|---|
from | address | Address the tokens are burned from |
amount | uint256 | The amount of tokens to burn |
decimals
Accessor for token decimals.
Name | Type | Description |
---|---|---|
[0] | uint8 | The number of decimal digits used to represent the fractional part of the token values. |
_afterTokenTransfer
_mint
_burn
Last updated