YomiSwap NFT AMM
English
English
  • 😇YomiSwap
  • 📝Protocol Architecture
  • 🍔Usecase
  • guide(LP)
    • 🌊Liquidity Provider
    • 🤌Calculation Fee
    • 🎨Staking NFT
    • 🐝Staking FT
  • Guide(Buyer)
    • 💡Buyer
    • 🖼️Buy NFT
  • guide(Seller)
    • 👕Seller
    • 👞Sell NFT
Powered by GitBook
On this page
  • Formula for calculating newly issued LP points
  • Formula for calculating compensation for withdrawals
  1. guide(LP)

Calculation Fee

PreviousLiquidity ProviderNextStaking NFT

Last updated 2 years ago

Formula for calculating newly issued LP points

userLPoint=totalLPoint∗userDepositNFTValuePoolNFTValue+totalFeeuserLPoint = totalLPoint * {user DepositNFTValue\over PoolNFTValue + totalFee}userLPoint=totalLPoint∗PoolNFTValue+totalFeeuserDepositNFTValue​

userDepositNFTValue The value of the NFT that users are providing liquidity.

userLPoint LP points issued

totalLPoint Total LP points issued

poolNFTValue Total value of NFTs in the pool

totalFee Total compensation the pool has

Formula for calculating compensation for withdrawals

userFee=(poolNFTValue+totalFee)userLPointtotalLPoint−userDepositNFTValueuserFee =(poolNFTValue + totalFee) {userLPoint \over totalLPoint} - userDepositNFTValueuserFee=(poolNFTValue+totalFee)totalLPointuserLPoint​−userDepositNFTValue

userFee Liquidity rewards received by users

userDepositNFTValue The value of the NFT that users are providing liquidity.

userLPoint LP points issued

totalLPoint Total LP points issued

poolNFTValue Total value of NFTs in the pool

totalFee Total compensation the pool has

🤌