Stella
  • Overview
    • 🌠Getting Started
    • 🀝Pay-As-You-Earn (PAYE) Model
  • Protocol Mechanism
    • ❓How Stella Works?
    • πŸš€Stella Strategy
      • Why Stella Strategy is Unique?
      • Strategy Type
      • Asset Type
      • Strategy Exposure
      • Collateral Factor
      • Borrow Factor
      • Credits
      • Price Range & Liquidity Shape
      • Liquidation
        • Liquidation Discount
        • Post-Liquidation Value
        • Pendle/Penpie Liquidation Price
      • Price Impact
      • Leverage
      • Supported Strategies
    • 🏦Stella Lend
      • Why Stella Lend is Unique?
      • Pool Type
      • Supported Assets
      • Yield Vault
      • Withdrawal Delay
    • πŸ’°Yield Calculation
      • PAYE Graph
      • Yield Sharing
    • ⚠️Risk Framework
      • Precautionary Measures
      • Slow Mode
  • App Guide
    • Walkthrough Stella APP
    • Open a position
    • Close a Position
    • View Your Position
    • Add/Remove Extra Collateral
    • Claim Assets from Liquidated Position
    • Deposit & Withdraw Assets
  • Developers
    • πŸ“ƒContract Addresses
      • Core
      • Stella Strategy
      • Stella Lend
      • Oracle
    • πŸ“œContract ABI
    • βš™οΈAPI
  • Tokenomics
    • 🎯ALPHA Token
    • ⚑Staking & Protocol Fees
    • πŸ‘₯Token Distribution
  • Additional Information
    • 🟠About Stella
    • πŸ”ŽAudit Reports
    • πŸ“£Community Links
    • πŸ“ΈMedia Kit
    • ❔FAQ
    • πŸ“–Terms of Use
Powered by GitBook
On this page
  • Understand Yield in Stella
  • Annualized Yield
  • Example
  1. Protocol Mechanism

Yield Calculation

Understand Yield in Stella

In Stella, the definition of "Yield" is the remaining value of the position in US dollars at the time of closing the position after repaying the debts and returning the leveragoors’ initial input.

Yield=PositionValueβˆ’BorrowValueβˆ’InputValue\text{Yield} = \text{PositionValue}-\text{BorrowValue}-\text{InputValue}Yield=PositionValueβˆ’BorrowValueβˆ’InputValue

Where the value of each part is calculated as follows

PositionValue=LPTokenAmountβ‹…PriceLPToken+RewardTokenAmountβ‹…PriceRewardToken\text{PositionValue} = \text{LPTokenAmount} \cdot \text{Price}_{\text{LPToken}} + \text{RewardTokenAmount} \cdot \text{Price}_{\text{RewardToken}}PositionValue=LPTokenAmountβ‹…PriceLPToken​+RewardTokenAmountβ‹…PriceRewardToken​
BorrowValue=BorrowAmountβ‹…PriceBorrowToken\text{BorrowValue} = \text{BorrowAmount} \cdot \text{Price}_{\text{BorrowToken}}BorrowValue=BorrowAmountβ‹…PriceBorrowToken​
InputValue=InputAmountβ‹…PriceInputToken\text{InputValue} = \text{InputAmount} \cdot \text{Price}_{\text{InputToken}}InputValue=InputAmountβ‹…PriceInputToken​

Annualized Yield

In Stella, we need to calculate the annualized yield in order to determine how much profit should be shared between the lenders and leveragoors

YieldAPR=Yield(BorrowValue+InputValue)β‹…365β‹…24β‹…60β‹…60(tscloseβˆ’tsopen)\text{Yield}_{\text{APR}} = \frac{\text{Yield}}{(\text{BorrowValue}+\text{InputValue})} \cdot \frac{365\cdot24\cdot60\cdot60}{(\text{ts}_{\text{close}}-\text{ts}_{\text{open}})}YieldAPR​=(BorrowValue+InputValue)Yield​⋅(tscloseβ€‹βˆ’tsopen​)365β‹…24β‹…60β‹…60​

tsclose\text{ts}_{\text{close}}tsclose​ = timestamp at the the time of closing the position

tsopen\text{ts}_{\text{open}}tsopen​ = timestamp at the time where the position was opened

Example

  • Alice input 1000 USDC and open a position with leverage 4x on Uniswap V3 ETH/USDC 0.3% strategy by borrowing 2 ETH and 1000 USDC where ETH@1000

  • As time passed for exactly 30 days, Alice's position accrue the trading fee and her current position composition is 2.1 ETH + 2100 USDC where ETH price is still the same @1000

  • Alice closes the position getting the yield of $200 over 30 days

  • So, Alice's position yield is

=Β (2.1β‹…$1000+$2100)βˆ’(2β‹…$1000+$1000)βˆ’($1000)=Β $4200βˆ’$3000βˆ’$1000=Β $200\textsf{= } (\textsf{2.1} \cdot \textsf{\$1000} + \textsf{\$2100}) - (\textsf{2} \cdot \textsf{\$1000} + \textsf{\$1000}) - (\textsf{\$1000}) \\ \textsf{= } \textsf{\$4200} - \textsf{\$3000} - \textsf{\$1000} \\ \textsf{= } \textsf{\$200}=Β (2.1β‹…$1000+$2100)βˆ’(2β‹…$1000+$1000)βˆ’($1000)=Β $4200βˆ’$3000βˆ’$1000=Β $200

  • Yield = $200

  • Annualized Yield = 60.83%

PreviousWithdrawal DelayNextPAYE Graph

Last updated 1 year ago

πŸ’°