탈중앙화 펀딩비 계산 메커니즘 (수학적 원리)
프리미엄 지수(Premium Index)와 이자율(Interest Rate)을 포함하여 무기한 선물 프로토콜에서 펀딩 수수료를 계산하는 데 사용되는 수학적 공식.
DeFi에서 이 클램프(한도 제한)는 스마트 컨트랙트에 하드코딩되어 있습니다. 제한 한도가 없다면, 높은 변동성 속에서 펀딩비가 트레이더의 마진을 순식간에 소진시켜 죽음의 소용돌이(Death Spiral) 같은 대규모 연쇄 청산을 초래할 수 있습니다.
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
표준 펀딩비 공식은 다음과 같습니다: Funding Rate = Premium Index + clamp(Interest Rate - Premium Index, 0.05%, -0.05%). TWAP의 역할: 프리미엄 지수는 단일 스냅샷 가격이 아니라 시간 가중 평균 가격(TWAP)을 사용합니다. 이는 악의적인 조작자가 플래시 론(Flash Loan)을 사용해 펀딩 정산 직전에 가격을 순간적으로 폭등시켜 수수료를 훔쳐가는 것을 막기 위함입니다. vAMM 메커니즘: 전통적인 오더북이 없는 vAMM 기반 퍼페추얼은 프리미엄 지수 대신 롱 포지션과 숏 포지션의 미결제 약정 불균형(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.