Understand Fert vAPY

The Beanstalk UI displays vAPY (variable APY) statistics for Fertilizer. APYs are called variable because they are not enforced by Beanstalk in any way. Rather, the APY uses historical data about Beans earned by Fertilizer holders to estimate future returns.
The APY calculation has two parts:
  1. 1.
    Estimating the number of Beans that will be minted per Season using recent historical data.
  2. 2.
    Estimating the number of Beans that a Farmer will receive over time for holding Fertilizer. This takes some assumptions about Fertilizer holder behavior.

Fert vAPY vs Stalk vAPY

Fertilizer holder earn Bean seignorage when deltaB is greater than 0 over the previous Season. Estimated annual Beans earned by a Fertilizer holder is called the Fert vAPY.

Estimating Sprouts Fertilized per Season

The Beanstalk UI and Subgraph use a 30-day exponential moving average (EMA) of Beans earned by Fertilizer holders to estimate future returns. The formula uses a weighted average in which recent Seasons are weighted more heavily.
The current EMA value can be located on the Barn page by hovering over the Fert vAPY.

Estimating vAPY for Fertilizer

The vAPY is determined by the estimated return of holding Fertilizer in 8760 Seasons (1 year).
The vAPY calculation makes the following assumptions:
  • No more Available Fertilizer is purchased; and
  • No Active Fertilizer becomes Used.


Exponential Moving Average (EMA)

The window of the EMA (
), i.e., the number of Seasons in 30 days:
u=2430=720u = 24 * 30 = 720
The weighting multiplier (
); a constant between 0 and 1 that determines how much weight is given to the most recent data point:
The 30-day exponential moving average at Season
nˉte=βi=tuit(1β)tinie\bar{n}^e_t = \beta \sum_{i=t-u}^{i \leq t}(1-\beta)^{t-i} n^e_{i}

Fert vAPY

The formulas for the Fert vAPY (
​) take the following variables as inputs:
  • nˉte\bar{n}^e_t
    , the 30-day EMA of Beans earned by Fertilizer holders at Season
  • hh
    , the Humidity at Season
    ​; and
  • FF
    , the Active Fertilizer supply.
​ is calculated using the estimated number of Beans owned by the Fertilizer holder a year from now (8760 Seasons from now).
First, calculate the delta Beans earned per Fertilizer (
We define
​ as:
vAPYFert=(h1+hBPF÷8760)\text{vAPY}^{\text{Fert}}=(\frac{h}{ \frac{1 + h}{\text{BPF}} \div 8760})