APX Finance
  • 🚀What is APX Finance?
  • 🌙Brand Logo & Guidelines
  • Welcome
    • 📄$APX Token & Contracts
      • ⚡Allocation
      • 🔥Token Burn
      • 💲Tax
    • 💎ALP Liquidity Pool
      • 💡How to buy ALP?
      • 💡How to stake/unstake?
      • 💡How to sell?
      • 💡Fees for buying and selling ALP
      • ‼️Risk
    • ⛓️Trading on V2
      • ❓How does it work?
      • ⬇️How to interact directly with the contract
      • 🤝Powered by Pyth Oracle and Chainlink
      • 🐸Degen Trading Mode
        • 💰Dynamic close fee for Degen Mode
      • 🎰V2 Fees & Slippage
      • 💢MAD perpetual contracts
        • 💢MADBTCUSD
          • Index Details
        • 💢MADETHUSD
          • Index Details
        • 💢MADCAKEUSD
          • Index Details
      • 😎Dumb Mode
        • How to place orders
      • 📃DEGEN Inscriptions Airdrop
      • 📈Forex
      • 👥APX V2 Referral
      • 📖APX Testnet Walk through [Inactive]
      • 💡FAQ
        • 💡Connect wallet
        • 💡Opening a position
        • 💡How to place stop orders?
        • 💡Position management
        • 💡One click close all position feature
        • 💡Order Types
      • 📹Video Tutorials (V2)
    • 👋Trading on V1
      • 📡Pre-Launch Markets
        • BLAST Pre-Launch Futures
      • 💰Wallet Connection
      • 💡How to start trading on APX V1?
        • 💸Deposit & Withdrawal
        • 🪜Margin Mode & Leverage
        • ⬆️Position Mode
        • 💻Order Types
          • TP/SL orders (Strategy Order)
          • Trailing Stop Order
        • 🛑Closing Positions
        • 📈Grid Trading
          • 👾Set-up Your Grid Trading Strategy
          • 👾Futures Grid Trading Auto Parameters Guide
          • 👾Long/Short Grid Trading introduction
        • 💡Lite Mode
      • ❓FAQ
        • ❓Multi-Assets Mode
        • ❓How to Adjust the Margin Balance in Cross/Isolated Margin Modes
        • ❓How to Calculate the Cost of Opening a USDⓈ-M Perpetual Futures Contract Position
        • ❓Mark Price in USDⓈ-M Perpetual Futures Contracts
        • ❓Funding Rate
        • ❓Auto-Deleveraging (ADL)
        • ❓APX Futures Liquidation Protocol
        • ❓Delisting Process of A Futures Contract
        • ❓APX DEX Referral Guidelines
        • ❓How to Whitelist APX Emails?
      • 📹Video Tutorial (V1)
  • Features & Tutorials
    • ℹ️General
      • 💡What is Gas Fee?
      • 💡How to switch network?
      • 💡How to change language
      • 💡How to bind your social media account to receive notifications
    • 🖥️All about APX Web
      • 💡How to Connect Your Wallet? (Web version)
      • 💡How to find your DEX UID? (Web)
    • ⛓️Permissionless DEX Engine
      • Features and benefits of permissionless solution
      • FAQs
    • 👾Trading
      • 💡How to Buy Crypto on APX DEX via BANXA
      • 💡How to check your balance (V1)
      • 💡How to use Multi-Assets Mode
      • 💡How-to Guide: Use BONUSUSD to trade crypto futures on APX V1
  • Programs
    • 📞V2 ARB Incentive Season (Trading)
    • 📣V2 ARB Incentive Season (Weekly Bonus, ALP Staking)
    • 💰$100,000 Binance Web3 Wallet Trading Campaign Tutorial
    • 🪂Strategic Partnership with Lista DAO - Cosmic Adventure Challenge
    • 📏V2 Trading Rewards
    • ⛏️Retroactive Mining Rewards
  • APX DAO
    • 👨‍🚀How To Participate?
    • 📫DAO Staking
      • 🎫Get Voting Power
      • ⚡Staking Rewards & Repurchased Tokens
      • ⚡Trading Benefits
      • ⚡Penalty Fee
    • 🍀Governance
      • 🌡️Temperature Check
      • 🤚Standards for raising DAO proposals
  • API
    • 🖱️Create API
    • 💾API Documentation
  • Community
    • 🔗Social Media & Communities
  • About Us
    • 🗺️Roadmap
      • 🍁2023 Roadmap
      • 🍁2022 Milestones
      • 🍁2021-2022 Roadmap
    • 🔖Audit Reports
    • APX Team
    • Privacy Policy
    • Terms of Use
    • Restriction
