πŸͺžReflexerWithdraw

Description

Action ID: 0x84c3e0aa

Withdraws collateral from a Reflexer safe

SDK Action

    const reflexerWithdrawAction = new dfs.actions.reflexer.ReflexerWithdrawAction(
        safeId,
        amount,
        adapterAddr,
        to,
    );

Contract

This is a DFS STANDARD_ACTION.

Input:

    /// @param safeId Id of the safe
    /// @param amount Amount of collateral to withdraw
    /// @param adapterAddr Adapter address of the reflexer collateral
    /// @param to Address where to send the collateral we withdrew
    struct Params {
        uint256 safeId;
        uint256 amount;
        address adapterAddr;
        address to;
    }

Return value:

return bytes32(withdrawnAmount);

Events:

emit ActionEvent("ReflexerWithdraw", logData);

logger.logActionDirectEvent("ReflexerWithdraw", logData);

bytes memory logData = abi.encode(_safeId, _amount, _adapterAddr, _to)

Last updated