🦄UniMintV3

Description

Action ID: 0xe5eb7e36

Mints NFT that represents a position in uni v3

SDK Action

    const uniMintV3Action = new dfs.actions.uniswapV3.UniswapV3MintAction(
        token0,
        token1,
        fee,
        tickLower,
        tickUpper,
        amount0Desired,
        amount1Desired,
        amount0Min,
        amount1Min,
        recipient,
        deadline,
        from,
    );

Contract

This is a DFS STANDARD_ACTION.

The address from which we're pulling token0 and token1 must approve proxy

If amount0Desired or amount1Desired is uint.max this will pull whole balance of _from

Input:

    
    /// @param token0 address of the first token
    /// @param token1 address of the second token
    /// @param fee The fee amount of the v3 pool for the specified token pair
    /// @param tickLower The lower end of the tick range for the position
    /// @param tickUpper The higher end of the tick range for the position
    /// @param amount0Desired The desired amount of token0 that should be supplied
    /// @param amount1Desired The desired amount of token1 that should be supplied
    /// @param amount0Min The minimum amount of token0 that should be supplied
    /// @param amount1Min The minimum amount of token1 that should be supplied
    /// @param recipient address which will receive the NFT
    /// @param deadline The time by which the transaction must be included to effect the change
    /// @param from The address from which to pull token0 and token1
    struct Params {
        address token0;
        address token1;
        uint24 fee;
        int24 tickLower;
        int24 tickUpper;
        uint256 amount0Desired;
        uint256 amount1Desired;
        uint256 amount0Min;
        uint256 amount1Min;
        address recipient;
        uint256 deadline;
        address from;
    }

Return value:

return bytes32(tokenId);

Events:

emit ActionEvent("UniMintV3", logData);

logger.logActionDirectEvent("UniMintV3", logData);

Last updated