IEpochBasedInflationaryVoteToken
Inherits: IEpochBasedVoteToken
Author: M^0 Labs
Functions
sync
Syncs account
so that its balance Snap array in storage, reflects their unrealized inflation.
Parameters
account
address
The address of the account to sync.
hasParticipatedAt
Returns whether delegatee
has participated in voting during clock value epoch
.
Parameters
delegatee
address
The address of a delegatee with voting power.
epoch
uint256
The epoch number as a clock value.
Returns
<none>
bool
Whether delegatee
has participated in voting during epoch
.
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
account
address
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
currentEpoch
uint16
The current epoch clock value.
epoch
uint16
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.