Powered by GitBook
On this page
  • Buying fee:
  • Selling fee:
  1. Welcome
  2. ALP Liquidity Pool

Fees for buying and selling ALP

To encourage more users to use different assets to buy ALP, APX Finance will adjust the fee for transacting ALP according to the target weight and current weight of the assets in the ALP liquidity pool. This will encourage the asset composition of the pool to be closer to the target weight. The formula is as follows:

Buying fee:

Basic Rate Parameter 1: FeeBasisPoints,USDT is currently set at 0.25%

Basic Rate Parameter 2: TaxBasisPoints,USDT is currently set at 0.05%

The current asset value: InitialValue=AssetValueInPool+AssetUnrealizedpnl_usd

The current asset value after minting: AfterMinValue=InitialValue+MinValue

Calculate the Asset value according to the target weight: TargetValue=(Total Value_usd+totalUnrealizedpnl_Usd)*Target weight,Total Value=sum(InitialValue)

The current Asset value and the target value (absolute value): InitialDiff=InitialValue-TargetValue

After Minting, the asset value and target mechanism (absolute value): AfterDiff=AfterMintValue-TargetValue

  • if AfterDiff<InitialDiffValue

MintFee=Max(FeeBasisPoints-TaxBasisPoints*InitialDiff/TargetValue,0)

  • if AfterDiff>=InitialDiff

MintFee=FeeBasisPoints+TaxBasisPoints*Min((InitialDiff+AfterDiff)/2,TargetValue)/TargetValue

Selling fee:

Basic Rate Parameter 1: FeeBasisPoints,USDT is currently set at 0.25%

Max Base Rate Parameter 2: TaxBasisPoints,USDT is currently set at 0.05%

The current asset value: InitialValue=AssetValueInPool+AssetUnreliazedpnl_usd

The current asset value after Burn: AfterMaxValue=InitialValue-MinValue

Calculating the Asset value according to the target weight: TargetValue=Total Value*Target weight

The current asset value and target value (absolute value): InitialDiff=InitialValue-TargetValue

After Burn, the asset value and target mechanism (absolute value): AfterMaxDiff=AfterBurnValue-TargetValue

  • if AfterDiff<InitialDiffValue

BurnFee=Max(FeeBasisPoints-MTaxBasisPoints*InitialDiff/TargetValue,0)

  • if AfterDiff>=InitialDiff

BurnFee=FeeBasisPoints+TaxBasisPoints*Min((InitialDiff+AfterDiff)/2,TargetValue)/TargetValue

For example:

If the value of the ALP pool is $10,000,000, the unrealized PnL is $+10,000, the value of BTC in the liquidity pool is $1,000;

The BTC target weight is 2%, and the current weight is 0.01%. The base rate parameter 1 of BTC is 0.25%, and the base rate parameter 2 is 0.45%.

According to the calculation, the rate of buying ALP with 1 BTC at this time is 0% = 0 BTC. The transaction fee for selling ALP to get 1 BTC is 0.7% = 0.007BTC.

After the user selects the asset and quantity and clicks [Buy ALP] or [Sell ALP], the page will display the fees for this transaction as per the image below:

PreviousHow to sell?NextRisk

Last updated 1 year ago

Users can click to view the composition of the ALP liquidity pool, the tokens’ quantities and values, target weights and current weights, as well as other information.

💎
💡
here