LiquityV2SPDeposit

Description

Deposits a token to the LiquityV2 Stability Pool

Action ID

0x042eb099

SDK Action

const liquityV2SPDepositAction = new dfs.actions.liquityV2.LiquityV2SPDepositAction(
    market,
    from,
    boldGainTo,
    collGainTo,
    amount,
    doClaim
);

Action Type

STANDARD_ACTION

Input Parameters

    
    struct Params {
        address market;
        address from;
        address boldGainTo;
        address collGainTo;
        uint256 amount;
        bool doClaim;
    }

Return Value

return bytes32(depositedAmount);

Events and Logs

emit ActionEvent("LiquityV2SPDeposit", logData);
logger.logActionDirectEvent("LiquityV2SPDeposit", logData);
bytes memory logData = abi.encode(params);

Last updated

Was this helpful?