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

# Settlement & safety

> How a sale closes and when funds move.

When the sale ends, settlement decides everything: launch or refund, who can claim, what burns, and
when you get paid.

## Closing the sale

<Steps>
  <Step title="Finalize">
    Once the sale **ends above the soft cap**, *anyone* can finalize — it's permissionless, so your
    launch never waits on a single party. (No-LP sales open claims and pay the fee right here.)
  </Step>

  <Step title="Create liquidity">
    The raise seeds the locked V3 pool, the platform fee is taken, and **claims + trading open**.
  </Step>

  <Step title="You withdraw">
    Call `withdrawRaisedFunds` to take your share of the raise (net of the platform fee and any
    unclaimed referral reserve). Buyers claim their tokens.
  </Step>
</Steps>

## The core invariants

<CardGroup cols={2}>
  <Card title="Claim XOR refund" icon="scale-balanced">
    A buyer either claims (successful sale) or refunds (cancelled) — never both. The contract enforces
    it.
  </Card>

  <Card title="Unsold burns" icon="fire">
    Unsold sale tokens burn at a **successful** settle. If a sale is cancelled or escaped, the full
    token deposit returns to you instead.
  </Card>

  <Card title="Soft cap or refund" icon="rotate-left">
    Miss the soft cap and the sale cancels — every buyer reclaims 100%.
  </Card>

  <Card title="LP can't strand you" icon="clock">
    If liquidity isn't created within a 7-day grace after finalize, anyone can flip the sale to
    refunds — funds never get stuck.
  </Card>
</CardGroup>
