🚰LiquitySPWithdraw

Description

Action ID: 0x76a18aec

Withdraw LUSD from Stability Pool

SDK Action

    const liquitySPWithdrawAction = new dfs.actions.liquity.LiquitySPWithdrawAction(
        LUSDAmount,
        to,
        wethTo,
        lqtyTo,
    );

Contract

This is a DFS STANDARD_ACTION.

If lusdAmount is max.uint withdraws max amount possible

Input:

    /// @param lusdAmount Amount of LUSD tokens to withdraw
    /// @param to Address that will receive the tokens
    /// @param wethTo Address that will receive ETH(wrapped) gains
    /// @param lqtyTo Address that will receive LQTY token gains
    struct Params {
        uint256 lusdAmount;
        address to;     
        address wethTo;    
        address lqtyTo;
    }

Return value:

return bytes32(withdrawnAmount);

Events:

emit ActionEvent("LiquitySPWithdraw", logData);

logger.logActionDirectEvent("LiquitySPWithdraw", logData);

bytes memory logData = abi.encode(_params, ethGain, lqtyGain)

Last updated