🚰LiquityWithdraw

Description

Action ID: 0xeb0c03cd

Withdraws collateral from the DSProxy Liquity Trove

SDK Action

    const liquityWithdrawAction = new dfs.actions.liquity.LiquityWithdrawAction(
        collAmount,
        to,
        upperHint,
        lowerHint,
    );

Contract

This is a DFS STANDARD_ACTION.

Input:

    /// @param collAmount Amount of WETH tokens to withdraw
    /// @param to Address that will receive the tokens
    /// @param upperHint
    /// @param lowerHint
    struct Params {
        uint256 collAmount; 
        address to;         
        address upperHint;
        address lowerHint;
    }

Return value:

return bytes32(withdrawnAmount);

Events:

emit ActionEvent("LiquityWithdraw", logData);

logger.logActionDirectEvent("LiquityWithdraw", logData);

bytes memory logData = abi.encode(_params.collAmount, _params.to)

Last updated