🚰LiquityUnstake

Description

Action ID: 0xcc148c8b

Unstake LQTY tokens

SDK Action

    const LiquityUnstakeAction = new dfs.actions.liquity.LiquityUnstakeAction(
        lqtyAmount,
        to,
        wethTo,
        lusdTo,
    );

Contract

This is a DFS STANDARD_ACTION.

If amount is max.uint withdraw whole LQTY amount

Input:

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

Return value:

return bytes32(unstakedAmount);

Events:

emit ActionEvent("LiquityUnstake", logData);

logger.logActionDirectEvent("LiquityUnstake", logData);

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

Last updated