Beanstalk
  • Farmers' Almanac
  • Disclosures
  • Developers
  • Whitepaper
  • 🌱Introduction
    • Why Beanstalk
    • How Beanstalk Works
  • 🌾Farm
    • Overview
    • Sun
    • Silo
      • Seed Gauge System
    • Field
    • Barn
    • Toolshed
      • Depot
      • Pod Market
      • Tractor
  • βš–οΈPeg Maintenance
    • Overview
    • Temperature
    • Crop Ratio
    • Convert
    • Flood
  • πŸ”¬Advanced
    • Stablecoin Overview
    • Types of Stablecoins
    • Economics
  • 🏦Governance
    • Beanstalk
      • BCM Process
      • BCM Dashboard
      • BIC Process
      • BICM Dashboard
    • Beanstalk Farms
      • BFM Dashboard
      • BFC Dashboard
    • BeaNFTs
      • BDM Dashboard
    • Proposals
  • πŸ—ΊοΈGuides
    • Directory
    • Getting Started
      • Where to Begin?
      • Connect to Beanstalk
      • Where Are My Assets and How to Use Them?
      • Approve Contracts
      • Add Bean to MetaMask
    • Sun
      • Understand the Bean Price
      • Understand the Sun
    • Silo
      • Understand Silo vAPY
      • Deposit in the Silo
      • Understand Silo Deposit Performance
      • Convert in the Silo
      • Transfer Deposits
      • Withdraw from the Silo
      • Claim Silo Rewards
    • Field
      • Sow Beans
      • Transfer Pods
      • Harvest Pods
    • Barn
      • Understand Fert vAPY
      • Buy Fertilizer
      • Rinse Sprouts
      • Transfer Fertilizer
      • Trade Fertilizer
    • Market
      • Buy Pods
      • Sell Pods
    • Balances
      • Understand My Balances
      • Migrate to Arbitrum
    • BeaNFTs
      • Mint BeaNFTs
    • Swap
      • Trade Beans
      • Transfer Balances
    • Governance
      • Vote on Governance Proposals
      • Delegate Votes
    • Unripe Assets
      • Chop Unripe Assets
  • πŸ“–Protocol Resources
    • Glossary
    • Asset States
    • Contracts
    • Audits
    • Bug Bounty
  • 🌐Ecosystem
    • Basin
    • Pipeline
  • 🏫Community Resources
    • Discord
    • Notion
    • Contributing
    • Discord Roles
    • Content
    • Links
  • πŸ“°Archives
    • Bean Sprout
      • BSM Dashboard
    • Governance Proposals (June 2023)
    • Fundraiser
Powered by GitBook
On this page
  • Bean vAPY vs Stalk vAPY
  • Estimating Earned Beans per Season
  • Estimating vAPY for Silo Deposits
  • Calculations
Edit on GitHub
Export as PDF
  1. Guides
  2. Silo

Understand Silo vAPY

PreviousSiloNextDeposit in the Silo

Last updated 9 months ago

The Beanstalk UI displays vAPY (variable APY) statistics for each asset on the . APYs are called variable because they are not enforced by Beanstalk in any way. Rather, the APY uses historical data about Beans earned by Stalkholders to estimate future returns for Depositing in the Silo.

The APY calculation has two parts:

  1. Estimating the number of Beans that will be minted per Season using recent historical data.

  2. Estimating the number of Beans and Stalk that a Farmer will receive over time for Depositing their whitelisted assets in the Silo. This takes into account the Stalk supply and Seed supply and makes some about Stalkholder behavior.

Bean vAPY vs Stalk vAPY

Stalkholders earn Bean seignorage when is greater than 0 over the previous Season. Estimated annual Beans earned by a Stalkholder is called the Bean vAPY.

Seeds grow Stalk each Season, regardless of deltaB. Estimated annual Stalk growth for a Stalkholder is called the Stalk vAPY.

Estimating Earned Beans per Season

The Beanstalk UI and Subgraph use a 30-day (EMA) of Beans earned by Stalkholders to estimate future Beans earned by Stalkholders. The formula uses a weighted average in which recent Seasons are weighted more heavily.

The current EMA value can be located on the Silo page by hovering over the Bean vAPY values for any whitelisted asset.

Estimating vAPY for Silo Deposits

The vAPY for Depositing a whitelisted asset in the Silo is determined by the value of 1 newly Deposited in 8760 Seasons (1 year).

The vAPY calculations make the following assumptions:

  • No new assets are Deposited into or Withdrawn from the Silo;

  • No liquidity is added or removed from liquidity pools that Beans trade in;

  • There are 30-day EMA of Beans earned by Stalkholders each Season (which assumes that the Bean to Max LP Seed Ratio will approach its max value if there are any Seasons where Stalkholders earned Beans in the last 30 days); and

  • Every Stalkholder Mows their Grown Stalk and Plants their Plantable Seeds each Season.

Calculations

Exponential Moving Average (EMA)

The window of the EMA (uuu), i.e., the number of Seasons in 30 days:

u=24βˆ—30=720u = 24 * 30 = 720u=24βˆ—30=720

The weighting multiplier (Ξ²\betaΞ²); a constant between 0 and 1 that determines how much weight is given to the most recent data point:

Ξ²=2(u+1)\beta=\frac{2}{(u+1)}Ξ²=(u+1)2​

The 30-day exponential moving average at Season ttt (nΛ‰te\bar{n}^e_tnΛ‰te​):

nΛ‰te=Ξ²βˆ‘i=tβˆ’u+1i≀t(1βˆ’Ξ²)tβˆ’inie\bar{n}^e_t = \beta \sum_{i=t-u+1}^{i \leq t}(1-\beta)^{t-i} n^e_{i}nΛ‰te​=Ξ²i=tβˆ’u+1βˆ‘i≀t​(1βˆ’Ξ²)tβˆ’inie​

Strategy

The Beanstalk UI shows the vAPYs for a Deposit with the average amount of Grown Stalk* based on a simulation of the Farmer's increase in Bean and Stalk positions compounded over the next year.

The complete formulas for the vAPYs can be read in the code .

*The are based on a new Deposit with no Grown Stalk.

πŸ—ΊοΈ
here
APYs on DeFiLlama
exponential moving average
assumptions
Deposit Whitelist
deltaB
BDV