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.

Adds liquidity taking only Tokens.

Unzaps LP to respective Token and ETH amounts.

Unzaps LP to ETH only.

Unzaps LP to Token only.

Read-Only Functions

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

Last updated

Was this helpful?