LogoLogo
1.0.0
1.0.0
  • About Saddle
  • Automated Market Makers
  • Saddle Pools
  • Community Pools
  • Layer 2 Guide
  • SDL Token
  • veSDL (vote escrowed) SDL
  • Cross Chain Gauges
  • Governance (SIPs)
  • Saddle Incentives
  • Saddle Protocol Stats
  • Yield Farming Tools
  • Build With Saddle
  • Smart Contract Security
  • Asset Specific Risks
  • Saddle FAQ
  • Glossary
  • How to Flash-loan Assets from Saddle
  • Contract Addresses
  • Solidity Docs
    • StakeableTokenWrapper
    • MathUtils
    • Swap
    • Allowlist
    • SwapUtils
    • OwnerPausable
    • LPToken
    • Interfaces
      • ISwap
      • IAllowlist
      • ISwapV1
      • ISwapGuarded
      • ISwapFlashLoan
      • IMetaSwap
      • IFlashLoanReceiver
    • Helper
      • Test
        • TestSwapReturnValues
      • GenericERC20
      • Multicall
      • Multicall2
      • FlashLoanBorrowerExample
    • Meta
      • MetaSwap
      • MetaSwapDeposit
      • MetaSwapUtils
    • Guarded
      • SwapGuarded
      • SwapUtilsGuarded
      • OwnerPausable
      • LPTokenGuarded
      • Allowlist
    • VirtualSwap
      • Bridge
      • Proxy
      • SynthSwapper
      • Target
Powered by GitBook
On this page
  • Functions:
  • Function constructor(string name_, string symbol_, uint8 decimals_)
  • Parameters:
  • Function mint(address recipient, uint256 amount, bytes32[] merkleProof)
  • Parameters:

Was this helpful?

  1. Solidity Docs
  2. Guarded

LPTokenGuarded

PreviousOwnerPausableNextAllowlist

Last updated 2 years ago

Was this helpful?

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:

Function constructor(string name_, string symbol_, uint8 decimals_)

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)

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.

constructor(string name_, string symbol_, uint8 decimals_)
mint(address recipient, uint256 amount, bytes32[] merkleProof)