> 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/japanese/qu-yin/pancakeswap-infinity/hooks/dynamic-fee-hook.md).

# ダイナミックフィーフック

PancakeSwapの公式動的手数料Hookは、流動性プロバイダーとトレーダー間でより公平な価値交換を生み出すよう設計されています。LPを過度なインパーマネントロス（IL）から保護しながら、トレーダーにとっての市場効率を維持します。

PancakeSwapのコアチームによって構築されたこのhookは、従来の固定手数料モデルへのスマートで適応的な代替手段を提供するよう特別に設計されています。

#### 🔍 なぜ動的手数料なのですか？

大規模なアービトラージ取引はプール内でより大きな価格乖離を引き起こし、LPのILを増加させます。私たちの動的手数料モデルは、このリスクを相殺するために大規模なアービトラージ取引に比例して高い手数料を請求しつつ、アービトラージャーが利益を得て価格を均衡に保つのに十分な余地を残しています。

#### 📊 他のモデルとの違い

過去の他のモデルは、ボラティリティを推定したり手数料を調整するために過去のデータなどの要因を使用してきました。しかし：

* 過去のデータは遅行指標であり、将来のボラティリティを正確に予測できない場合があります。
* 規制変更や経済的変動などの外部市場イベントにより、過去のトレンドが信頼できなくなる可能性があります。
* 複雑でパラメータの多いモデルは過学習のリスクがあり、過去のデータでは良いパフォーマンスを示しても、新しい未知の状況には対応できない場合があります。

私たちのアプローチは、よりシンプルで適応的であり、リアルタイムの取引動向に基づいています。

#### ⚙️ 仕組み

* **ボラティリティやその他のマクロ要因を予測しません**\
  代わりに、私たちのモデルは異なる市場環境でのアービトラージャーの行動から自然に恩恵を受けます：
  * **高ボラティリティ時：** より多くの大規模アービトラージ取引 → LPへの高い手数料がILのより大きな部分をカバー
  * **低ボラティリティ時：** より少なく、より小さな取引 → ILは本来低いが、固定手数料モデルと比べてLPはより高い手数料を依然として獲得
* **私たちのモデルの使用要素**
  * アービトラージ取引を検出するための指数加重プール価格
  * 各スワップの価格インパクトに基づく指数的手数料曲線
  * トレーダーの公平性を維持するための最大手数料上限5%

{% hint style="success" %}
これにより、取引インパクトに応じて手数料が動的にスケールし、変化する市場状況に自動的に適応することが保証されます。
{% endhint %}

* **バランスの取れたインセンティブ**\
  アービトラージャーは動的手数料差し引き後も約50%の利益を維持できるため、プール価格を市場に合わせ続けるモチベーションが確保されます。

#### 📌 主なポイント

* ボラティリティやその他のマクロ要因の予測に依存しません。
* 実際の取引動向に基づいて市場のボラティリティに自動適応します。
* スワップごとにILからLPを保護します。
* 価格差を埋めるアービトラージャーへの強力なインセンティブを維持します。
* より深い流動性と低いベース手数料でトレーダーにメリットを提供します。


---

# 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/japanese/qu-yin/pancakeswap-infinity/hooks/dynamic-fee-hook.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.
