# ICronV1PoolFactory

### CronV1PoolCreated

```solidity
event CronV1PoolCreated(address pool, address token0, address token1, enum ICronV1PoolEnums.PoolType poolType)
```

This event tracks pool creations from this factory

#### Parameters

| Name     | Type                           | Description                    |
| -------- | ------------------------------ | ------------------------------ |
| pool     | address                        | the address of the pool        |
| token0   | address                        | The token 0 in this pool       |
| token1   | address                        | The token 1 in this pool       |
| poolType | enum ICronV1PoolEnums.PoolType | The poolType set for this pool |

### CronV1PoolSet

```solidity
event CronV1PoolSet(address pool, address token0, address token1, enum ICronV1PoolEnums.PoolType poolType)
```

This event tracks pool being set from this factory

#### Parameters

| Name     | Type                           | Description                    |
| -------- | ------------------------------ | ------------------------------ |
| pool     | address                        | the address of the pool        |
| token0   | address                        | The token 0 in this pool       |
| token1   | address                        | The token 1 in this pool       |
| poolType | enum ICronV1PoolEnums.PoolType | The poolType set for this pool |

### CronV1PoolRemoved

```solidity
event CronV1PoolRemoved(address pool, address token0, address token1, enum ICronV1PoolEnums.PoolType poolType)
```

This event tracks pool deletions from this factory

#### Parameters

| Name     | Type                           | Description                    |
| -------- | ------------------------------ | ------------------------------ |
| pool     | address                        | the address of the pool        |
| token0   | address                        | The token 0 in this pool       |
| token1   | address                        | The token 1 in this pool       |
| poolType | enum ICronV1PoolEnums.PoolType | The poolType set for this pool |

### OwnerChanged

```solidity
event OwnerChanged(address oldAdmin, address newAdmin)
```

This event tracks pool creations from this factory

#### Parameters

| Name     | Type    | Description                       |
| -------- | ------- | --------------------------------- |
| oldAdmin | address | the address of the previous admin |
| newAdmin | address | the address of the new admin      |

### create

```solidity
function create(address _token0, address _token1, string _name, string _symbol, uint256 _poolType) external returns (address)
```

### set

```solidity
function set(address _token0, address _token1, uint256 _poolType, address _pool) external
```

### remove

```solidity
function remove(address _token0, address _token1, uint256 _poolType) external
```

### transferOwnership

```solidity
function transferOwnership(address _newOwner, bool _direct, bool _renounce) external
```

### claimOwnership

```solidity
function claimOwnership() external
```

### owner

```solidity
function owner() external view returns (address)
```

### pendingOwner

```solidity
function pendingOwner() external view returns (address)
```

### getPool

```solidity
function getPool(address _token0, address _token1, uint256 _poolType) external view returns (address pool)
```


---

# 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://cron-finance.gitbook.io/twamm/refrences/documentation/interfaces/icronv1poolfactory.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.
