🪞ReflexerNativeUniV2SaviourWithdraw

NOT YET DEPLOYED

Description

Action ID: 0x83469f3f

Withdraw lpToken from the contract and provide less cover for a SAFE

SDK Action

    const reflexerSaviourWithdrawAction = new dfs.actions.reflexer.ReflexerNativeUniV2SaviourWithdrawAction(
        to,
        safeId,
        lpTokenAmount,
    );

Contract

This is a DFS STANDARD_ACTION.

Input:

    
    /// @param to The address that will receive the LP tokens
    /// @param safeId The ID of the SAFE that's protected. This ID should be registered inside GebSafeManager
    /// @param lpTokenAmount amount of LP tokens to withdraw
    struct Params {
        address to;
        uint256 safeId;
        uint256 lpTokenAmount;
    }

Return value:

return bytes32(inputData.lpTokenAmount);

Events:

bytes memory logData = _reflexerSaviourWithdraw(inputData)

emit ActionEvent("ReflexerNativeUniV2SaviourWithdraw", logData);

bytes memory logData = _reflexerSaviourWithdraw(inputData)

logger.logActionDirectEvent("ReflexerNativeUniV2SaviourWithdraw", logData);

Last updated