🪞ReflexerNativeUniV2SaviourDeposit

NOT YET DEPLOYED

Description

Action ID: 0x82115fb8

Deposit lpToken in the contract in order to provide cover for a specific SAFE managed by the SAFE Manager

SDK Action

    const reflexerSaviourDepositAction = new dfs.actions.reflexer.ReflexerNativeUniV2SaviourDepositAction(
        from,
        safeId,
        lpTokenAmount,
    );

Contract

This is a DFS STANDARD_ACTION.

The address from which we're pulling UNIV2 LP tokens must approve proxy

Input:

    /// @param from The address from which to pull LP tokens
    /// @param safeId The ID of the SAFE to protect. This ID should be registered inside GebSafeManager
    /// @param lpTokenAmount The amount of LP tokens to deposit
    struct Params {
        address from;
        uint256 safeId;
        uint256 lpTokenAmount;
    }

Return value:

return bytes32(amountDeposited);

Events:

emit ActionEvent("ReflexerNativeUniV2SaviourDeposit", logData);

logger.logActionDirectEvent("ReflexerNativeUniV2SaviourDeposit", logData);

Last updated