> For the complete documentation index, see [llms.txt](https://docs.pancakeswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pancakeswap.finance/portuguese-brazilian/negociacao/perpetual-trading/perpetual-trading-v2/perpetual-trading-faq/arbitrum/alp-syrup-pool-arbitrum/alp-buying-and-selling-fees.md).

# Taxas de Compra e Venda de ALP

## Taxa de Compra:

Parâmetro de Taxa Base 1: FeeBasisPoints, USDT atualmente definido em 0,25%

Parâmetro de Taxa Base 2: TaxBasisPoints, USDT atualmente definido em 0,05%

O valor atual do ativo: InitialValue=AssetValueInPool+AssetUnrealizedpnl\_usd

O valor atual do ativo após a cunhagem: AfterMinValue=InitialValue+MinValue

Calcule o valor do ativo de acordo com o peso alvo: TargetValue=(Total Value\_usd+totalUnrealizedpnl\_Usd)\*Peso alvo，Total Value=sum(InitialValue)

A diferença entre o valor atual do ativo e o valor alvo (valor absoluto): InitialDiff=InitialValue-TargetValue

Após a Cunhagem, a diferença entre o valor do ativo e o mecanismo alvo (valor absoluto): AfterDiff=AfterMintValue-TargetValue

* se AfterDiff\<InitialDiffValue

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

* se AfterDiff>=InitialDiff

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

## Taxa de Venda:

Parâmetro de Taxa Base 1: FeeBasisPoints, USDT atualmente definido em 0,25%

Parâmetro de Taxa Base Máxima 2: TaxBasisPoints, USDT atualmente definido em 0,05%

O valor atual do ativo: InitialValue=AssetValueInPool+AssetUnreliazedpnl\_usd

O valor atual do ativo após a Queima: AfterMaxValue=InitialValue-MinValue

Calculando o valor do ativo de acordo com o peso alvo: TargetValue=Total Value\*Peso alvo

A diferença entre o valor atual do ativo e o valor alvo (valor absoluto): InitialDiff=InitialValue-TargetValue

Após a Queima, a diferença entre o valor do ativo e o mecanismo alvo (valor absoluto): AfterMaxDiff=AfterBurnValue-TargetValue

* se AfterDiff\<InitialDiffValue

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

* se AfterDiff>=InitialDiff

BurnFee=FeeBasisPoints+TaxBasisPoints\*Min((InitialDiff+AfterDiff)/2,TargetValue)/TargetValue<br>

Por exemplo:

Se o valor do pool ALP for $10.000.000, o PnL não realizado for $+10.000, e o valor do BTC no pool de liquidez for $1.000;

O peso alvo do BTC é 2%, e o peso atual é 0,01%. O parâmetro de taxa base 1 do BTC é 0,25%, e o parâmetro de taxa base 2 é 0,45%.

De acordo com o cálculo, a taxa de compra de ALP com 1 BTC neste momento é de 0% = 0 BTC. A taxa de transação para vender ALP para obter 1 BTC é de 0,7% = 0,007BTC.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pancakeswap.finance/portuguese-brazilian/negociacao/perpetual-trading/perpetual-trading-v2/perpetual-trading-faq/arbitrum/alp-syrup-pool-arbitrum/alp-buying-and-selling-fees.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
