> ## Documentation Index
> Fetch the complete documentation index at: https://docs.everstrike.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Funding Rates: How Hourly Payments Work on Everstrike

> Funding is an hourly payment between longs and shorts on Everstrike. Learn how the rate is calculated from the premium, dampener, and funding interval.

Funding is an hourly exchange of value between traders holding long positions and traders holding short positions. Its purpose is to keep the [Mark Price](/trading/mark-price) anchored close to the [Index Price](/trading/index-price). Without funding, perpetual contracts could trade at a persistent premium or discount to the broader market.

## How Funding Works

The direction of the funding payment depends on the sign of the funding rate:

* **Positive funding rate** — longs pay shorts. This happens when the Mark Price is above the Index Price, making long exposure more expensive and short exposure more attractive.
* **Negative funding rate** — shorts pay longs. This happens when the Mark Price is below the Index Price, making short exposure more expensive and long exposure more attractive.

## Funding Rate Calculation

The funding rate is calculated in four steps every hour.

### Step 1: Calculate the Premium

```text theme={null}
Premium = (Mark Price - Index Price) / Index Price
```

The premium is the relative gap between the Mark Price and the Index Price, expressed as a decimal. For example, `0.01` equals `1%`.

### Step 2: Cap with the Dampener

```text theme={null}
Base Funding Rate = Min(dampener, Max(-dampener, Premium))
```

This formula clamps the base funding rate to the interval `[-dampener, +dampener]`, preventing extreme funding rates from amplifying market dislocations.

The dampener value differs by product:

| Product           | Dampener      |
| ----------------- | ------------- |
| Perpetual Futures | `0.03` (3%)   |
| Perpetual Options | `1.00` (100%) |

<Note>
  These dampener values can change. Check the [Markets API](https://docs.testnet.everstrike.io/#tag/Public/operation/pairs) for the current value for each trading pair.
</Note>

### Step 3: Scale to the Hourly Interval

```text theme={null}
Funding Rate = Base Funding Rate × (Funding Interval / Funding Period)
```

On Everstrike:

* **Funding Period** = 10 hours
* **Funding Interval** = 1 hour

Each hourly funding exchange therefore applies one tenth of the capped 10-hour base rate. For perpetual futures, this caps the hourly funding rate at `0.3%` (3% ÷ 10).

### Step 4: Calculate the Funding Payment

The payment for each direction is:

```text theme={null}
Funding (Long)  = -Funding Rate × Position Size (USD)
Funding (Short) =  Funding Rate × Position Size (USD)
```

`Position Size (USD)` is the position's notional value in USD.

## Example

Suppose a perpetual futures contract has the following values:

| Input         | Value      |
| ------------- | ---------- |
| Mark Price    | 101        |
| Index Price   | 100        |
| Position Size | 10,000 USD |
| Dampener      | 0.03       |

**Step 1 — Premium:**

```text theme={null}
Premium = (101 - 100) / 100 = 0.01 = 1%
```

**Step 2 — Cap with dampener:**

```text theme={null}
Base Funding Rate = Min(0.03, Max(-0.03, 0.01)) = 0.01
```

**Step 3 — Scale to hourly interval:**

```text theme={null}
Funding Rate = 0.01 × (1 / 10) = 0.001 = 0.1%
```

**Step 4 — Calculate payment:**

```text theme={null}
Funding Payment = 0.001 × 10,000 = 10 USD
```

Because the funding rate is positive, the long pays `10 USD` and the short receives `10 USD`.

## Operational Details

Everstrike exchanges funding during the **first five seconds of each hour**. During this window, Everstrike snapshots all open positions and debits or credits each trader's margin balance accordingly.

<Warning>
  Trading is disabled during the first ten seconds of each hour to allow the funding exchange to complete cleanly. Do not submit orders immediately on the hour.
</Warning>
