> For the complete documentation index, see [llms.txt](https://docs.carbondefi.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/data-and-events/paircreated.md).

# PairCreated()

{% code title="CarbonController.sol" overflow="wrap" lineNumbers="true" %}

```solidity
    emit PairCreated(id, sortedTokens[0], sortedTokens[1]);
        return Pair({ id: id, tokens: sortedTokens });
    }
```

{% endcode %}

This event indicates when a new token pair is created.&#x20;

### Event Parameters

| Name             | Type    | Description                   |
| ---------------- | ------- | ----------------------------- |
| id               | uint128 | The id of the pair.           |
| sortedTokens\[0] | address | The first token in the pair.  |
| sortedTokens\[1] | address | The second token in the pair. |
