> For the complete documentation index, see [llms.txt](https://allblue-docs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://allblue-docs.gitbook.io/docs/en/allblue-v2/core-contracts/allbluev2factory.md).

# AllBlueV2Factory

AllBlueV2Factory is responsible for creating and looking up official AllBlue V2 Pairs.

### Key Functions

| Function                     | Description                                      |
| ---------------------------- | ------------------------------------------------ |
| `getPair(tokenA, tokenB)`    | Returns the official Pair address for two tokens |
| `createPair(tokenA, tokenB)` | Creates a new official Pair                      |

`createPair` can only be executed by addresses with the required creator permission.
