MaverickV2VotingEscrowWSync
Inherits: MaverickV2VotingEscrow, IMaverickV2VotingEscrowWSync
Inherits MaverickV2VotingEscrow and adds functionality for synchronizing veMav V1 and veMav v2 balances.
State Variables
legacyVeMav
This function retrieves the address of the legacy Maverick V1 Voting Escrow (veMav) token.
syncBalances
This function retrieves the synced balance for a specific legacy lockup index of a user.
MIN_SYNC_DURATION
This function retrieves the minimum lockup duration required for a legacy lockup to be eligible for synchronization.
Functions
constructor
sync
This function synchronizes a specific legacy lockup index for a user within the contract. If the legacy lockup.end is not at least block.timestamp + MIN_SYNC_DURATION()
, this function will revert.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the user for whom to perform synchronization. |
|
| The index of the legacy lockup to be synchronized. |
Returns
Name | Type | Description |
---|---|---|
|
| The new balance resulting from the synchronization process. |
Last updated