> For the complete documentation index, see [llms.txt](https://velora-1.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://velora-1.gitbook.io/docs/reference/schedule-types.md). Agents can also search and read this documentation through its [MCP server](https://velora-1.gitbook.io/docs/~gitbook/mcp).

# Schedule Types

All four schedules share one function, `compute_unlocked(stream_config, now)`, which returns the cumulative unlocked amount at time `now`. Withdrawable amount is always `unlocked - amount_claimed`.

## Linear

Unlocks continuously between `start_timestamp` and `end_timestamp`.

```
unlocked = total * (now - start) / (end - start)   // clamped to [0, total]
```

* `now <= start` → `0`
* `now >= end` → `total`

Set `cliff_timestamp = 0` and `cliff_amount = 0`.

## Cliff

Everything unlocks at a single instant.

* `now < cliff_timestamp` → `0`
* `now >= cliff_timestamp` → `total`

Requires `start < cliff_timestamp < end`.

## CliffLinear

A lump sum at the cliff, then linear release of the remainder to the end.

* `now < cliff_timestamp` → `0`
* at/after the cliff: `cliff_amount + linear(total - cliff_amount, cliff_timestamp, end, now)`

Requires `start < cliff_timestamp < end` and `cliff_amount <= total_amount` (enforced at creation as `InvalidCliffAmount`). With `cliff_amount = 0` it behaves like a linear stream that starts at the cliff.

**Worked example** — `total = 1000`, `cliff_amount = 200`, cliff at `t=150`, end at `t=200`:

| `now` | unlocked              |
| ----- | --------------------- |
| 149   | 0                     |
| 150   | 200 (cliff only)      |
| 175   | 600 (200 + 800·25/50) |
| 200   | 1000                  |

## Milestone

Manual unlock. `compute_unlocked` returns `0` until an authorized party calls [`release_milestone`](https://velora-1.gitbook.io/docs/instruction-reference/release-milestone.md), then `total`. The release must happen on or before `end_timestamp`.

The unlock curve is gated by `milestone_released`, not by the clock — there is no partial milestone release.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://velora-1.gitbook.io/docs/reference/schedule-types.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
