# AmplificationUtils

> AmplificationUtils library

A library to calculate and ramp the A parameter of a given `SwapUtils.Swap` struct. This library assumes the struct is fully validated.

## Methods

### A\_PRECISION

```solidity
function A_PRECISION() external view returns (uint256)
```

#### Returns

| Name | Type    | Description |
| ---- | ------- | ----------- |
| \_0  | uint256 | undefined   |

### MAX\_A

```solidity
function MAX_A() external view returns (uint256)
```

#### Returns

| Name | Type    | Description |
| ---- | ------- | ----------- |
| \_0  | uint256 | undefined   |

## Events

### RampA

```solidity
event RampA(uint256 oldA, uint256 newA, uint256 initialTime, uint256 futureTime)
```

#### Parameters

| Name        | Type    | Description |
| ----------- | ------- | ----------- |
| oldA        | uint256 | undefined   |
| newA        | uint256 | undefined   |
| initialTime | uint256 | undefined   |
| futureTime  | uint256 | undefined   |

### StopRampA

```solidity
event StopRampA(uint256 currentA, uint256 time)
```

#### Parameters

| Name     | Type    | Description |
| -------- | ------- | ----------- |
| currentA | uint256 | undefined   |
| time     | uint256 | undefined   |


---

# 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://contracts.synapseprotocol.com/amm/amplificationutils.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.
