> For the complete documentation index, see [llms.txt](https://docs.defisaver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defisaver.com/actions/compound/compcollateralswitch.md).

# CompCollateralSwitch

### Description

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

### Action ID

`0x7e243d72`

### SDK Action

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

### Action Type

`STANDARD_ACTION`

### Input Parameters

```solidity
    /// @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

```solidity
return bytes32(0);
```

### Events and Logs

```solidity
```
