# StrategyUpdated()

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

```solidity
    event StrategyUpdated(
        uint256 indexed id,
        Token indexed token0,
        Token indexed token1,
        Order order0,
        Order order1,
        uint8 reason
    );
```

{% endcode %}

This event is emitted when the parameters of a strategy are changed.

### Event Parameters

| Name   | Type    | Description                                                            |
| ------ | ------- | ---------------------------------------------------------------------- |
| id     | uint256 | The incrementally assigned id number of the strategy                   |
| token0 | Token   | The first token in the strategy                                        |
| token1 | Token   | The second token in the strategy                                       |
| order0 | Order   | The first Order object in the strategy. See below for details.         |
| order1 | Order   | The second Order object in the strategy. See below for details.        |
| reason | unit8   | Indicating if the update is a result of a user update (0) or trade (1) |

```
// {y, z, A, B} order
```


---

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