💿CompCollateralSwitch

Description

Action ID: 0x7e243d72

Switch if you'll use tokens for collateral on compound

SDK Action

const compCollSwitchAction = new dfs.actions.compound.CompoundCollateralSwitchAction(
                [C_COMP_ADDR, CUNI_ADDR],
                [true, true],
            );

Contract

This is a DFS STANDARD_ACTION.

Input:

    /// @param cTokens Array of tokens the user wants to set coll enable/disable
    /// @param useAsCollateral Array of state of those tokens, true - enable, false - disable
    struct Params {
        address[] cTokens;
        bool[] useAsCollateral;
    }

Return value:

return bytes32(0);

Events:

// no events emited

Last updated