> For the complete documentation index, see [llms.txt](https://kazuma-i.gitbook.io/yomiswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kazuma-i.gitbook.io/yomiswap/guide-lp/calculation-fee.md).

# Calculation Fee

### Formula for calculating newly issued LP points

$$userLPoint = totalLPoint \* {user DepositNFTValue\over PoolNFTValue + totalFee}$$

`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) {userLPoint \over totalLPoint} - 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
