# Payoff & Positions

When initializing a market, the market operator will select a payoff function. A payoff function describes the logic the smart contracts should use to divide the money between the two sides of the market: long & short, when the market settles.

Perennial allows for developers to define any payoff function they desire — everything from simple long \<asset> markets to 3x short \<asset> markets to options & exotic payoffs. Below are some examples of possible payoff functions:

**Example Payoff Functions**

| Product            | Payoff      | Oracle             |
| ------------------ | ----------- | ------------------ |
| 3x Leveraged Ether | 3 \* ETH    | Chainlink ETH Feed |
| Squeeth            | ETH \* ETH  | Chainlink ETH Feed |
| ETH-USDC UniV2 LP  | sqrt( ETH ) | Chainlink ETH Feed |

The payoff function for a market can be any function over an available oracle feed. This function is the definition of the exposure one (`1e18`) taker position represents within the market.

In the case of the "3x Leveraged ETH" payoff function, the payoff function itself is leveraged. This is independent of Maker positions that can also be leveraged (Ex. a Maker could be 2x leveraged on a 3\*ETH market). For more information on Maker/Taker leverage, see the Maintenance (& Leverage) section.

#### Positions <a href="#positions" id="positions"></a>

Positions in Perennial are represented as units of a payoff function. This means exposure is tethered to the payoff function, not in terms of USD.

For example, say one wanted to open a 1 ETH long position (payoff = 1 \* ETH). This will open a taker position for 1 \* market\_payoff, so 1 \* ETH. This position would keep 1 ETH of exposure until closed or liquidated.

Conversely, if a user is trying to open a position in terms of some $USD amount, they would have to estimate the USD value in units of the underlying payoff and open a position accordingly.

For example, if ETH is about $1000, and a user wants to open a $2500 long-eth position, they could call openTake(2.5), which will open a position that tracks 2.5\*ETH, which will be approximately (but not exactly, because of delayed settlement) equal to $2500.

[Funding](https://docs.perennial.finance/protocol-design/funding-rate) & [fees](https://docs.perennial.finance/protocol-design/trading-fees-and-price-impact) are debited from a position's collateral account.


---

# 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.kwenta.io/using-kwenta/perennial-isolated-margin/perennial-intro/payoff-and-positions.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.
