# 7.3 Pool with linear vesting

This smart contract implements a vesting pool for the controlled distribution of tokens among project participants using a linear vesting mechanism. Upon completion of the token sale, tokens begin to unlock according to the following conditions:

* **Linear Vesting:** 15% of the allocation becomes available for withdrawal immediately after the sale concludes. The remaining 85% are distributed evenly (daily) over a predetermined vesting period.
* **The vesting period depends on the purchase stage:**
  * For presale and early-stage investors (Weeks 1-8), the vesting period is 12 months (365 days). Daily unlock rate: 85% / 365 ≈ 0.23% per day.
  * For late-stage investors (Weeks 9-12), the vesting period is reduced to 9 months (275 days). Daily unlock rate: 85% / 275 ≈ 0.31% per day.
* **Cliff for the Team:** A separate 100-day cliff period is applied to the team's allocations, during which token withdrawal is disabled. After the cliff ends, linear unlocking according to the same scheme begins. **Note:** The initial 15% unlock **does not apply** to the team allocations; only daily linear vesting is in effect.

**The contract ensures:**

* **Immutability of Parameters:** All parameters (start date, vesting duration, allocation sizes) are fixed upon deployment and are immutable.
* **Calculation Accuracy:** The `Math.mulDiv` library is used for calculating unlocked tokens to prevent rounding errors.
* **Transparency:** Public view functions allow anyone to query the vesting status for any address (total allocation, amount of unlocked tokens, remaining balance for withdrawal, etc.).
* **Investor Protection:** The cliff and gradual unlocking mechanisms prevent the immediate dumping of large token volumes, incentivizing long-term commitment from participants.

The contract is compliant with the ERC-20 standard and can be integrated with external dApps to automate the distribution process and monitor vesting status.

**Distribution Scheme:**

* 15% — available immediately after the sale.
* Vesting: 85% — unlocked linearly, daily, over 365 or 275 days depending on the purchase stage.
* Team Cliff: 100 days of full lock, followed by daily linear vesting.

This contract serves as a standard tool for fair and transparent token distribution among all categories of project participants.

<br>


---

# 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://nava-dao-1.gitbook.io/nava-dao-white-paper/basics/7-technical-description/7.3-pool-with-linear-vesting.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.
