🪞ReflexerPayback

Description

Action ID: 0xb7460335

Payback rai debt for a reflexer safe

SDK Action

    const reflexerPaybackAction = new dfs.actions.reflexer.ReflexerPaybackAction(
        safeId,
        amount,
        from,
    );

Contract

This is a DFS STANDARD_ACTION.

Address from which we're pulling RAI must approve proxy

If amount is uint.max it will pull and payback whole RAI debt amount

Input:

    /// @param safeId Id of the safe
    /// @param amount Amount of rai to be payed back
    /// @param from Where the rai is pulled from
    struct Params {
        uint256 safeId;
        uint256 amount;
        address from;
    }

Return value:

return bytes32(repayAmount);

Events:

emit ActionEvent("ReflexerPayback", logData);

logger.logActionDirectEvent("ReflexerPayback", logData);

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

Last updated