> For the complete documentation index, see [llms.txt](https://guides.instadapp.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.instadapp.io/strategies/compound-strategies.md).

# Compound Strategies

These strategies combine two or more actions into one transaction.

![](https://285790977-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQnOXLAFDOGcotXLu9D%2Fuploads%2FEwDBo1CU8FHRJz5CUkEb%2FScreen%20Shot%202022-06-28%20at%203.09.08%20PM.png?alt=media\&token=75f8620e-73c4-4500-9dd2-545d21a630e2)

### Deposit & Borrow <a href="#h_816bf2b5a0" id="h_816bf2b5a0"></a>

This function combines two functions; this will deposit an asset from the DSA balance into the protocol and will also borrow an asset. The borrowed asset will be in your DSA balance.

**Deposit & Borrow Example --**

In the top line you can select the collateral you would like to deposit

![](https://285790977-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQnOXLAFDOGcotXLu9D%2Fuploads%2FfPga0fDhORPJV0Jxurbj%2Fa.png?alt=media\&token=d03cba62-bd1e-4440-aa18-ec679a85f1d8)

In the lower line you enter what you would like to borrow

![](https://285790977-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQnOXLAFDOGcotXLu9D%2Fuploads%2FiI1WVugQ5axRcqpt0H6u%2Fb.png?alt=media\&token=b606754b-ca88-48db-946b-501578b0e0b0)

You can change the asset type by clicking the asset icons

![](https://285790977-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQnOXLAFDOGcotXLu9D%2Fuploads%2Fuunp8ATtcDy4kclyP36E%2Fchnaging%20collateral.gif?alt=media\&token=57d8ec1b-a265-4d40-9794-9f0a7f5d325e)

Submit the transaction by clicking the button at the bottom

![](https://285790977-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQnOXLAFDOGcotXLu9D%2Fuploads%2FgudiYTEd3PEksCGhYBTa%2FScreen%20Shot%202022-06-02%20at%209.45.09%20AM.png?alt=media\&token=ff6e4653-a3e0-4acb-9835-ca3d1f26e4bf)

After the transaction confirms you will see both the collateral deposit and the debt owed to the protocol.&#x20;

![The borrowed asset is now in your DSA account balance](https://285790977-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQnOXLAFDOGcotXLu9D%2Fuploads%2FzL1HarlVXxBnKw8RFMhv%2FScreen%20Shot%202022-06-02%20at%209.45.55%20AM.png?alt=media\&token=9941479d-bc1c-4712-9da2-320f24400ec5)
