# AnchorFactory

## Functions

### deployAnchor

```solidity
function deployAnchor(
    string memory name,
    address committee
) external payable returns (address anchor)
```

Deploys an anchor for a given name and committee.

#### Params

<table><thead><tr><th width="144.33333333333331">Name</th><th width="96">Type</th><th width="509.6666666666667">Description</th></tr></thead><tbody><tr><td><code>name</code></td><td>string</td><td>The name of the anchor</td></tr><tr><td><code>committee</code></td><td>address</td><td>The committee which is created in BOOLNetwork</td></tr></tbody></table>

#### Return Values

<table><thead><tr><th width="118.33333333333331">Name</th><th width="99">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>anchor</code></td><td>address</td><td>The address of the newly deployed anchor</td></tr></tbody></table>

{% hint style="warning" %}
NOTE that although `deployAnchor` is designed as an externally callable function, it should be triggered in BOOLScan to synchronize the connection between a committee and an anchor.&#x20;
{% endhint %}
