Calculation

Work-in-Progress

This document contains the formulas used to calculate the data like APY, Volume, and TVL for Napier Protocols.

Annual Percentage Yield (APY)

The annual percentage yield (APY) is the interest rate or yield earned on your investment in one year, including compounding interest. A higher APY is better as your return will be higher.

Net APY

Net APY is the overall annual percentage yield after considering all yields and any other rewards on yield-bearing tokens.

Net APY=Interest APY+Reward APR\text{Net APY} = \text{Interest APY} + \text{Reward APR}

Net APY comes in two part, below are how to calculate each of them.

Interest APY

Interest APY represents the 7-day moving average yield rate of the underlying asset. This approach allows a more accurate indication of the underlying yield over a period of time, which can help traders to better estimate the Future Average Interest APY.

Interest APY=(1+7-day yield)365/71\text{Interest APY} = \left(1 + \text{7-day yield}\right)^{365/7} - 1

Reward APR

Reward APR is the estimation of the current APR for the rewards of the underlying assets. Rewards = returns in the reward token, and it’s not auto-compounding by default.

Reward APR=Annualized rewards (in underlying units)Current asset value\text{Reward APR} = \frac{\text{Annualized rewards (in underlying units)}}{\text{Current asset value}}

Implied APY

Implied APY is the market consensus of the future APY of an asset. This value is calculated based on the ratio of the price of YT to PT and the formula is shown below. When used in conjunction with the Underlying APY, Implied APY can be used to establish the relative valuation of an asset such as YT and PT at their current price, and help traders determine their trading strategies.

The value of Implied Yield is numerically equivalent to the to Fixed Yield APY.

Implied APY=(PT PriceYT Price1)×365Days to Maturity\text{Implied APY} = \left(\frac{\text{PT Price}}{\text{YT Price}} - 1\right) \times \frac{365}{\text{Days to Maturity}}

Effective Implied APY

Effective Implied APY is the APY based on the actual rate that the user used to swap.

Effective Implied APY=(Effective PT PriceEffective YT Price1)×365Days to Maturity\text{Effective Implied APY} = \left(\frac{\text{Effective PT Price}}{\text{Effective YT Price}} - 1\right) \times \frac{365}{\text{Days to Maturity}}

Fixed APY

Fixed APY is the guaranteed yield you will receive by holding PT. This value is numerically equivalent to the Implied APY.

Fixed APYImplied APY\text{Fixed APY} \equiv \text{Implied APY}

Effective Fixed APY

Effective Fixed APY is the Fixed APY based on the actual rate that the user used to swap.

Effective Fixed APYEffective Implied APY\text{Effective Fixed APY} \equiv \text{Effective Implied APY}

Fixed Maturity Profit

Fixed Maturity Profit is the profit at maturity, expressed in the underlying token.

Fixed Maturity Yield=PT ReceivedInput Amount (base asset)\text{Fixed Maturity Yield} = \text{PT Received} - \text{Input Amount (base asset)}

Long (Yield)APY

Long (Yield) APY is the approximated return (annualized) from buying YT at the current price, assuming underlying APY remains constant at its current value. This value can be negative, meaning that the total value of all the future yield based on the Underlying APY will be less than the cost of buying YT.

Interest Returns: The returns from interest for holding 1 YT until expiry:

interestReturns=(1+underlyingInterestApy)yearsToExpiry1 \text{interestReturns} = \left(1 + \text{underlyingInterestApy}\right)^{\text{yearsToExpiry}} - 1

Rewards Returns: The returns from rewards (assumed linear over time):

rewardsReturns=underlyingRewardApy×yearsToExpiry \text{rewardsReturns} = \text{underlyingRewardApy} \times \text{yearsToExpiry}

rewardsReturns=underlyingRewardApy×yearsToExpiry \text{rewardsReturns} = \text{underlyingRewardApy} \times \text{yearsToExpiry}Total YT Returns: The sum of interest and rewards returns:

ytReturns=interestReturns+rewardsReturns \text{ytReturns} = \text{interestReturns} + \text{rewardsReturns}

YT Returns After Fee: Accounting for a 3% fee on the YT yield (i.e. scaling down by 97%):

ytReturnsAfterFee=ytReturns×0.97 \text{ytReturnsAfterFee} = \text{ytReturns} \times 0.97

Long Yield APY: If you start with a YT priced at ytReturnsAfterFee\text{ytReturnsAfterFee}, then after yearsToExpiry\text{yearsToExpiry} you receive an additional ytReturnsAfterFee\text{ytReturnsAfterFee}(in terms of the base asset). The APY is calculated by annualizing the total return:

longYieldApy=(ytPriceInAsset+ytReturnsAfterFeeytPriceInAsset)1yearsToExpiry1 \text{longYieldApy} = \left(\frac{\text{ytPriceInAsset} + \text{ytReturnsAfterFee}}{\text{ytPriceInAsset}}\right)^{\frac{1}{\text{yearsToExpiry}}} - 1

Yield (Point) Leverage

Yield (Point) Leverage is the multiplied exposure on yield or points by holding YT beyond what your principal normally earns.

Yield (Point) Leverage=1Yield Price in YBT \text{Yield (Point) Leverage} = \frac{1}{\text{Yield Price in YBT}}

Pool APY

Pool APY is the overall APY from TwoCryptoNG Curve after considering all yields and any other rewards on LP positions.

Volume

Volume is the the number of shares or contracts traded in an asset over a period of time.

Volume=iTraded Asseti\text{Volume} = \sum_{i} \text{Traded Asset}_i

TVL (Total Value Locked)

TVL

TVL (Total Value Locked) is the total amount of assets currently deposited in the Napier protocol.

Pool TVL

Pool TVL is the total value locked within a specific liquidity pool.

PT and YT TVL

PT and YT TVL is the current value of the total issued amount of a specific PT and YT.

AUM

Current AUM

Current AUM is the current value of assets under management by a specific curator.

Current AUM=i=1NTVLcuratori\text{Current AUM} = \sum_{i=1}^{N} \text{TVL}_{\text{curator}_i}

Where:

  • NN is the total number of market curators.

  • TVLcuratori\text{TVL}_{\text{curator}_i} represents the TVL of the ithi^{th}market curator.

Cumulative AUM

Cumulative AUM is the total historical value of assets that a curator have been managed since inception.

Cumulative AUM=i=1NTVLmarketi\text{Cumulative AUM} = \sum_{i=1}^{N} \text{TVL}_{\text{market}_i}

Where:

  • NN is the total number created by curator.

  • TVLmarketi\text{TVL}_{\text{market}_i} represents the TVL of the ithi^{th} created by curator.

Cumulative Fees Earned

Cumulative fees earned are the total fees collected by a curator across all transactions over time.

Cumulative Fees Earned=iFee Receivedi\text{Cumulative Fees Earned} = \sum_{i} \text{Fee Received}_i

Underlying asset TVL

Underlying asset TVL is the total value locked in the underlying assets across the protocol.

Last updated