Pangea Swap
English
English
  • Introduction
  • Protocol Overview
  • Disclaimer
    • Risk & Security
    • Terms of Use
  • Updates
  • Audit
  • concentrated liquidity
    • Weakness of V2 DEXs: Low Liquidity utilization rate
    • Solution by V3 DEXs: Concentrated Liquidity
    • Concentrated Liquidity FAQ
  • Connectivity
    • Customizable Pool
  • Governance
    • STONE
      • STONE Distribution Plan
      • Tokenomics (Before)
      • Tokenomics (After)
      • Growth Fund History
    • Contribution Point NFT
  • Guide
    • SWAP
    • Add Liquidity
      • Add liquidity (Preset)
      • Add liquidity (Custom)
    • STONE Staking
    • Revenue Sharing
    • FAQ
  • Growth Partnership
    • Swapscanner
    • ISKRA
  • event
    • Promotion
  • Developers
    • Concept Overview
      • Problem : Lazy Liquidity
      • Liquidity Concentration
      • Position & Risk
      • Price Tick
      • Position NFT
      • Fees
      • Flash Loan
    • Contracts
      • Core Contracts
        • MasterDeployer
        • ConcentratedLiquidityPoolFactory
        • ConcentratedLiquidityPool
        • ConcentratedLiquidityPoolManager
        • PoolRouter
        • PoolLogger
        • AirdropDistributor
      • Contribution Point NFT
      • Price Oracle
    • Interacting with the Protocol
      • Setting up Local Test Environment
        • Test env. commands
      • Getting Pangea Pool Info
      • Creating Pangea Pool
      • Mint Position (add liquidity)
      • Burn Position (remove liquidity)
      • Claim Fee
      • Swap
  • Community
    • Website
    • Discord
    • Telegram
    • Medium
    • Twitter
    • Opensea - Position NFT
    • Opensea - CP NFT
    • GitHub
    • Testnet
    • E-mail
Powered by GitBook
On this page
  • Liquidity Provider’s Income
  • Income Breakdown
  • How to Calculate Estimated APR
  1. Developers
  2. Concept Overview

Fees

Liquidity Provider’s Income

There are 3 main types of income that liquidity providers can receive from Pangea's pool.

LP_Fee=swap_fee+flash_fee+airdrop_reward(rewards)LP\_Fee = swap\_fee + flash\_fee + airdrop\_reward (rewards)LP_Fee=swap_fee+flash_fee+airdrop_reward(rewards)

Liquidity providers receive these returns based on the size and price range of their liquidity positions.

Income Breakdown

1. swap Fee : Fees received from the swap amount when a swap occurs. Taken from the output token.

swap_fee=swap_output∗pool_fee_rate1,000,000swap\_fee = swap\_output * \frac{pool\_fee\_rate}{1,000,000}swap_fee=swap_output∗1,000,000pool_fee_rate​

c.f.) 10% of the total swap fee goes to the protocol.

2. flash Fee : Fees received from flash transactions where borrowing and repaying assets within 1 transaction.

flash_fee=borrowed_amount∗flash_fee1,000,000flash\_fee = borrowed\_amount * \frac{flash\_fee}{1,000,000}flash_fee=borrowed_amount∗1,000,000flash_fee​

c.f) The flash fee is calculated at the same rate as the pool fee rate per pool.

c.f.) 10% of the total flash fee goes to the protocol.

3. airdrop Reward : Airdrop rewards for liquidity providers in the pool. Provided together with swap fee rewards when claiming.

airdrop_per_second=airdrop_amount86,400airdrop\_{per}\_{second} = \frac{airdrop\_amount}{86,400}airdrop_per_second=86,400airdrop_amount​

c.f) Distributed in proportion to the time and is distributed to the users who have provided liquidity to price ranges including the pool price at that time. Airdrop rewards start to be distributed every Thursday at 09:00(KST, UTC+9), and are distributed linearly for one week.

c.f.) No protocol fee is taken from airdrop rewards.

How to Calculate Estimated APR

Estimated APR is calculated by using the following formula to find the Estimated APR (APR_full range) for a full range position and then multiplying it by the Fee Boost.

​

unitReward0=(swapFeeGrowthGlobal0now−swapFeeGrowthGlobal0now−1D)⋅price0unitReward1=(swapFeeGrowthGlobal1now−swapFeeGrowthGlobal1now−1D)⋅price1unitAirdropReward0=airdrop_per_second0⋅86,400⋅price0unitAirdropReward1=airdrop_per_second0⋅86,400⋅price1unitReward_0 = (swapFeeGrowthGlobal0_{now} - swapFeeGrowthGlobal0_{now-1D}) \cdot price_{0} \\ unitReward_1 = (swapFeeGrowthGlobal1_{now} - swapFeeGrowthGlobal1_{now-1D}) \cdot price_{1} \\unitAirdropReward_0 = airdrop\_{per}\_{second}_0 \cdot86,400 \cdot price_0 \\unitAirdropReward_1 = airdrop\_{per}\_{second}_0 \cdot 86,400 \cdot price_1 unitReward0​=(swapFeeGrowthGlobal0now​−swapFeeGrowthGlobal0now−1D​)⋅price0​unitReward1​=(swapFeeGrowthGlobal1now​−swapFeeGrowthGlobal1now−1D​)⋅price1​unitAirdropReward0​=airdrop_per_second0​⋅86,400⋅price0​unitAirdropReward1​=airdrop_per_second0​⋅86,400⋅price1​
APRfull_range=(unitReward0+unitReward1+unitAirdropReward0+unitAirdropReward1)⋅liquidity1dollar⋅365DAPR_{full\_range} =(unitReward_0 + unitReward_1 \\ +unitAirdropReward_0+unitAirdropReward_1) \cdot liquidity_{1 dollar} \cdot 365DAPRfull_range​=(unitReward0​+unitReward1​+unitAirdropReward0​+unitAirdropReward1​)⋅liquidity1dollar​⋅365D
Estimated_APR=APRfull_range⋅FeeBoostEstimated\_APR = APR_{full\_range} \cdot Fee BoostEstimated_APR=APRfull_range​⋅FeeBoost

PreviousPosition NFTNextFlash Loan

Last updated 2 years ago