Lock YB and vote
Use this guide to lock YB into VotingEscrow for a veYB NFT, direct YB emissions across market gauges, vote on YB DAO proposals, and claim your weekly share of protocol admin fees.
Prerequisites
- YB tokens in your wallet (minimum
126,144,000wei, less than0.000000001YB). - No expired, unwithdrawn lock on the same address (withdraw expired YB first).
- ETH in your wallet for gas.
Lock YB into VotingEscrow (veYB)
Locking YB mints one ERC-721 veYB NFT to your address (the token ID equals your address). You can choose a term lock whose voting power decays linearly to zero at expiry, or enable permalock to keep 100% voting power with zero decay.
-
Open yieldbasis.com, connect your wallet, and navigate to Lock.

-
In the Create Lock panel, enter the amount of YB to lock.
-
Choose a lock duration using a preset (1M, 6M, 1Y, 4Y) or a custom Lock end date. Lock end dates always round down to the nearest Thursday 00:00 UTC, up to 4 years (
4 * 365days) ahead.Term locks cannot be shortened or withdrawn earlyYou cannot withdraw locked YB or shorten a lock before its expiry timestamp. You can only add more YB (
increase_amount) or extend the expiry to a later Thursday (increase_unlock_time).
-
If prompted, approve
VotingEscrowto spend your YB. -
Submit the lock and sign the transaction in your wallet.
Optional: enable permalock
A permalock pins your lock at the 4-year maximum so your voting power equals 100% of your locked YB with no decay.
While permalock is active, you cannot withdraw your YB. To turn permalock off, you must first clear all your gauge-vote weights to 0. Disabling permalock converts your position into a fresh 4-year decaying lock rounded down to Thursday 00:00 UTC.
- On the Lock page, toggle Permalock on for your active lock.
- Sign the transaction in your wallet.
Vote on gauge emission weights
Allocate your veYB voting power in GaugeController to direct YB emissions across market gauges.
-
Open yieldbasis.com and navigate to Vote.
-
Enter your weight allocation across one or more active gauges. Total allocated weight must be
100%(10,000bps) or less.10-day cooldown per gaugeAfter you submit a vote for a gauge, you cannot change your weight on that gauge for 10 days (
864,000seconds). Re-voting on the same gauge inside that window reverts withCannot vote so often. You can still adjust votes on other gauges during the cooldown. -
Submit the vote and sign the transaction in your wallet.
Expected result
GaugeController updates raw gauge weights immediately in the same transaction with no epoch delay. Each gauge's final emission share is scaled by sqrt(staked / totalSupply); read veYB and governance for the full routing formula.
Move weight off a killed gauge
When YB DAO deprecates a market, it can kill that market's gauge (GaugeController.set_killed). A killed gauge rejects new positive votes (Killed) but retains existing votes until voters clear them.
- Wait until any 10-day cooldown on that gauge expires.
- Set the killed gauge's weight to 0 (
GaugeControlleralways allows setting a killed gauge's weight to0). - Reallocate the freed voting power to an active gauge, submit, and sign.
Vote on YB DAO proposals
veYB holders govern YieldBasis through the YB DAO, an Aragon DAO running the TokenVoting plugin. Proposals can update protocol parameters, add or kill gauges, manage markets, and upgrade implementations (note that changing a Curve pool's policy contract requires a Curve DAO vote; see veYB and governance).
Key rules when voting on a proposal:
- Snapshot power:
TokenVotingsnapshotsveYBbalances at proposal creation. YB locked after creation cannot vote on that proposal. - Vote options and finality: Cast Yes, No, or Abstain. When
votingMode() == 1, vote replacement is disabled—you cannot change your vote after submitting it. - Linear voting-power decay: Votes cast before
getDecayMidpointBasisPoints()of the voting window carry 100% snapshot power. After the midpoint, effective voting power decays linearly to zero at the end of the voting period. Vote early to preserve full power. - Live parameters and early execution: Read current thresholds on-chain via
minParticipation(),supportThreshold(),minDuration(),getProposalCooldownPeriod(),getDecayMidpointBasisPoints(), andvotingMode(). WhenvotingMode() == 1, a proposal can execute early once quorum is met andYessupport is mathematically guaranteed.
Claim protocol admin fees
Protocol admin fees collected from YieldBasis markets flow to FeeDistributor, which spreads newly arrived fees evenly over OVER_WEEKS = 4 future weekly epochs (Thursday 00:00 UTC boundaries). Your claimable share for each started epoch is proportional to your veYB voting power at that epoch's snapshot.
- Open yieldbasis.com and navigate to Lock (or the fee-claim panel).
- Review your claimable fee tokens across started weekly epochs (whose Thursday 00:00 UTC timestamp has passed).
- Submit the claim (
FeeDistributor.claim) and sign the transaction in your wallet. Each call claims up to 50 epochs at once.
Common reverts and stop conditions
| Revert string | Contract | Cause and action |
|---|---|---|
Withdraw old tokens first | VotingEscrow | Your address already holds a lock. Use increase_amount, increase_unlock_time, or withdraw an expired lock first. |
Can only lock until time in the future / Voting lock can be 4 years max | VotingEscrow | Pick a Thursday 00:00 UTC strictly in the future and at most 4 years ahead. |
Not allowed (canceling permalock) | VotingEscrow | Clear all your gauge-vote weights to 0 on the Vote page before disabling permalock. |
Expired | GaugeController | Your veYB lock expired. Withdraw and create a new lock before voting. |
Cannot vote so often | GaugeController | Fewer than 10 days passed since your last vote on one of the selected gauges. |
Killed | GaugeController | You assigned non-zero weight to a killed gauge. Set its weight to 0. |
Used too much power | GaugeController | Your total gauge allocation exceeds 100% (10,000 bps). |
Next steps
- veYB and governance: voting-power math, decay curve, and authority boundaries across YB DAO and Curve DAO.
- Tokenomics: YB supply, emission schedule, and allocation.
- Dev: DAO contracts:
VotingEscrow,GaugeController, andFeeDistributorcontract references.