# LPToken

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.

Only Swap contracts should initialize and own LPToken contracts.

## Functions:

* [`initialize(string name, string symbol)`](#LPToken-initialize-string-string-)
* [`mint(address recipient, uint256 amount)`](#LPToken-mint-address-uint256-)

## Function `initialize(string name, string symbol) → bool` <a href="#lptoken-initialize-string-string" id="lptoken-initialize-string-string"></a>

Initializes this LPToken contract with the given name and symbol

The caller of this function will become the owner. A Swap contract should call this in its initializer function.

### Parameters:

* `name`: name of this token
* `symbol`: symbol of this token

## Function `mint(address recipient, uint256 amount)` <a href="#lptoken-mint-address-uint256" id="lptoken-mint-address-uint256"></a>

Mints the given amount of LPToken to the recipient.

only owner can call this mint function

### Parameters:

* `recipient`: address of account to receive the tokens
* `amount`: amount of tokens to mint


---

# 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/lptoken.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.
