# 무기한 선물 펀딩

영구 선물은 만기에 따른 포지션 정리가 별도로 없기 때문에 선물 가격이 현물 시장 지수 가격으로 (Spot Market Index Price) 수렴하지 않을 수 있습니다. Oyster AMM 의 경우 **지속적 자금 조달 방식**을 (Continuous Funding) 사용하여 원칙적으로 선물과 현물 가격이 특정 주기마다 수렴될 수 있게 만듭니다.&#x20;

$$
FundingFeeRate = \frac{(P\_{\text{fair}} - P\_{\text{spot}})}{P\_{\text{spot}}} \cdot \frac{\Delta t}{Interval}
$$

위 공식에서 ∆t 는 펀딩비율이 (Funding Fee Rate) 계산되는 기준 시점과 마지막 시점 간 시간 차를 (초) 의미합니다.

거래 항목에 따라 **인터벌(interval)**&#xC740; 다르게 설정될 수 있습니다. 예를 들어, 1시간(3600초), 8시간(28800초), 또는 24시간(86400초)으로 설정될 수 있습니다.

&#x20;사용자와 특정 거래쌍 간 모종의 상호 작용이 발생할 때마다 펀딩비는 업데이트됩니다. 포지션 별 미실현펀딩 비용 / 수익은 포지션의 증감 혹은 정리, 마진의 조정 등 상황이 발생했을 때 정산됩니다.

## 심화내용

Smart Contract 본연적 한계 때문에 Earn 을 (AMM Pool) 통해 추가된 유동성은 펀딩 비용 / 수익에서 면제됩니다. Smart Contract 은 유동성의 OI 를 제외한 Long Position 의 총 OI 와 Short Position 의 총 OI 를 추적하도록 설계되어 있습니다. 그렇다면 실질적으로 펀딩비는 다음과 같이 계산됩니다. 아래 "FundingFeeRate" 는 위에서 도출한 펀딩비를 의미합니다.

Long Position 이 Short Position 에게 펀딩비를 지불하는 경우：

* **FundingFeeRateForLong = -FundingFeeRate**
* **FundingFeeRateForShort = +FundingFeeRate \* totalLongPositionOI / totalShortPositionOI**

Short Position 이 Long Position 에게 펀딩비를 지불하는 경우:

* **FundingFeeRateForShort = FundingFeeRate**
* **FundingFeeRateForLong = -FundingFeeRate \* totalShortPositionOI / totalLongPositionOI**

즉, 자금을 지원하는 측은 항상 그대로 자금을 지원하지만, 자금을 받는 측은 지위 불균형에 따라 더 많은 자금을 받거나 더 적은 자금을 받을 수 있습니다.&#x20;

**정리하면, 펀딩비를 지불하는 측은 펀딩비율에 의해 계산 된 비용 만큼을 지불하지만 반대로 받는 측은 펀딩비율에 의해 계산 된 값에 포지션 불균형에 의해 발생한 값을 더하거나 차감하여 받게 됩니다.**  &#x20;

## 의의

**시장이 급격히 폭등하는 시나리오의 경우,** LP 가 Short Position 에 대한 유동성 공급을 유의미하게 감소시키기 전까지  totalLongPositionOI 가 totalShortPositionOI 대비 클 가능성이 높습니다. Oyster AMM 의 유동성이 대부분의 Short Position 에 집중되어 있기 때문입니다.

* Long Position 이 펀딩비를 지불해야 하는 경우, **Short Position 은 포지션 단위당 더 많은 값을 받게 됩니다.**
* Long Position 이 펀딩비를 받는 경우, **Long Position 은 포지션 단위당 더 적은 값을 받게 됩니다.**

**시장이 폭락하는 시나리오의 경우,** LP 가 Long Position 에 대한 유동성 공급을 유의미하게 감소시키기 전까지  totalShortPositionOI 가 totalLongPositionOI 대비 클 가능성이 높습니다. Oyster AMM 의 유동성이 대부분의 Long Position 에 집중되어 있기 때문입니다.

* Short Position 이 펀딩비를 지불해야 하는 경우, **Long Position 은 포지션 단위당 더 많은 값을 받게 됩니다.**
* Short Position 이 펀딩비를 받는 경우, S**hort Position 은 포지션 단위당 더 적은 값을 받게 됩니다.**


---

# Agent Instructions: 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:

```
GET https://docs.synfutures.com/kr/oyster-amm/undefined-4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
