For the complete documentation index, see llms.txt. This page is also available as Markdown.

CompCollateralSwitch

Description

Switch action to switch if user will use tokens for collateral on compound

Action ID

0x7e243d72

SDK Action

const compoundCollateralSwitchAction = new dfs.actions.compound.CompoundCollateralSwitchAction(
    cTokens,
    useAsCollateral
);

Action Type

STANDARD_ACTION

Input Parameters

    /// @param cTokens Array of cTokens addresses
    /// @param useAsCollateral Array of booleans to indicate if the cToken should be used as collateral
    struct Params {
        address[] cTokens;
        bool[] useAsCollateral;
    }

Return Value

Events and Logs

Last updated