資金調達率の計算メカニズム(数式)
無期限先物プロトコルで資金調達手数料を計算するために使用される、プレミアムインデックスや金利コンポーネントなどの具体的な数学的公式。
クランプ(上限・下限設定)はスマートコントラクトにハードコードされています。もしクランプがなければ、激しいボラティリティの際にファンディングレートが急激に跳ね上がり、トレーダーの証拠金が一瞬で枯渇し、連鎖的な清算(デス・スパイラル)を引き起こす危険性があります。
graph LR
Center["資金調達率の計算メカニズム(数式)"]:::main
Rel_oracles["oracles"]:::related -.-> Center
click Rel_oracles "/terms/oracles"
Rel_smart_contracts["smart-contracts"]:::related -.-> Center
click Rel_smart_contracts "/terms/smart-contracts"
Rel_decentralized_perpetual_futures_funding["decentralized-perpetual-futures-funding"]:::related -.-> Center
click Rel_decentralized_perpetual_futures_funding "/terms/decentralized-perpetual-futures-funding"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 5歳でもわかるように説明
エアコンの自動温度調整みたいなものです。部屋が暑すぎる(価格が高すぎる)と、現在の温度(プレミアム)と電気代(金利)に基づいて、どれだけ冷風(手数料)を出すか計算します。でも、部屋が一瞬で凍りつかないように、「一度に5度以上下げてはいけない」という安全リミッター(Clamp)がついています。
🤓 Expert Deep Dive
標準的な数式(BitMEXが開発し、DeFiで広く採用されている)は次の通りです:Funding Rate = Premium Index + clamp(Interest Rate - Premium Index, 0.05%, -0.05%)。プレミアムインデックス(TWAPの利用): スナップショット(瞬間的な価格)ではなく、時間加重平均価格(TWAP)が使用されます。これは、悪意のあるユーザーがフラッシュローン(Flash Loan)を使って計算の直前に価格を瞬間的に吊り上げ、手数料を不当に受け取る操作を防ぐためです。vAMMにおける違い: オーダーブックを持たないvAMMでは、プレミアムインデックスの代わりに、ロングとショートの建玉(Open Interest)の比率(Skew)を利用してファンディングレートを計算することがあります。
❓ よくある質問
Why do protocols cap the funding rate?
To prevent sudden, extreme fees from instantly liquidating traders during periods of massive market volatility or manipulation.
What is the Premium Index?
It is the mathematical difference between the current trading price of the perpetual contract and the real-world spot price provided by an Oracle.
Why use TWAP for funding rates?
Time-Weighted Average Price (TWAP) prevents manipulators from artificially pumping the price for a single block just to manipulate the funding calculation.