# XdYe Maker deployment

In order to deploy XdYe Maker Smart Contract we need to run the following command:

```
> truffle migrate --reset
```

The deployment script we need to execute can be found at:

{% embed url="<https://github.com/rogerCapone/XdYe_Deployments/blob/main/XdYeMaker_deployment.js>" %}
Script used for deploying XdYe Maker contract
{% endembed %}

### Constructor Arguments

* **`_factory`**` ``(type:`` `*`address`*`)`

The address of XdYe Factory, so XdYe Maker can fetch pair information in order to convert LPs to XDYE Token.

* **`_bar`**` ``(type:`` `*`address`*`)`

The address of XdYe Bar, so XdYe Maker can send XDYE Token to XdYe Bar in order to reward users that hold xXdYe, or in other words, platform supporters.

* **`_xdye`**` ``(type:`` `*`address`*`)`

The address of XDYE Token, so the XdYe Maker can convert LPs to platform token.

* **`_weth`**` ``(type:`` `*`address`*`)`

The address of WETH is needed due to all pairs ETH related are handled through the wrapped version of ETH.&#x20;
