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

# Curves

## Curves in Hadron

At a high-level, curves allow makers to express **parameterized functions**. Curves determine the following:

1. **Price Curve**: *"I have defined a mid-price and base spread, but how do my quotes scale if a user tries to swap 1, 10, 100, 1000, 10000 SOL?"*
2. **Risk Curve**: *"I just received multiple orders within or across blocks, how do I automatically change my quotes now that my inventory is imbalanced?"*

*Take a look at this amazing project put together by the Ghost Team, where you can see how different PropAMM quotes change as a function of volume. These graphs, in Hadron, can be thought of as Price Curves:*

[*https://sandwiched.me/experiments*](https://sandwiched.me/experiments)

## Curve Types

<Tabs>
  <Tab title="Price Curves Explained">
    Each side of the market (bid and ask) has its own pricing curve. **These curves define how price changes as a function of input size**. They allow makers to express spread ladders, nonlinear depth, and asymmetric behavior between buying and selling.

    A curve is defined by a set of control points - example curve constructed [here](https://docs.hadron.fi/examples/bid-and-ask).
  </Tab>

  <Tab title="Risk Curves Explained">
    Inventory curves apply an additional spread based on the pool’s current base/quote balance.

    They allow makers to:

    * Penalize trades that worsen imbalance
    * Incentivize trades that rebalance inventory
    * Express risk as a continuous function of inventory

    Importantly, inventory skew is applied without canceling or reposting orders, **enabling real-time risk adjustment and reducing intra-block pickoff**.
  </Tab>
</Tabs>

<Columns cols={2}>
  <Card title="Example Pricing Curve" icon="sparkles" href="https://docs.hadron.fi/examples/mixed-interpolation" img="/images/bid-ask.png" />

  <Card title="Example Risk Curve" icon="sparkles" href="https://docs.hadron.fi/examples/risk-curves" img="/images/Screenshot2026-02-04at5.28.22PM.png" />
</Columns>
