IMaverickV2VotingEscrowWSync
Functions
MIN_SYNC_DURATION
This function retrieves the minimum lockup duration required for a legacy lockup to be eligible for synchronization.
function MIN_SYNC_DURATION() external pure returns (uint256 minSyncDuration);
Returns
minSyncDuration
uint256
The minimum allowed lockup end time.
legacyVeMav
This function retrieves the address of the legacy Maverick V1 Voting Escrow (veMav) token.
function legacyVeMav() external view returns (IERC20);
Returns
<none>
IERC20
legacyVeMav The address of the IERC20 legacy veMav token.
syncBalances
This function retrieves the synced balance for a specific legacy lockup index of a user.
function syncBalances(address staker, uint256 legacyLockupIndex) external view returns (uint256 balance);
Parameters
staker
address
The address of the user for whom to retrieve the synced balance.
legacyLockupIndex
uint256
The index of the legacy lockup for which to retrieve the synced balance.
Returns
balance
uint256
The synced balance associated with the legacy lockup.
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.
function sync(address staker, uint256 legacyLockupIndex) external returns (uint256 newBalance);
Parameters
staker
address
The address of the user for whom to perform synchronization.
legacyLockupIndex
uint256
The index of the legacy lockup to be synchronized.
Returns
newBalance
uint256
The new balance resulting from the synchronization process.
Events
Sync
event Sync(address staker, uint256 legacyLockupIndex, uint256 newBalance);
Errors
VotingEscrowLockupEndTooShortToSync
error VotingEscrowLockupEndTooShortToSync(uint256 legacyLockupEnd, uint256 minimumLockupEnd);
Last updated