# Deposit calls usage

The Deposit calls are generated by splitting the input amount between the Typhoon pools.

## How to integrate the deposit calls to your Dapp

To integrate the deposit calls to your dapp is very simple, just add it to your multicall like that:

```javascript

let deposit_calls = await sdk.generate_approve_and_deposit_calls(amount_out, token_out_addr)
const multiCall = await account.execute([
      {
          contractAddress: "yourcontractaddress",
          entrypoint: 'swapExample',
          calldata: CallData.compile({
               token_in: token_in_addr,
               token_out: token_out_addr,
               amount_in: cairo.uint256(amount_in),
               amount_out: cairo.uint256(amount_out)
            }),
       },
       ...deposit_calls 
    ]);
    
await account.waitForTransaction(multiCall.transaction_hash);
await sdk.withdraw(multiCall.transaction_hash, [recipient_addr]) 
```

The code above shows an example on how to make a private swap.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://typhoon-2.gitbook.io/typhoon-docs/getting-started/deposit-calls-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
