# Contracts Overview

A Smart Contract is a **computer protocol** intended to digitally facilitate, verify, or enforce the negotiation or performance of a contract.&#x20;

Smart contracts allow the performance of credible transactions without third parties. These transactions are trackable and irreversible.

### XdYe Smart Contract's Overview

In this section we are going to explain at a high-level all the main Smart Contracts that will regulate XdYe business logic.

In order to understand the overall contract interaction we have designed a diagram that tries to summarize it. This does not represent all possible interactions that our XdYe platform can handle, it is a simple representation to understand the main contract relations that allow XdYe to operate as a DEX with Staking and Farming Capabilities.

<figure><img src="https://1716109615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaLpsXqP00Znm3KwSX02Z%2Fuploads%2FXh8tQuIkqUmoyzR3K5cv%2FGra%CC%81fico%20Cuadro%20Comparativo%20de%20Tres%20Planes%20o%20Procesos%20Moderno%20Colorido%20(6).png?alt=media&#x26;token=1dc65c7e-bb00-4b46-a8a6-aeab36c6a95a" alt=""><figcaption><p>Quick XdYe Overview</p></figcaption></figure>

XdYe Smart Contracts are detailed explained, coded and commented on the following sections, you can easily go to any of the XdYe's Smart Contract:&#x20;

{% content-ref url="factory" %}
[factory](https://rogercapone.gitbook.io/xdye-documentation/smart-contracts/factory)
{% endcontent-ref %}

{% content-ref url="weth" %}
[weth](https://rogercapone.gitbook.io/xdye-documentation/smart-contracts/weth)
{% endcontent-ref %}

{% content-ref url="router" %}
[router](https://rogercapone.gitbook.io/xdye-documentation/smart-contracts/router)
{% endcontent-ref %}

{% content-ref url="pair" %}
[pair](https://rogercapone.gitbook.io/xdye-documentation/smart-contracts/pair)
{% endcontent-ref %}

{% content-ref url="xdye-token" %}
[xdye-token](https://rogercapone.gitbook.io/xdye-documentation/smart-contracts/xdye-token)
{% endcontent-ref %}

{% content-ref url="masterchef" %}
[masterchef](https://rogercapone.gitbook.io/xdye-documentation/smart-contracts/masterchef)
{% endcontent-ref %}

{% content-ref url="xdye-bar" %}
[xdye-bar](https://rogercapone.gitbook.io/xdye-documentation/smart-contracts/xdye-bar)
{% endcontent-ref %}

{% content-ref url="xdye-maker" %}
[xdye-maker](https://rogercapone.gitbook.io/xdye-documentation/smart-contracts/xdye-maker)
{% endcontent-ref %}

{% content-ref url="xdye-unlock" %}
[xdye-unlock](https://rogercapone.gitbook.io/xdye-documentation/smart-contracts/xdye-unlock)
{% endcontent-ref %}

{% hint style="warning" %}
**Attention:** If you are trying to replicate the code, be sure to consider the imports or visit the corresponding [Github Repository](https://github.com/rogerCapone/XdYe_Smart_Contracts/tree/main) in order to have the whole source code.
{% endhint %}
