Unipilot
  • Unipilot
  • Unipilot
    • Introduction
    • Our Goal
  • The Pilot Protocol
    • Unipilot Vaults
    • Providing Liquidity through the Pilot Protocol
    • Concentration Incentive & Captains
    • The Pilot Index Fund
    • Range Prediction & Pilot NFT
    • Fees Calculation
    • Vault Fare
    • $PILOT NFT
    • Pilot Growth Fund
    • The $PILOT Token
  • Features
    • Add liquidity with a single token
    • Interest-Free Loans
    • Flash Fees
    • Universal Support
  • Community
    • Snapshot Voting
    • The $1,000 Proposal
    • Our Socials
  • Resources
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. The Pilot Protocol

Fees Calculation

Fees earned by the protocol position of any pair are accumulated in fees0 and fees1 variables of the LiquidityPosition struct in the smart contract. Liquidity position also stores totalLiquidity that represents the total shares of this pool.

When any user removes their liquidity, the fee variables are updated from the Uniswap position. Then users earned fees according to their share of the pool, are transferred to their wallet and the accumulated fee variables are updated.

PreviousRange Prediction & Pilot NFTNextVault Fare

Last updated 3 years ago

Was this helpful?