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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/data-and-events/paircreated.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
