Naming Conventions
yVaults
Dev Cheat Sheet (Examples)
Vanilla ERC20 tokens
Name:
${token.symbol()} or override yVaultSymbol:
yv${token.symbol()} or overrideExamples:
USDC yVault,yvUSDC,aLINK yVault,yvaLINK
LP positions
Curve
Name:
Curve + pool + Pool yVaultExamples:
Curve sBTC Pool yVault,Curve 3pool yVault,Curve Y Pool yVault
Symbol:
yvCurve-poolExamples:
yvCurve-sBTC,yvCurve-3pool,yvCurve-Y. We make an exception for the last one and call ityUSD.
Uniswap
Name:
Uniswap + v${self.version()} + TOKEN-TOKEN + LP yVaultExamples:
Uniswap v2 USDT-WETH LP yVault,Uniswap v2 WBTC-WETH LP yVault
Symbol:
yvUni-TOKEN-TOKENExamples:
yvUni-USDT-WETH,yvUni-WBTC-WETH
Note: Version was included for Uniswap LP tokens to help limit confusion between UNI-v2 LP tokens and upcoming UNI-v3 LP tokens.
Balancer
Name:
Balancer + TOKEN-TOKEN + Pool yVaultExamples:
Balancer USDT-WETH Pool yVault,Balancer WBTC-WETH Pool yVault
Symbol:
yvBal-TOKEN-TOKENExamples:
yvBal-USDT-WETH,yvBal-WBTC-WETH
SushiSwap
Name:
SushiSwap + TOKEN-TOKEN + LP yVaultExamples:
SushiSwap USDT-WETH LP yVault,Uniswap v2 WBTC-WETH LP yVault
Symbol:
yvSushi-TOKEN-TOKENExamples:
yvSushi-USDT-WETH,yvSushi-WBTC-WETH
Experimental
No hard rules for
nameorsymbol, just be sure to endnamewith "yVault".Examples:
yveCRV-DAO yVault,yveCRV-DAO,St. Banteg of Yearn Patron of Plebs Lido St. Ether yVault,sboypoplyvstETH
Overview and Explanation
Acceptable alternative names include Yearn Vaults, or informally referring to the product as vaults.
When referring to a specific yVault, the preferred name is generally
TOKEN + yVault; this matches thenamefield on the yVault contract. However, it is also acceptable to useyvTOKEN + Vault,Yearn + TOKEN + VaultoryvTOKEN; the latter matchessymbolin the contract.Examples:
DAI yVault,yvDAI Vault,Yearn DAI Vault, or simplyyvDAI
For each yVault, name and symbol conventions are as follows:
Name:
${token.symbol()} or override yVaultSymbol:
yv${token.symbol()} or override
A
versionfield is included in the token contract to correspond to the major yVault release version.Additionally, developers may find it useful to denote
versionwithin thenamefield itself to help clarify the token to be deposited. Useful examples include Uniswap LPs (below), and also v1 vs v2 Aave aTokens.
The predominant use case for name and symbol override is for LP tokens. The use of the term
PoolorLPis interchangeable, and will be selected based on colloquial use for each protocol.For instance, Curve and Balancer LP positions are typically referred to as pools since they can contain more than two tokens, while Uniswap and SushiSwap positions are typically referred to as LPs.
Curve
Name:
Curve + pool + Pool yVaultExamples:
Curve sBTC Pool yVault,Curve 3pool yVault,Curve Y Pool yVaultIn this case,
poolis taken directly from Curve.fi's UI, and we can adjust for capitalization as needed. In the case of the3pool, the redundant "Pool" is removed.
Symbol:
yvCurve-poolExamples:
yvCurve-sBTC,yvCurve-3pool,yvCurve-Y
Note: In this methodology,
yvCurve-Yrefers to the vault previously known asyUSD. Please see below for a more detailed discussion on proper use ofyUSD.
Uniswap
Name:
Uniswap + v${self.version()} + TOKEN-TOKEN + LP yVaultExamples:
Uniswap v2 USDT-WETH LP yVault,Uniswap v2 WBTC-WETH LP yVault
Symbol:
yvUni-TOKEN-TOKENExamples:
yvUni-USDT-WETH,yvUni-WBTC-WETH
Note: Version was included for Uniswap LP tokens to help limit confusion between UNI-v2 LP tokens and upcoming UNI-v3 LP tokens.
Balancer
Name:
Balancer + TOKEN-TOKEN + Pool yVaultExamples:
Balancer USDT-WETH Pool yVault,Balancer WBTC-WETH Pool yVault
Symbol:
yvBal-TOKEN-TOKENExamples:
yvBal-USDT-WETH,yvBal-WBTC-WETH
Note: Since Balancer allows more than two tokens per pool, append as many
TOKENas needed for the pool in question.
SushiSwap
Name:
SushiSwap + TOKEN-TOKEN + LP yVaultExamples:
SushiSwap USDT-WETH LP yVault,Uniswap v2 WBTC-WETH LP yVault
Symbol:
yvSushi-TOKEN-TOKENExamples:
yvSushi-USDT-WETH,yvSushi-WBTC-WETH
yVault Want Token
In Yearn's UI, it may be useful to denote the desired token to deposit into a specific yVault. For basic ERC20
wanttokens,nameandsymbolcan be pulled directly from the token contract and utilized as-is.Examples:
USD Coin,USDC,ChainLink Token,LINK
However, for LP positions, naming needs to be standardized.
Curve
Name:
Curve + pool + PoolExamples:
Curve sBTC Pool,Curve 3pool,Curve Y Pool,Curve Compound PoolIn this case,
poolis taken directly from Curve.fi's UI, and we can adjust for capitalization as needed. In the case of the3pool, the redundant "Pool" is removed.
Symbol:
crvPOOL or overrideExamples:
crvBUSD,crvCOMP,crvGUSD,crvMUSD,crvTBTC,crvSBTC,yCRV,3Crv
These names were chosen as
crvBUSDandcrvSBTCare already fairly widely used, and applying this formula works well for other pools.yCRVand3Crvare the allowed exceptions, asyCRVis the most widely used name for that pool, and3Crvusage is now fairly common with the recent admin fee distribution.
Uniswap
Name:
Uniswap + v${self.version()} + TOKEN-TOKEN + LPExamples:
Uniswap v2 USDT-WETH LP,Uniswap v2 WBTC-WETH LP
Symbol:
TOKEN-TOKEN UNIExamples:
USDT-WETH UNI,WBTC-WETH UNI
Balancer
Name:
Balancer + TOKEN-TOKEN + PoolExamples:
Balancer USDT-WETH Pool,Balancer WBTC-WETH Pool
Symbol:
TOKEN-TOKEN BPTExamples:
USDT-WETH BPT,WBTC-WETH BPT
Note: Since Balancer allows more than two tokens per pool, append as many
TOKENas needed for the pool in question.
SushiSwap
Name:
SushiSwap + TOKEN-TOKEN + LPExamples:
SushiSwap USDT-WETH LP,Uniswap v2 WBTC-WETH LP
Symbol:
TOKEN-TOKEN SLPExamples:
USDT-WETH SLP,WBTC-WETH SLP
yUSD
While the term
yUSDwas used to refer to the Curve Y Pool yVault in the past, under our updated naming convention this vault token is nowyvCurve-Y. However, usage ofyUSDis still permissable when referring to the asset itself.Example: Yearn pays monthly grants in
yUSD.
In the future, if Yearn creates a new
yUSDthat is a collection of several yVault tokens (as has been previously discussed), then the currentyUSDwill simply be referred to asyvCurve-Yand only the new token will beyUSD.
yEarn
These are Yearn's original yield-aware tokens, whose v2 and v3 contracts can be found here.
These products should be referred to as yEarn Tokens,
underlying token name + Earn, ory{token.symbol()}v${self.version()}Examples:
yDAIv2,yDAI Earn,yBUSDv3,yBUSD Earn
Test Products
For deployed contracts that have not reached their final production version, a simple modification is included to designate these on the contract level as being test products.
Name:
${token.symbol()} or override + Test + ProductSymbol:
yt${token.symbol()} or overrideExamples:
DAI Test yVault,ytDAI
Additionally, the v2 yVault contracts have upgradeable
nameandsymbolfields. This means that should a test contract perform well, these fields can be updated to reflect that it is no longer a test contract, removing the need to deploy new contracts.
Future Products
Future products can follow a simple naming convention:
y + product, where the product and any potential token names follow similar guidelines as above with yVaults. These can then be further modified as needed based on the product(s).Examples:
ySwap,yBorrow,yTrade
Last updated
Was this helpful?