🚰LiquityPayback

Description

Action ID: 0x0761723e

Repays LUSD tokens to the DSProxy Liquity Trove

SDK Action

    const liquityPaybackAction = new dfs.actions.liquity.LiquityPaybackAction(
        LUSDAmount,
        from,
        upperHint,
        lowerHint,
    );

Contract

This is a DFS STANDARD_ACTION.

The address from which we are pulling LUSD must approve proxy to pull tokens

Input:

    /// @param lusdAmount Amount of LUSD tokens to repay
    /// @param from Address where to pull the tokens from
    /// @param upperHint
    /// @param lowerHint
    struct Params {
        uint256 lusdAmount; 
        address from; 
        address upperHint;
        address lowerHint;
    }

Return value:

return bytes32(repayAmount);

Events:

emit ActionEvent("LiquityPayback", logData);

logger.logActionDirectEvent("LiquityPayback", logData);

bytes memory logData = abi.encode(_params.lusdAmount, _params.from)

Last updated