RioLRT
Inherits: IRioLRT, ERC20BurnableUpgradeable, ERC20PermitUpgradeable, ERC20VotesUpgradeable, OwnableUpgradeable, UUPSUpgradeable
State Variables
issuer
The LRT issuer that's authorized to deploy this contract.
Functions
onlyCoordinator
Require that the caller is the LRT coordinator.
onlyWithdrawalQueue
Require that the caller is the LRT withdrawal queue.
constructor
Prevent any future reinitialization.
Parameters
Name | Type | Description |
---|---|---|
|
| The LRT issuer that's authorized to deploy this contract. |
initialize
Initializes the contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The initial owner of the contract. |
|
| The name of the token. |
|
| The symbol of the token. |
mint
Mint amount
tokens to the specified address.
Parameters
Name | Type | Description |
---|---|---|
|
| The address to mint tokens to. |
|
| The amount of tokens to mint. |
burn
Burn amount
tokens from the msg.sender
.
This function is only callable by the LRT withdrawal queue.
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of tokens to burn. |
allowance
Returns the remaining number of tokens that spender
is allowed to spend on behalf of owner
This function grants an infinite allowance to the LRT coordinator, which is an internal, trusted contract that pulls tokens on withdrawal.
Parameters
Name | Type | Description |
---|---|---|
|
| The account that owns the tokens. |
|
| The account that can spend the tokens. |
clock
Clock used for flagging checkpoints, overriden to implement timestamp based checkpoints (and voting).
CLOCK_MODE
Machine-readable description of the clock as specified in EIP-6372.
nonces
Returns the current nonce for owner
. This value must be included whenever a signature is generated for {permit}.
Parameters
Name | Type | Description |
---|---|---|
|
| The account to query the nonce for. |
_update
Transfers a value
amount of tokens from from
to to
, or alternatively mints (or burns) if from
(or to
) is the zero address. In addition, this function moves voting power when tokens are transferred.
Parameters
Name | Type | Description |
---|---|---|
|
| The origin address. |
|
| The destination address. |
|
| The amount of tokens to transfer. |
_authorizeUpgrade
Allows the owner to upgrade the LRT implementation.
Parameters
Name | Type | Description |
---|---|---|
|
| The implementation to upgrade to. |
Last updated