Skip to main content

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,000 wei, less than 0.000000001 YB).
  • 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.

  1. Open yieldbasis.com, connect your wallet, and navigate to Lock.

    Lock page showing voting power summary and the Create Lock panel

  2. In the Create Lock panel, enter the amount of YB to lock.

  3. 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 * 365 days) ahead.

    Term locks cannot be shortened or withdrawn early

    You 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).

    Create Lock panel showing YB amount input and lock duration selector

  4. If prompted, approve VotingEscrow to spend your YB.

  5. 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.

Canceling a permalock starts a fresh 4-year countdown

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.

  1. On the Lock page, toggle Permalock on for your active lock.
  2. 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.

  1. Open yieldbasis.com and navigate to Vote.

  2. Enter your weight allocation across one or more active gauges. Total allocated weight must be 100% (10,000 bps) or less.

    10-day cooldown per gauge

    After you submit a vote for a gauge, you cannot change your weight on that gauge for 10 days (864,000 seconds). Re-voting on the same gauge inside that window reverts with Cannot vote so often. You can still adjust votes on other gauges during the cooldown.

  3. 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.

  1. Wait until any 10-day cooldown on that gauge expires.
  2. Set the killed gauge's weight to 0 (GaugeController always allows setting a killed gauge's weight to 0).
  3. 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: TokenVoting snapshots veYB balances 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(), and votingMode(). When votingMode() == 1, a proposal can execute early once quorum is met and Yes support 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.

  1. Open yieldbasis.com and navigate to Lock (or the fee-claim panel).
  2. Review your claimable fee tokens across started weekly epochs (whose Thursday 00:00 UTC timestamp has passed).
  3. 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 stringContractCause and action
Withdraw old tokens firstVotingEscrowYour 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 maxVotingEscrowPick a Thursday 00:00 UTC strictly in the future and at most 4 years ahead.
Not allowed (canceling permalock)VotingEscrowClear all your gauge-vote weights to 0 on the Vote page before disabling permalock.
ExpiredGaugeControllerYour veYB lock expired. Withdraw and create a new lock before voting.
Cannot vote so oftenGaugeControllerFewer than 10 days passed since your last vote on one of the selected gauges.
KilledGaugeControllerYou assigned non-zero weight to a killed gauge. Set its weight to 0.
Used too much powerGaugeControllerYour 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, and FeeDistributor contract references.