> For the complete documentation index, see [llms.txt](https://learn.charm.fi/charm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.charm.fi/charm/technical-references/core/clonefactory.md).

# CloneFactory

### createClone

```solidity
function createClone(address target) internal returns (address result)
```

Create a clone of the vault's code from a template and deploy it on the blockchain.

#### Parameters:

<table data-full-width="false"><thead><tr><th width="160">Variable</th><th width="139">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>target</code></td><td>address</td><td>Address of the template to be cloned.</td></tr></tbody></table>

#### Return Value:

<table data-full-width="false"><thead><tr><th width="156">Variable</th><th width="142">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>result</code></td><td>address</td><td>Address of the new vault that has cloned and deployed.</td></tr></tbody></table>
