# LPTokenGuarded

This token is an ERC20 detailed token with added capability to be minted by the owner. It is used to represent user's shares when providing liquidity to swap contracts.

## Functions:

* [`constructor(string name_, string symbol_, uint8 decimals_)`](#LPTokenGuarded-constructor-string-string-uint8-)
* [`mint(address recipient, uint256 amount, bytes32[] merkleProof)`](#LPTokenGuarded-mint-address-uint256-bytes32---)

## Function `constructor(string name_, string symbol_, uint8 decimals_)` <a href="#lptokenguarded-constructor-string-string-uint8" id="lptokenguarded-constructor-string-string-uint8"></a>

Deploys LPToken contract with given name, symbol, and decimals

the caller of this constructor will become the owner of this contract

### Parameters:

* `name_`: name of this token
* `symbol_`: symbol of this token
* `decimals_`: number of decimals this token will be based on

## Function `mint(address recipient, uint256 amount, bytes32[] merkleProof)` <a href="#lptokenguarded-mint-address-uint256-bytes32" id="lptokenguarded-mint-address-uint256-bytes32"></a>

Mints the given amount of LPToken to the recipient. During the guarded release phase, the total supply and the maximum number of the tokens that a single account can mint are limited.

only owner can call this mint function

### Parameters:

* `recipient`: address of account to receive the tokens
* `amount`: amount of tokens to mint
* `merkleProof`: the bytes32 array data that is used to prove recipient's address exists in the merkle tree stored in the allowlist contract. If the pool is not guarded, this parameter is ignored.


---

# 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://docs.saddle.finance/solidity-docs/guarded/lptokenguarded.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.
