💻
💻
💻
💻
MISO
Search…
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
MISOMarket Contracts
MISOFarmFactory Contracts
MISOLauncher Contracts
Post Auction Launcher
Liquidity ZAP Contract
Admin Functions Overview
MISOFermentation Contracts
External Links
Socials
Powered By
GitBook
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.
Previous
Post Auction Launcher
Next
Admin Functions Overview
Last modified
1yr ago
Copy link
Outline
Address
Init Function
ZAP and unZAP Functions
Read-Only Functions