Skip to main content

Overview

StakeVault provides flexible ELTA staking without time locks. Staked ELTA earns voting weight and protocol rewards, but at a lower multiplier than veELTA. Suitable for users who want liquidity without committing to a lock period.

Key Functions

Read

FunctionReturnsDescription
balanceOf(address account)uint256Staked ELTA balance
totalStaked()uint256Total ELTA in vault
getVotes(address account)uint256Governance voting power
getPastVotes(address account, uint256 timepoint)uint256Historical voting power
weightMultiplier()uint256Vote weight multiplier (basis points)

Write

FunctionAccessDescription
stake(uint256 amount)UserStake ELTA into vault
unstake(uint256 amount)UserWithdraw staked ELTA
delegate(address delegatee)UserDelegate voting power

Weight Calculation

StakeVault voting weight uses a configurable multiplier (default: 25%): votes=stakedAmount×weightMultiplier10000\text{votes} = \text{stakedAmount} \times \frac{\text{weightMultiplier}}{10000} This means 1 ELTA staked in the vault yields 0.25 votes versus up to 1.0 votes via veELTA with a 4-year lock.

veELTA vs StakeVault

FeatureveELTAStakeVault
Lock requiredYes (up to 4 years)No
Max vote weight1.0x0.25x
Reward shareHigherLower
LiquidityLocked until expiryWithdraw anytime

Events

EventEmitted When
Staked(address account, uint256 amount)ELTA staked
Unstaked(address account, uint256 amount)ELTA withdrawn
DelegateChanged(address delegator, address delegatee)Voting power delegated