SMBSwap
  • SMBSwap Intro
  • 1️⃣Get Started (BSC)
    • Create a Wallet
    • Get BEP20 Tokens
    • Using SMBSwap without Centralized Exchanges
    • Connect Your Wallet to SMBSwap
  • πŸ†˜Help Area
    • General FAQ
    • Troubleshooting Errors
    • Fixing Stuck Pending Transactions in MetaMask
  • πŸ“§Contact Us
    • Business Partnerships
    • Community
    • Customer Support
  • πŸ‘©β€πŸ³The SMB Team
  • πŸ—ΊοΈRoadmap
  • PRODUCTS
    • πŸ”„Exchange
      • πŸͺ™Token Swaps
      • ↕️How To Trade
      • πŸ“³Smart Router
        • How to trade using Smart Router
      • πŸ’΅Liquidity Pools
      • ⚑Zap
      • πŸ“ How to Add/ Remove Liquidity
      • FAQ
    • 🚜Yield Farming
      • How to Use Farms
      • bSELF
        • How to Use bSELF
        • FAQ
      • FAQ
    • πŸ’΅Made Pools - Stake SELF
      • New SELF Made Pool
        • How to Use the Flexible Staking Option
        • How to Use the Fixed-Term Staking Option
        • SELF Made Pool FAQ
      • Other Made Pools
        • Made Pool FAQ & Troubleshooting
    • 🎟️Lottery
      • How to Play SMB Lottery
      • How to Play BUSD Lottery
      • Lottery FAQ
    • πŸ“ŠAnalytics
    • β˜‘οΈVoting
      • How to Vote
  • TOKENOMICS
    • πŸͺ™SELF
      • SELF Tokenomics
      • Controlling SELF Supply
  • DEVELOPERS
    • 🚚v3 Migration
      • How to migrate
      • How v3 APR is calculated
      • FAQ
    • 🚚v2 Migration
      • Migrate Your Stakings
      • MasterChef v2
        • List of Farms
      • SELF Made Pool
    • Smart Contracts (EVM)
      • SMBSwap Exchange
        • v3
          • SMBV3Factory
          • SmartRouterV3
            • V3SwapRouter
            • V2SwapRouter
            • StableSwapRouter
          • NonfungiblePositionManager
          • SMBV3Pool
        • v2
          • Factory v2
          • Router v2
        • Stable Swap
          • StableSwap Pools
        • Smart Router
      • MasterChef
        • MasterChef V3
      • Made Pools
      • SELF Made Pool
      • Lottery
      • Farm Booster (bSELF)
    • 🧠Smart Contracts (BSC)
      • SMBSwap Exchange
        • Factory v2
        • Router v2
      • MasterChef
      • Made Pools
      • SELF Made Pool
      • Lottery
      • Farm Booster (bSELF)
    • πŸͺ°Report a Bug
  • JOIN THE TEAM
    • πŸ”‘Opportunities
  • REFERENCE/ ARCHIVE
    • Auto SELF Made Pool
    • How to Use Farms with BscScan
    • Main Staking/ Made Pool/ MasterChef Contract
    • Auto SELF Made Pool (SelfVault)
Powered by GitBook
On this page
  • LP fee
  • SELF APR
  1. DEVELOPERS
  2. v3 Migration

How v3 APR is calculated

In V3 Liquidity and Farms, with the new non-fungible liquidity and customizable price range ability. Each LP position will have its own LP fee and SELF farming APR.

The total APR is combined by the LP fee APR and SELF reward APR

LP fee

Theoretically speaking, given a price range and liquidity user about to add, we can estimate the expected future 7 days fee as following

feenext7d=feeinΞ”LLin+Ξ”Lfee_{next7d} = fee_{in} \frac{\Delta{L}}{L_{in} + \Delta{L}}feenext7d​=feein​Lin​+Ξ”LΞ”L​
  • feein fee_{in} feein​ : Fee amount accrued in the user specified price range in last 7 days

  • Lin L_{in} Lin​: Current liquidity in the user specified price range

  • Ξ”L \Delta{L} Ξ”L: Liquidity user want to add to the price range

Fee in range

For feein fee_{in} feein​, we use the historical trading volume data, fee tier and historical price data to estimate the price in range

feein=ftV7dTinT7d fee_{in} = f_tV_{7d}\frac{T_{in}}{T_{7d}} feein​=ft​V7d​T7d​Tin​​

  • ft f_t ft​: Fee tier

  • V7d V_{7d} V7d​: Total trading volume of last 7 days

  • Tin T_{in} Tin​: Duration, measured in seconds, of prices staying within the price range in the past 7 days

  • T7d T_{7d} T7d​: 7 days measured in seconds

SELF APR

Pool Allocation

The total reward SELF per second in MC v3 using upkeep and can be derived by latestPeriodSelfPerSecond

selfPerSecond = lastestPeriodSelfPerSecond / 1e12 / 1e18

In each pool, we can use poolInfo to get the poolWeight by dividing poolInfo.allocPoint / totalAllocPoint

Global SELF APR

Global APR calculated using the total amount of active & staked liquidity with the pool SELF reward emissions.

APR (global) = (selfPerSecond * 31536000) / (totalAllocPoint / pool.allocPoint) * 100 * selfUSD / totalStakedLiquidityUSD

totalStakedLiquidityUSD represents the current pool active staked liquidity in USD, composing by all the position ticks in range staked in MasterChef v3.

Position SELF APR

APRs for individual positions may vary depend on their price range settings.

ARPp=USDrUSDpLpLlmARP_p = {\frac{USD_{r}}{USD_{p}}} {\frac{L_{p}}{L_{lm}}} ARPp​=USDp​USDr​​Llm​Lp​​
  • USDrUSD_rUSDr​: SELF reward earn USD per year in pool

  • USDpUSD_pUSDp​: Total USD value in position

  • Lp L_{p} Lp​: Position liquidity

  • Llm L_{lm} Llm​: Total staking liquidity which tracked by LMPool

PreviousHow to migrateNextFAQ

Last updated 2 years ago

🚚