# 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. |
