> For the complete documentation index, see [llms.txt](https://piggybank.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://piggybank.gitbook.io/docs/vault-infrastructure/liquid-tokens.md).

# Liquid Tokens

## Liquid Tokens

Liquid tokens (LST) represent a user's share in the vault. They are fully transferable SPL tokens that can be traded, used in DeFi, or redeemed for underlying assets.

### Token Properties

Each vault's liquid token:

* Uses the same token standard as underlying (Legacy or Token 2022)
* Maintains the same decimal precision
* Has a custom ticker and name
* Follows SPL token conventions

### Exchange Rate

The LST/underlying exchange rate is calculated as:

```
exchange_rate = underlying_represented_by_lst / lst_supply
```

Where:

```
underlying_represented_by_lst = managed + epoch_deposits - epoch_redemptions - prev_epoch_redemptions - pending_redemptions
```

### Minting Process

When users deposit:

1. Calculate current exchange rate
2. Determine LST amount to mint
3. Mint tokens to user's wallet
4. Update vault accounting

The minting formula:

```
minted_lst = floor(deposited_underlying * lst_supply / underlying_represented_by_lst)
```

### Burning Process

When users redeem:

1. Burn LST from user's wallet
2. Calculate underlying amount
3. Create redemption record
4. Queue for processing

The redemption formula:

```
underlying_redeemed = floor(redeemed_lst * underlying_represented_by_lst / lst_supply)
```

### Transfer Capabilities

Liquid tokens can be:

* Transferred between wallets
* Traded on DEXs
* Used as collateral
* Integrated with protocols

For Token 2022 vaults, transfer hooks enable:

* Compliance checks
* Access control
* Custom transfer logic


---

# 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://piggybank.gitbook.io/docs/vault-infrastructure/liquid-tokens.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.
