🚰LiquityStake

Description

Action ID: 0x3b37d730

Stake LQTY tokens

SDK Action

    const LiquityStakeAction = new dfs.actions.liquity.LiquityStakeAction(
        lqtyAmount,
        from,
        wethTo,
        lusdTo,
    );

Contract

This is a DFS STANDARD_ACTION.

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

If lqtyAmount is max.uint pull whole balance

Input:

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

Return value:

return bytes32(stakedAmount);

Events:

emit ActionEvent("LiquityStake", logData);

logger.logActionDirectEvent("LiquityStake", logData);

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

Last updated