💻
MISO
  • Minimal Initial SushiSwap Offering
  • Ingredients
  • Recipes
  • FAQ
  • Navigating and using MISO
    • Participating in an Auction
  • Token Factory
    • Token Minting & Verification
  • Marketplace
    • Marketplace for Tokens
    • Permission Lists
  • Liquidity
    • Post Auction Launcher
  • Farmed Produce
    • MasterChef Farming
  • Fermentation Vaults
    • Vaults & Escrow
  • Developer
    • MISOTokenFactory Contracts
      • Sushi Token Smart Contract
      • Mintable Token Smart Contract
      • Fixed Supply Token Smart Contract
      • Admin Functions Overview
    • MISOMarket Contracts
      • Hyperbolic Auction Smart Contract
      • Batch Auction Smart Contract
      • Dutch Auction Smart Contract
      • Crowdsale Smart Contract
      • Admin Functions Overview
    • MISOFarmFactory Contracts
      • Miso MasterChef Contract
      • Miso MasterChefV2 Contract
      • Admin Functions Overview
    • MISOLauncher Contracts
      • Post Auction Launcher
      • Liquidity ZAP Contract
      • Admin Functions Overview
    • MISOFermentation Contracts
      • Gnosis Safe Factory Contract
      • Token Vault Contract
      • Admin Functions Overview
  • External Links
  • Socials
Powered by GitBook
On this page
  • Address
  • Init Function
  • ZAP and unZAP Functions
  • Read-Only Functions

Was this helpful?

  1. Developer
  2. MISOLauncher Contracts

Liquidity ZAP Contract

Address

Init Function

function initUniswapZAP(
    address token, 
    address WETH, 
    address tokenWethPair
) 
    public

Parameter

Description

token

Address of the token from LP pair.

WETH

Address of WETH.

tokenWethPair

Address of the LP pair.

Initializes LP addresses.

ZAP and unZAP Functions

function zapETH() external payable returns (uint256 liquidity)

Adds liquidity taking only ETH tokens.

function zapTokens(uint amount) external returns (uint256 liquidity)

Adds liquidity taking only Tokens.

function unzap() external returns  (uint amountToken, uint amountETH)

Unzaps LP to respective Token and ETH amounts.

function unzapToETH() external returns (uint amount)

Unzaps LP to ETH only.

function unzapToTokens() external returns (uint amount)

Unzaps LP to Token only.

Read-Only Functions

function getLPTokenPerEthUnit(uint ethAmt) public view  returns (uint liquidity)

Returns how many LP tokens is user able to get with given ETH amount.

PreviousPost Auction LauncherNextAdmin Functions Overview

Last updated 4 years ago

Was this helpful?