# MasterChef deployment

In order to deploy XdYe MasterChef 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/MasterChef_deploymeny.js>" %}
Script used for deploying XdYe MasterChef contract
{% endembed %}

### Constructor Arguments

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

The address of XDYE Token, so MasterChefs knows the ERC20 he has to mint

* **`_devAddr`**` ``(type:`` `*`address`*`)`

The address that will receive an extra 10% of the minted XDYE from MasterChef.  Once user withdraws his rewards.

* **`_xdyePerBlock`**` ``(type:`` `*`uint256`*`)`

The amount of XDYE that MasterChef can mint per each block. Here we need to consider network Block Time. As our contract logic is based on this parameter.

* **`_startBlock`**` ``(type:`` `*`uint256`*`)`

This value defines when will MasterChef start minting XDYEs. Value needs can be provided based on UNIX Timestamp.

* **`_bonusEndBlock`**` ``(type:`` `*`uint256`*`)`

This value defines when will MasterChef end applying a bonus multiplier to the amount of XDYE minted
