# Protocol Basics

In a European [digital options](/overview/protocol-basics/digital-options.md#what-are-digital-options) transaction, the buyer pays a premium and obtains the **right** to receive a fixed $1 payout. This right is tokenized and exercisable at options' maturity. The seller receives the premium and assumes the **obligation** to pay $1.&#x20;

In a Divergence v1 pool, one pays premiums to market buy options. Before a swap, there must be liquidity for a price range. The liquidity providers (LPs) are passive sellers of options. The liquidity they provide ensures that options can be paid off upon settlement. LPs collect fees for transactions within their liquidity range. The premiums they receive are kept in the pool and reserved for settlement.&#x20;

Before options expire, one can also provide previously purchased calls or puts as liquidity to close long exposures, or buy puts or calls to hedge and offset long exposures.

At settlement, anyone can call the smart contracts to retrieve a settlement price from [Pyth](https://docs.pyth.network/price-feeds/use-real-time-data). If the underlying price is above or equal to the strike price, the call options are in-the-money. Call token holders can exercise their rights to receive one collateral per option.  LPs have the seller obligation to pay for their open shorts in calls. Otherwise, the put options are in-the-money, and put holders can claim one collateral per option.  LPs have the seller obligation to pay for their open shorts in puts.

For broader discussions about digital options as a financial derivative, and the core swap and liquidity functionalities of Divergence v1, visit the following pages:

<table data-view="cards"><thead><tr><th align="center"></th><th data-hidden></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td align="center"><strong>Digital Options</strong></td><td></td><td></td><td><a href="/pages/V3otewC7NPlPpWaO4aBf">/pages/V3otewC7NPlPpWaO4aBf</a></td><td><a href="/files/q7Lw7vZCrrydAdJqAUOu">/files/q7Lw7vZCrrydAdJqAUOu</a></td></tr><tr><td align="center"><strong>Triangular Swaps</strong></td><td></td><td></td><td><a href="/pages/oSDjoctcy4YkChbh19Ai">/pages/oSDjoctcy4YkChbh19Ai</a></td><td><a href="/files/r54Yx40WzrH7ZuwBogjj">/files/r54Yx40WzrH7ZuwBogjj</a></td></tr><tr><td align="center"><strong>Convertible Liquidity</strong></td><td></td><td></td><td><a href="/pages/xrJPblwUj44CL6FgA3EO">/pages/xrJPblwUj44CL6FgA3EO</a></td><td><a href="/files/8WVmul54S7E6SgnqRyCy">/files/8WVmul54S7E6SgnqRyCy</a></td></tr></tbody></table>

For those who are looking for a quick reference on options trading, view the one-page summary of [options specs](/overview/protocol-basics/options-specs.md) and the curated playlists in our [youtube channel](https://www.youtube.com/@DivergenceProtocol). To dive deeper, please refer to the [whitepaper](https://www.divergence-protocol.com/diver_v1AMM_paper.pdf) and the [technical documentation of Divergence v1 smart contracts](/technical-reference/smart-contract-architecture.md). For some of the fundamental math concepts of the protocol, check out this [Uniswap v3 primer](https://blog.uniswap.org/uniswap-v3-math-primer).&#x20;


---

# 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.divergence-protocol.com/overview/protocol-basics.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.
