> For the complete documentation index, see [llms.txt](https://funmarket.gitbook.io/funmarket/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://funmarket.gitbook.io/funmarket/bonding-curve-and-lmsr-explained.md).

# Bonding Curve & LMSR Explained

### Why FunMarket Uses a Bonding Curve

<br>

Traditional markets rely on order books to match buyers and sellers.

This approach requires constant liquidity and market makers.

<br>

FunMarket instead uses an automated market maker (AMM) based on a bonding curve model, allowing markets to function continuously without relying on counterparties.

<br>

This ensures:

* Always-available liquidity
* Transparent pricing
* Permissionless participation
* No centralized market maker

***

### What Is a Bonding Curve?

<br>

A bonding curve is an algorithmic pricing function.

<br>

Prices adjust automatically based on:

* The number of shares outstanding
* The distribution of shares across outcomes
* The sequence of trades executed

<br>

As demand for an outcome increases, its price increases.

As demand decreases or shifts to other outcomes, its price decreases.

<br>

Prices are state-dependent, not fixed.

***

### LMSR: Logarithmic Market Scoring Rule

<br>

FunMarket uses a variant of the Logarithmic Market Scoring Rule (LMSR).

<br>

LMSR is a well-known mechanism for prediction markets that:

* Supports continuous price discovery
* Provides bounded loss for the market
* Scales naturally to multi-outcome markets

<br>

Prices emerge from a mathematical function rather than manual odds setting.

***

### Multi-Outcome Market Pricing

<br>

In FunMarket, a single market may contain more than two outcomes.

<br>

Each outcome:

* Has its own price
* Competes with other outcomes for probability mass

<br>

All outcome prices are interdependent.

<br>

When users buy one outcome:

* That outcome’s price increases
* Other outcomes’ prices adjust downward

<br>

This ensures that the total probability space remains consistent across all outcomes.

***

### Price Is Not Probability

<br>

Prices on FunMarket represent market-relative values, not guaranteed probabilities.

<br>

Prices:

* Reflect current market sentiment
* Change dynamically with participation
* Do not imply correctness or certainty

<br>

A price of 70% does not mean an outcome will occur with 70% certainty.

<br>

Markets may be wrong.

***

### Liquidity Without an Order Book

<br>

Because pricing is handled algorithmically:

* Users do not need a counterparty to trade
* Orders are executed immediately against the curve
* Liquidity is always available, subject to price impact

<br>

However, large trades may experience:

* Slippage
* Increased price impact
* Less favorable execution

***

### Entry, Exit, and Price Impact

<br>

When entering or exiting a position:

* The execution price depends on current market state
* Larger trades move prices more significantly
* Early participants may benefit from lower prices
* Late participants may face higher prices

<br>

There is no guarantee that users can exit at a profit or at a desired price.

***

### Risk Considerations

<br>

Users should understand that:

* Prices can move rapidly
* Market sentiment may change unexpectedly
* Resolution outcomes may differ from expectations
* Smart contracts operate deterministically but are not risk-free

<br>

Bonding curves do not eliminate risk.

They redistribute liquidity and price discovery.

***

### Why This Model Matters

<br>

Using LMSR allows FunMarket to:

* Support permissionless market creation
* Enable multi-outcome predictions
* Avoid centralized liquidity providers
* Maintain transparent, on-chain pricing

<br>

This model aligns incentives without requiring a centralized “house.”


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://funmarket.gitbook.io/funmarket/bonding-curve-and-lmsr-explained.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.
