IEpochBasedInflationaryVoteToken
Inherits: IEpochBasedVoteToken
Author: M^0 Labs
Functions
sync
Syncs account
so that its balance Snap array in storage, reflects their unrealized inflation.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the account to sync. |
hasParticipatedAt
Returns whether delegatee
has participated in voting during clock value epoch
.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of a delegatee with voting power. |
|
| The epoch number as a clock value. |
Returns
Name | Type | Description |
---|---|---|
|
| Whether |
participationInflation
Returns the participation inflation rate used to inflate tokens for participation.
ONE
Returns 100% in basis point, to be used to correctly ascertain the participation inflation rate.
Events
Sync
Emitted when account
is manually synced.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of an account that is synced. |
Errors
AlreadyParticipated
Revert message when trying to mark an account as participated in an epoch where it already participated.
FutureEpoch
Revert message when the proposed epoch is larger than the current epoch.
Parameters
Name | Type | Description |
---|---|---|
|
| The current epoch clock value. |
|
| The handled epoch clock value. |
InflationTooHigh
Revert message when trying to construct contact with inflation above 100%.
NotVoteEpoch
Revert message when trying to perform an action not allowed outside of designated voting epochs.
VoteEpoch
Revert message when trying to perform an action not allowed during designated voting epochs.