> For the complete documentation index, see [llms.txt](https://doc.zoofi.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.zoofi.io/lnt-vault/product-design/how-does-lnt-work/vt-swap.md).

# VT Swap

VT liquidity is provided through an Automated Market Maker (AMM) pool with a specially designed price formula, aimed at achieving less gap between the prices of VT and T as the vesting period nears its end.

### Price Formula:

$$
\text{price}(t) = \frac{1}{\text{rateScalar}(t) }\times \ln \left( \frac{p(t)}{(1 - p(t))\*R} \right) + \text{rateAnchor}(t)
$$

* **Normalized time ( t )** ranges from 0 (Vesting End) to 1.
* **P(t)** is a metric that measures the proportion of VT in the pool. Calculated by the formula: **P(t) = Amount of VT / (Amount of VT + Amount of T)**
* **rateScalar:** **rateScalar(t)=ScalarRoot/t**, adjusts dynamically to maintain capital efficiency.
* **rateAnchor:** **rateAnchor(t) = 1 + (InitialAnchor-1) \* t**, adjusts the expected discount between VT and T.
* **R**: Initial Liquidity Rate of VT/T

{% hint style="info" %}
Example:

Alice wants to swap 100 T for VT.

Given $$\text{rateScalar} =100$$, $$\text{rateAnchor} = 1.1$$，R=1 Initial VT proportion $$( p\_{\text{before}} = 0.6 )$$

$$
\text{price}\_{\text{before}} = \frac{1}{100} \times \ln\left(\frac{0.6}{0.4}\right) + 1.1 = 1.104055
$$

After swapping 100 T for VT, assuming $$p\_{\text{after}} = 0.55$$

$$
\text{price}\_{\text{after}} = \frac{1}{100} \times \ln\left(\frac{0.55}{0.45}\right) + 1.1 = 1.102007
$$

$$
dVT = 100 \times \frac{1.104055 + 1.102007}{2} = 110.3031
$$

Alice received 110.3031 VT
{% endhint %}


---

# 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, and the optional `goal` query parameter:

```
GET https://doc.zoofi.io/lnt-vault/product-design/how-does-lnt-work/vt-swap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
