repo_id
stringclasses 279
values | file_path
stringlengths 43
179
| content
stringlengths 1
4.18M
| __index_level_0__
int64 0
0
|
|---|---|---|---|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/03-Whirlpools SDKs/01-Whirlpools
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/03-Whirlpools SDKs/01-Whirlpools/04-Position Management/02-Fetch Positions.mdx
|
---
sidebar_label: Fetch Positions
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Fetching Positions
Retrieving details about positions held in liquidity pools is an essential part of managing your liquidity and monitoring performance. This guide explains how to use the SDK to gather information about all active positions held by a given wallet.
## 1. Overview of Fetching Positions
Fetching positions helps developers retrieve information on liquidity positions associated with a specific wallet. It scans the Solana blockchain for token accounts owned by the wallet, determines which ones represent positions, and decodes the data to provide detailed information about each position.
With this function, you can:
- Identify all liquidity positions held by a wallet.
- Gather information about liquidity, price ranges, and fees earned.
## 2. Getting Started Guide
### Fetching Positions for a Wallet
Fetching positions is a straightforward process:
1. **RPC Client**: Use a Solana RPC client to interact with the blockchain.
2. **Wallet Address**: Provide the wallet address of the user whose positions you want to fetch.
3. **Fetch Positions**: Use the appropriate function to retrieve all positions held by the specified wallet.
<Tabs groupId="programming-languages">
<TabItem value="ts" label="Typescript" default>
```tsx
import { fetchPositionsForOwner, setWhirlpoolsConfig } from '@orca-so/whirlpools';
import { createSolanaRpc, devnet, address } from '@solana/web3.js';
await setWhirlpoolsConfig('solanaDevnet');
const devnetRpc = createSolanaRpc(devnet('https://api.devnet.solana.com'));
const owner = address("3KBZiL2g8C7tiJ32hTv5v3KM7aK9htpqTw4cTXz1HvPt"); // set an owner address
const positions = await fetchPositionsForOwner(devnetRpc, owner);
console.log(positions);
```
</TabItem>
<TabItem value="rust" label="Rust">
```rust
use orca_whirlpools::{
get_positions_for_owner, set_whirlpools_config_address, WhirlpoolsConfigInput
};
use solana_client::nonblocking::rpc_client::RpcClient;
use solana_sdk::pubkey::Pubkey;
use std::str::FromStr;
#[tokio::main]
async fn main() {
set_whirlpools_config_address(WhirlpoolsConfigInput::SolanaDevnet).unwrap();
let rpc = RpcClient::new("https://api.devnet.solana.com".to_string());
let whirlpool_address =
Pubkey::from_str("3KBZiL2g8C7tiJ32hTv5v3KM7aK9htpqTw4cTXz1HvPt").unwrap();
let positions = get_positions_for_owner(&rpc, whirlpool_address)
.await
.unwrap();
println!("Positions: {:?}", positions);
}
```
</TabItem>
</Tabs>
### Fetching Positions in a Whirlpool
Fetching all positions in a Whirlpool is a straightforward process:
1. **RPC Client**: Use a Solana RPC client to interact with the blockchain.
2. **Whirlpool Address**: Provide the whirlpool address for the positions you want to fetch.
3. **Fetch Positions**: Use the appropriate function to retrieve all positions in a whirlpool.
<Tabs groupId="programming-languages">
<TabItem value="ts" label="Typescript" default>
```tsx
import { fetchPositionsInWhirlpool, setWhirlpoolsConfig } from '@orca-so/whirlpools';
import { createSolanaRpc, devnet, address } from '@solana/web3.js';
await setWhirlpoolsConfig('solanaDevnet');
const devnetRpc = createSolanaRpc(devnet('https://api.devnet.solana.com'));
const owner = address("3KBZiL2g8C7tiJ32hTv5v3KM7aK9htpqTw4cTXz1HvPt");
const positions = await fetchPositionsInWhirlpool(devnetRpc, owner);
console.log(positions);
```
</TabItem>
<TabItem value="rust" label="Rust">
```rust
use orca_whirlpools::{
fetch_positions_in_whirlpool, set_whirlpools_config_address, WhirlpoolsConfigInput,
};
use solana_client::nonblocking::rpc_client::RpcClient;
use solana_sdk::pubkey::Pubkey;
use std::str::FromStr;
#[tokio::main]
async fn main() {
set_whirlpools_config_address(WhirlpoolsConfigInput::SolanaDevnet).unwrap();
let rpc = RpcClient::new("https://api.devnet.solana.com".to_string());
let whirlpool_address =
Pubkey::from_str("3KBZiL2g8C7tiJ32hTv5v3KM7aK9htpqTw4cTXz1HvPt").unwrap();
let positions = fetch_positions_in_whirlpool(&rpc, whirlpool_address)
.await
.unwrap();
println!("Positions: {:?}", positions);
}
```
</TabItem>
</Tabs>
## 3. Usage example
Suppose you want to monitor all active positions held by a wallet. By using the SDK to fetch positions, you can retrieve detailed information about each position, including liquidity amounts, associated pools, and earned rewards. This data can also be used to build a bot that rebalances or repositions liquidity according to a strategy defined by an algorithmic trader. Monitoring position performance helps in making informed decisions about adjusting, rebalancing, or closing positions.
## 4. Next steps
After fetching positions, you could:
- [Add or Remove Liquidity](03-Adjust%20Liquidity.mdx): Adjust the amount of liquidity in your position based on market conditions.
- [Harvest Rewards](04-Harvest.mdx): Collect rewards and fees without closing the position.
- [Close Position](05-Close%20Position.mdx): When you decide to exit, close the position and withdraw the provided tokens along with any earned fees.
By fetching the positions, you gain visibility into your liquidity positions and can take necessary actions to optimize returns.
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/03-Whirlpools SDKs/01-Whirlpools
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/03-Whirlpools SDKs/01-Whirlpools/04-Position Management/04-Harvest.mdx
|
---
sidebar_label: Harvest
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Harvesting a Position
Harvesting a position in Orca Whirlpools allows you to collect any accumulated fees and rewards without closing the position. This process is useful when you want to claim your earnings while keeping your liquidity active in the pool, ensuring you continue to benefit from potential future fees.
## 1. Overview of Harvesting a Position
The SDK helps you generate the instructions needed to collect fees and rewards from a position without closing it. This allows you to realize your earnings while maintaining liquidity in the pool.
With this function, you can:
- Collect accumulated trading fees from your position.
- Harvest rewards earned by providing liquidity, all while keeping the position active.
## 2. Getting Started Guide
### Step-by-Step Guide to Harvesting a Position
To harvest fees and rewards from a position, follow these steps:
1. **RPC Client**: Use a Solana RPC client to interact with the blockchain.
2. **Position Mint**: Provide the mint address of the NFT representing your position. This NFT serves as proof of ownership and represents the liquidity in the position.
3. **Authority**: This can be your wallet, which will fund the pool initialization. If the authority is not specified, the default wallet will be used. You can configure the default wallet through the SDK.
4. **Create Instructions**: Use the appropriate function to generate the necessary instructions to harvest fees and rewards.
<Tabs groupId="programming-languages">
<TabItem value="ts" label="Typescript" default>
```tsx
import { harvestPositionInstructions, setWhirlpoolsConfig } from '@orca-so/whirlpools';
import { createSolanaRpc, devnet, address } from '@solana/web3.js';
import { loadWallet } from './utils';
await setWhirlpoolsConfig('solanaDevnet');
const devnetRpc = createSolanaRpc(devnet('https://api.devnet.solana.com'));
const wallet = await loadWallet();
const positionMint = address("HqoV7Qv27REUtmd9UKSJGGmCRNx3531t33bDG1BUfo9K");
const { feesQuote, rewardsQuote, instructions } = await harvestPositionInstructions(
devnetRpc,
positionMint,
wallet
);
console.log(`Fees owed token A: ${feesQuote.feeOwedA}`);
console.log(`Rewards '1' owed: ${rewardsQuote.rewards[0].rewardsOwed}`);
```
</TabItem>
<TabItem value="rust" label="Rust">
```rust
use orca_whirlpools::{
harvest_position_instructions, set_whirlpools_config_address, WhirlpoolsConfigInput,
};
use solana_client::nonblocking::rpc_client::RpcClient;
use solana_sdk::pubkey::Pubkey;
use std::str::FromStr;
use crate::utils::load_wallet;
#[tokio::main]
async fn main() {
set_whirlpools_config_address(WhirlpoolsConfigInput::SolanaDevnet).unwrap();
let rpc = RpcClient::new("https://api.devnet.solana.com".to_string());
let wallet = load_wallet();
let position_mint_address =
Pubkey::from_str("HqoV7Qv27REUtmd9UKSJGGmCRNx3531t33bDG1BUfo9K").unwrap();
let result = harvest_position_instructions(&rpc, position_mint_address, Some(wallet.pubkey()))
.await
.unwrap();
println!("Fees Quote: {:?}", result.fees_quote);
println!("Rewards Quote: {:?}", result.rewards_quote);
println!("Number of Instructions: {}", result.instructions.len());
}
```
</TabItem>
</Tabs>
5. **Submit Transaction**: Include the generated instructions in a Solana transaction and send it to the network using the Solana SDK.
## 3. Usage Example
Suppose you are a developer creating a bot to manage investments for a group of investors. The bot periodically collects accumulated fees and rewards from liquidity positions to distribute profits among investors. By using the SDK, you can generate the instructions to collect earnings from each active position without closing it, allowing the liquidity to continue generating returns and potentially reinvest your earned fees into the position.
## 4. Next Steps
After harvesting fees and rewards, you can:
- [Monitor Performance](02-Fetch%20Positions.mdx): Keep track of your position to evaluate future earnings and the overall performance.
- Reinvest Earnings: Use the harvested fees and rewards to add more liquidity or diversify your positions.
- Harvest Regularly: Regularly collect your earnings to maintain optimal capital efficiency while keeping your liquidity active.
By using the SDK, you can maximize the benefits of providing liquidity while keeping your position open and continuously earning fees.
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/02-Architecture Overview/02-Price & Ticks.md
|
# Price & Ticks
## Tracking Price
Whirlpool tracks price using **square-root price**. Each pool supports a sqrt-price range between $\left[ 2^{-64}, 2^{64} \right]$.
## Tick
Users can deposit liquidity on a custom price range in a Whirlpool. The smallest unit of price measurement (**tick**) is 1bps. Whirlpool represents the price range as a sequence of ticks and stores accounting information in each initialized tick that hosts liquidity.
Sqrt-price maps to a tick with the formula below. Each tick represents 1 basis point of change from the neighboring tick.
$$
\sqrt{p}(i) = \sqrt{1.0001}^{i}\\
$$
Given the supported price-range of $\left[ 2^{-64}, 2^{64} \right]$, the tick range for a Whirlpool is $\left[ -443636, 443636 \right]$.
The Whirlpool account tracks both the current sqrt-price and the current tick-index.
## Understanding Tick Spacing
Due to compute cost and rent constraints, it is often not economical for a Whirlpool to allow users to deposit liquidity into every single tick. Whirlpools requires pool owners to define an additional "Tick-Spacing" parameter. This allows them to define the space between "initializable ticks", where liquidity information can be stored.
A tick-spacing of 5 means that liquidity can be deposited into tick-index that are a multiple of 5. (ex. [...-10, -5, 0, 5, 10...]).
As a general rule, the smaller the expected volatility of a pool is, the smaller tick-spacing should be. To help you decide on the best tick-spacing for your whirlpool, consider the following attributes.
### 1. Granularity of user definable price ranges
The smaller your tick-spacing, the more granular the price users can deposit their liquidity in. For more stable pools, a more granular tick-spacing would let users define a tighter range to maximize their leverage.
**Tick Spacing = 1**
| **Price** | **Initializable Tick Index** |
|---|---|
| 1.0001^{-2} = \frac{1}{1.00020001} | -2 |
| 1.0001^{-1} = \frac{1}{1.0001} | -1 |
| 1.0001^0 = 1 | 0 |
| 1.0001^1 = 1.0001 | 1 |
| 1.0001^2 = 1.00020001 | 2 |
**Tick Spacing = 100**
| Price | **Initializable Tick Index** |
|---|---|
| 1.0001^{-200} = \frac{1}{1.0202003198939318} | -200 |
| 1.0001^{-100} = \frac{1}{1.0100496620928754} | -100 |
| 1.0001^0 = 1 | 0 |
| 1.0001^{100} = 1.0100496620928754 | 100 |
| 1.0001^{200} = 1.0202003198939318 | 200 |
### 2. Maximum price movement per swap
The size of the tick-spacing defines the maximum price movement a single swap can move the price by for a Whirlpool.
Whirlpool's swap operates by iterating through each ticks with initialized liquidity. The larger the gap between initialized ticks are, the more it can theoretically traverse the price range.
A low tick-spacing pool undergoing a massive price movement may require multiple swap instructions to complete the price movement. Therefore, more volatile pairs that often has large price swings should look at higher tick-spacing to mitigate this pain point for their pool users.
### 3. Account rent cost for users
On-chain storage requires account space, and the more data a program needs to store, the higher the rent required. With larger tick-spacing, fewer ticks are needed to manage liquidity across a set price range, reducing the storage cost for users.
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/02-Architecture Overview/06-Whirlpool Parameters.mdx
|
---
sidebar_label: Whirlpools Parameters
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Orca Whirlpool Parameters
Orca Whirlpools uses the Whirlpools program to host liquidity for token pairs. Below are the set of constants Orca uses to host their program.
<Tabs>
<TabItem value="mainnet-beta" label="Solana Mainnet-Beta">
#### Whirlpool Program ID
whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc
#### WhirlpoolConfig Address
2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ
#### WhirlpoolConfigExtension Address
777H5H3Tp9U11uRVRzFwM8BinfiakbaLT8vQpeuhvEiH
</TabItem>
<TabItem value="devnet" label="Solana Devnet">
#### Whirlpool Program ID
whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc
#### WhirlpoolConfig Address
FcrweFY1G9HJAHG5inkGB6pKg1HZ6x9UC2WioAfWrGkR
#### WhirlpoolConfigExtension Address
475EJ7JqnRpVLoFVzp2ruEYvWWMCf6Z8KMWRujtXXNSU
</TabItem>
<TabItem value="eclipse-mainnet" label="Eclipse Mainnet">
#### Whirlpool Program ID
whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc
#### WhirlpoolConfig Address
FVG4oDbGv16hqTUbovjyGmtYikn6UBEnazz6RVDMEFwv
#### WhirlpoolConfigExtension Address
9VrJciULifYcwu2CL8nbXdw4deqQgmv7VTzidwgQYBmm
</TabItem>
<TabItem value="eclipse-testnet" label="Eclipse Testnet">
#### Whirlpool Program ID
whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc
#### WhirlpoolConfig Address
FPydDjRdZu9sT7HVd6ANhfjh85KLq21Pefr5YWWMRPFp
#### WhirlpoolConfigExtension Address
6gUEB962oFdZtwoVyXNya9TfGWnBEbYNYt8UdvzT6PSf
</TabItem>
</Tabs>
## Initialized FeeTiers
<Tabs>
<TabItem value="mainnet-beta" label="Solana Mainnet-Beta">
| TickSpacing | Fee Rate | Address |
|-------------|----------|----------------------------------------------|
| 1 | 0.01% | 62dSkn5ktwY1PoKPNMArZA4bZsvyemuknWUnnQ2ATTuN |
| 2 | 0.02% | BH9LXGqLhZV3hdvShYZhgQQEjPVKhHPyHwjnsxjETFRr |
| 4 | 0.04% | 9zfDkPMnx9ei8mZVfCsLjkBzXob7H3PuAhabmUVAiuJF |
| 8 | 0.05% | GBtp54LJqqDSWonLT878KWerkJAYqYq4jasZ1UYs8wfD |
| 16 | 0.16% | 87u3YRwJDNR2wozMTF3umYRgny8UMZ2mHN3UBTSXm8Ho |
| 64 | 0.30% | HT55NVGVTjWmWLjV7BrSMPVZ7ppU8T2xE5nCAZ6YaGad |
| 96 | 0.65% | FapWifnwxWnXQggHBk5XR9bfqAo7H53Gm3ph9Rnb8UTy |
| 128 | 1.00% | BGnhGXT9CCt5WYS23zg9sqsAT2MGXkq7VSwch9pML82W |
| 256 | 2.00% | 72NKr3dFXyYWKkgF814hRrdpLjXHJ6F3DwUXxFmAYmp4 |
| 32896 | 1.00% | zVmMsL5qGh7txhTHFgGZcFQpSsxSx6DBLJ3u113PBer |
</TabItem>
<TabItem value="devnet" label="Solana Devnet">
| TickSpacing | Fee Rate | Address |
|-------------|----------|----------------------------------------------|
| 1 | 0.01% | CtfHwxDmdYtoWyeSyh3NUWk43FnehVhhtwuYdWwZcVyt |
| 2 | 0.02% | HgiLjqu6BW5fa9hBgK9GJ8WoTpY4cjWq47RjazbfzbSH |
| 4 | 0.04% | 2PdLb9QP1NJUbv8iLx4YycbGHep9NvATpqbt7A7BvFEp |
| 8 | 0.05% | DV9sQ4gQTYeEodFap6xiiJkcmYYr94EPFmu7gWXaQTym |
| 16 | 0.10% | 8tXXA2fUehmJtBZuAiCR3rzP7UGUCM9DCVyM4G8PL1R9 |
| 32 | 0.20% | Gyk4CgZDzYv7YvsG4ELLgR12vVuDrghb6EFhSM1gerRj |
| 64 | 0.20% | nhg1SS1hNFnJKZrJ9FBf3L6SxTjwEnkehN7dmAbg25t |
| 128 | 0.40% | G319n1BPjeXjAfheDxYe8KWZM7FQhQCJerWRK2nZYtiJ |
| 256 | 1.00% | 6b8hEAH62GoPqbmgsR3DTFFoBefbZU7hE24uNXHPHR7i |
| 32896 | 1.00% | 8EHtyN3DBseSZzHYkxXuT2GDoPmqmKEtbbaNrabFZhdL |
</TabItem>
<TabItem value="eclipse-mainnet" label="Eclipse Mainnet">
| TickSpacing | Fee Rate | Address |
|-------------|----------|----------------------------------------------|
| 1 | 0.01% | 9ZhzuqjANw7T8Q8KWErXELrx9ZMArUdXAUmoJ9qBGuUS |
| 2 | 0.02% | BWhUdrPPor8gxya47efretmwTtkCpFQxDiK8eRDV4ibE |
| 4 | 0.05% | 9uqkUhxV5Gu3yMKSQ9Baavj3ky8MkVDp925XNfCng1dy |
| 8 | 0.1% | ELt2ABgf4BpXZhKLcxKCg3QJb7WGtcz9ACGcHc6pFvaG |
| 16 | 0.16% | 2G1aYAbxbwHLUV74HZ1gFdj6eftPiwKx9yRsSsMeCXSq |
| 32 | 0.30% | DT3cBTV8RMkNRLGV4S7Xj7QbbxrZvPG3kPYq2YnstEnn |
| 64 | 0.65% | Cu433u9MsEH57ZFJC4Pw9DT97PSgeVF4EY1YoLfUwRze |
| 128 | 1.00% | 7wAquQD66tK61wzM45uG8S3cHTKho1gknydE8qzDnV18 |
| 256 | 2.00% | Hb1U1qAm1ZQYR4rJgDhGusPGUzkW4yjF3Ak7J9fZ8VHG |
| 32896 | 1.00% | 8ESd9eMrLUGveZGSKg2Fw9wKGD5oWzy41RAPfeZQNUrQ |
</TabItem>
<TabItem value="eclipse-testnet" label="Eclipse Testnet">
| TickSpacing | Fee Rate | Address |
|-------------|----------|----------------------------------------------|
| 1 | 0.01% | GGujQ7kXXqHocmL3AUNxx6GSHLL6fyX1jr6493A5G57i |
| 2 | 0.02% | EyTnaXvGJZNG6FWa9LawAsk8UawRLu5CfNyHyxpa4gqU |
| 4 | 0.05% | G8CtE6gnKhvLKe8TVs2TpTVfkHq3jJTdtq1PdrmHKZYs |
| 8 | 0.1% | 3qePXQN7Gne8eo5WkBdXt69H1up15hdkzgH2hkFmzjuP |
| 16 | 0.16% | 2G1aYAbxbwHLUV74HZ1gFdj6eftPiwKx9yRsSsMeCXSq |
| 32 | 0.30% | J2HyxmvRKvqUvAofLz6h5ssCXRQPk9ZLyieZDZKoFdEi |
| 64 | 0.65% | FmFjuRAYykQ9iGA1DeQ3Fe1nXgQzvdnfNw7koBdwVu6s |
| 128 | 1.00% | 5tiUivnjYGCwcVur9tKQnaeb9FWVZvZX7EQwpNGsgNjy |
| 256 | 2.00% | 9MGYtXfUXSeKf4XHmViFHuQdNM5KpW82FEPgmKjeh1v3 |
| 32896 | 1.00% | 8P94RwVTE68pENt6diFNSz8pXMtsAbitVJw5wBpDUyDu |
</TabItem>
</Tabs>
### Trading Fees
Trading fees are divided as follows under Orca’s `WhirlpoolsConfig` setting:
- 87% to the liquidity provider
- 12% to the DAO treasury
- 1% to the [Climate Fund](https://www.orcaclimate.fund/)
**Fee Rate**: When creating a new pool, users can select the fee rate paid by traders.
The table below shows the fees paid by the trader and how the total value of the trade is shared as fees between the liquidity provider, Orca DAO treasury, and Climate Fund.
<Tabs>
<TabItem value="sol" label="SOL">
| Pool Fee Tier | Taker Fee | LP Fee | DAO Treasury | Climate Fund |
|---------------|-----------|-------- |--------------|--------------|
| 2% pool | 2% | 1.74% | 0.24% | 0.02% |
| 1% pool | 1% | 0.87% | 0.12% | 0.01% |
| 0.65% pool | 0.65% | 0.5655% | 0.0078% | 0.0065% |
| 0.3% pool | 0.3% | 0.261% | 0.036% | 0.003% |
| 0.16% pool | 0.16% | 0.16% | - | - |
| 0.05% pool | 0.05% | 0.05% | - | - |
| 0.04% pool | 0.04% | 0.04% | - | - |
| 0.02% pool | 0.02% | 0.02% | - | - |
| 0.01% pool | 0.01% | 0.01% | - | - |
</TabItem>
<TabItem value="eclipse" label="Eclipse">
| Pool Fee Tier | Taker Fee | LP Fee | DAO Treasury | Climate Fund |
|---------------|-----------|-------- |--------------|--------------|
| 2% pool | 2% | 1.74% | 0.24% | 0.02% |
| 1% pool | 1% | 0.87% | 0.12% | 0.01% |
| 0.65% pool | 0.65% | 0.5655% | 0.0078% | 0.0065% |
| 0.3% pool | 0.3% | 0.261% | 0.036% | 0.003% |
| 0.15% pool | 0.15% | 0.1392% | 0.0192% | 0.0016% |
| 0.1% pool | 0.1% | 0.087% | 0.0192% | 0.0016% |
| 0.05% pool | 0.05% | 0.0435% | 0.006 | 0.0005% |
| 0.02% pool | 0.02% | 0.0174% | 0.0024% | 0.0002% |
| 0.01% pool | 0.01% | 0.0087% | 0.0012% | 0.0001% |
</TabItem>
</Tabs>
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/02-Architecture Overview/05-Whirlpool Fees.md
|
# Understanding Whirlpool Fees
When a user performs a swap on a Whirlpool, a percentage of the swap input amount may be taken as a fee, allocated between liquidity providers and a protocol fee.
## Total Fee
On the protocol, the total fee collected from the user is referred as the fee-rate. It is stored as a hundredths of a basis point on the [Whirlpool](https://github.com/orca-so/whirlpools/blob/2c9366a74edc9fefd10caa3de28ba8a06d03fc1e/programs/whirlpool/src/state/whirlpool.rs) account.
A 0.01% (1bps) swap fee would equate to a fee_rate value of 100.
$$
\text{swap\_fee} = \frac{\text{input\_amount} \times \text{fee\_rate}}{1000000}
$$
## Fee Breakdown
### ProtocolFee
The `protocol_fee` is the fee diverted to a wallet that only the WhirlpoolConfig's `collectProtocolFeesAuthority` can collect. Often, this is used as the treasury of the protocol hosting the Whirlpools program.
It is stored as a basis point of the total fees collected on the Whirlpool account. For example, 3% of the total swap fee is diverted to the protocol would have a protocol_fee value of 300.
$$
\text{protocol\_fee} = \frac{\text{swap\_fee} \times \text{protocol\_fee\_rate}}{10000}
$$
### Liquidity Provider Fee
The liquidity providers get all of the remaining fees once the protocol fee is subtracted.
$$
\text{LP\_fee} = \text{swap\_fee} - \text{protocol\_fee}
$$
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/02-Architecture Overview/03-Understanding Tick Arrays.md
|
# Understanding Tick Arrays

A sequence of ticks are stored in individual **tick-array** accounts on chain. Each whirlpool has a sequence of tick-array accounts to host the entire tick range.
A tick-array is keyed by the start-index of its hosted ticks and can hold 88 physical ticks in an array. It only hosts the tick objects for the initializable tick indices based on the Whirlpool's tick-spacing. The total range for a tick-array is therefore 88 * tick-spacing.
**Tick Array Account Info**
- Number of physical tick slots - 88
- Account Size - 10kb
## Usage in Whirlpool Program Instructions
When you interact with ticks on Whirlpool instructions, often you will need to derive the correct tick-array so the program can get access to the designated tick object. This tick-array is a PDA derived using the Whirlpool pool’s public key and the start tick index of the tick array, which defines the beginning of a specific range of ticks.
For example, if the current tick is 200, the tick spacing is 2, and each tick-array contains 88 ticks, you can compute the start tick index by first finding the closest multiple of tick_spacing * ticks_per_array that is less than or equal to the current tick. Here, the start tick index would be 176, calculated as (200 // (2 * 88)) * (2 * 88).
### Open Position
When a position opens up in a new tick or price range, the tick-array must be initialized before the position can be created. This means the user invoking the position will need to cover the rent-exempt cost for the tick-array account, which is 10 KB in size.
Once a tick-array account is set up, it cannot be closed and will never need to be reinitialized. For this reason, Whirlpool owners may consider preemptively initializing tick-array ranges to prevent unexpected costs for users.
### Adjust Liquidity (increase / decrease liquidity)
Users of these instructions must provide the tick-arrays that contain the specified tick indexes. For each instruction, two tick-arrays need to be passed in—these may be the same array if the range is small. The instruction requires access to these accounts to read the appropriate Tick objects effectively.
### Swap
Swap users will have to provide the series of tick-arrays that the swap will traverse across.
The first tick-array in the sequence typically houses the Whirlpool's current tick index, though this is not always required.
The second and third tick arrays are the next tick-arrays in the swap direction. If the user knows the swap will not traverse to the next tick-array, or it's simply not possible at both ends of the price range, they can just put in any tick-array public key.
In some cases, such as with the new swap instruction, users can pass in up to six tick-arrays, with only three arrays being crossed during a swap. For example, the Whirlpools SDK preemptively provides the tick-array containing the current price, along with two arrays below and two above it, ensuring adequate coverage for different price ranges.
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/02-Architecture Overview/04-Tokenized Positions.md
|
## Tokenized Positions
Whirlpool Position ownership is represented by a non-fungible token in the owner's wallet.
## Anatomy of a Position
There are 3 main accounts used to represent a Tokenized Position on Whirlpool.
1. **Postion Account** - The actual [account](https://github.com/orca-so/whirlpools/blob/2c9366a74edc9fefd10caa3de28ba8a06d03fc1e/programs/whirlpool/src/state/position.rs#L20) hosting the position's information. The PDA is derived from Whirlpool Program Id and Position Mint.
2. **Position Mint Account** - The spl-token mint of the NFT minted to represent this position.
3. **Position Associated Token Account** - The [ATA](https://spl.solana.com/associated-token-account) of the mint-token that will house the minted token in the user's wallet.
The program will verify that a user owns a position by checking whether the wallet provided has the correct position token in it.
### Creating a Position
Positions are created using the [open_position_with_token_extensions](https://github.com/orca-so/whirlpools/blob/main/programs/whirlpool/src/instructions/open_position_with_token_extensions.rs) instruction and it does the following:
1. The caller will provide a brand new token mint and the PDA of the [Position](https://github.com/orca-so/whirlpools/blob/2c9366a74edc9fefd10caa3de28ba8a06d03fc1e/programs/whirlpool/src/state/position.rs) account derived from the Whirlpool.
2. `open_position_with_token_extensions` will initialize the mint, mint 1 token to the `position_token_account` and immediately burn the mint authority of this mint.
3. The position account is initialized with the set tick range and is ready to receive new liquidity via the [increase_liquidity](https://github.com/orca-so/whirlpools/blob/2c9366a74edc9fefd10caa3de28ba8a06d03fc1e/programs/whirlpool/src/instructions/increase_liquidity.rs) instruction.
## Traits of a Whirlpool Position
- The tick range is fixed upon creation and cannot be adjusted afterward. To re-balance, users need to close their position and open a new one with the desired tick range.
- Position tokens can be freely transferred. Whoever holds the token in their wallet has the authority to manage the position account, allowing them to increase or decrease liquidity, harvest fees, and close the position.
## NFT Metadata
Whirlpools utilizes the Token2022 program for position NFTs, leveraging the MetadataPointer and TokenMetadata extensions to make all rent refundable. Advanced users can also choose to exclude metadata entirely.
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/02-Architecture Overview/01-Account Architecture.md
|
# Account Architecture
## Overview

## WhirlpoolsConfig
The owner of a Config account has the authority to define the many authorities over the pools that it owns (ex. default fees, collect protocol fees etc) . Whirlpools visible on the ORCA UI are all derived and controlled by a WhirlpoolsConfig account owned by the ORCA foundation. To learn more about managing pools, start [here](../03-Whirlpools%20SDKs/01-Whirlpools/03-Whirlpool%20Management/01-Create%20Pool.mdx).
Users and other protocols are free to deploy their own WhirlpoolsConfig account on our Whirlpool program to spawn their own set of liquidity pools.
## WhirlpoolConfigExtension
WhirlpoolsConfig account may have WhirlpoolsConfigExtension account. WhirlpoolsConfigExtension account holds some additional authorities to manage TokenExtensions, especially TokenBadge accounts.
## FeeTier
FeeTier is an account that defines the fee rate, defined per WhirlpoolsConfig and tick spacing.
## Whirlpool

A Whirlpool is a concentrated liquidity pool between a token pair (A & B).
Each Whirlpool account hosts the necessary information to deal with the accounting of the pool. It also hosts the PDAs to the vaults. Only the Whirlpool program has authority to withdraw from the vault. No one, not even the program owner or WhirlpoolsConfig owner, has the authority to withdraw.
A Whirlpool account is hashed by the Config, Token pair mints and tick spacing, so there can be many pools for the same trading pair but with a different tick-spacing.
Users are able to perform position management and fee/reward collection operations against the Whirlpool.
## TickArray
To learn about TickArry, read [Understanding Tick Arrays](./03-Understanding%20Tick%20Arrays.md)
## Position
Positions represents a set of liquidity distributed on a price range within a single Whirlpool. To learn more, read [Tokenized Positions](./04-Tokenized%20Positions.md)
## PositionBundle
By creating a PositionBundle, up to 256 positions can be managed by a single NFT. Also, by closing a position, a new position can be created on the same PositionBundle account, so there is no rent overhead when rebalancing.
If you manage many positions and open and close them frequently, there is no reason not to use PositionBundle.
## TokenBadge
This account was introduced to support TokenExtensions.
While TokenExtensions provides useful extensions, there are extensions that pose a risk to the pool and pool users.
Therefore, tokens with some extensions can only be used for pool initialization if TokenBadge authority has issued a TokenBadge for that token.
## How are Whirlpool Accounts stored
Whirlpool program accounts are all [Program Derived Addresses](https://solana.com/docs/core/pda) (PDA) derivable from another Whirlpool account up the hierarchy.
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/docs/02-Architecture Overview/07-TokenExtensions Support.md
|
# TokenExtensions
On May 28th 2024, Whirlpool program has been upgraded to support TokenExtensions (aka Token-2022 program).
## Extension List
**Supported**
- TransferFee
- InterestBearing (supported since Oct 11th 2024)
- MemoTransfer
- MetadataPointer
- TokenMetadata
- ConfidentialTransfer (non-confidential transfer only)
**Supported if it has initialized TokenBadge**
- PermanentDelegate
- TransferHook
- MintCloseAuthority
- DefaultAccountState (default state must be Initialized)
> ℹ️ FreezeAuthority is not extensions, but it requires TokenBadge.
It should be disabled unless there is a reasonable reason (e.g., legal compliance). FreezeAuthority rejection does not apply to TokenProgram tokens, but does apply to TokenExtensions tokens.
**Not Supported**
- Group, GroupPointer
- Member, MemberPointer
- NonTransferable
- All other extensions not listed above
## New Instructions
### V2 Instructions
V2 instructions have been added to handle tokens owned by Token-2022 program.
- V1 instructions don’t work for pools with Token-2022 tokens.
- V2 instructions work for pools with the following combinations. So V2 encompasses V1; an implementation that always uses V2 is simple, but the downside is increased transaction size if ALT is not used because of the larger number of accounts required.
- Token / Token
- Token-2022 / Token
- Token / Token-2022
- Token-2022 / Token-2022
- Token-2022 program requires Mint account for transfer, so the V2 instructions receive token programs and Mint accounts. It must also receive an SPL Memo program to support MemoTransfer.
- When dealing with tokens that have TransferHook extension, instructions will receive the accounts used by the hook program as remaining accounts.
- To reduce transfer fee, two_hop_swap_v2 transfers token directly from the first pool to the second pool. The user's token account is not passed through.
#### For Trade
|Instruction|Corresponding V1|Notes|
|---|---|---|
|swap_v2|swap||
|two_hop_swap_v2|two_hop_swap|intermediate token accounts have been eliminated to reduce transfer fee overhead|
#### For Liquidity
|Instruction|Corresponding V1|
|---|---|
|increase_liquidity_v2|increase_liquidity|
|decrease_liquidity_v2|decrease_liquidity|
#### For Fees and Rewards
|Instruction|Corresponding V1|
|---|---|
|collect_fees_v2|collect_fees|
|collect_reward_v2|collect_reward|
|collect_protocol_fees_v2|collect_protocol_fees|
|set_reward_emissions_v2|set_reward_emissions|
#### For Pool
|Instruction|Corresponding V1|
|---|---|
|initialize_pool_v2|initialize_pool|
|initialize_reward_v2|initialize_reward|
### ConfigExtension & TokenBadge Instructions
- initialize_config_extension
- set_config_extension_authority
- set_token_badge_authority
- initialize_token_badge
- delete_token_badge
## Token Badge
Allowing unrestricted pool creation with tokens that have certain extensions, like PermanentDelegate, was found to pose more risks than benefits. To safely support these types of tokens, the TokenBadge was introduced as a whitelist mechanism.
A TokenBadge is a PDA which allows pools and rewards to be initialized for such tokens. Each wirlpool config can independently whitelist tokens using a TokenBadge account
The TokenBadge itself only records the WhirlpoolsConfig and Mint used at initialization, without any additional information. Its existence signifies that pools and rewards can be initialized for the associated token.

## Notes
### Freeze Authority
Token-2022 tokens with freeze authority will be rejected unless TokenBadge account is initialized.
If you initialise the pool with your Token-2022 tokens, make sure you have disabled FreezeAuthority.
### Native Token (WSOL)
Token-2022 program has its own Wrapped SOL mint address (9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP). Let's call it WSOL-2022.
Whirlpool program rejects WSOL-2022.
WSOL-2022 has no token extensions, so please use original WSOL (So11111111111111111111111111111111111111112).
### TransferFee
Anyone can initialize whirlpool with Token-2022 tokens having `TransferFeeConfig` extension.
#### `amount` and `otherAmountThreshold`
The relationship between `amount`, `otherAmountThreshold` and `TransferFee` in each context.
The relationship between amount, otherAmountThreshold and TransferFee in each context.
ExactIn (`amount_specified_is_input = true`)
- `amount`: transfer fee Included amount (will be sent from user's token account)
- `otherAmountThreshold`: transfer fee Excluded amount (will be received at user's token account)
ExactOut (`amount_specified_is_input = false`)
- `amount`: transfer fee Excluded amount (will be received at user's token account)
- `otherAmountThreshold`: transfer fee Included amount (will be sent from user's token account)
The user can set conditions on the exact amount going out of and coming into the token account, regardless of fees.
No additional parameters are added to limit the amount of fees. If the fee is changed, the new rate is delayed by two epochs to prevent sudden increases. In the edge case where a fee change is scheduled to take effect within the transaction’s lifetime, transactions that exceed the outgoing and incoming amount thresholds will fail.
#### `minA/B`, `maxA/B`
Increase Liquidity: `maxA`, `maxB`
transfer fee Included amount (will be sent from user's token account)
Decrease Liquidity: `minA`, `minB`
transfer fee Excluded amount (will be received at user's token account)
### TransferHook
In order to use TransferHook, the owner of WhirlpoolsConfig must issue a TokenBadge for that token.
#### Use of remaining_accounts
The account used for TransferHook is different for each program used by TransferHook. Therefore, they are received through `remaining_accounts`.
To clarify the context of accounts passed as `remaining_accounts`, the v2 instructions receive `remaining_accounts_info` as data. It is used to classify the accounts contained in `remaining_accounts`. (e.g. The first 3 are for mintA's TransferHook, next 2 are for for mintB's TransferHook).
#### Security notes
- In solana, indirect re-entrance will be rejected. So transfer hook program cannot call Whirlpool program.
- TransferHook program cannot modify transfer amount. It will be called AFTER token transfer processing.
- Token-2022 program remove signer and writable flag of the source, destination and owner when calling the TransferHo[ok program even if they are passed as extra accounts. The source and destination are not updated and the owner's signature is not used unintentionally.
#### TokenBadge request
The TransferHook extension is a relatively new feature in the ecosystem, and its use cases are still being explored.
While it’s still undecided which types of TransferHook tokens will be eligible for a TokenBadge, the following best practices should guide selection:
- The code of the TransferHook program is publicly available.
- Verifiable Build has been done to ensure the code and program match.
- Upgrade authority have been disabled (ideal, but not required)
- Only perform processes that pose no risk to the user (e.g. logging)
- TransferHook must not block the transfer of tokens, or that the criteria for blocking are clearly declared, fair and reasonable.
- TransferHook must not interfere with the operation of the pool. It must not interfere with the trade, deposit, withdraw and harvest.
- Extensions that block transactions based on the amount of tokens to be transferred are undesirable because they cause transactions to fail in ways that are surprising to pool users. On the other hand, failing transfers to sanctioned wallets according to some public standard will not obstruct pool usage for many users.
- TransferHook must not request large numbers of accounts that would increase transaction size.
- TransferHook should not attempt any token transfers (including WSOL and native SOL).
- TransferHook should not attempt imposing any kind of additional fees.
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/static/index.css
|
:root {
--ifm-background-color: #F0F2FF;
--ifm-background-surface-color: #EBEDFF;
--ifm-color-primary: #4755EB;
--ifm-color-primary-dark: #3E4DEA;
--ifm-color-primary-darker: #3544E9;
--ifm-color-primary-darkest: #2B3CE8;
--ifm-color-primary-light: #505EEC;
--ifm-color-primary-lighter: #5966ED;
--ifm-color-primary-lightest: #636FEE;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}
:root[data-theme='dark'] {
--ifm-background-color: #0B0E3C !important;
--ifm-background-surface-color: #111546 !important;
--ifm-color-primary: #99AAFF;
--ifm-color-primary-dark: #8FA1FF;
--ifm-color-primary-darker: #8598FF;
--ifm-color-primary-darkest: #7A8FFF;
--ifm-color-primary-light: #A3B2FF;
--ifm-color-primary-lighter: #ADBBFF;
--ifm-color-primary-lightest: #B8C3FF;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}
img {
display: block;
width: 100%;
margin-left: auto;
margin-right: auto;
}
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/src/theme/Root.js
|
import React, { useState } from "react";
import Script from "next/script";
export default function Root({ children }) {
const [isHovered, setIsHovered] = useState(false);
const buttonStyle = {
padding: "10px 20px",
backgroundColor: "#FFD15C",
color: "#13174D",
fontSize: "18px",
fontWeight: "500",
border: "1px solid #13174D",
borderRadius: "8px",
cursor: "pointer",
boxShadow: "3px 2px 6px rgba(0, 0, 0, 0.3)",
transition: "transform 0.2s ease, box-shadow 0.2s ease",
...(isHovered && {
transform: "translate(2px, 1px)",
boxShadow: "None",
}),
};
return (
<>
{children}
<Script src="https://tally.so/widgets/embed.js" />
<div
style={{
position: "fixed",
bottom: "20px",
right: "20px",
zIndex: 1000,
}}
>
<button
data-tally-open="mRZqGP"
data-tally-width="405"
data-tally-emoji-text="👋"
data-tally-emoji-animation="wave"
data-tally-auto-close="0"
style={buttonStyle}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
Share Feedback
</button>
</div>
</>
);
}
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/src/theme
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/src/theme/DocCard/styles.module.css
|
.cardContainer {
--ifm-link-color: var(--ifm-color-emphasis-800);
--ifm-link-hover-color: var(--ifm-color-emphasis-700);
--ifm-link-hover-decoration: none;
margin-bottom: var(--ifm-paragraph-margin-bottom);
box-shadow: 0 1.5px 3px 0 rgb(0 0 0 / 15%);
border: 1px solid var(--ifm-color-emphasis-200);
transition: all var(--ifm-transition-fast) ease;
transition-property: border, box-shadow;
}
.cardContainer:hover {
border-color: var(--ifm-color-primary);
box-shadow: 0 3px 6px 0 rgb(0 0 0 / 20%);
}
.cardContainer *:last-child {
margin-bottom: 0;
}
.cardTitle {
font-size: 1.2rem;
}
.cardDescription {
font-size: 0.8rem;
}
| 0
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/src/theme
|
solana_public_repos/orca-so/whirlpools/docs/whirlpool/src/theme/DocCard/index.js
|
import React from "react";
import clsx from "clsx";
import Link from "@docusaurus/Link";
import {
useDocById,
findFirstSidebarItemLink,
} from "@docusaurus/plugin-content-docs/client";
import { usePluralForm } from "@docusaurus/theme-common";
import isInternalUrl from "@docusaurus/isInternalUrl";
import { translate } from "@docusaurus/Translate";
import Heading from "@theme/Heading";
import styles from "./styles.module.css";
function useCategoryItemsPlural() {
const { selectMessage } = usePluralForm();
return (count) =>
selectMessage(
count,
translate(
{
message: "1 item|{count} items",
id: "theme.docs.DocCard.categoryDescription.plurals",
description:
"The default description for a category card in the generated index about how many items this category includes",
},
{ count },
),
);
}
function CardContainer({ href, children }) {
return (
<Link
href={href}
className={clsx("card padding--lg", styles.cardContainer)}
>
{children}
</Link>
);
}
function CardLayout({ href, icon, title, description }) {
return (
<CardContainer href={href}>
<Heading
as="h2"
className={clsx("text--truncate", styles.cardTitle)}
title={title}
>
{icon} {title}
</Heading>
{description && (
<p
className={clsx("text--truncate", styles.cardDescription)}
title={description}
>
{description}
</p>
)}
</CardContainer>
);
}
function CardCategory({ item }) {
const href = findFirstSidebarItemLink(item);
const categoryItemsPlural = useCategoryItemsPlural();
// Unexpected: categories that don't have a link have been filtered upfront
if (!href) {
return null;
}
return (
<CardLayout
href={href}
icon="🗃️"
title={item.label}
description={item.description ?? categoryItemsPlural(item.items.length)}
/>
);
}
function CardLink({ item }) {
const icon = isInternalUrl(item.href) ? "📄️" : "🔗";
const doc = useDocById(item.docId ?? undefined);
return (
<CardLayout
href={item.href}
icon={icon}
title={item.label}
description={item.description ?? doc?.description}
/>
);
}
export default function DocCard({ item }) {
switch (item.type) {
case "link":
return <CardLink item={item} />;
case "category":
return <CardCategory item={item} />;
default:
throw new Error(`unknown item type ${JSON.stringify(item)}`);
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/docs
|
solana_public_repos/orca-so/whirlpools/docs/ts/README.md
|
# Orca Whirlpools SDKs

The Whirlpools SDKs are Orca's primary set of SDKs designed to provide enhanced, modular interaction with the Whirlpool Program on Solana and Eclipse. Whether you are managing liquidity, building applications that require pool infrastructure, or building automation tools that interact with the program, our SDKs cover a spectrum of functionality from low-level granular control to high-level abstractions. This offering is divided into three main components:
### 1. High-Level SDK (Requires Solana Web3.js ≥v2.0)
The High-Level SDK is our top recommendation for anyone who wants to integrate with the Whirlpool Program. It builds upon the Low-Level and Core SDKs to provide an easy-to-use interface for interacting with the Whirlpool Program. This SDK abstracts many of the underlying complexities, such as tick array management, and makes managing pools and positions, and executing swaps much simpler. It is suitable for developers who need efficient, high-level functionalities and want to minimize manual configuration and management.
### 2. Core SDK
The Core SDK provides essential utilities for math operations and quotes, required for working with liquidity pools. This library focuses on calculations such as determining position status, price conversions, and computing quotes on adjusting liquidity and swaps. It is written in Rust but has been compiled to WebAssembly (Wasm) for easy integration into TypeScript projects.
### 3. Low-Level SDK (Requires Solana Web3.js SDK ≥v2.0)
The Low-Level SDK is autogenerated from our Interface Description Language (IDL) using Codama. This SDK provides direct program interactions and is designed for developers who need complete, low-level control over Whirlpool operations. It covers direct access to Solana accounts, instructions, and transactions.
| 0
|
solana_public_repos/orca-so/whirlpools/docs
|
solana_public_repos/orca-so/whirlpools/docs/ts/package.json
|
{
"name": "@orca-so/whirlpools-docs-ts",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "typedoc",
"start": "typedoc && open dist/ts/index.html",
"clean": "rimraf dist"
},
"devDependencies": {
"@orca-so/whirlpools": "*",
"@orca-so/whirlpools-client": "*",
"@orca-so/whirlpools-core": "*",
"typedoc": "^0.27.4",
"typedoc-plugin-merge-modules": "^6.1.0",
"typescript": "^5.7.2"
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/docs
|
solana_public_repos/orca-so/whirlpools/docs/ts/typedoc.json
|
{
"entryPoints": [
"../../ts-sdk/core",
"../../ts-sdk/client",
"../../ts-sdk/whirlpool"
],
"entryPointStrategy": "packages",
"githubPages": false,
"skipErrorChecking": true,
"out": "dist/ts",
"readme": "./README.md"
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/Cargo.toml
|
[package]
name = "whirlpool"
version = "0.3.2"
publish = false
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
[features]
no-entrypoint = []
no-idl = []
cpi = ["no-entrypoint"]
default = []
idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"]
[dependencies]
anchor-lang = { version = "=0.29.0" }
anchor-spl = { version = "=0.29.0", features = ["metadata", "memo"] }
spl-token = { version = "=4.0.1", features = ["no-entrypoint"] }
spl-transfer-hook-interface = { version = "=0.5.0" }
spl-token-metadata-interface = { version = "=0.2.0" }
solana-program = { version = "=1.17.22" }
uint = { version = "=0.9.5", default-features = false }
arrayref = { version = "=0.3.8" }
borsh09 = { package = "borsh", version = "=0.9.3" }
solana-security-txt = { version = "=1.1.1" }
bytemuck = { version = "=1.16.3", features = ["derive", "min_const_generics"] }
[dev-dependencies]
proptest = "=1.5.0"
serde = "=1.0.206"
serde_json = "=1.0.124"
[dev-dependencies.serde_with]
version = "=2.3.3"
features = ["json"]
| 0
|
solana_public_repos/orca-so/whirlpools/programs
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/package.json
|
{
"name": "@orca-so/whirlpools-program",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "anchor build -p whirlpool",
"test": "cargo test -p whirlpool --lib",
"format": "cargo clippy -p whirlpool --fix --allow-dirty --allow-staged && cargo fmt -p whirlpool",
"lint": "cargo clippy -p whirlpool && cargo fmt --check -p whirlpool",
"clean": "anchor clean"
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/Xargo.toml
|
[target.bpfel-unknown-unknown.dependencies.std]
features = []
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/security.rs
|
use solana_security_txt::security_txt;
#[cfg(not(feature = "no-entrypoint"))]
security_txt! {
name: "Orca Whirlpool program",
project_url: "https://orca.so",
contacts: "discord:https://discord.orca.so/,twitter:https://twitter.com/orca_so",
policy: "https://immunefi.com/bounty/orca/",
source_code: "https://github.com/orca-so/whirlpools"
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/lib.rs
|
use anchor_lang::prelude::*;
declare_id!("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc");
#[doc(hidden)]
pub mod constants;
#[doc(hidden)]
pub mod errors;
#[doc(hidden)]
pub mod instructions;
#[doc(hidden)]
pub mod manager;
#[doc(hidden)]
pub mod math;
#[doc(hidden)]
pub mod security;
pub mod state;
#[doc(hidden)]
pub mod tests;
#[doc(hidden)]
pub mod util;
use crate::state::{OpenPositionBumps, OpenPositionWithMetadataBumps, WhirlpoolBumps};
use crate::util::RemainingAccountsInfo;
use instructions::*;
#[program]
pub mod whirlpool {
use super::*;
/// Initializes a WhirlpoolsConfig account that hosts info & authorities
/// required to govern a set of Whirlpools.
///
/// ### Parameters
/// - `fee_authority` - Authority authorized to initialize fee-tiers and set customs fees.
/// - `collect_protocol_fees_authority` - Authority authorized to collect protocol fees.
/// - `reward_emissions_super_authority` - Authority authorized to set reward authorities in pools.
pub fn initialize_config(
ctx: Context<InitializeConfig>,
fee_authority: Pubkey,
collect_protocol_fees_authority: Pubkey,
reward_emissions_super_authority: Pubkey,
default_protocol_fee_rate: u16,
) -> Result<()> {
instructions::initialize_config::handler(
ctx,
fee_authority,
collect_protocol_fees_authority,
reward_emissions_super_authority,
default_protocol_fee_rate,
)
}
/// Initializes a Whirlpool account.
/// Fee rate is set to the default values on the config and supplied fee_tier.
///
/// ### Parameters
/// - `bumps` - The bump value when deriving the PDA of the Whirlpool address.
/// - `tick_spacing` - The desired tick spacing for this pool.
/// - `initial_sqrt_price` - The desired initial sqrt-price for this pool
///
/// #### Special Errors
/// `InvalidTokenMintOrder` - The order of mints have to be ordered by
/// `SqrtPriceOutOfBounds` - provided initial_sqrt_price is not between 2^-64 to 2^64
///
pub fn initialize_pool(
ctx: Context<InitializePool>,
bumps: WhirlpoolBumps,
tick_spacing: u16,
initial_sqrt_price: u128,
) -> Result<()> {
instructions::initialize_pool::handler(ctx, bumps, tick_spacing, initial_sqrt_price)
}
/// Initializes a tick_array account to represent a tick-range in a Whirlpool.
///
/// ### Parameters
/// - `start_tick_index` - The starting tick index for this tick-array.
/// Has to be a multiple of TickArray size & the tick spacing of this pool.
///
/// #### Special Errors
/// - `InvalidStartTick` - if the provided start tick is out of bounds or is not a multiple of
/// TICK_ARRAY_SIZE * tick spacing.
pub fn initialize_tick_array(
ctx: Context<InitializeTickArray>,
start_tick_index: i32,
) -> Result<()> {
instructions::initialize_tick_array::handler(ctx, start_tick_index)
}
/// Initializes a fee_tier account usable by Whirlpools in a WhirlpoolConfig space.
///
/// ### Authority
/// - "fee_authority" - Set authority in the WhirlpoolConfig
///
/// ### Parameters
/// - `tick_spacing` - The tick-spacing that this fee-tier suggests the default_fee_rate for.
/// - `default_fee_rate` - The default fee rate that a pool will use if the pool uses this
/// fee tier during initialization.
///
/// #### Special Errors
/// - `FeeRateMaxExceeded` - If the provided default_fee_rate exceeds MAX_FEE_RATE.
pub fn initialize_fee_tier(
ctx: Context<InitializeFeeTier>,
tick_spacing: u16,
default_fee_rate: u16,
) -> Result<()> {
instructions::initialize_fee_tier::handler(ctx, tick_spacing, default_fee_rate)
}
/// Initialize reward for a Whirlpool. A pool can only support up to a set number of rewards.
///
/// ### Authority
/// - "reward_authority" - assigned authority by the reward_super_authority for the specified
/// reward-index in this Whirlpool
///
/// ### Parameters
/// - `reward_index` - The reward index that we'd like to initialize. (0 <= index <= NUM_REWARDS)
///
/// #### Special Errors
/// - `InvalidRewardIndex` - If the provided reward index doesn't match the lowest uninitialized
/// index in this pool, or exceeds NUM_REWARDS, or
/// all reward slots for this pool has been initialized.
pub fn initialize_reward(ctx: Context<InitializeReward>, reward_index: u8) -> Result<()> {
instructions::initialize_reward::handler(ctx, reward_index)
}
/// Set the reward emissions for a reward in a Whirlpool.
///
/// ### Authority
/// - "reward_authority" - assigned authority by the reward_super_authority for the specified
/// reward-index in this Whirlpool
///
/// ### Parameters
/// - `reward_index` - The reward index (0 <= index <= NUM_REWARDS) that we'd like to modify.
/// - `emissions_per_second_x64` - The amount of rewards emitted in this pool.
///
/// #### Special Errors
/// - `RewardVaultAmountInsufficient` - The amount of rewards in the reward vault cannot emit
/// more than a day of desired emissions.
/// - `InvalidTimestamp` - Provided timestamp is not in order with the previous timestamp.
/// - `InvalidRewardIndex` - If the provided reward index doesn't match the lowest uninitialized
/// index in this pool, or exceeds NUM_REWARDS, or
/// all reward slots for this pool has been initialized.
pub fn set_reward_emissions(
ctx: Context<SetRewardEmissions>,
reward_index: u8,
emissions_per_second_x64: u128,
) -> Result<()> {
instructions::set_reward_emissions::handler(ctx, reward_index, emissions_per_second_x64)
}
/// Open a position in a Whirlpool. A unique token will be minted to represent the position
/// in the users wallet. The position will start off with 0 liquidity.
///
/// ### Parameters
/// - `tick_lower_index` - The tick specifying the lower end of the position range.
/// - `tick_upper_index` - The tick specifying the upper end of the position range.
///
/// #### Special Errors
/// - `InvalidTickIndex` - If a provided tick is out of bounds, out of order or not a multiple of
/// the tick-spacing in this pool.
pub fn open_position(
ctx: Context<OpenPosition>,
bumps: OpenPositionBumps,
tick_lower_index: i32,
tick_upper_index: i32,
) -> Result<()> {
instructions::open_position::handler(ctx, bumps, tick_lower_index, tick_upper_index)
}
/// Open a position in a Whirlpool. A unique token will be minted to represent the position
/// in the users wallet. Additional Metaplex metadata is appended to identify the token.
/// The position will start off with 0 liquidity.
///
/// ### Parameters
/// - `tick_lower_index` - The tick specifying the lower end of the position range.
/// - `tick_upper_index` - The tick specifying the upper end of the position range.
///
/// #### Special Errors
/// - `InvalidTickIndex` - If a provided tick is out of bounds, out of order or not a multiple of
/// the tick-spacing in this pool.
pub fn open_position_with_metadata(
ctx: Context<OpenPositionWithMetadata>,
bumps: OpenPositionWithMetadataBumps,
tick_lower_index: i32,
tick_upper_index: i32,
) -> Result<()> {
instructions::open_position_with_metadata::handler(
ctx,
bumps,
tick_lower_index,
tick_upper_index,
)
}
/// Add liquidity to a position in the Whirlpool. This call also updates the position's accrued fees and rewards.
///
/// ### Authority
/// - `position_authority` - authority that owns the token corresponding to this desired position.
///
/// ### Parameters
/// - `liquidity_amount` - The total amount of Liquidity the user is willing to deposit.
/// - `token_max_a` - The maximum amount of tokenA the user is willing to deposit.
/// - `token_max_b` - The maximum amount of tokenB the user is willing to deposit.
///
/// #### Special Errors
/// - `LiquidityZero` - Provided liquidity amount is zero.
/// - `LiquidityTooHigh` - Provided liquidity exceeds u128::max.
/// - `TokenMaxExceeded` - The required token to perform this operation exceeds the user defined amount.
pub fn increase_liquidity(
ctx: Context<ModifyLiquidity>,
liquidity_amount: u128,
token_max_a: u64,
token_max_b: u64,
) -> Result<()> {
instructions::increase_liquidity::handler(ctx, liquidity_amount, token_max_a, token_max_b)
}
/// Withdraw liquidity from a position in the Whirlpool. This call also updates the position's accrued fees and rewards.
///
/// ### Authority
/// - `position_authority` - authority that owns the token corresponding to this desired position.
///
/// ### Parameters
/// - `liquidity_amount` - The total amount of Liquidity the user desires to withdraw.
/// - `token_min_a` - The minimum amount of tokenA the user is willing to withdraw.
/// - `token_min_b` - The minimum amount of tokenB the user is willing to withdraw.
///
/// #### Special Errors
/// - `LiquidityZero` - Provided liquidity amount is zero.
/// - `LiquidityTooHigh` - Provided liquidity exceeds u128::max.
/// - `TokenMinSubceeded` - The required token to perform this operation subceeds the user defined amount.
pub fn decrease_liquidity(
ctx: Context<ModifyLiquidity>,
liquidity_amount: u128,
token_min_a: u64,
token_min_b: u64,
) -> Result<()> {
instructions::decrease_liquidity::handler(ctx, liquidity_amount, token_min_a, token_min_b)
}
/// Update the accrued fees and rewards for a position.
///
/// #### Special Errors
/// - `TickNotFound` - Provided tick array account does not contain the tick for this position.
/// - `LiquidityZero` - Position has zero liquidity and therefore already has the most updated fees and reward values.
pub fn update_fees_and_rewards(ctx: Context<UpdateFeesAndRewards>) -> Result<()> {
instructions::update_fees_and_rewards::handler(ctx)
}
/// Collect fees accrued for this position.
///
/// ### Authority
/// - `position_authority` - authority that owns the token corresponding to this desired position.
pub fn collect_fees(ctx: Context<CollectFees>) -> Result<()> {
instructions::collect_fees::handler(ctx)
}
/// Collect rewards accrued for this position.
///
/// ### Authority
/// - `position_authority` - authority that owns the token corresponding to this desired position.
pub fn collect_reward(ctx: Context<CollectReward>, reward_index: u8) -> Result<()> {
instructions::collect_reward::handler(ctx, reward_index)
}
/// Collect the protocol fees accrued in this Whirlpool
///
/// ### Authority
/// - `collect_protocol_fees_authority` - assigned authority in the WhirlpoolConfig that can collect protocol fees
pub fn collect_protocol_fees(ctx: Context<CollectProtocolFees>) -> Result<()> {
instructions::collect_protocol_fees::handler(ctx)
}
/// Perform a swap in this Whirlpool
///
/// ### Authority
/// - "token_authority" - The authority to withdraw tokens from the input token account.
///
/// ### Parameters
/// - `amount` - The amount of input or output token to swap from (depending on amount_specified_is_input).
/// - `other_amount_threshold` - The maximum/minimum of input/output token to swap into (depending on amount_specified_is_input).
/// - `sqrt_price_limit` - The maximum/minimum price the swap will swap to.
/// - `amount_specified_is_input` - Specifies the token the parameter `amount`represents. If true, the amount represents the input token of the swap.
/// - `a_to_b` - The direction of the swap. True if swapping from A to B. False if swapping from B to A.
///
/// #### Special Errors
/// - `ZeroTradableAmount` - User provided parameter `amount` is 0.
/// - `InvalidSqrtPriceLimitDirection` - User provided parameter `sqrt_price_limit` does not match the direction of the trade.
/// - `SqrtPriceOutOfBounds` - User provided parameter `sqrt_price_limit` is over Whirlppool's max/min bounds for sqrt-price.
/// - `InvalidTickArraySequence` - User provided tick-arrays are not in sequential order required to proceed in this trade direction.
/// - `TickArraySequenceInvalidIndex` - The swap loop attempted to access an invalid array index during the query of the next initialized tick.
/// - `TickArrayIndexOutofBounds` - The swap loop attempted to access an invalid array index during tick crossing.
/// - `LiquidityOverflow` - Liquidity value overflowed 128bits during tick crossing.
/// - `InvalidTickSpacing` - The swap pool was initialized with tick-spacing of 0.
pub fn swap(
ctx: Context<Swap>,
amount: u64,
other_amount_threshold: u64,
sqrt_price_limit: u128,
amount_specified_is_input: bool,
a_to_b: bool,
) -> Result<()> {
instructions::swap::handler(
ctx,
amount,
other_amount_threshold,
sqrt_price_limit,
amount_specified_is_input,
a_to_b,
)
}
/// Close a position in a Whirlpool. Burns the position token in the owner's wallet.
///
/// ### Authority
/// - "position_authority" - The authority that owns the position token.
///
/// #### Special Errors
/// - `ClosePositionNotEmpty` - The provided position account is not empty.
pub fn close_position(ctx: Context<ClosePosition>) -> Result<()> {
instructions::close_position::handler(ctx)
}
/// Set the default_fee_rate for a FeeTier
/// Only the current fee authority has permission to invoke this instruction.
///
/// ### Authority
/// - "fee_authority" - Set authority in the WhirlpoolConfig
///
/// ### Parameters
/// - `default_fee_rate` - The default fee rate that a pool will use if the pool uses this
/// fee tier during initialization.
///
/// #### Special Errors
/// - `FeeRateMaxExceeded` - If the provided default_fee_rate exceeds MAX_FEE_RATE.
pub fn set_default_fee_rate(
ctx: Context<SetDefaultFeeRate>,
default_fee_rate: u16,
) -> Result<()> {
instructions::set_default_fee_rate::handler(ctx, default_fee_rate)
}
/// Sets the default protocol fee rate for a WhirlpoolConfig
/// Protocol fee rate is represented as a basis point.
/// Only the current fee authority has permission to invoke this instruction.
///
/// ### Authority
/// - "fee_authority" - Set authority that can modify pool fees in the WhirlpoolConfig
///
/// ### Parameters
/// - `default_protocol_fee_rate` - Rate that is referenced during the initialization of a Whirlpool using this config.
///
/// #### Special Errors
/// - `ProtocolFeeRateMaxExceeded` - If the provided default_protocol_fee_rate exceeds MAX_PROTOCOL_FEE_RATE.
pub fn set_default_protocol_fee_rate(
ctx: Context<SetDefaultProtocolFeeRate>,
default_protocol_fee_rate: u16,
) -> Result<()> {
instructions::set_default_protocol_fee_rate::handler(ctx, default_protocol_fee_rate)
}
/// Sets the fee rate for a Whirlpool.
/// Fee rate is represented as hundredths of a basis point.
/// Only the current fee authority has permission to invoke this instruction.
///
/// ### Authority
/// - "fee_authority" - Set authority that can modify pool fees in the WhirlpoolConfig
///
/// ### Parameters
/// - `fee_rate` - The rate that the pool will use to calculate fees going onwards.
///
/// #### Special Errors
/// - `FeeRateMaxExceeded` - If the provided fee_rate exceeds MAX_FEE_RATE.
pub fn set_fee_rate(ctx: Context<SetFeeRate>, fee_rate: u16) -> Result<()> {
instructions::set_fee_rate::handler(ctx, fee_rate)
}
/// Sets the protocol fee rate for a Whirlpool.
/// Protocol fee rate is represented as a basis point.
/// Only the current fee authority has permission to invoke this instruction.
///
/// ### Authority
/// - "fee_authority" - Set authority that can modify pool fees in the WhirlpoolConfig
///
/// ### Parameters
/// - `protocol_fee_rate` - The rate that the pool will use to calculate protocol fees going onwards.
///
/// #### Special Errors
/// - `ProtocolFeeRateMaxExceeded` - If the provided default_protocol_fee_rate exceeds MAX_PROTOCOL_FEE_RATE.
pub fn set_protocol_fee_rate(
ctx: Context<SetProtocolFeeRate>,
protocol_fee_rate: u16,
) -> Result<()> {
instructions::set_protocol_fee_rate::handler(ctx, protocol_fee_rate)
}
/// Sets the fee authority for a WhirlpoolConfig.
/// The fee authority can set the fee & protocol fee rate for individual pools or
/// set the default fee rate for newly minted pools.
/// Only the current fee authority has permission to invoke this instruction.
///
/// ### Authority
/// - "fee_authority" - Set authority that can modify pool fees in the WhirlpoolConfig
pub fn set_fee_authority(ctx: Context<SetFeeAuthority>) -> Result<()> {
instructions::set_fee_authority::handler(ctx)
}
/// Sets the fee authority to collect protocol fees for a WhirlpoolConfig.
/// Only the current collect protocol fee authority has permission to invoke this instruction.
///
/// ### Authority
/// - "fee_authority" - Set authority that can collect protocol fees in the WhirlpoolConfig
pub fn set_collect_protocol_fees_authority(
ctx: Context<SetCollectProtocolFeesAuthority>,
) -> Result<()> {
instructions::set_collect_protocol_fees_authority::handler(ctx)
}
/// Set the whirlpool reward authority at the provided `reward_index`.
/// Only the current reward authority for this reward index has permission to invoke this instruction.
///
/// ### Authority
/// - "reward_authority" - Set authority that can control reward emission for this particular reward.
///
/// #### Special Errors
/// - `InvalidRewardIndex` - If the provided reward index doesn't match the lowest uninitialized
/// index in this pool, or exceeds NUM_REWARDS, or
/// all reward slots for this pool has been initialized.
pub fn set_reward_authority(ctx: Context<SetRewardAuthority>, reward_index: u8) -> Result<()> {
instructions::set_reward_authority::handler(ctx, reward_index)
}
/// Set the whirlpool reward authority at the provided `reward_index`.
/// Only the current reward super authority has permission to invoke this instruction.
///
/// ### Authority
/// - "reward_authority" - Set authority that can control reward emission for this particular reward.
///
/// #### Special Errors
/// - `InvalidRewardIndex` - If the provided reward index doesn't match the lowest uninitialized
/// index in this pool, or exceeds NUM_REWARDS, or
/// all reward slots for this pool has been initialized.
pub fn set_reward_authority_by_super_authority(
ctx: Context<SetRewardAuthorityBySuperAuthority>,
reward_index: u8,
) -> Result<()> {
instructions::set_reward_authority_by_super_authority::handler(ctx, reward_index)
}
/// Set the whirlpool reward super authority for a WhirlpoolConfig
/// Only the current reward super authority has permission to invoke this instruction.
/// This instruction will not change the authority on any `WhirlpoolRewardInfo` whirlpool rewards.
///
/// ### Authority
/// - "reward_emissions_super_authority" - Set authority that can control reward authorities for all pools in this config space.
pub fn set_reward_emissions_super_authority(
ctx: Context<SetRewardEmissionsSuperAuthority>,
) -> Result<()> {
instructions::set_reward_emissions_super_authority::handler(ctx)
}
/// Perform a two-hop swap in this Whirlpool
///
/// ### Authority
/// - "token_authority" - The authority to withdraw tokens from the input token account.
///
/// ### Parameters
/// - `amount` - The amount of input or output token to swap from (depending on amount_specified_is_input).
/// - `other_amount_threshold` - The maximum/minimum of input/output token to swap into (depending on amount_specified_is_input).
/// - `amount_specified_is_input` - Specifies the token the parameter `amount`represents. If true, the amount represents the input token of the swap.
/// - `a_to_b_one` - The direction of the swap of hop one. True if swapping from A to B. False if swapping from B to A.
/// - `a_to_b_two` - The direction of the swap of hop two. True if swapping from A to B. False if swapping from B to A.
/// - `sqrt_price_limit_one` - The maximum/minimum price the swap will swap to in the first hop.
/// - `sqrt_price_limit_two` - The maximum/minimum price the swap will swap to in the second hop.
///
/// #### Special Errors
/// - `ZeroTradableAmount` - User provided parameter `amount` is 0.
/// - `InvalidSqrtPriceLimitDirection` - User provided parameter `sqrt_price_limit` does not match the direction of the trade.
/// - `SqrtPriceOutOfBounds` - User provided parameter `sqrt_price_limit` is over Whirlppool's max/min bounds for sqrt-price.
/// - `InvalidTickArraySequence` - User provided tick-arrays are not in sequential order required to proceed in this trade direction.
/// - `TickArraySequenceInvalidIndex` - The swap loop attempted to access an invalid array index during the query of the next initialized tick.
/// - `TickArrayIndexOutofBounds` - The swap loop attempted to access an invalid array index during tick crossing.
/// - `LiquidityOverflow` - Liquidity value overflowed 128bits during tick crossing.
/// - `InvalidTickSpacing` - The swap pool was initialized with tick-spacing of 0.
/// - `InvalidIntermediaryMint` - Error if the intermediary mint between hop one and two do not equal.
/// - `DuplicateTwoHopPool` - Error if whirlpool one & two are the same pool.
#[allow(clippy::too_many_arguments)]
pub fn two_hop_swap(
ctx: Context<TwoHopSwap>,
amount: u64,
other_amount_threshold: u64,
amount_specified_is_input: bool,
a_to_b_one: bool,
a_to_b_two: bool,
sqrt_price_limit_one: u128,
sqrt_price_limit_two: u128,
) -> Result<()> {
instructions::two_hop_swap::handler(
ctx,
amount,
other_amount_threshold,
amount_specified_is_input,
a_to_b_one,
a_to_b_two,
sqrt_price_limit_one,
sqrt_price_limit_two,
)
}
/// Initializes a PositionBundle account that bundles several positions.
/// A unique token will be minted to represent the position bundle in the users wallet.
pub fn initialize_position_bundle(ctx: Context<InitializePositionBundle>) -> Result<()> {
instructions::initialize_position_bundle::handler(ctx)
}
/// Initializes a PositionBundle account that bundles several positions.
/// A unique token will be minted to represent the position bundle in the users wallet.
/// Additional Metaplex metadata is appended to identify the token.
pub fn initialize_position_bundle_with_metadata(
ctx: Context<InitializePositionBundleWithMetadata>,
) -> Result<()> {
instructions::initialize_position_bundle_with_metadata::handler(ctx)
}
/// Delete a PositionBundle account. Burns the position bundle token in the owner's wallet.
///
/// ### Authority
/// - `position_bundle_owner` - The owner that owns the position bundle token.
///
/// ### Special Errors
/// - `PositionBundleNotDeletable` - The provided position bundle has open positions.
pub fn delete_position_bundle(ctx: Context<DeletePositionBundle>) -> Result<()> {
instructions::delete_position_bundle::handler(ctx)
}
/// Open a bundled position in a Whirlpool. No new tokens are issued
/// because the owner of the position bundle becomes the owner of the position.
/// The position will start off with 0 liquidity.
///
/// ### Authority
/// - `position_bundle_authority` - authority that owns the token corresponding to this desired position bundle.
///
/// ### Parameters
/// - `bundle_index` - The bundle index that we'd like to open.
/// - `tick_lower_index` - The tick specifying the lower end of the position range.
/// - `tick_upper_index` - The tick specifying the upper end of the position range.
///
/// #### Special Errors
/// - `InvalidBundleIndex` - If the provided bundle index is out of bounds.
/// - `InvalidTickIndex` - If a provided tick is out of bounds, out of order or not a multiple of
/// the tick-spacing in this pool.
pub fn open_bundled_position(
ctx: Context<OpenBundledPosition>,
bundle_index: u16,
tick_lower_index: i32,
tick_upper_index: i32,
) -> Result<()> {
instructions::open_bundled_position::handler(
ctx,
bundle_index,
tick_lower_index,
tick_upper_index,
)
}
/// Close a bundled position in a Whirlpool.
///
/// ### Authority
/// - `position_bundle_authority` - authority that owns the token corresponding to this desired position bundle.
///
/// ### Parameters
/// - `bundle_index` - The bundle index that we'd like to close.
///
/// #### Special Errors
/// - `InvalidBundleIndex` - If the provided bundle index is out of bounds.
/// - `ClosePositionNotEmpty` - The provided position account is not empty.
pub fn close_bundled_position(
ctx: Context<CloseBundledPosition>,
bundle_index: u16,
) -> Result<()> {
instructions::close_bundled_position::handler(ctx, bundle_index)
}
/// Open a position in a Whirlpool. A unique token will be minted to represent the position
/// in the users wallet. Additional TokenMetadata extension is initialized to identify the token.
/// Mint and TokenAccount are based on Token-2022.
/// The position will start off with 0 liquidity.
///
/// ### Parameters
/// - `tick_lower_index` - The tick specifying the lower end of the position range.
/// - `tick_upper_index` - The tick specifying the upper end of the position range.
/// - `with_token_metadata_extension` - If true, the token metadata extension will be initialized.
///
/// #### Special Errors
/// - `InvalidTickIndex` - If a provided tick is out of bounds, out of order or not a multiple of
/// the tick-spacing in this pool.
pub fn open_position_with_token_extensions(
ctx: Context<OpenPositionWithTokenExtensions>,
tick_lower_index: i32,
tick_upper_index: i32,
with_token_metadata_extension: bool,
) -> Result<()> {
instructions::open_position_with_token_extensions::handler(
ctx,
tick_lower_index,
tick_upper_index,
with_token_metadata_extension,
)
}
/// Close a position in a Whirlpool. Burns the position token in the owner's wallet.
/// Mint and TokenAccount are based on Token-2022. And Mint accout will be also closed.
///
/// ### Authority
/// - "position_authority" - The authority that owns the position token.
///
/// #### Special Errors
/// - `ClosePositionNotEmpty` - The provided position account is not empty.
pub fn close_position_with_token_extensions(
ctx: Context<ClosePositionWithTokenExtensions>,
) -> Result<()> {
instructions::close_position_with_token_extensions::handler(ctx)
}
////////////////////////////////////////////////////////////////////////////////
// V2 instructions (TokenExtensions)
////////////////////////////////////////////////////////////////////////////////
// TODO: update comments
/// Collect fees accrued for this position.
///
/// ### Authority
/// - `position_authority` - authority that owns the token corresponding to this desired position.
pub fn collect_fees_v2<'info>(
ctx: Context<'_, '_, '_, 'info, CollectFeesV2<'info>>,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
instructions::v2::collect_fees::handler(ctx, remaining_accounts_info)
}
/// Collect the protocol fees accrued in this Whirlpool
///
/// ### Authority
/// - `collect_protocol_fees_authority` - assigned authority in the WhirlpoolConfig that can collect protocol fees
pub fn collect_protocol_fees_v2<'info>(
ctx: Context<'_, '_, '_, 'info, CollectProtocolFeesV2<'info>>,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
instructions::v2::collect_protocol_fees::handler(ctx, remaining_accounts_info)
}
/// Collect rewards accrued for this position.
///
/// ### Authority
/// - `position_authority` - authority that owns the token corresponding to this desired position.
pub fn collect_reward_v2<'info>(
ctx: Context<'_, '_, '_, 'info, CollectRewardV2<'info>>,
reward_index: u8,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
instructions::v2::collect_reward::handler(ctx, reward_index, remaining_accounts_info)
}
/// Withdraw liquidity from a position in the Whirlpool. This call also updates the position's accrued fees and rewards.
///
/// ### Authority
/// - `position_authority` - authority that owns the token corresponding to this desired position.
///
/// ### Parameters
/// - `liquidity_amount` - The total amount of Liquidity the user desires to withdraw.
/// - `token_min_a` - The minimum amount of tokenA the user is willing to withdraw.
/// - `token_min_b` - The minimum amount of tokenB the user is willing to withdraw.
///
/// #### Special Errors
/// - `LiquidityZero` - Provided liquidity amount is zero.
/// - `LiquidityTooHigh` - Provided liquidity exceeds u128::max.
/// - `TokenMinSubceeded` - The required token to perform this operation subceeds the user defined amount.
pub fn decrease_liquidity_v2<'info>(
ctx: Context<'_, '_, '_, 'info, ModifyLiquidityV2<'info>>,
liquidity_amount: u128,
token_min_a: u64,
token_min_b: u64,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
instructions::v2::decrease_liquidity::handler(
ctx,
liquidity_amount,
token_min_a,
token_min_b,
remaining_accounts_info,
)
}
/// Add liquidity to a position in the Whirlpool. This call also updates the position's accrued fees and rewards.
///
/// ### Authority
/// - `position_authority` - authority that owns the token corresponding to this desired position.
///
/// ### Parameters
/// - `liquidity_amount` - The total amount of Liquidity the user is willing to deposit.
/// - `token_max_a` - The maximum amount of tokenA the user is willing to deposit.
/// - `token_max_b` - The maximum amount of tokenB the user is willing to deposit.
///
/// #### Special Errors
/// - `LiquidityZero` - Provided liquidity amount is zero.
/// - `LiquidityTooHigh` - Provided liquidity exceeds u128::max.
/// - `TokenMaxExceeded` - The required token to perform this operation exceeds the user defined amount.
pub fn increase_liquidity_v2<'info>(
ctx: Context<'_, '_, '_, 'info, ModifyLiquidityV2<'info>>,
liquidity_amount: u128,
token_max_a: u64,
token_max_b: u64,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
instructions::v2::increase_liquidity::handler(
ctx,
liquidity_amount,
token_max_a,
token_max_b,
remaining_accounts_info,
)
}
/// Initializes a Whirlpool account.
/// Fee rate is set to the default values on the config and supplied fee_tier.
///
/// ### Parameters
/// - `bumps` - The bump value when deriving the PDA of the Whirlpool address.
/// - `tick_spacing` - The desired tick spacing for this pool.
/// - `initial_sqrt_price` - The desired initial sqrt-price for this pool
///
/// #### Special Errors
/// `InvalidTokenMintOrder` - The order of mints have to be ordered by
/// `SqrtPriceOutOfBounds` - provided initial_sqrt_price is not between 2^-64 to 2^64
///
pub fn initialize_pool_v2(
ctx: Context<InitializePoolV2>,
tick_spacing: u16,
initial_sqrt_price: u128,
) -> Result<()> {
instructions::v2::initialize_pool::handler(ctx, tick_spacing, initial_sqrt_price)
}
/// Initialize reward for a Whirlpool. A pool can only support up to a set number of rewards.
///
/// ### Authority
/// - "reward_authority" - assigned authority by the reward_super_authority for the specified
/// reward-index in this Whirlpool
///
/// ### Parameters
/// - `reward_index` - The reward index that we'd like to initialize. (0 <= index <= NUM_REWARDS)
///
/// #### Special Errors
/// - `InvalidRewardIndex` - If the provided reward index doesn't match the lowest uninitialized
/// index in this pool, or exceeds NUM_REWARDS, or
/// all reward slots for this pool has been initialized.
pub fn initialize_reward_v2(ctx: Context<InitializeRewardV2>, reward_index: u8) -> Result<()> {
instructions::v2::initialize_reward::handler(ctx, reward_index)
}
/// Set the reward emissions for a reward in a Whirlpool.
///
/// ### Authority
/// - "reward_authority" - assigned authority by the reward_super_authority for the specified
/// reward-index in this Whirlpool
///
/// ### Parameters
/// - `reward_index` - The reward index (0 <= index <= NUM_REWARDS) that we'd like to modify.
/// - `emissions_per_second_x64` - The amount of rewards emitted in this pool.
///
/// #### Special Errors
/// - `RewardVaultAmountInsufficient` - The amount of rewards in the reward vault cannot emit
/// more than a day of desired emissions.
/// - `InvalidTimestamp` - Provided timestamp is not in order with the previous timestamp.
/// - `InvalidRewardIndex` - If the provided reward index doesn't match the lowest uninitialized
/// index in this pool, or exceeds NUM_REWARDS, or
/// all reward slots for this pool has been initialized.
pub fn set_reward_emissions_v2(
ctx: Context<SetRewardEmissionsV2>,
reward_index: u8,
emissions_per_second_x64: u128,
) -> Result<()> {
instructions::v2::set_reward_emissions::handler(ctx, reward_index, emissions_per_second_x64)
}
/// Perform a swap in this Whirlpool
///
/// ### Authority
/// - "token_authority" - The authority to withdraw tokens from the input token account.
///
/// ### Parameters
/// - `amount` - The amount of input or output token to swap from (depending on amount_specified_is_input).
/// - `other_amount_threshold` - The maximum/minimum of input/output token to swap into (depending on amount_specified_is_input).
/// - `sqrt_price_limit` - The maximum/minimum price the swap will swap to.
/// - `amount_specified_is_input` - Specifies the token the parameter `amount`represents. If true, the amount represents the input token of the swap.
/// - `a_to_b` - The direction of the swap. True if swapping from A to B. False if swapping from B to A.
///
/// #### Special Errors
/// - `ZeroTradableAmount` - User provided parameter `amount` is 0.
/// - `InvalidSqrtPriceLimitDirection` - User provided parameter `sqrt_price_limit` does not match the direction of the trade.
/// - `SqrtPriceOutOfBounds` - User provided parameter `sqrt_price_limit` is over Whirlppool's max/min bounds for sqrt-price.
/// - `InvalidTickArraySequence` - User provided tick-arrays are not in sequential order required to proceed in this trade direction.
/// - `TickArraySequenceInvalidIndex` - The swap loop attempted to access an invalid array index during the query of the next initialized tick.
/// - `TickArrayIndexOutofBounds` - The swap loop attempted to access an invalid array index during tick crossing.
/// - `LiquidityOverflow` - Liquidity value overflowed 128bits during tick crossing.
/// - `InvalidTickSpacing` - The swap pool was initialized with tick-spacing of 0.
pub fn swap_v2<'info>(
ctx: Context<'_, '_, '_, 'info, SwapV2<'info>>,
amount: u64,
other_amount_threshold: u64,
sqrt_price_limit: u128,
amount_specified_is_input: bool,
a_to_b: bool,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
instructions::v2::swap::handler(
ctx,
amount,
other_amount_threshold,
sqrt_price_limit,
amount_specified_is_input,
a_to_b,
remaining_accounts_info,
)
}
/// Perform a two-hop swap in this Whirlpool
///
/// ### Authority
/// - "token_authority" - The authority to withdraw tokens from the input token account.
///
/// ### Parameters
/// - `amount` - The amount of input or output token to swap from (depending on amount_specified_is_input).
/// - `other_amount_threshold` - The maximum/minimum of input/output token to swap into (depending on amount_specified_is_input).
/// - `amount_specified_is_input` - Specifies the token the parameter `amount`represents. If true, the amount represents the input token of the swap.
/// - `a_to_b_one` - The direction of the swap of hop one. True if swapping from A to B. False if swapping from B to A.
/// - `a_to_b_two` - The direction of the swap of hop two. True if swapping from A to B. False if swapping from B to A.
/// - `sqrt_price_limit_one` - The maximum/minimum price the swap will swap to in the first hop.
/// - `sqrt_price_limit_two` - The maximum/minimum price the swap will swap to in the second hop.
///
/// #### Special Errors
/// - `ZeroTradableAmount` - User provided parameter `amount` is 0.
/// - `InvalidSqrtPriceLimitDirection` - User provided parameter `sqrt_price_limit` does not match the direction of the trade.
/// - `SqrtPriceOutOfBounds` - User provided parameter `sqrt_price_limit` is over Whirlppool's max/min bounds for sqrt-price.
/// - `InvalidTickArraySequence` - User provided tick-arrays are not in sequential order required to proceed in this trade direction.
/// - `TickArraySequenceInvalidIndex` - The swap loop attempted to access an invalid array index during the query of the next initialized tick.
/// - `TickArrayIndexOutofBounds` - The swap loop attempted to access an invalid array index during tick crossing.
/// - `LiquidityOverflow` - Liquidity value overflowed 128bits during tick crossing.
/// - `InvalidTickSpacing` - The swap pool was initialized with tick-spacing of 0.
/// - `InvalidIntermediaryMint` - Error if the intermediary mint between hop one and two do not equal.
/// - `DuplicateTwoHopPool` - Error if whirlpool one & two are the same pool.
#[allow(clippy::too_many_arguments)]
pub fn two_hop_swap_v2<'info>(
ctx: Context<'_, '_, '_, 'info, TwoHopSwapV2<'info>>,
amount: u64,
other_amount_threshold: u64,
amount_specified_is_input: bool,
a_to_b_one: bool,
a_to_b_two: bool,
sqrt_price_limit_one: u128,
sqrt_price_limit_two: u128,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
instructions::v2::two_hop_swap::handler(
ctx,
amount,
other_amount_threshold,
amount_specified_is_input,
a_to_b_one,
a_to_b_two,
sqrt_price_limit_one,
sqrt_price_limit_two,
remaining_accounts_info,
)
}
pub fn initialize_config_extension(ctx: Context<InitializeConfigExtension>) -> Result<()> {
instructions::v2::initialize_config_extension::handler(ctx)
}
pub fn set_config_extension_authority(ctx: Context<SetConfigExtensionAuthority>) -> Result<()> {
instructions::v2::set_config_extension_authority::handler(ctx)
}
pub fn set_token_badge_authority(ctx: Context<SetTokenBadgeAuthority>) -> Result<()> {
instructions::v2::set_token_badge_authority::handler(ctx)
}
pub fn initialize_token_badge(ctx: Context<InitializeTokenBadge>) -> Result<()> {
instructions::v2::initialize_token_badge::handler(ctx)
}
pub fn delete_token_badge(ctx: Context<DeleteTokenBadge>) -> Result<()> {
instructions::v2::delete_token_badge::handler(ctx)
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/errors.rs
|
use std::num::TryFromIntError;
use anchor_lang::prelude::*;
#[error_code]
#[derive(PartialEq)]
pub enum ErrorCode {
#[msg("Enum value could not be converted")]
InvalidEnum, // 0x1770 (6000)
#[msg("Invalid start tick index provided.")]
InvalidStartTick, // 0x1771 (6001)
#[msg("Tick-array already exists in this whirlpool")]
TickArrayExistInPool, // 0x1772 (6002)
#[msg("Attempt to search for a tick-array failed")]
TickArrayIndexOutofBounds, // 0x1773 (6003)
#[msg("Tick-spacing is not supported")]
InvalidTickSpacing, // 0x1774 (6004)
#[msg("Position is not empty It cannot be closed")]
ClosePositionNotEmpty, // 0x1775 (6005)
#[msg("Unable to divide by zero")]
DivideByZero, // 0x1776 (6006)
#[msg("Unable to cast number into BigInt")]
NumberCastError, // 0x1777 (6007)
#[msg("Unable to down cast number")]
NumberDownCastError, // 0x1778 (6008)
#[msg("Tick not found within tick array")]
TickNotFound, // 0x1779 (6009)
#[msg("Provided tick index is either out of bounds or uninitializable")]
InvalidTickIndex, // 0x177a (6010)
#[msg("Provided sqrt price out of bounds")]
SqrtPriceOutOfBounds, // 0x177b (6011)
#[msg("Liquidity amount must be greater than zero")]
LiquidityZero, // 0x177c (6012)
#[msg("Liquidity amount must be less than i64::MAX")]
LiquidityTooHigh, // 0x177d (6013)
#[msg("Liquidity overflow")]
LiquidityOverflow, // 0x177e (6014)
#[msg("Liquidity underflow")]
LiquidityUnderflow, // 0x177f (6015)
#[msg("Tick liquidity net underflowed or overflowed")]
LiquidityNetError, // 0x1780 (6016)
#[msg("Exceeded token max")]
TokenMaxExceeded, // 0x1781 (6017)
#[msg("Did not meet token min")]
TokenMinSubceeded, // 0x1782 (6018)
#[msg("Position token account has a missing or invalid delegate")]
MissingOrInvalidDelegate, // 0x1783 (6019)
#[msg("Position token amount must be 1")]
InvalidPositionTokenAmount, // 0x1784 (6020)
#[msg("Timestamp should be convertible from i64 to u64")]
InvalidTimestampConversion, // 0x1785 (6021)
#[msg("Timestamp should be greater than the last updated timestamp")]
InvalidTimestamp, // 0x1786 (6022)
#[msg("Invalid tick array sequence provided for instruction.")]
InvalidTickArraySequence, // 0x1787 (6023)
#[msg("Token Mint in wrong order")]
InvalidTokenMintOrder, // 0x1788 (6024)
#[msg("Reward not initialized")]
RewardNotInitialized, // 0x1789 (6025)
#[msg("Invalid reward index")]
InvalidRewardIndex, // 0x178a (6026)
#[msg("Reward vault requires amount to support emissions for at least one day")]
RewardVaultAmountInsufficient, // 0x178b (6027)
#[msg("Exceeded max fee rate")]
FeeRateMaxExceeded, // 0x178c (6028)
#[msg("Exceeded max protocol fee rate")]
ProtocolFeeRateMaxExceeded, // 0x178d (6029)
#[msg("Multiplication with shift right overflow")]
MultiplicationShiftRightOverflow, // 0x178e (6030)
#[msg("Muldiv overflow")]
MulDivOverflow, // 0x178f (6031)
#[msg("Invalid div_u256 input")]
MulDivInvalidInput, // 0x1790 (6032)
#[msg("Multiplication overflow")]
MultiplicationOverflow, // 0x1791 (6033)
#[msg("Provided SqrtPriceLimit not in the same direction as the swap.")]
InvalidSqrtPriceLimitDirection, // 0x1792 (6034)
#[msg("There are no tradable amount to swap.")]
ZeroTradableAmount, // 0x1793 (6035)
#[msg("Amount out below minimum threshold")]
AmountOutBelowMinimum, // 0x1794 (6036)
#[msg("Amount in above maximum threshold")]
AmountInAboveMaximum, // 0x1795 (6037)
#[msg("Invalid index for tick array sequence")]
TickArraySequenceInvalidIndex, // 0x1796 (6038)
#[msg("Amount calculated overflows")]
AmountCalcOverflow, // 0x1797 (6039)
#[msg("Amount remaining overflows")]
AmountRemainingOverflow, // 0x1798 (6040)
#[msg("Invalid intermediary mint")]
InvalidIntermediaryMint, // 0x1799 (6041)
#[msg("Duplicate two hop pool")]
DuplicateTwoHopPool, // 0x179a (6042)
#[msg("Bundle index is out of bounds")]
InvalidBundleIndex, // 0x179b (6043)
#[msg("Position has already been opened")]
BundledPositionAlreadyOpened, // 0x179c (6044)
#[msg("Position has already been closed")]
BundledPositionAlreadyClosed, // 0x179d (6045)
#[msg("Unable to delete PositionBundle with open positions")]
PositionBundleNotDeletable, // 0x179e (6046)
#[msg("Token mint has unsupported attributes")]
UnsupportedTokenMint, // 0x179f (6047)
#[msg("Invalid remaining accounts")]
RemainingAccountsInvalidSlice, // 0x17a0 (6048)
#[msg("Insufficient remaining accounts")]
RemainingAccountsInsufficient, // 0x17a1 (6049)
#[msg("Unable to call transfer hook without extra accounts")]
NoExtraAccountsForTransferHook, // 0x17a2 (6050)
#[msg("Output and input amount mismatch")]
IntermediateTokenAmountMismatch, // 0x17a3 (6051)
#[msg("Transfer fee calculation failed")]
TransferFeeCalculationError, // 0x17a4 (6052)
#[msg("Same accounts type is provided more than once")]
RemainingAccountsDuplicatedAccountsType, // 0x17a5 (6053)
#[msg("This whirlpool only supports full-range positions")]
FullRangeOnlyPool, // 0x17a6 (6054)
#[msg("Too many supplemental tick arrays provided")]
TooManySupplementalTickArrays, // 0x17a7 (6055)
#[msg("TickArray account for different whirlpool provided")]
DifferentWhirlpoolTickArrayAccount, // 0x17a8 (6056)
#[msg("Trade resulted in partial fill")]
PartialFillError, // 0x17a9 (6057)
}
impl From<TryFromIntError> for ErrorCode {
fn from(_: TryFromIntError) -> Self {
ErrorCode::NumberCastError
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/initialize_reward.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Mint, Token, TokenAccount};
use crate::state::Whirlpool;
#[derive(Accounts)]
#[instruction(reward_index: u8)]
pub struct InitializeReward<'info> {
#[account(address = whirlpool.reward_infos[reward_index as usize].authority)]
pub reward_authority: Signer<'info>,
#[account(mut)]
pub funder: Signer<'info>,
#[account(mut)]
pub whirlpool: Box<Account<'info, Whirlpool>>,
pub reward_mint: Box<Account<'info, Mint>>,
#[account(
init,
payer = funder,
token::mint = reward_mint,
token::authority = whirlpool
)]
pub reward_vault: Box<Account<'info, TokenAccount>>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
pub system_program: Program<'info, System>,
pub rent: Sysvar<'info, Rent>,
}
pub fn handler(ctx: Context<InitializeReward>, reward_index: u8) -> Result<()> {
let whirlpool = &mut ctx.accounts.whirlpool;
whirlpool.initialize_reward(
reward_index as usize,
ctx.accounts.reward_mint.key(),
ctx.accounts.reward_vault.key(),
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/update_fees_and_rewards.rs
|
use anchor_lang::prelude::*;
use crate::{
manager::liquidity_manager::calculate_fee_and_reward_growths, state::*, util::to_timestamp_u64,
};
#[derive(Accounts)]
pub struct UpdateFeesAndRewards<'info> {
#[account(mut)]
pub whirlpool: Account<'info, Whirlpool>,
#[account(mut, has_one = whirlpool)]
pub position: Account<'info, Position>,
#[account(has_one = whirlpool)]
pub tick_array_lower: AccountLoader<'info, TickArray>,
#[account(has_one = whirlpool)]
pub tick_array_upper: AccountLoader<'info, TickArray>,
}
pub fn handler(ctx: Context<UpdateFeesAndRewards>) -> Result<()> {
let whirlpool = &mut ctx.accounts.whirlpool;
let position = &mut ctx.accounts.position;
let clock = Clock::get()?;
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
let (position_update, reward_infos) = calculate_fee_and_reward_growths(
whirlpool,
position,
&ctx.accounts.tick_array_lower,
&ctx.accounts.tick_array_upper,
timestamp,
)?;
whirlpool.update_rewards(reward_infos, timestamp);
position.update(&position_update);
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/open_bundled_position.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::TokenAccount;
use crate::{state::*, util::verify_position_bundle_authority};
#[derive(Accounts)]
#[instruction(bundle_index: u16)]
pub struct OpenBundledPosition<'info> {
#[account(init,
payer = funder,
space = Position::LEN,
seeds = [
b"bundled_position".as_ref(),
position_bundle.position_bundle_mint.key().as_ref(),
bundle_index.to_string().as_bytes()
],
bump,
)]
pub bundled_position: Box<Account<'info, Position>>,
#[account(mut)]
pub position_bundle: Box<Account<'info, PositionBundle>>,
#[account(
constraint = position_bundle_token_account.mint == position_bundle.position_bundle_mint,
constraint = position_bundle_token_account.amount == 1
)]
pub position_bundle_token_account: Box<Account<'info, TokenAccount>>,
pub position_bundle_authority: Signer<'info>,
pub whirlpool: Box<Account<'info, Whirlpool>>,
#[account(mut)]
pub funder: Signer<'info>,
pub system_program: Program<'info, System>,
pub rent: Sysvar<'info, Rent>,
}
pub fn handler(
ctx: Context<OpenBundledPosition>,
bundle_index: u16,
tick_lower_index: i32,
tick_upper_index: i32,
) -> Result<()> {
let whirlpool = &ctx.accounts.whirlpool;
let position_bundle = &mut ctx.accounts.position_bundle;
let position = &mut ctx.accounts.bundled_position;
// Allow delegation
verify_position_bundle_authority(
&ctx.accounts.position_bundle_token_account,
&ctx.accounts.position_bundle_authority,
)?;
position_bundle.open_bundled_position(bundle_index)?;
position.open_position(
whirlpool,
position_bundle.position_bundle_mint,
tick_lower_index,
tick_upper_index,
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/initialize_pool.rs
|
use crate::state::*;
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Mint, Token, TokenAccount};
#[derive(Accounts)]
// now we don't use bumps, but we must list args in the same order to use tick_spacing arg.
#[instruction(bumps: WhirlpoolBumps, tick_spacing: u16)]
pub struct InitializePool<'info> {
pub whirlpools_config: Box<Account<'info, WhirlpoolsConfig>>,
pub token_mint_a: Account<'info, Mint>,
pub token_mint_b: Account<'info, Mint>,
#[account(mut)]
pub funder: Signer<'info>,
#[account(init,
seeds = [
b"whirlpool".as_ref(),
whirlpools_config.key().as_ref(),
token_mint_a.key().as_ref(),
token_mint_b.key().as_ref(),
tick_spacing.to_le_bytes().as_ref()
],
bump,
payer = funder,
space = Whirlpool::LEN)]
pub whirlpool: Box<Account<'info, Whirlpool>>,
#[account(init,
payer = funder,
token::mint = token_mint_a,
token::authority = whirlpool)]
pub token_vault_a: Box<Account<'info, TokenAccount>>,
#[account(init,
payer = funder,
token::mint = token_mint_b,
token::authority = whirlpool)]
pub token_vault_b: Box<Account<'info, TokenAccount>>,
#[account(has_one = whirlpools_config, constraint = fee_tier.tick_spacing == tick_spacing)]
pub fee_tier: Account<'info, FeeTier>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
pub system_program: Program<'info, System>,
pub rent: Sysvar<'info, Rent>,
}
pub fn handler(
ctx: Context<InitializePool>,
_bumps: WhirlpoolBumps,
tick_spacing: u16,
initial_sqrt_price: u128,
) -> Result<()> {
let token_mint_a = ctx.accounts.token_mint_a.key();
let token_mint_b = ctx.accounts.token_mint_b.key();
let whirlpool = &mut ctx.accounts.whirlpool;
let whirlpools_config = &ctx.accounts.whirlpools_config;
let default_fee_rate = ctx.accounts.fee_tier.default_fee_rate;
// ignore the bump passed and use one Anchor derived
let bump = ctx.bumps.whirlpool;
whirlpool.initialize(
whirlpools_config,
bump,
tick_spacing,
initial_sqrt_price,
default_fee_rate,
token_mint_a,
ctx.accounts.token_vault_a.key(),
token_mint_b,
ctx.accounts.token_vault_b.key(),
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/swap.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Token, TokenAccount};
use crate::{
errors::ErrorCode,
manager::swap_manager::*,
state::Whirlpool,
util::{to_timestamp_u64, update_and_swap_whirlpool, SparseSwapTickSequenceBuilder},
};
#[derive(Accounts)]
pub struct Swap<'info> {
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
pub token_authority: Signer<'info>,
#[account(mut)]
pub whirlpool: Box<Account<'info, Whirlpool>>,
#[account(mut, constraint = token_owner_account_a.mint == whirlpool.token_mint_a)]
pub token_owner_account_a: Box<Account<'info, TokenAccount>>,
#[account(mut, address = whirlpool.token_vault_a)]
pub token_vault_a: Box<Account<'info, TokenAccount>>,
#[account(mut, constraint = token_owner_account_b.mint == whirlpool.token_mint_b)]
pub token_owner_account_b: Box<Account<'info, TokenAccount>>,
#[account(mut, address = whirlpool.token_vault_b)]
pub token_vault_b: Box<Account<'info, TokenAccount>>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_0: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_1: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_2: UncheckedAccount<'info>,
#[account(seeds = [b"oracle", whirlpool.key().as_ref()],bump)]
/// CHECK: Oracle is currently unused and will be enabled on subsequent updates
pub oracle: UncheckedAccount<'info>,
}
pub fn handler(
ctx: Context<Swap>,
amount: u64,
other_amount_threshold: u64,
sqrt_price_limit: u128,
amount_specified_is_input: bool,
a_to_b: bool, // Zero for one
) -> Result<()> {
let whirlpool = &mut ctx.accounts.whirlpool;
let clock = Clock::get()?;
// Update the global reward growth which increases as a function of time.
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
let builder = SparseSwapTickSequenceBuilder::try_from(
whirlpool,
a_to_b,
vec![
ctx.accounts.tick_array_0.to_account_info(),
ctx.accounts.tick_array_1.to_account_info(),
ctx.accounts.tick_array_2.to_account_info(),
],
None,
)?;
let mut swap_tick_sequence = builder.build()?;
let swap_update = swap(
whirlpool,
&mut swap_tick_sequence,
amount,
sqrt_price_limit,
amount_specified_is_input,
a_to_b,
timestamp,
)?;
if amount_specified_is_input {
if (a_to_b && other_amount_threshold > swap_update.amount_b)
|| (!a_to_b && other_amount_threshold > swap_update.amount_a)
{
return Err(ErrorCode::AmountOutBelowMinimum.into());
}
} else if (a_to_b && other_amount_threshold < swap_update.amount_a)
|| (!a_to_b && other_amount_threshold < swap_update.amount_b)
{
return Err(ErrorCode::AmountInAboveMaximum.into());
}
update_and_swap_whirlpool(
whirlpool,
&ctx.accounts.token_authority,
&ctx.accounts.token_owner_account_a,
&ctx.accounts.token_owner_account_b,
&ctx.accounts.token_vault_a,
&ctx.accounts.token_vault_b,
&ctx.accounts.token_program,
swap_update,
a_to_b,
timestamp,
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/close_bundled_position.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::TokenAccount;
use crate::errors::ErrorCode;
use crate::{state::*, util::verify_position_bundle_authority};
#[derive(Accounts)]
#[instruction(bundle_index: u16)]
pub struct CloseBundledPosition<'info> {
#[account(mut,
close = receiver,
seeds = [
b"bundled_position".as_ref(),
position_bundle.position_bundle_mint.key().as_ref(),
bundle_index.to_string().as_bytes()
],
bump,
)]
pub bundled_position: Account<'info, Position>,
#[account(mut)]
pub position_bundle: Box<Account<'info, PositionBundle>>,
#[account(
constraint = position_bundle_token_account.mint == bundled_position.position_mint,
constraint = position_bundle_token_account.mint == position_bundle.position_bundle_mint,
constraint = position_bundle_token_account.amount == 1
)]
pub position_bundle_token_account: Box<Account<'info, TokenAccount>>,
pub position_bundle_authority: Signer<'info>,
/// CHECK: safe, for receiving rent only
#[account(mut)]
pub receiver: UncheckedAccount<'info>,
}
pub fn handler(ctx: Context<CloseBundledPosition>, bundle_index: u16) -> Result<()> {
let position_bundle = &mut ctx.accounts.position_bundle;
// Allow delegation
verify_position_bundle_authority(
&ctx.accounts.position_bundle_token_account,
&ctx.accounts.position_bundle_authority,
)?;
if !Position::is_position_empty(&ctx.accounts.bundled_position) {
return Err(ErrorCode::ClosePositionNotEmpty.into());
}
position_bundle.close_bundled_position(bundle_index)?;
// Anchor will close the Position account
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/open_position_with_metadata.rs
|
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::metadata::Metadata;
use anchor_spl::token::{self, Mint, Token, TokenAccount};
use crate::state;
use crate::{state::*, util::mint_position_token_with_metadata_and_remove_authority};
use crate::constants::nft::whirlpool_nft_update_auth::ID as WP_NFT_UPDATE_AUTH;
#[derive(Accounts)]
pub struct OpenPositionWithMetadata<'info> {
#[account(mut)]
pub funder: Signer<'info>,
/// CHECK: safe, the account that will be the owner of the position can be arbitrary
pub owner: UncheckedAccount<'info>,
#[account(init,
payer = funder,
space = Position::LEN,
seeds = [b"position".as_ref(), position_mint.key().as_ref()],
bump,
)]
pub position: Box<Account<'info, Position>>,
#[account(init,
payer = funder,
mint::authority = whirlpool,
mint::decimals = 0,
)]
pub position_mint: Account<'info, Mint>,
/// CHECK: checked via the Metadata CPI call
/// https://github.com/metaplex-foundation/mpl-token-metadata/blob/master/programs/token-metadata/program/src/utils/metadata.rs#L78
#[account(mut)]
pub position_metadata_account: UncheckedAccount<'info>,
#[account(init,
payer = funder,
associated_token::mint = position_mint,
associated_token::authority = owner,
)]
pub position_token_account: Box<Account<'info, TokenAccount>>,
pub whirlpool: Box<Account<'info, Whirlpool>>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
pub system_program: Program<'info, System>,
pub rent: Sysvar<'info, Rent>,
pub associated_token_program: Program<'info, AssociatedToken>,
pub metadata_program: Program<'info, Metadata>,
/// CHECK: checked via account constraints
#[account(address = WP_NFT_UPDATE_AUTH)]
pub metadata_update_auth: UncheckedAccount<'info>,
}
/*
Opens a new Whirlpool Position with Metadata account.
*/
pub fn handler(
ctx: Context<OpenPositionWithMetadata>,
// derive(Accounts) generates OpenPositionWithMetadataBumps, so we need to clarify which one we want to use.
_bumps: state::OpenPositionWithMetadataBumps,
tick_lower_index: i32,
tick_upper_index: i32,
) -> Result<()> {
let whirlpool = &ctx.accounts.whirlpool;
let position_mint = &ctx.accounts.position_mint;
let position = &mut ctx.accounts.position;
position.open_position(
whirlpool,
position_mint.key(),
tick_lower_index,
tick_upper_index,
)?;
mint_position_token_with_metadata_and_remove_authority(
whirlpool,
position_mint,
&ctx.accounts.position_token_account,
&ctx.accounts.position_metadata_account,
&ctx.accounts.metadata_update_auth,
&ctx.accounts.funder,
&ctx.accounts.metadata_program,
&ctx.accounts.token_program,
&ctx.accounts.system_program,
&ctx.accounts.rent,
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/decrease_liquidity.rs
|
use anchor_lang::prelude::*;
use crate::errors::ErrorCode;
use crate::manager::liquidity_manager::{
calculate_liquidity_token_deltas, calculate_modify_liquidity, sync_modify_liquidity_values,
};
use crate::math::convert_to_liquidity_delta;
use crate::util::{
to_timestamp_u64, transfer_from_vault_to_owner, verify_position_authority_interface,
};
use super::increase_liquidity::ModifyLiquidity;
/*
Removes liquidity from an existing Whirlpool Position.
*/
pub fn handler(
ctx: Context<ModifyLiquidity>,
liquidity_amount: u128,
token_min_a: u64,
token_min_b: u64,
) -> Result<()> {
verify_position_authority_interface(
&ctx.accounts.position_token_account,
&ctx.accounts.position_authority,
)?;
let clock = Clock::get()?;
if liquidity_amount == 0 {
return Err(ErrorCode::LiquidityZero.into());
}
let liquidity_delta = convert_to_liquidity_delta(liquidity_amount, false)?;
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
let update = calculate_modify_liquidity(
&ctx.accounts.whirlpool,
&ctx.accounts.position,
&ctx.accounts.tick_array_lower,
&ctx.accounts.tick_array_upper,
liquidity_delta,
timestamp,
)?;
sync_modify_liquidity_values(
&mut ctx.accounts.whirlpool,
&mut ctx.accounts.position,
&ctx.accounts.tick_array_lower,
&ctx.accounts.tick_array_upper,
update,
timestamp,
)?;
let (delta_a, delta_b) = calculate_liquidity_token_deltas(
ctx.accounts.whirlpool.tick_current_index,
ctx.accounts.whirlpool.sqrt_price,
&ctx.accounts.position,
liquidity_delta,
)?;
if delta_a < token_min_a || delta_b < token_min_b {
return Err(ErrorCode::TokenMinSubceeded.into());
}
transfer_from_vault_to_owner(
&ctx.accounts.whirlpool,
&ctx.accounts.token_vault_a,
&ctx.accounts.token_owner_account_a,
&ctx.accounts.token_program,
delta_a,
)?;
transfer_from_vault_to_owner(
&ctx.accounts.whirlpool,
&ctx.accounts.token_vault_b,
&ctx.accounts.token_owner_account_b,
&ctx.accounts.token_program,
delta_b,
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/collect_fees.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Token, TokenAccount};
use anchor_spl::token_interface::TokenAccount as TokenAccountInterface;
use crate::{
state::*,
util::{transfer_from_vault_to_owner, verify_position_authority_interface},
};
#[derive(Accounts)]
pub struct CollectFees<'info> {
pub whirlpool: Box<Account<'info, Whirlpool>>,
pub position_authority: Signer<'info>,
#[account(mut, has_one = whirlpool)]
pub position: Box<Account<'info, Position>>,
#[account(
constraint = position_token_account.mint == position.position_mint,
constraint = position_token_account.amount == 1
)]
pub position_token_account: Box<InterfaceAccount<'info, TokenAccountInterface>>,
#[account(mut, constraint = token_owner_account_a.mint == whirlpool.token_mint_a)]
pub token_owner_account_a: Box<Account<'info, TokenAccount>>,
#[account(mut, address = whirlpool.token_vault_a)]
pub token_vault_a: Box<Account<'info, TokenAccount>>,
#[account(mut, constraint = token_owner_account_b.mint == whirlpool.token_mint_b)]
pub token_owner_account_b: Box<Account<'info, TokenAccount>>,
#[account(mut, address = whirlpool.token_vault_b)]
pub token_vault_b: Box<Account<'info, TokenAccount>>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
}
pub fn handler(ctx: Context<CollectFees>) -> Result<()> {
verify_position_authority_interface(
&ctx.accounts.position_token_account,
&ctx.accounts.position_authority,
)?;
let position = &mut ctx.accounts.position;
// Store the fees owed to use as transfer amounts.
let fee_owed_a = position.fee_owed_a;
let fee_owed_b = position.fee_owed_b;
position.reset_fees_owed();
transfer_from_vault_to_owner(
&ctx.accounts.whirlpool,
&ctx.accounts.token_vault_a,
&ctx.accounts.token_owner_account_a,
&ctx.accounts.token_program,
fee_owed_a,
)?;
transfer_from_vault_to_owner(
&ctx.accounts.whirlpool,
&ctx.accounts.token_vault_b,
&ctx.accounts.token_owner_account_b,
&ctx.accounts.token_program,
fee_owed_b,
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/open_position_with_token_extensions.rs
|
use crate::state::*;
use crate::util::build_position_token_metadata;
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::token_2022::spl_token_2022;
use anchor_spl::token_2022::Token2022;
use crate::constants::nft::whirlpool_nft_update_auth::ID as WP_NFT_UPDATE_AUTH;
use crate::util::{
initialize_position_mint_2022, initialize_position_token_account_2022,
initialize_token_metadata_extension, mint_position_token_2022_and_remove_authority,
};
#[derive(Accounts)]
pub struct OpenPositionWithTokenExtensions<'info> {
#[account(mut)]
pub funder: Signer<'info>,
/// CHECK: safe, the account that will be the owner of the position can be arbitrary
pub owner: UncheckedAccount<'info>,
#[account(init,
payer = funder,
space = Position::LEN,
seeds = [b"position".as_ref(), position_mint.key().as_ref()],
bump,
)]
pub position: Box<Account<'info, Position>>,
/// CHECK: initialized in the handler
#[account(mut)]
pub position_mint: Signer<'info>,
/// CHECK: initialized in the handler
#[account(mut)]
pub position_token_account: UncheckedAccount<'info>,
pub whirlpool: Box<Account<'info, Whirlpool>>,
#[account(address = spl_token_2022::ID)]
pub token_2022_program: Program<'info, Token2022>,
pub system_program: Program<'info, System>,
pub associated_token_program: Program<'info, AssociatedToken>,
/// CHECK: checked via account constraints
#[account(address = WP_NFT_UPDATE_AUTH)]
pub metadata_update_auth: UncheckedAccount<'info>,
}
/*
Opens a new Whirlpool Position with Mint and TokenAccount owned by Token-2022.
*/
pub fn handler(
ctx: Context<OpenPositionWithTokenExtensions>,
tick_lower_index: i32,
tick_upper_index: i32,
with_token_metadata: bool,
) -> Result<()> {
let whirlpool = &ctx.accounts.whirlpool;
let position_mint = &ctx.accounts.position_mint;
let position = &mut ctx.accounts.position;
let position_seeds = [
b"position".as_ref(),
position_mint.key.as_ref(),
&[ctx.bumps.position],
];
position.open_position(
whirlpool,
position_mint.key(),
tick_lower_index,
tick_upper_index,
)?;
initialize_position_mint_2022(
position_mint,
&ctx.accounts.funder,
position,
&ctx.accounts.system_program,
&ctx.accounts.token_2022_program,
with_token_metadata,
)?;
if with_token_metadata {
let (name, symbol, uri) = build_position_token_metadata(position_mint, position, whirlpool);
initialize_token_metadata_extension(
name,
symbol,
uri,
position_mint,
position,
&ctx.accounts.metadata_update_auth,
&ctx.accounts.funder,
&ctx.accounts.system_program,
&ctx.accounts.token_2022_program,
&position_seeds,
)?;
}
initialize_position_token_account_2022(
&ctx.accounts.position_token_account,
position_mint,
&ctx.accounts.funder,
&ctx.accounts.owner,
&ctx.accounts.token_2022_program,
&ctx.accounts.system_program,
&ctx.accounts.associated_token_program,
)?;
mint_position_token_2022_and_remove_authority(
position,
position_mint,
&ctx.accounts.position_token_account,
&ctx.accounts.token_2022_program,
&position_seeds,
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/increase_liquidity.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Token, TokenAccount};
use anchor_spl::token_interface::TokenAccount as TokenAccountInterface;
use crate::errors::ErrorCode;
use crate::manager::liquidity_manager::{
calculate_liquidity_token_deltas, calculate_modify_liquidity, sync_modify_liquidity_values,
};
use crate::math::convert_to_liquidity_delta;
use crate::state::*;
use crate::util::{
to_timestamp_u64, transfer_from_owner_to_vault, verify_position_authority_interface,
};
#[derive(Accounts)]
pub struct ModifyLiquidity<'info> {
#[account(mut)]
pub whirlpool: Account<'info, Whirlpool>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
pub position_authority: Signer<'info>,
#[account(mut, has_one = whirlpool)]
pub position: Account<'info, Position>,
#[account(
constraint = position_token_account.mint == position.position_mint,
constraint = position_token_account.amount == 1
)]
pub position_token_account: Box<InterfaceAccount<'info, TokenAccountInterface>>,
#[account(mut, constraint = token_owner_account_a.mint == whirlpool.token_mint_a)]
pub token_owner_account_a: Box<Account<'info, TokenAccount>>,
#[account(mut, constraint = token_owner_account_b.mint == whirlpool.token_mint_b)]
pub token_owner_account_b: Box<Account<'info, TokenAccount>>,
#[account(mut, constraint = token_vault_a.key() == whirlpool.token_vault_a)]
pub token_vault_a: Box<Account<'info, TokenAccount>>,
#[account(mut, constraint = token_vault_b.key() == whirlpool.token_vault_b)]
pub token_vault_b: Box<Account<'info, TokenAccount>>,
#[account(mut, has_one = whirlpool)]
pub tick_array_lower: AccountLoader<'info, TickArray>,
#[account(mut, has_one = whirlpool)]
pub tick_array_upper: AccountLoader<'info, TickArray>,
}
pub fn handler(
ctx: Context<ModifyLiquidity>,
liquidity_amount: u128,
token_max_a: u64,
token_max_b: u64,
) -> Result<()> {
verify_position_authority_interface(
&ctx.accounts.position_token_account,
&ctx.accounts.position_authority,
)?;
let clock = Clock::get()?;
if liquidity_amount == 0 {
return Err(ErrorCode::LiquidityZero.into());
}
let liquidity_delta = convert_to_liquidity_delta(liquidity_amount, true)?;
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
let update = calculate_modify_liquidity(
&ctx.accounts.whirlpool,
&ctx.accounts.position,
&ctx.accounts.tick_array_lower,
&ctx.accounts.tick_array_upper,
liquidity_delta,
timestamp,
)?;
sync_modify_liquidity_values(
&mut ctx.accounts.whirlpool,
&mut ctx.accounts.position,
&ctx.accounts.tick_array_lower,
&ctx.accounts.tick_array_upper,
update,
timestamp,
)?;
let (delta_a, delta_b) = calculate_liquidity_token_deltas(
ctx.accounts.whirlpool.tick_current_index,
ctx.accounts.whirlpool.sqrt_price,
&ctx.accounts.position,
liquidity_delta,
)?;
if delta_a > token_max_a || delta_b > token_max_b {
return Err(ErrorCode::TokenMaxExceeded.into());
}
transfer_from_owner_to_vault(
&ctx.accounts.position_authority,
&ctx.accounts.token_owner_account_a,
&ctx.accounts.token_vault_a,
&ctx.accounts.token_program,
delta_a,
)?;
transfer_from_owner_to_vault(
&ctx.accounts.position_authority,
&ctx.accounts.token_owner_account_b,
&ctx.accounts.token_vault_b,
&ctx.accounts.token_program,
delta_b,
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/set_protocol_fee_rate.rs
|
use anchor_lang::prelude::*;
use crate::state::{Whirlpool, WhirlpoolsConfig};
#[derive(Accounts)]
pub struct SetProtocolFeeRate<'info> {
pub whirlpools_config: Account<'info, WhirlpoolsConfig>,
#[account(mut, has_one = whirlpools_config)]
pub whirlpool: Account<'info, Whirlpool>,
#[account(address = whirlpools_config.fee_authority)]
pub fee_authority: Signer<'info>,
}
pub fn handler(ctx: Context<SetProtocolFeeRate>, protocol_fee_rate: u16) -> Result<()> {
ctx.accounts
.whirlpool
.update_protocol_fee_rate(protocol_fee_rate)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/set_fee_rate.rs
|
use anchor_lang::prelude::*;
use crate::state::{Whirlpool, WhirlpoolsConfig};
#[derive(Accounts)]
pub struct SetFeeRate<'info> {
pub whirlpools_config: Account<'info, WhirlpoolsConfig>,
#[account(mut, has_one = whirlpools_config)]
pub whirlpool: Account<'info, Whirlpool>,
#[account(address = whirlpools_config.fee_authority)]
pub fee_authority: Signer<'info>,
}
pub fn handler(ctx: Context<SetFeeRate>, fee_rate: u16) -> Result<()> {
ctx.accounts.whirlpool.update_fee_rate(fee_rate)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/initialize_position_bundle.rs
|
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::token::{self, Mint, Token, TokenAccount};
use crate::{state::*, util::mint_position_bundle_token_and_remove_authority};
#[derive(Accounts)]
pub struct InitializePositionBundle<'info> {
#[account(init,
payer = funder,
space = PositionBundle::LEN,
seeds = [b"position_bundle".as_ref(), position_bundle_mint.key().as_ref()],
bump,
)]
pub position_bundle: Box<Account<'info, PositionBundle>>,
#[account(init,
payer = funder,
mint::authority = position_bundle, // will be removed in the transaction
mint::decimals = 0,
)]
pub position_bundle_mint: Account<'info, Mint>,
#[account(init,
payer = funder,
associated_token::mint = position_bundle_mint,
associated_token::authority = position_bundle_owner,
)]
pub position_bundle_token_account: Box<Account<'info, TokenAccount>>,
/// CHECK: safe, the account that will be the owner of the position bundle can be arbitrary
pub position_bundle_owner: UncheckedAccount<'info>,
#[account(mut)]
pub funder: Signer<'info>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
pub system_program: Program<'info, System>,
pub rent: Sysvar<'info, Rent>,
pub associated_token_program: Program<'info, AssociatedToken>,
}
pub fn handler(ctx: Context<InitializePositionBundle>) -> Result<()> {
let position_bundle_mint = &ctx.accounts.position_bundle_mint;
let position_bundle = &mut ctx.accounts.position_bundle;
position_bundle.initialize(position_bundle_mint.key())?;
let bump = ctx.bumps.position_bundle;
mint_position_bundle_token_and_remove_authority(
&ctx.accounts.position_bundle,
position_bundle_mint,
&ctx.accounts.position_bundle_token_account,
&ctx.accounts.token_program,
&[
b"position_bundle".as_ref(),
position_bundle_mint.key().as_ref(),
&[bump],
],
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/two_hop_swap.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Token, TokenAccount};
use crate::{
errors::ErrorCode,
manager::swap_manager::*,
state::Whirlpool,
util::{to_timestamp_u64, update_and_swap_whirlpool, SparseSwapTickSequenceBuilder},
};
#[derive(Accounts)]
pub struct TwoHopSwap<'info> {
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
pub token_authority: Signer<'info>,
#[account(mut)]
pub whirlpool_one: Box<Account<'info, Whirlpool>>,
#[account(mut)]
pub whirlpool_two: Box<Account<'info, Whirlpool>>,
#[account(mut, constraint = token_owner_account_one_a.mint == whirlpool_one.token_mint_a)]
pub token_owner_account_one_a: Box<Account<'info, TokenAccount>>,
#[account(mut, address = whirlpool_one.token_vault_a)]
pub token_vault_one_a: Box<Account<'info, TokenAccount>>,
#[account(mut, constraint = token_owner_account_one_b.mint == whirlpool_one.token_mint_b)]
pub token_owner_account_one_b: Box<Account<'info, TokenAccount>>,
#[account(mut, address = whirlpool_one.token_vault_b)]
pub token_vault_one_b: Box<Account<'info, TokenAccount>>,
#[account(mut, constraint = token_owner_account_two_a.mint == whirlpool_two.token_mint_a)]
pub token_owner_account_two_a: Box<Account<'info, TokenAccount>>,
#[account(mut, address = whirlpool_two.token_vault_a)]
pub token_vault_two_a: Box<Account<'info, TokenAccount>>,
#[account(mut, constraint = token_owner_account_two_b.mint == whirlpool_two.token_mint_b)]
pub token_owner_account_two_b: Box<Account<'info, TokenAccount>>,
#[account(mut, address = whirlpool_two.token_vault_b)]
pub token_vault_two_b: Box<Account<'info, TokenAccount>>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_one_0: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_one_1: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_one_2: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_two_0: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_two_1: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_two_2: UncheckedAccount<'info>,
#[account(seeds = [b"oracle", whirlpool_one.key().as_ref()],bump)]
/// CHECK: Oracle is currently unused and will be enabled on subsequent updates
pub oracle_one: UncheckedAccount<'info>,
#[account(seeds = [b"oracle", whirlpool_two.key().as_ref()],bump)]
/// CHECK: Oracle is currently unused and will be enabled on subsequent updates
pub oracle_two: UncheckedAccount<'info>,
}
#[allow(clippy::too_many_arguments)]
pub fn handler(
ctx: Context<TwoHopSwap>,
amount: u64,
other_amount_threshold: u64,
amount_specified_is_input: bool,
a_to_b_one: bool,
a_to_b_two: bool,
sqrt_price_limit_one: u128,
sqrt_price_limit_two: u128,
) -> Result<()> {
let clock = Clock::get()?;
// Update the global reward growth which increases as a function of time.
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
let whirlpool_one = &mut ctx.accounts.whirlpool_one;
let whirlpool_two = &mut ctx.accounts.whirlpool_two;
// Don't allow swaps on the same whirlpool
if whirlpool_one.key() == whirlpool_two.key() {
return Err(ErrorCode::DuplicateTwoHopPool.into());
}
let swap_one_output_mint = if a_to_b_one {
whirlpool_one.token_mint_b
} else {
whirlpool_one.token_mint_a
};
let swap_two_input_mint = if a_to_b_two {
whirlpool_two.token_mint_a
} else {
whirlpool_two.token_mint_b
};
if swap_one_output_mint != swap_two_input_mint {
return Err(ErrorCode::InvalidIntermediaryMint.into());
}
let builder_one = SparseSwapTickSequenceBuilder::try_from(
whirlpool_one,
a_to_b_one,
vec![
ctx.accounts.tick_array_one_0.to_account_info(),
ctx.accounts.tick_array_one_1.to_account_info(),
ctx.accounts.tick_array_one_2.to_account_info(),
],
None,
)?;
let mut swap_tick_sequence_one = builder_one.build()?;
let builder_two = SparseSwapTickSequenceBuilder::try_from(
whirlpool_two,
a_to_b_two,
vec![
ctx.accounts.tick_array_two_0.to_account_info(),
ctx.accounts.tick_array_two_1.to_account_info(),
ctx.accounts.tick_array_two_2.to_account_info(),
],
None,
)?;
let mut swap_tick_sequence_two = builder_two.build()?;
// TODO: WLOG, we could extend this to N-swaps, but the account inputs to the instruction would
// need to be jankier and we may need to programatically map/verify rather than using anchor constraints
let (swap_update_one, swap_update_two) = if amount_specified_is_input {
// If the amount specified is input, this means we are doing exact-in
// and the swap calculations occur from Swap 1 => Swap 2
// and the swaps occur from Swap 1 => Swap 2
let swap_calc_one = swap(
whirlpool_one,
&mut swap_tick_sequence_one,
amount,
sqrt_price_limit_one,
amount_specified_is_input, // true
a_to_b_one,
timestamp,
)?;
// Swap two input is the output of swap one
let swap_two_input_amount = if a_to_b_one {
swap_calc_one.amount_b
} else {
swap_calc_one.amount_a
};
let swap_calc_two = swap(
whirlpool_two,
&mut swap_tick_sequence_two,
swap_two_input_amount,
sqrt_price_limit_two,
amount_specified_is_input, // true
a_to_b_two,
timestamp,
)?;
(swap_calc_one, swap_calc_two)
} else {
// If the amount specified is output, this means we need to invert the ordering of the calculations
// and the swap calculations occur from Swap 2 => Swap 1
// but the actual swaps occur from Swap 1 => Swap 2 (to ensure that the intermediate token exists in the account)
let swap_calc_two = swap(
whirlpool_two,
&mut swap_tick_sequence_two,
amount,
sqrt_price_limit_two,
amount_specified_is_input, // false
a_to_b_two,
timestamp,
)?;
// The output of swap 1 is input of swap_calc_two
let swap_one_output_amount = if a_to_b_two {
swap_calc_two.amount_a
} else {
swap_calc_two.amount_b
};
let swap_calc_one = swap(
whirlpool_one,
&mut swap_tick_sequence_one,
swap_one_output_amount,
sqrt_price_limit_one,
amount_specified_is_input, // false
a_to_b_one,
timestamp,
)?;
(swap_calc_one, swap_calc_two)
};
// All output token should be consumed by the second swap
let swap_calc_one_output = if a_to_b_one {
swap_update_one.amount_b
} else {
swap_update_one.amount_a
};
let swap_calc_two_input = if a_to_b_two {
swap_update_two.amount_a
} else {
swap_update_two.amount_b
};
if swap_calc_one_output != swap_calc_two_input {
return Err(ErrorCode::IntermediateTokenAmountMismatch.into());
}
if amount_specified_is_input {
// If amount_specified_is_input == true, then we have a variable amount of output
// The slippage we care about is the output of the second swap.
let output_amount = if a_to_b_two {
swap_update_two.amount_b
} else {
swap_update_two.amount_a
};
// If we have received less than the minimum out, throw an error
if other_amount_threshold > output_amount {
return Err(ErrorCode::AmountOutBelowMinimum.into());
}
} else {
// amount_specified_is_output == false, then we have a variable amount of input
// The slippage we care about is the input of the first swap
let input_amount = if a_to_b_one {
swap_update_one.amount_a
} else {
swap_update_one.amount_b
};
if other_amount_threshold < input_amount {
return Err(ErrorCode::AmountInAboveMaximum.into());
}
}
update_and_swap_whirlpool(
whirlpool_one,
&ctx.accounts.token_authority,
&ctx.accounts.token_owner_account_one_a,
&ctx.accounts.token_owner_account_one_b,
&ctx.accounts.token_vault_one_a,
&ctx.accounts.token_vault_one_b,
&ctx.accounts.token_program,
swap_update_one,
a_to_b_one,
timestamp,
)?;
update_and_swap_whirlpool(
whirlpool_two,
&ctx.accounts.token_authority,
&ctx.accounts.token_owner_account_two_a,
&ctx.accounts.token_owner_account_two_b,
&ctx.accounts.token_vault_two_a,
&ctx.accounts.token_vault_two_b,
&ctx.accounts.token_program,
swap_update_two,
a_to_b_two,
timestamp,
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/set_reward_authority_by_super_authority.rs
|
use anchor_lang::prelude::*;
use crate::state::{Whirlpool, WhirlpoolsConfig};
#[derive(Accounts)]
#[instruction(reward_index: u8)]
pub struct SetRewardAuthorityBySuperAuthority<'info> {
pub whirlpools_config: Account<'info, WhirlpoolsConfig>,
#[account(mut, has_one = whirlpools_config)]
pub whirlpool: Account<'info, Whirlpool>,
#[account(address = whirlpools_config.reward_emissions_super_authority)]
pub reward_emissions_super_authority: Signer<'info>,
/// CHECK: safe, the account that will be new authority can be arbitrary
pub new_reward_authority: UncheckedAccount<'info>,
}
/// Set the whirlpool reward authority at the provided `reward_index`.
/// Only the current reward emissions super authority has permission to invoke this instruction.
pub fn handler(ctx: Context<SetRewardAuthorityBySuperAuthority>, reward_index: u8) -> Result<()> {
ctx.accounts.whirlpool.update_reward_authority(
reward_index as usize,
ctx.accounts.new_reward_authority.key(),
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/set_fee_authority.rs
|
use anchor_lang::prelude::*;
use crate::state::WhirlpoolsConfig;
#[derive(Accounts)]
pub struct SetFeeAuthority<'info> {
#[account(mut)]
pub whirlpools_config: Account<'info, WhirlpoolsConfig>,
#[account(address = whirlpools_config.fee_authority)]
pub fee_authority: Signer<'info>,
/// CHECK: safe, the account that will be new authority can be arbitrary
pub new_fee_authority: UncheckedAccount<'info>,
}
/// Set the fee authority. Only the current fee authority has permission to invoke this instruction.
pub fn handler(ctx: Context<SetFeeAuthority>) -> Result<()> {
ctx.accounts
.whirlpools_config
.update_fee_authority(ctx.accounts.new_fee_authority.key());
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/collect_reward.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Token, TokenAccount};
use anchor_spl::token_interface::TokenAccount as TokenAccountInterface;
use crate::{
state::*,
util::{transfer_from_vault_to_owner, verify_position_authority_interface},
};
#[derive(Accounts)]
#[instruction(reward_index: u8)]
pub struct CollectReward<'info> {
pub whirlpool: Box<Account<'info, Whirlpool>>,
pub position_authority: Signer<'info>,
#[account(mut, has_one = whirlpool)]
pub position: Box<Account<'info, Position>>,
#[account(
constraint = position_token_account.mint == position.position_mint,
constraint = position_token_account.amount == 1
)]
pub position_token_account: Box<InterfaceAccount<'info, TokenAccountInterface>>,
#[account(mut,
constraint = reward_owner_account.mint == whirlpool.reward_infos[reward_index as usize].mint
)]
pub reward_owner_account: Box<Account<'info, TokenAccount>>,
#[account(mut, address = whirlpool.reward_infos[reward_index as usize].vault)]
pub reward_vault: Box<Account<'info, TokenAccount>>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
}
/// Collects all harvestable tokens for a specified reward.
///
/// If the Whirlpool reward vault does not have enough tokens, the maximum number of available
/// tokens will be debited to the user. The unharvested amount remains tracked, and it can be
/// harvested in the future.
///
/// # Parameters
/// - `reward_index` - The reward to harvest. Acceptable values are 0, 1, and 2.
///
/// # Returns
/// - `Ok`: Reward tokens at the specified reward index have been successfully harvested
/// - `Err`: `RewardNotInitialized` if the specified reward has not been initialized
/// `InvalidRewardIndex` if the reward index is not 0, 1, or 2
pub fn handler(ctx: Context<CollectReward>, reward_index: u8) -> Result<()> {
verify_position_authority_interface(
&ctx.accounts.position_token_account,
&ctx.accounts.position_authority,
)?;
let index = reward_index as usize;
let position = &mut ctx.accounts.position;
let (transfer_amount, updated_amount_owed) = calculate_collect_reward(
position.reward_infos[index],
ctx.accounts.reward_vault.amount,
);
position.update_reward_owed(index, updated_amount_owed);
transfer_from_vault_to_owner(
&ctx.accounts.whirlpool,
&ctx.accounts.reward_vault,
&ctx.accounts.reward_owner_account,
&ctx.accounts.token_program,
transfer_amount,
)
}
fn calculate_collect_reward(position_reward: PositionRewardInfo, vault_amount: u64) -> (u64, u64) {
let amount_owed = position_reward.amount_owed;
let (transfer_amount, updated_amount_owed) = if amount_owed > vault_amount {
(vault_amount, amount_owed - vault_amount)
} else {
(amount_owed, 0)
};
(transfer_amount, updated_amount_owed)
}
#[cfg(test)]
mod unit_tests {
use super::calculate_collect_reward;
use crate::state::PositionRewardInfo;
#[test]
fn test_calculate_collect_reward_vault_insufficient_tokens() {
let (transfer_amount, updated_amount_owed) =
calculate_collect_reward(position_reward(10), 1);
assert_eq!(transfer_amount, 1);
assert_eq!(updated_amount_owed, 9);
}
#[test]
fn test_calculate_collect_reward_vault_sufficient_tokens() {
let (transfer_amount, updated_amount_owed) =
calculate_collect_reward(position_reward(10), 10);
assert_eq!(transfer_amount, 10);
assert_eq!(updated_amount_owed, 0);
}
fn position_reward(amount_owed: u64) -> PositionRewardInfo {
PositionRewardInfo {
amount_owed,
..Default::default()
}
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/close_position.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Mint, Token, TokenAccount};
use crate::errors::ErrorCode;
use crate::state::*;
use crate::util::{burn_and_close_user_position_token, verify_position_authority};
#[derive(Accounts)]
pub struct ClosePosition<'info> {
pub position_authority: Signer<'info>,
/// CHECK: safe, for receiving rent only
#[account(mut)]
pub receiver: UncheckedAccount<'info>,
#[account(mut,
close = receiver,
seeds = [b"position".as_ref(), position_mint.key().as_ref()],
bump,
)]
pub position: Account<'info, Position>,
#[account(mut, address = position.position_mint)]
pub position_mint: Account<'info, Mint>,
#[account(mut,
constraint = position_token_account.amount == 1,
constraint = position_token_account.mint == position.position_mint)]
pub position_token_account: Box<Account<'info, TokenAccount>>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
}
pub fn handler(ctx: Context<ClosePosition>) -> Result<()> {
verify_position_authority(
&ctx.accounts.position_token_account,
&ctx.accounts.position_authority,
)?;
if !Position::is_position_empty(&ctx.accounts.position) {
return Err(ErrorCode::ClosePositionNotEmpty.into());
}
burn_and_close_user_position_token(
&ctx.accounts.position_authority,
&ctx.accounts.receiver,
&ctx.accounts.position_mint,
&ctx.accounts.position_token_account,
&ctx.accounts.token_program,
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/collect_protocol_fees.rs
|
use crate::{state::*, util::transfer_from_vault_to_owner};
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Token, TokenAccount};
#[derive(Accounts)]
pub struct CollectProtocolFees<'info> {
pub whirlpools_config: Box<Account<'info, WhirlpoolsConfig>>,
#[account(mut, has_one = whirlpools_config)]
pub whirlpool: Box<Account<'info, Whirlpool>>,
#[account(address = whirlpools_config.collect_protocol_fees_authority)]
pub collect_protocol_fees_authority: Signer<'info>,
#[account(mut, address = whirlpool.token_vault_a)]
pub token_vault_a: Account<'info, TokenAccount>,
#[account(mut, address = whirlpool.token_vault_b)]
pub token_vault_b: Account<'info, TokenAccount>,
#[account(mut, constraint = token_destination_a.mint == whirlpool.token_mint_a)]
pub token_destination_a: Account<'info, TokenAccount>,
#[account(mut, constraint = token_destination_b.mint == whirlpool.token_mint_b)]
pub token_destination_b: Account<'info, TokenAccount>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
}
pub fn handler(ctx: Context<CollectProtocolFees>) -> Result<()> {
let whirlpool = &ctx.accounts.whirlpool;
transfer_from_vault_to_owner(
whirlpool,
&ctx.accounts.token_vault_a,
&ctx.accounts.token_destination_a,
&ctx.accounts.token_program,
whirlpool.protocol_fee_owed_a,
)?;
transfer_from_vault_to_owner(
whirlpool,
&ctx.accounts.token_vault_b,
&ctx.accounts.token_destination_b,
&ctx.accounts.token_program,
whirlpool.protocol_fee_owed_b,
)?;
ctx.accounts.whirlpool.reset_protocol_fees_owed();
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/mod.rs
|
#![allow(ambiguous_glob_reexports)]
pub mod close_bundled_position;
pub mod close_position;
pub mod close_position_with_token_extensions;
pub mod collect_fees;
pub mod collect_protocol_fees;
pub mod collect_reward;
pub mod decrease_liquidity;
pub mod delete_position_bundle;
pub mod increase_liquidity;
pub mod initialize_config;
pub mod initialize_fee_tier;
pub mod initialize_pool;
pub mod initialize_position_bundle;
pub mod initialize_position_bundle_with_metadata;
pub mod initialize_reward;
pub mod initialize_tick_array;
pub mod open_bundled_position;
pub mod open_position;
pub mod open_position_with_metadata;
pub mod open_position_with_token_extensions;
pub mod set_collect_protocol_fees_authority;
pub mod set_default_fee_rate;
pub mod set_default_protocol_fee_rate;
pub mod set_fee_authority;
pub mod set_fee_rate;
pub mod set_protocol_fee_rate;
pub mod set_reward_authority;
pub mod set_reward_authority_by_super_authority;
pub mod set_reward_emissions;
pub mod set_reward_emissions_super_authority;
pub mod swap;
pub mod two_hop_swap;
pub mod update_fees_and_rewards;
pub use close_bundled_position::*;
pub use close_position::*;
pub use close_position_with_token_extensions::*;
pub use collect_fees::*;
pub use collect_protocol_fees::*;
pub use collect_reward::*;
pub use delete_position_bundle::*;
pub use increase_liquidity::*;
pub use initialize_config::*;
pub use initialize_fee_tier::*;
pub use initialize_pool::*;
pub use initialize_position_bundle::*;
pub use initialize_position_bundle_with_metadata::*;
pub use initialize_reward::*;
pub use initialize_tick_array::*;
pub use open_bundled_position::*;
pub use open_position::*;
pub use open_position_with_metadata::*;
pub use open_position_with_token_extensions::*;
pub use set_collect_protocol_fees_authority::*;
pub use set_default_fee_rate::*;
pub use set_default_protocol_fee_rate::*;
pub use set_fee_authority::*;
pub use set_fee_rate::*;
pub use set_protocol_fee_rate::*;
pub use set_reward_authority::*;
pub use set_reward_authority_by_super_authority::*;
pub use set_reward_emissions::*;
pub use set_reward_emissions_super_authority::*;
pub use swap::*;
pub use two_hop_swap::*;
pub use update_fees_and_rewards::*;
pub mod v2;
pub use v2::*;
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/initialize_position_bundle_with_metadata.rs
|
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::metadata::Metadata;
use anchor_spl::token::{self, Mint, Token, TokenAccount};
use crate::constants::nft::whirlpool_nft_update_auth::ID as WPB_NFT_UPDATE_AUTH;
use crate::{state::*, util::mint_position_bundle_token_with_metadata_and_remove_authority};
#[derive(Accounts)]
pub struct InitializePositionBundleWithMetadata<'info> {
#[account(init,
payer = funder,
space = PositionBundle::LEN,
seeds = [b"position_bundle".as_ref(), position_bundle_mint.key().as_ref()],
bump,
)]
pub position_bundle: Box<Account<'info, PositionBundle>>,
#[account(init,
payer = funder,
mint::authority = position_bundle, // will be removed in the transaction
mint::decimals = 0,
)]
pub position_bundle_mint: Account<'info, Mint>,
/// CHECK: checked via the Metadata CPI call
/// https://github.com/metaplex-foundation/metaplex-program-library/blob/773a574c4b34e5b9f248a81306ec24db064e255f/token-metadata/program/src/utils/metadata.rs#L100
#[account(mut)]
pub position_bundle_metadata: UncheckedAccount<'info>,
#[account(init,
payer = funder,
associated_token::mint = position_bundle_mint,
associated_token::authority = position_bundle_owner,
)]
pub position_bundle_token_account: Box<Account<'info, TokenAccount>>,
/// CHECK: safe, the account that will be the owner of the position bundle can be arbitrary
pub position_bundle_owner: UncheckedAccount<'info>,
#[account(mut)]
pub funder: Signer<'info>,
/// CHECK: checked via account constraints
#[account(address = WPB_NFT_UPDATE_AUTH)]
pub metadata_update_auth: UncheckedAccount<'info>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
pub system_program: Program<'info, System>,
pub rent: Sysvar<'info, Rent>,
pub associated_token_program: Program<'info, AssociatedToken>,
pub metadata_program: Program<'info, Metadata>,
}
pub fn handler(ctx: Context<InitializePositionBundleWithMetadata>) -> Result<()> {
let position_bundle_mint = &ctx.accounts.position_bundle_mint;
let position_bundle = &mut ctx.accounts.position_bundle;
position_bundle.initialize(position_bundle_mint.key())?;
let bump = ctx.bumps.position_bundle;
mint_position_bundle_token_with_metadata_and_remove_authority(
&ctx.accounts.funder,
&ctx.accounts.position_bundle,
position_bundle_mint,
&ctx.accounts.position_bundle_token_account,
&ctx.accounts.position_bundle_metadata,
&ctx.accounts.metadata_update_auth,
&ctx.accounts.metadata_program,
&ctx.accounts.token_program,
&ctx.accounts.system_program,
&ctx.accounts.rent,
&[
b"position_bundle".as_ref(),
position_bundle_mint.key().as_ref(),
&[bump],
],
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/delete_position_bundle.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Mint, Token, TokenAccount};
use crate::errors::ErrorCode;
use crate::state::*;
use crate::util::burn_and_close_position_bundle_token;
#[derive(Accounts)]
pub struct DeletePositionBundle<'info> {
#[account(mut, close = receiver)]
pub position_bundle: Account<'info, PositionBundle>,
#[account(mut, address = position_bundle.position_bundle_mint)]
pub position_bundle_mint: Account<'info, Mint>,
#[account(mut,
constraint = position_bundle_token_account.mint == position_bundle.position_bundle_mint,
constraint = position_bundle_token_account.owner == position_bundle_owner.key(),
constraint = position_bundle_token_account.amount == 1,
)]
pub position_bundle_token_account: Box<Account<'info, TokenAccount>>,
pub position_bundle_owner: Signer<'info>,
/// CHECK: safe, for receiving rent only
#[account(mut)]
pub receiver: UncheckedAccount<'info>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
}
pub fn handler(ctx: Context<DeletePositionBundle>) -> Result<()> {
let position_bundle = &ctx.accounts.position_bundle;
if !position_bundle.is_deletable() {
return Err(ErrorCode::PositionBundleNotDeletable.into());
}
burn_and_close_position_bundle_token(
&ctx.accounts.position_bundle_owner,
&ctx.accounts.receiver,
&ctx.accounts.position_bundle_mint,
&ctx.accounts.position_bundle_token_account,
&ctx.accounts.token_program,
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/set_default_fee_rate.rs
|
use anchor_lang::prelude::*;
use crate::state::{FeeTier, WhirlpoolsConfig};
#[derive(Accounts)]
pub struct SetDefaultFeeRate<'info> {
pub whirlpools_config: Account<'info, WhirlpoolsConfig>,
#[account(mut, has_one = whirlpools_config)]
pub fee_tier: Account<'info, FeeTier>,
#[account(address = whirlpools_config.fee_authority)]
pub fee_authority: Signer<'info>,
}
/*
Updates the default fee rate on a FeeTier object.
*/
pub fn handler(ctx: Context<SetDefaultFeeRate>, default_fee_rate: u16) -> Result<()> {
ctx.accounts
.fee_tier
.update_default_fee_rate(default_fee_rate)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/set_default_protocol_fee_rate.rs
|
use anchor_lang::prelude::*;
use crate::state::WhirlpoolsConfig;
#[derive(Accounts)]
pub struct SetDefaultProtocolFeeRate<'info> {
#[account(mut)]
pub whirlpools_config: Account<'info, WhirlpoolsConfig>,
#[account(address = whirlpools_config.fee_authority)]
pub fee_authority: Signer<'info>,
}
pub fn handler(
ctx: Context<SetDefaultProtocolFeeRate>,
default_protocol_fee_rate: u16,
) -> Result<()> {
ctx.accounts
.whirlpools_config
.update_default_protocol_fee_rate(default_protocol_fee_rate)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/set_collect_protocol_fees_authority.rs
|
use anchor_lang::prelude::*;
use crate::state::WhirlpoolsConfig;
#[derive(Accounts)]
pub struct SetCollectProtocolFeesAuthority<'info> {
#[account(mut)]
pub whirlpools_config: Account<'info, WhirlpoolsConfig>,
#[account(address = whirlpools_config.collect_protocol_fees_authority)]
pub collect_protocol_fees_authority: Signer<'info>,
/// CHECK: safe, the account that will be new authority can be arbitrary
pub new_collect_protocol_fees_authority: UncheckedAccount<'info>,
}
pub fn handler(ctx: Context<SetCollectProtocolFeesAuthority>) -> Result<()> {
ctx.accounts
.whirlpools_config
.update_collect_protocol_fees_authority(
ctx.accounts.new_collect_protocol_fees_authority.key(),
);
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/set_reward_emissions_super_authority.rs
|
use anchor_lang::prelude::*;
use crate::state::WhirlpoolsConfig;
#[derive(Accounts)]
pub struct SetRewardEmissionsSuperAuthority<'info> {
#[account(mut)]
pub whirlpools_config: Account<'info, WhirlpoolsConfig>,
#[account(address = whirlpools_config.reward_emissions_super_authority)]
pub reward_emissions_super_authority: Signer<'info>,
/// CHECK: safe, the account that will be new authority can be arbitrary
pub new_reward_emissions_super_authority: UncheckedAccount<'info>,
}
pub fn handler(ctx: Context<SetRewardEmissionsSuperAuthority>) -> Result<()> {
ctx.accounts
.whirlpools_config
.update_reward_emissions_super_authority(
ctx.accounts.new_reward_emissions_super_authority.key(),
);
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/set_reward_authority.rs
|
use anchor_lang::prelude::*;
use crate::state::Whirlpool;
#[derive(Accounts)]
#[instruction(reward_index: u8)]
pub struct SetRewardAuthority<'info> {
#[account(mut)]
pub whirlpool: Account<'info, Whirlpool>,
#[account(address = whirlpool.reward_infos[reward_index as usize].authority)]
pub reward_authority: Signer<'info>,
/// CHECK: safe, the account that will be new authority can be arbitrary
pub new_reward_authority: UncheckedAccount<'info>,
}
pub fn handler(ctx: Context<SetRewardAuthority>, reward_index: u8) -> Result<()> {
ctx.accounts.whirlpool.update_reward_authority(
reward_index as usize,
ctx.accounts.new_reward_authority.key(),
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/set_reward_emissions.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::TokenAccount;
use crate::errors::ErrorCode;
use crate::manager::whirlpool_manager::next_whirlpool_reward_infos;
use crate::math::checked_mul_shift_right;
use crate::state::Whirlpool;
use crate::util::to_timestamp_u64;
const DAY_IN_SECONDS: u128 = 60 * 60 * 24;
#[derive(Accounts)]
#[instruction(reward_index: u8)]
pub struct SetRewardEmissions<'info> {
#[account(mut)]
pub whirlpool: Account<'info, Whirlpool>,
#[account(address = whirlpool.reward_infos[reward_index as usize].authority)]
pub reward_authority: Signer<'info>,
#[account(address = whirlpool.reward_infos[reward_index as usize].vault)]
pub reward_vault: Account<'info, TokenAccount>,
}
pub fn handler(
ctx: Context<SetRewardEmissions>,
reward_index: u8,
emissions_per_second_x64: u128,
) -> Result<()> {
let whirlpool = &ctx.accounts.whirlpool;
let reward_vault = &ctx.accounts.reward_vault;
let emissions_per_day = checked_mul_shift_right(DAY_IN_SECONDS, emissions_per_second_x64)?;
if reward_vault.amount < emissions_per_day {
return Err(ErrorCode::RewardVaultAmountInsufficient.into());
}
let clock = Clock::get()?;
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
let next_reward_infos = next_whirlpool_reward_infos(whirlpool, timestamp)?;
ctx.accounts.whirlpool.update_emissions(
reward_index as usize,
next_reward_infos,
timestamp,
emissions_per_second_x64,
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/initialize_fee_tier.rs
|
use crate::state::*;
use anchor_lang::prelude::*;
#[derive(Accounts)]
#[instruction(tick_spacing: u16)]
pub struct InitializeFeeTier<'info> {
pub config: Box<Account<'info, WhirlpoolsConfig>>,
#[account(init,
payer = funder,
seeds = [b"fee_tier", config.key().as_ref(),
tick_spacing.to_le_bytes().as_ref()],
bump,
space = FeeTier::LEN)]
pub fee_tier: Account<'info, FeeTier>,
#[account(mut)]
pub funder: Signer<'info>,
#[account(address = config.fee_authority)]
pub fee_authority: Signer<'info>,
pub system_program: Program<'info, System>,
}
pub fn handler(
ctx: Context<InitializeFeeTier>,
tick_spacing: u16,
default_fee_rate: u16,
) -> Result<()> {
ctx.accounts
.fee_tier
.initialize(&ctx.accounts.config, tick_spacing, default_fee_rate)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/initialize_tick_array.rs
|
use anchor_lang::prelude::*;
use crate::state::*;
#[derive(Accounts)]
#[instruction(start_tick_index: i32)]
pub struct InitializeTickArray<'info> {
pub whirlpool: Account<'info, Whirlpool>,
#[account(mut)]
pub funder: Signer<'info>,
#[account(
init,
payer = funder,
seeds = [b"tick_array", whirlpool.key().as_ref(), start_tick_index.to_string().as_bytes()],
bump,
space = TickArray::LEN)]
pub tick_array: AccountLoader<'info, TickArray>,
pub system_program: Program<'info, System>,
}
pub fn handler(ctx: Context<InitializeTickArray>, start_tick_index: i32) -> Result<()> {
let mut tick_array = ctx.accounts.tick_array.load_init()?;
tick_array.initialize(&ctx.accounts.whirlpool, start_tick_index)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/open_position.rs
|
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::token::{self, Mint, Token, TokenAccount};
use crate::state;
use crate::{state::*, util::mint_position_token_and_remove_authority};
#[derive(Accounts)]
pub struct OpenPosition<'info> {
#[account(mut)]
pub funder: Signer<'info>,
/// CHECK: safe, the account that will be the owner of the position can be arbitrary
pub owner: UncheckedAccount<'info>,
#[account(init,
payer = funder,
space = Position::LEN,
seeds = [b"position".as_ref(), position_mint.key().as_ref()],
bump,
)]
pub position: Box<Account<'info, Position>>,
#[account(init,
payer = funder,
mint::authority = whirlpool,
mint::decimals = 0,
)]
pub position_mint: Account<'info, Mint>,
#[account(init,
payer = funder,
associated_token::mint = position_mint,
associated_token::authority = owner,
)]
pub position_token_account: Box<Account<'info, TokenAccount>>,
pub whirlpool: Box<Account<'info, Whirlpool>>,
#[account(address = token::ID)]
pub token_program: Program<'info, Token>,
pub system_program: Program<'info, System>,
pub rent: Sysvar<'info, Rent>,
pub associated_token_program: Program<'info, AssociatedToken>,
}
/*
Opens a new Whirlpool Position.
*/
pub fn handler(
ctx: Context<OpenPosition>,
// derive(Accounts) generates OpenPositionBumps, so we need to clarify which one we want to use.
_bumps: state::OpenPositionBumps,
tick_lower_index: i32,
tick_upper_index: i32,
) -> Result<()> {
let whirlpool = &ctx.accounts.whirlpool;
let position_mint = &ctx.accounts.position_mint;
let position = &mut ctx.accounts.position;
position.open_position(
whirlpool,
position_mint.key(),
tick_lower_index,
tick_upper_index,
)?;
mint_position_token_and_remove_authority(
whirlpool,
position_mint,
&ctx.accounts.position_token_account,
&ctx.accounts.token_program,
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/initialize_config.rs
|
use anchor_lang::prelude::*;
use crate::state::*;
#[derive(Accounts)]
pub struct InitializeConfig<'info> {
#[account(init, payer = funder, space = WhirlpoolsConfig::LEN)]
pub config: Account<'info, WhirlpoolsConfig>,
#[account(mut)]
pub funder: Signer<'info>,
pub system_program: Program<'info, System>,
}
pub fn handler(
ctx: Context<InitializeConfig>,
fee_authority: Pubkey,
collect_protocol_fees_authority: Pubkey,
reward_emissions_super_authority: Pubkey,
default_protocol_fee_rate: u16,
) -> Result<()> {
let config = &mut ctx.accounts.config;
config.initialize(
fee_authority,
collect_protocol_fees_authority,
reward_emissions_super_authority,
default_protocol_fee_rate,
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/close_position_with_token_extensions.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token_2022::{self, Token2022};
use anchor_spl::token_interface::{Mint, TokenAccount};
use crate::errors::ErrorCode;
use crate::state::*;
use crate::util::{burn_and_close_user_position_token_2022, verify_position_authority_interface};
#[derive(Accounts)]
pub struct ClosePositionWithTokenExtensions<'info> {
pub position_authority: Signer<'info>,
/// CHECK: safe, for receiving rent only
#[account(mut)]
pub receiver: UncheckedAccount<'info>,
#[account(mut,
close = receiver,
seeds = [b"position".as_ref(), position_mint.key().as_ref()],
bump,
)]
pub position: Account<'info, Position>,
#[account(mut, address = position.position_mint, owner = token_2022_program.key())]
pub position_mint: InterfaceAccount<'info, Mint>,
#[account(mut,
constraint = position_token_account.amount == 1,
constraint = position_token_account.mint == position.position_mint
)]
pub position_token_account: InterfaceAccount<'info, TokenAccount>,
#[account(address = token_2022::ID)]
pub token_2022_program: Program<'info, Token2022>,
}
pub fn handler(ctx: Context<ClosePositionWithTokenExtensions>) -> Result<()> {
verify_position_authority_interface(
&ctx.accounts.position_token_account,
&ctx.accounts.position_authority,
)?;
if !Position::is_position_empty(&ctx.accounts.position) {
return Err(ErrorCode::ClosePositionNotEmpty.into());
}
burn_and_close_user_position_token_2022(
&ctx.accounts.position_authority,
&ctx.accounts.receiver,
&ctx.accounts.position_mint,
&ctx.accounts.position_token_account,
&ctx.accounts.token_2022_program,
&ctx.accounts.position,
&[
b"position".as_ref(),
ctx.accounts.position_mint.key().as_ref(),
&[ctx.bumps.position],
],
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/set_config_extension_authority.rs
|
use anchor_lang::prelude::*;
use crate::state::{WhirlpoolsConfig, WhirlpoolsConfigExtension};
#[derive(Accounts)]
pub struct SetConfigExtensionAuthority<'info> {
pub whirlpools_config: Box<Account<'info, WhirlpoolsConfig>>,
#[account(mut, has_one = whirlpools_config)]
pub whirlpools_config_extension: Account<'info, WhirlpoolsConfigExtension>,
#[account(address = whirlpools_config_extension.config_extension_authority)]
pub config_extension_authority: Signer<'info>,
/// CHECK: safe, the account that will be new authority can be arbitrary
pub new_config_extension_authority: UncheckedAccount<'info>,
}
/// Set the config extension authority. Only the current config extension authority has permission to invoke this instruction.
pub fn handler(ctx: Context<SetConfigExtensionAuthority>) -> Result<()> {
ctx.accounts
.whirlpools_config_extension
.update_config_extension_authority(ctx.accounts.new_config_extension_authority.key());
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/initialize_reward.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
use crate::{
errors::ErrorCode,
state::Whirlpool,
util::{is_token_badge_initialized, v2::is_supported_token_mint},
};
#[derive(Accounts)]
#[instruction(reward_index: u8)]
pub struct InitializeRewardV2<'info> {
#[account(address = whirlpool.reward_infos[reward_index as usize].authority)]
pub reward_authority: Signer<'info>,
#[account(mut)]
pub funder: Signer<'info>,
#[account(mut)]
pub whirlpool: Box<Account<'info, Whirlpool>>,
pub reward_mint: Box<InterfaceAccount<'info, Mint>>,
#[account(seeds = [b"token_badge", whirlpool.whirlpools_config.as_ref(), reward_mint.key().as_ref()], bump)]
/// CHECK: checked in the handler
pub reward_token_badge: UncheckedAccount<'info>,
#[account(
init,
payer = funder,
token::token_program = reward_token_program,
token::mint = reward_mint,
token::authority = whirlpool
)]
pub reward_vault: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(address = *reward_mint.to_account_info().owner)]
pub reward_token_program: Interface<'info, TokenInterface>,
pub system_program: Program<'info, System>,
pub rent: Sysvar<'info, Rent>,
}
pub fn handler(ctx: Context<InitializeRewardV2>, reward_index: u8) -> Result<()> {
let whirlpool = &mut ctx.accounts.whirlpool;
// Don't allow initializing a reward with an unsupported token mint
let is_token_badge_initialized = is_token_badge_initialized(
whirlpool.whirlpools_config,
ctx.accounts.reward_mint.key(),
&ctx.accounts.reward_token_badge,
)?;
if !is_supported_token_mint(&ctx.accounts.reward_mint, is_token_badge_initialized).unwrap() {
return Err(ErrorCode::UnsupportedTokenMint.into());
}
whirlpool.initialize_reward(
reward_index as usize,
ctx.accounts.reward_mint.key(),
ctx.accounts.reward_vault.key(),
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/set_token_badge_authority.rs
|
use anchor_lang::prelude::*;
use crate::state::{WhirlpoolsConfig, WhirlpoolsConfigExtension};
#[derive(Accounts)]
pub struct SetTokenBadgeAuthority<'info> {
pub whirlpools_config: Box<Account<'info, WhirlpoolsConfig>>,
#[account(mut, has_one = whirlpools_config)]
pub whirlpools_config_extension: Account<'info, WhirlpoolsConfigExtension>,
#[account(address = whirlpools_config_extension.config_extension_authority)]
pub config_extension_authority: Signer<'info>,
/// CHECK: safe, the account that will be new authority can be arbitrary
pub new_token_badge_authority: UncheckedAccount<'info>,
}
/// Set the token badge authority. Only the config extension authority has permission to invoke this instruction.
pub fn handler(ctx: Context<SetTokenBadgeAuthority>) -> Result<()> {
ctx.accounts
.whirlpools_config_extension
.update_token_badge_authority(ctx.accounts.new_token_badge_authority.key());
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/initialize_pool.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
use crate::{
errors::ErrorCode,
state::*,
util::{is_token_badge_initialized, v2::is_supported_token_mint},
};
#[derive(Accounts)]
#[instruction(tick_spacing: u16)]
pub struct InitializePoolV2<'info> {
pub whirlpools_config: Box<Account<'info, WhirlpoolsConfig>>,
pub token_mint_a: InterfaceAccount<'info, Mint>,
pub token_mint_b: InterfaceAccount<'info, Mint>,
#[account(seeds = [b"token_badge", whirlpools_config.key().as_ref(), token_mint_a.key().as_ref()], bump)]
/// CHECK: checked in the handler
pub token_badge_a: UncheckedAccount<'info>,
#[account(seeds = [b"token_badge", whirlpools_config.key().as_ref(), token_mint_b.key().as_ref()], bump)]
/// CHECK: checked in the handler
pub token_badge_b: UncheckedAccount<'info>,
#[account(mut)]
pub funder: Signer<'info>,
#[account(init,
seeds = [
b"whirlpool".as_ref(),
whirlpools_config.key().as_ref(),
token_mint_a.key().as_ref(),
token_mint_b.key().as_ref(),
tick_spacing.to_le_bytes().as_ref()
],
bump,
payer = funder,
space = Whirlpool::LEN)]
pub whirlpool: Box<Account<'info, Whirlpool>>,
#[account(init,
payer = funder,
token::token_program = token_program_a,
token::mint = token_mint_a,
token::authority = whirlpool)]
pub token_vault_a: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(init,
payer = funder,
token::token_program = token_program_b,
token::mint = token_mint_b,
token::authority = whirlpool)]
pub token_vault_b: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(has_one = whirlpools_config, constraint = fee_tier.tick_spacing == tick_spacing)]
pub fee_tier: Account<'info, FeeTier>,
#[account(address = *token_mint_a.to_account_info().owner)]
pub token_program_a: Interface<'info, TokenInterface>,
#[account(address = *token_mint_b.to_account_info().owner)]
pub token_program_b: Interface<'info, TokenInterface>,
pub system_program: Program<'info, System>,
pub rent: Sysvar<'info, Rent>,
}
pub fn handler(
ctx: Context<InitializePoolV2>,
tick_spacing: u16,
initial_sqrt_price: u128,
) -> Result<()> {
let token_mint_a = ctx.accounts.token_mint_a.key();
let token_mint_b = ctx.accounts.token_mint_b.key();
let whirlpool = &mut ctx.accounts.whirlpool;
let whirlpools_config = &ctx.accounts.whirlpools_config;
let default_fee_rate = ctx.accounts.fee_tier.default_fee_rate;
// ignore the bump passed and use one Anchor derived
let bump = ctx.bumps.whirlpool;
// Don't allow creating a pool with unsupported token mints
let is_token_badge_initialized_a = is_token_badge_initialized(
whirlpools_config.key(),
token_mint_a,
&ctx.accounts.token_badge_a,
)?;
if !is_supported_token_mint(&ctx.accounts.token_mint_a, is_token_badge_initialized_a).unwrap() {
return Err(ErrorCode::UnsupportedTokenMint.into());
}
let is_token_badge_initialized_b = is_token_badge_initialized(
whirlpools_config.key(),
token_mint_b,
&ctx.accounts.token_badge_b,
)?;
if !is_supported_token_mint(&ctx.accounts.token_mint_b, is_token_badge_initialized_b).unwrap() {
return Err(ErrorCode::UnsupportedTokenMint.into());
}
whirlpool.initialize(
whirlpools_config,
bump,
tick_spacing,
initial_sqrt_price,
default_fee_rate,
token_mint_a,
ctx.accounts.token_vault_a.key(),
token_mint_b,
ctx.accounts.token_vault_b.key(),
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/swap.rs
|
use anchor_lang::prelude::*;
use anchor_spl::memo::Memo;
use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
use crate::util::{
calculate_transfer_fee_excluded_amount, calculate_transfer_fee_included_amount,
parse_remaining_accounts, AccountsType, RemainingAccountsInfo,
};
use crate::{
constants::transfer_memo,
errors::ErrorCode,
manager::swap_manager::*,
state::Whirlpool,
util::{
to_timestamp_u64, v2::update_and_swap_whirlpool_v2, SparseSwapTickSequenceBuilder,
SwapTickSequence,
},
};
#[derive(Accounts)]
pub struct SwapV2<'info> {
#[account(address = *token_mint_a.to_account_info().owner)]
pub token_program_a: Interface<'info, TokenInterface>,
#[account(address = *token_mint_b.to_account_info().owner)]
pub token_program_b: Interface<'info, TokenInterface>,
pub memo_program: Program<'info, Memo>,
pub token_authority: Signer<'info>,
#[account(mut)]
pub whirlpool: Box<Account<'info, Whirlpool>>,
#[account(address = whirlpool.token_mint_a)]
pub token_mint_a: InterfaceAccount<'info, Mint>,
#[account(address = whirlpool.token_mint_b)]
pub token_mint_b: InterfaceAccount<'info, Mint>,
#[account(mut, constraint = token_owner_account_a.mint == whirlpool.token_mint_a)]
pub token_owner_account_a: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, address = whirlpool.token_vault_a)]
pub token_vault_a: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, constraint = token_owner_account_b.mint == whirlpool.token_mint_b)]
pub token_owner_account_b: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, address = whirlpool.token_vault_b)]
pub token_vault_b: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_0: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_1: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_2: UncheckedAccount<'info>,
#[account(mut, seeds = [b"oracle", whirlpool.key().as_ref()], bump)]
/// CHECK: Oracle is currently unused and will be enabled on subsequent updates
pub oracle: UncheckedAccount<'info>,
// remaining accounts
// - accounts for transfer hook program of token_mint_a
// - accounts for transfer hook program of token_mint_b
// - supplemental TickArray accounts
}
pub fn handler<'info>(
ctx: Context<'_, '_, '_, 'info, SwapV2<'info>>,
amount: u64,
other_amount_threshold: u64,
sqrt_price_limit: u128,
amount_specified_is_input: bool,
a_to_b: bool, // Zero for one
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
let whirlpool = &mut ctx.accounts.whirlpool;
let clock = Clock::get()?;
// Update the global reward growth which increases as a function of time.
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
// Process remaining accounts
let remaining_accounts = parse_remaining_accounts(
ctx.remaining_accounts,
&remaining_accounts_info,
&[
AccountsType::TransferHookA,
AccountsType::TransferHookB,
AccountsType::SupplementalTickArrays,
],
)?;
let builder = SparseSwapTickSequenceBuilder::try_from(
whirlpool,
a_to_b,
vec![
ctx.accounts.tick_array_0.to_account_info(),
ctx.accounts.tick_array_1.to_account_info(),
ctx.accounts.tick_array_2.to_account_info(),
],
remaining_accounts.supplemental_tick_arrays,
)?;
let mut swap_tick_sequence = builder.build()?;
let swap_update = swap_with_transfer_fee_extension(
whirlpool,
&ctx.accounts.token_mint_a,
&ctx.accounts.token_mint_b,
&mut swap_tick_sequence,
amount,
sqrt_price_limit,
amount_specified_is_input,
a_to_b,
timestamp,
)?;
if amount_specified_is_input {
let transfer_fee_excluded_output_amount = if a_to_b {
calculate_transfer_fee_excluded_amount(
&ctx.accounts.token_mint_b,
swap_update.amount_b,
)?
.amount
} else {
calculate_transfer_fee_excluded_amount(
&ctx.accounts.token_mint_a,
swap_update.amount_a,
)?
.amount
};
if transfer_fee_excluded_output_amount < other_amount_threshold {
return Err(ErrorCode::AmountOutBelowMinimum.into());
}
} else {
let transfer_fee_included_input_amount = if a_to_b {
swap_update.amount_a
} else {
swap_update.amount_b
};
if transfer_fee_included_input_amount > other_amount_threshold {
return Err(ErrorCode::AmountInAboveMaximum.into());
}
}
update_and_swap_whirlpool_v2(
whirlpool,
&ctx.accounts.token_authority,
&ctx.accounts.token_mint_a,
&ctx.accounts.token_mint_b,
&ctx.accounts.token_owner_account_a,
&ctx.accounts.token_owner_account_b,
&ctx.accounts.token_vault_a,
&ctx.accounts.token_vault_b,
&remaining_accounts.transfer_hook_a,
&remaining_accounts.transfer_hook_b,
&ctx.accounts.token_program_a,
&ctx.accounts.token_program_b,
&ctx.accounts.memo_program,
swap_update,
a_to_b,
timestamp,
transfer_memo::TRANSFER_MEMO_SWAP.as_bytes(),
)
}
#[allow(clippy::too_many_arguments)]
pub fn swap_with_transfer_fee_extension<'info>(
whirlpool: &Whirlpool,
token_mint_a: &InterfaceAccount<'info, Mint>,
token_mint_b: &InterfaceAccount<'info, Mint>,
swap_tick_sequence: &mut SwapTickSequence,
amount: u64,
sqrt_price_limit: u128,
amount_specified_is_input: bool,
a_to_b: bool,
timestamp: u64,
) -> Result<PostSwapUpdate> {
let (input_token_mint, output_token_mint) = if a_to_b {
(token_mint_a, token_mint_b)
} else {
(token_mint_b, token_mint_a)
};
// ExactIn
if amount_specified_is_input {
let transfer_fee_included_input = amount;
let transfer_fee_excluded_input =
calculate_transfer_fee_excluded_amount(input_token_mint, transfer_fee_included_input)?
.amount;
let swap_update = swap(
whirlpool,
swap_tick_sequence,
transfer_fee_excluded_input,
sqrt_price_limit,
amount_specified_is_input,
a_to_b,
timestamp,
)?;
let (swap_update_amount_input, swap_update_amount_output) = if a_to_b {
(swap_update.amount_a, swap_update.amount_b)
} else {
(swap_update.amount_b, swap_update.amount_a)
};
let fullfilled = swap_update_amount_input == transfer_fee_excluded_input;
let adjusted_transfer_fee_included_input = if fullfilled {
transfer_fee_included_input
} else {
calculate_transfer_fee_included_amount(input_token_mint, swap_update_amount_input)?
.amount
};
let transfer_fee_included_output = swap_update_amount_output;
let (amount_a, amount_b) = if a_to_b {
(
adjusted_transfer_fee_included_input,
transfer_fee_included_output,
)
} else {
(
transfer_fee_included_output,
adjusted_transfer_fee_included_input,
)
};
return Ok(PostSwapUpdate {
amount_a, // updated (transfer fee included)
amount_b, // updated (transfer fee included)
next_liquidity: swap_update.next_liquidity,
next_tick_index: swap_update.next_tick_index,
next_sqrt_price: swap_update.next_sqrt_price,
next_fee_growth_global: swap_update.next_fee_growth_global,
next_reward_infos: swap_update.next_reward_infos,
next_protocol_fee: swap_update.next_protocol_fee,
});
}
// ExactOut
let transfer_fee_excluded_output = amount;
let transfer_fee_included_output =
calculate_transfer_fee_included_amount(output_token_mint, transfer_fee_excluded_output)?
.amount;
let swap_update = swap(
whirlpool,
swap_tick_sequence,
transfer_fee_included_output,
sqrt_price_limit,
amount_specified_is_input,
a_to_b,
timestamp,
)?;
let (swap_update_amount_input, swap_update_amount_output) = if a_to_b {
(swap_update.amount_a, swap_update.amount_b)
} else {
(swap_update.amount_b, swap_update.amount_a)
};
let transfer_fee_included_input =
calculate_transfer_fee_included_amount(input_token_mint, swap_update_amount_input)?.amount;
let adjusted_transfer_fee_included_output = swap_update_amount_output;
let (amount_a, amount_b) = if a_to_b {
(
transfer_fee_included_input,
adjusted_transfer_fee_included_output,
)
} else {
(
adjusted_transfer_fee_included_output,
transfer_fee_included_input,
)
};
Ok(PostSwapUpdate {
amount_a, // updated (transfer fee included)
amount_b, // updated (transfer fee included)
next_liquidity: swap_update.next_liquidity,
next_tick_index: swap_update.next_tick_index,
next_sqrt_price: swap_update.next_sqrt_price,
next_fee_growth_global: swap_update.next_fee_growth_global,
next_reward_infos: swap_update.next_reward_infos,
next_protocol_fee: swap_update.next_protocol_fee,
})
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/decrease_liquidity.rs
|
use anchor_lang::prelude::*;
use crate::constants::transfer_memo;
use crate::errors::ErrorCode;
use crate::manager::liquidity_manager::{
calculate_liquidity_token_deltas, calculate_modify_liquidity, sync_modify_liquidity_values,
};
use crate::math::convert_to_liquidity_delta;
use crate::util::{
calculate_transfer_fee_excluded_amount, parse_remaining_accounts, AccountsType,
RemainingAccountsInfo,
};
use crate::util::{
to_timestamp_u64, v2::transfer_from_vault_to_owner_v2, verify_position_authority_interface,
};
use super::increase_liquidity::ModifyLiquidityV2;
/*
Removes liquidity from an existing Whirlpool Position.
*/
pub fn handler<'info>(
ctx: Context<'_, '_, '_, 'info, ModifyLiquidityV2<'info>>,
liquidity_amount: u128,
token_min_a: u64,
token_min_b: u64,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
verify_position_authority_interface(
&ctx.accounts.position_token_account,
&ctx.accounts.position_authority,
)?;
let clock = Clock::get()?;
if liquidity_amount == 0 {
return Err(ErrorCode::LiquidityZero.into());
}
// Process remaining accounts
let remaining_accounts = parse_remaining_accounts(
ctx.remaining_accounts,
&remaining_accounts_info,
&[AccountsType::TransferHookA, AccountsType::TransferHookB],
)?;
let liquidity_delta = convert_to_liquidity_delta(liquidity_amount, false)?;
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
let update = calculate_modify_liquidity(
&ctx.accounts.whirlpool,
&ctx.accounts.position,
&ctx.accounts.tick_array_lower,
&ctx.accounts.tick_array_upper,
liquidity_delta,
timestamp,
)?;
sync_modify_liquidity_values(
&mut ctx.accounts.whirlpool,
&mut ctx.accounts.position,
&ctx.accounts.tick_array_lower,
&ctx.accounts.tick_array_upper,
update,
timestamp,
)?;
let (delta_a, delta_b) = calculate_liquidity_token_deltas(
ctx.accounts.whirlpool.tick_current_index,
ctx.accounts.whirlpool.sqrt_price,
&ctx.accounts.position,
liquidity_delta,
)?;
let transfer_fee_excluded_delta_a =
calculate_transfer_fee_excluded_amount(&ctx.accounts.token_mint_a, delta_a)?;
let transfer_fee_excluded_delta_b =
calculate_transfer_fee_excluded_amount(&ctx.accounts.token_mint_b, delta_b)?;
// token_min_a and token_min_b should be applied to the transfer fee excluded amount
if transfer_fee_excluded_delta_a.amount < token_min_a {
return Err(ErrorCode::TokenMinSubceeded.into());
}
if transfer_fee_excluded_delta_b.amount < token_min_b {
return Err(ErrorCode::TokenMinSubceeded.into());
}
transfer_from_vault_to_owner_v2(
&ctx.accounts.whirlpool,
&ctx.accounts.token_mint_a,
&ctx.accounts.token_vault_a,
&ctx.accounts.token_owner_account_a,
&ctx.accounts.token_program_a,
&ctx.accounts.memo_program,
&remaining_accounts.transfer_hook_a,
delta_a,
transfer_memo::TRANSFER_MEMO_DECREASE_LIQUIDITY.as_bytes(),
)?;
transfer_from_vault_to_owner_v2(
&ctx.accounts.whirlpool,
&ctx.accounts.token_mint_b,
&ctx.accounts.token_vault_b,
&ctx.accounts.token_owner_account_b,
&ctx.accounts.token_program_b,
&ctx.accounts.memo_program,
&remaining_accounts.transfer_hook_b,
delta_b,
transfer_memo::TRANSFER_MEMO_DECREASE_LIQUIDITY.as_bytes(),
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/collect_fees.rs
|
use anchor_lang::prelude::*;
use anchor_spl::memo::Memo;
use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
use crate::util::{parse_remaining_accounts, AccountsType, RemainingAccountsInfo};
use crate::{
constants::transfer_memo,
state::*,
util::{v2::transfer_from_vault_to_owner_v2, verify_position_authority_interface},
};
#[derive(Accounts)]
pub struct CollectFeesV2<'info> {
pub whirlpool: Box<Account<'info, Whirlpool>>,
pub position_authority: Signer<'info>,
#[account(mut, has_one = whirlpool)]
pub position: Box<Account<'info, Position>>,
#[account(
constraint = position_token_account.mint == position.position_mint,
constraint = position_token_account.amount == 1
)]
pub position_token_account: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(address = whirlpool.token_mint_a)]
pub token_mint_a: InterfaceAccount<'info, Mint>,
#[account(address = whirlpool.token_mint_b)]
pub token_mint_b: InterfaceAccount<'info, Mint>,
#[account(mut, constraint = token_owner_account_a.mint == whirlpool.token_mint_a)]
pub token_owner_account_a: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, address = whirlpool.token_vault_a)]
pub token_vault_a: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, constraint = token_owner_account_b.mint == whirlpool.token_mint_b)]
pub token_owner_account_b: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, address = whirlpool.token_vault_b)]
pub token_vault_b: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(address = *token_mint_a.to_account_info().owner)]
pub token_program_a: Interface<'info, TokenInterface>,
#[account(address = *token_mint_b.to_account_info().owner)]
pub token_program_b: Interface<'info, TokenInterface>,
pub memo_program: Program<'info, Memo>,
// remaining accounts
// - accounts for transfer hook program of token_mint_a
// - accounts for transfer hook program of token_mint_b
}
pub fn handler<'info>(
ctx: Context<'_, '_, '_, 'info, CollectFeesV2<'info>>,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
verify_position_authority_interface(
&ctx.accounts.position_token_account,
&ctx.accounts.position_authority,
)?;
// Process remaining accounts
let remaining_accounts = parse_remaining_accounts(
ctx.remaining_accounts,
&remaining_accounts_info,
&[AccountsType::TransferHookA, AccountsType::TransferHookB],
)?;
let position = &mut ctx.accounts.position;
// Store the fees owed to use as transfer amounts.
let fee_owed_a = position.fee_owed_a;
let fee_owed_b = position.fee_owed_b;
position.reset_fees_owed();
transfer_from_vault_to_owner_v2(
&ctx.accounts.whirlpool,
&ctx.accounts.token_mint_a,
&ctx.accounts.token_vault_a,
&ctx.accounts.token_owner_account_a,
&ctx.accounts.token_program_a,
&ctx.accounts.memo_program,
&remaining_accounts.transfer_hook_a,
fee_owed_a,
transfer_memo::TRANSFER_MEMO_COLLECT_FEES.as_bytes(),
)?;
transfer_from_vault_to_owner_v2(
&ctx.accounts.whirlpool,
&ctx.accounts.token_mint_b,
&ctx.accounts.token_vault_b,
&ctx.accounts.token_owner_account_b,
&ctx.accounts.token_program_b,
&ctx.accounts.memo_program,
&remaining_accounts.transfer_hook_b,
fee_owed_b,
transfer_memo::TRANSFER_MEMO_COLLECT_FEES.as_bytes(),
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/increase_liquidity.rs
|
use anchor_lang::prelude::*;
use anchor_spl::memo::Memo;
use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
use crate::errors::ErrorCode;
use crate::manager::liquidity_manager::{
calculate_liquidity_token_deltas, calculate_modify_liquidity, sync_modify_liquidity_values,
};
use crate::math::convert_to_liquidity_delta;
use crate::state::*;
use crate::util::{
calculate_transfer_fee_included_amount, parse_remaining_accounts, AccountsType,
RemainingAccountsInfo,
};
use crate::util::{
to_timestamp_u64, v2::transfer_from_owner_to_vault_v2, verify_position_authority_interface,
};
#[derive(Accounts)]
pub struct ModifyLiquidityV2<'info> {
#[account(mut)]
pub whirlpool: Account<'info, Whirlpool>,
#[account(address = *token_mint_a.to_account_info().owner)]
pub token_program_a: Interface<'info, TokenInterface>,
#[account(address = *token_mint_b.to_account_info().owner)]
pub token_program_b: Interface<'info, TokenInterface>,
pub memo_program: Program<'info, Memo>,
pub position_authority: Signer<'info>,
#[account(mut, has_one = whirlpool)]
pub position: Account<'info, Position>,
#[account(
constraint = position_token_account.mint == position.position_mint,
constraint = position_token_account.amount == 1
)]
pub position_token_account: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(address = whirlpool.token_mint_a)]
pub token_mint_a: InterfaceAccount<'info, Mint>,
#[account(address = whirlpool.token_mint_b)]
pub token_mint_b: InterfaceAccount<'info, Mint>,
#[account(mut, constraint = token_owner_account_a.mint == whirlpool.token_mint_a)]
pub token_owner_account_a: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, constraint = token_owner_account_b.mint == whirlpool.token_mint_b)]
pub token_owner_account_b: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, constraint = token_vault_a.key() == whirlpool.token_vault_a)]
pub token_vault_a: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, constraint = token_vault_b.key() == whirlpool.token_vault_b)]
pub token_vault_b: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, has_one = whirlpool)]
pub tick_array_lower: AccountLoader<'info, TickArray>,
#[account(mut, has_one = whirlpool)]
pub tick_array_upper: AccountLoader<'info, TickArray>,
// remaining accounts
// - accounts for transfer hook program of token_mint_a
// - accounts for transfer hook program of token_mint_b
}
pub fn handler<'info>(
ctx: Context<'_, '_, '_, 'info, ModifyLiquidityV2<'info>>,
liquidity_amount: u128,
token_max_a: u64,
token_max_b: u64,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
verify_position_authority_interface(
&ctx.accounts.position_token_account,
&ctx.accounts.position_authority,
)?;
let clock = Clock::get()?;
if liquidity_amount == 0 {
return Err(ErrorCode::LiquidityZero.into());
}
// Process remaining accounts
let remaining_accounts = parse_remaining_accounts(
ctx.remaining_accounts,
&remaining_accounts_info,
&[AccountsType::TransferHookA, AccountsType::TransferHookB],
)?;
let liquidity_delta = convert_to_liquidity_delta(liquidity_amount, true)?;
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
let update = calculate_modify_liquidity(
&ctx.accounts.whirlpool,
&ctx.accounts.position,
&ctx.accounts.tick_array_lower,
&ctx.accounts.tick_array_upper,
liquidity_delta,
timestamp,
)?;
sync_modify_liquidity_values(
&mut ctx.accounts.whirlpool,
&mut ctx.accounts.position,
&ctx.accounts.tick_array_lower,
&ctx.accounts.tick_array_upper,
update,
timestamp,
)?;
let (delta_a, delta_b) = calculate_liquidity_token_deltas(
ctx.accounts.whirlpool.tick_current_index,
ctx.accounts.whirlpool.sqrt_price,
&ctx.accounts.position,
liquidity_delta,
)?;
let transfer_fee_included_delta_a =
calculate_transfer_fee_included_amount(&ctx.accounts.token_mint_a, delta_a)?;
let transfer_fee_included_delta_b =
calculate_transfer_fee_included_amount(&ctx.accounts.token_mint_b, delta_b)?;
// token_max_a and token_max_b should be applied to the transfer fee included amount
if transfer_fee_included_delta_a.amount > token_max_a {
return Err(ErrorCode::TokenMaxExceeded.into());
}
if transfer_fee_included_delta_b.amount > token_max_b {
return Err(ErrorCode::TokenMaxExceeded.into());
}
transfer_from_owner_to_vault_v2(
&ctx.accounts.position_authority,
&ctx.accounts.token_mint_a,
&ctx.accounts.token_owner_account_a,
&ctx.accounts.token_vault_a,
&ctx.accounts.token_program_a,
&ctx.accounts.memo_program,
&remaining_accounts.transfer_hook_a,
transfer_fee_included_delta_a.amount,
)?;
transfer_from_owner_to_vault_v2(
&ctx.accounts.position_authority,
&ctx.accounts.token_mint_b,
&ctx.accounts.token_owner_account_b,
&ctx.accounts.token_vault_b,
&ctx.accounts.token_program_b,
&ctx.accounts.memo_program,
&remaining_accounts.transfer_hook_b,
transfer_fee_included_delta_b.amount,
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/two_hop_swap.rs
|
use anchor_lang::prelude::*;
use anchor_spl::memo::Memo;
use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
use crate::swap_with_transfer_fee_extension;
use crate::util::{
calculate_transfer_fee_excluded_amount, parse_remaining_accounts,
update_and_two_hop_swap_whirlpool_v2, AccountsType, RemainingAccountsInfo,
};
use crate::{
constants::transfer_memo,
errors::ErrorCode,
state::Whirlpool,
util::{to_timestamp_u64, SparseSwapTickSequenceBuilder},
};
#[derive(Accounts)]
#[instruction(
amount: u64,
other_amount_threshold: u64,
amount_specified_is_input: bool,
a_to_b_one: bool,
a_to_b_two: bool,
)]
pub struct TwoHopSwapV2<'info> {
#[account(mut)]
pub whirlpool_one: Box<Account<'info, Whirlpool>>,
#[account(mut)]
pub whirlpool_two: Box<Account<'info, Whirlpool>>,
#[account(address = whirlpool_one.input_token_mint(a_to_b_one))]
pub token_mint_input: InterfaceAccount<'info, Mint>,
#[account(address = whirlpool_one.output_token_mint(a_to_b_one))]
pub token_mint_intermediate: InterfaceAccount<'info, Mint>,
#[account(address = whirlpool_two.output_token_mint(a_to_b_two))]
pub token_mint_output: InterfaceAccount<'info, Mint>,
#[account(address = *token_mint_input.to_account_info().owner)]
pub token_program_input: Interface<'info, TokenInterface>,
#[account(address = *token_mint_intermediate.to_account_info().owner)]
pub token_program_intermediate: Interface<'info, TokenInterface>,
#[account(address = *token_mint_output.to_account_info().owner)]
pub token_program_output: Interface<'info, TokenInterface>,
#[account(mut, constraint = token_owner_account_input.mint == token_mint_input.key())]
pub token_owner_account_input: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, address = whirlpool_one.input_token_vault(a_to_b_one))]
pub token_vault_one_input: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, address = whirlpool_one.output_token_vault(a_to_b_one))]
pub token_vault_one_intermediate: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, address = whirlpool_two.input_token_vault(a_to_b_two))]
pub token_vault_two_intermediate: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, address = whirlpool_two.output_token_vault(a_to_b_two))]
pub token_vault_two_output: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut, constraint = token_owner_account_output.mint == token_mint_output.key())]
pub token_owner_account_output: Box<InterfaceAccount<'info, TokenAccount>>,
pub token_authority: Signer<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_one_0: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_one_1: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_one_2: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_two_0: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_two_1: UncheckedAccount<'info>,
#[account(mut)]
/// CHECK: checked in the handler
pub tick_array_two_2: UncheckedAccount<'info>,
#[account(mut, seeds = [b"oracle", whirlpool_one.key().as_ref()], bump)]
/// CHECK: Oracle is currently unused and will be enabled on subsequent updates
pub oracle_one: UncheckedAccount<'info>,
#[account(mut, seeds = [b"oracle", whirlpool_two.key().as_ref()], bump)]
/// CHECK: Oracle is currently unused and will be enabled on subsequent updates
pub oracle_two: UncheckedAccount<'info>,
pub memo_program: Program<'info, Memo>,
// remaining accounts
// - accounts for transfer hook program of token_mint_input
// - accounts for transfer hook program of token_mint_intermediate
// - accounts for transfer hook program of token_mint_output
// - supplemental TickArray accounts for whirlpool_one
// - supplemental TickArray accounts for whirlpool_two
}
#[allow(clippy::too_many_arguments)]
pub fn handler<'info>(
ctx: Context<'_, '_, '_, 'info, TwoHopSwapV2<'info>>,
amount: u64,
other_amount_threshold: u64,
amount_specified_is_input: bool,
a_to_b_one: bool,
a_to_b_two: bool,
sqrt_price_limit_one: u128,
sqrt_price_limit_two: u128,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
let clock = Clock::get()?;
// Update the global reward growth which increases as a function of time.
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
let whirlpool_one = &mut ctx.accounts.whirlpool_one;
let whirlpool_two = &mut ctx.accounts.whirlpool_two;
// Don't allow swaps on the same whirlpool
if whirlpool_one.key() == whirlpool_two.key() {
return Err(ErrorCode::DuplicateTwoHopPool.into());
}
let swap_one_output_mint = if a_to_b_one {
whirlpool_one.token_mint_b
} else {
whirlpool_one.token_mint_a
};
let swap_two_input_mint = if a_to_b_two {
whirlpool_two.token_mint_a
} else {
whirlpool_two.token_mint_b
};
if swap_one_output_mint != swap_two_input_mint {
return Err(ErrorCode::InvalidIntermediaryMint.into());
}
// Process remaining accounts
let remaining_accounts = parse_remaining_accounts(
ctx.remaining_accounts,
&remaining_accounts_info,
&[
AccountsType::TransferHookInput,
AccountsType::TransferHookIntermediate,
AccountsType::TransferHookOutput,
AccountsType::SupplementalTickArraysOne,
AccountsType::SupplementalTickArraysTwo,
],
)?;
let builder_one = SparseSwapTickSequenceBuilder::try_from(
whirlpool_one,
a_to_b_one,
vec![
ctx.accounts.tick_array_one_0.to_account_info(),
ctx.accounts.tick_array_one_1.to_account_info(),
ctx.accounts.tick_array_one_2.to_account_info(),
],
remaining_accounts.supplemental_tick_arrays_one,
)?;
let mut swap_tick_sequence_one = builder_one.build()?;
let builder_two = SparseSwapTickSequenceBuilder::try_from(
whirlpool_two,
a_to_b_two,
vec![
ctx.accounts.tick_array_two_0.to_account_info(),
ctx.accounts.tick_array_two_1.to_account_info(),
ctx.accounts.tick_array_two_2.to_account_info(),
],
remaining_accounts.supplemental_tick_arrays_two,
)?;
let mut swap_tick_sequence_two = builder_two.build()?;
// TODO: WLOG, we could extend this to N-swaps, but the account inputs to the instruction would
// need to be jankier and we may need to programatically map/verify rather than using anchor constraints
let (swap_update_one, swap_update_two) = if amount_specified_is_input {
// If the amount specified is input, this means we are doing exact-in
// and the swap calculations occur from Swap 1 => Swap 2
// and the swaps occur from Swap 1 => Swap 2
let swap_calc_one = swap_with_transfer_fee_extension(
whirlpool_one,
if a_to_b_one {
&ctx.accounts.token_mint_input
} else {
&ctx.accounts.token_mint_intermediate
},
if a_to_b_one {
&ctx.accounts.token_mint_intermediate
} else {
&ctx.accounts.token_mint_input
},
&mut swap_tick_sequence_one,
amount,
sqrt_price_limit_one,
amount_specified_is_input, // true
a_to_b_one,
timestamp,
)?;
// Swap two input is the output of swap one
// We use vault to vault transfer, so transfer fee will be collected once.
let swap_two_input_amount = if a_to_b_one {
swap_calc_one.amount_b
} else {
swap_calc_one.amount_a
};
let swap_calc_two = swap_with_transfer_fee_extension(
whirlpool_two,
if a_to_b_two {
&ctx.accounts.token_mint_intermediate
} else {
&ctx.accounts.token_mint_output
},
if a_to_b_two {
&ctx.accounts.token_mint_output
} else {
&ctx.accounts.token_mint_intermediate
},
&mut swap_tick_sequence_two,
swap_two_input_amount,
sqrt_price_limit_two,
amount_specified_is_input, // true
a_to_b_two,
timestamp,
)?;
(swap_calc_one, swap_calc_two)
} else {
// If the amount specified is output, this means we need to invert the ordering of the calculations
// and the swap calculations occur from Swap 2 => Swap 1
// but the actual swaps occur from Swap 1 => Swap 2 (to ensure that the intermediate token exists in the account)
let swap_calc_two = swap_with_transfer_fee_extension(
whirlpool_two,
if a_to_b_two {
&ctx.accounts.token_mint_intermediate
} else {
&ctx.accounts.token_mint_output
},
if a_to_b_two {
&ctx.accounts.token_mint_output
} else {
&ctx.accounts.token_mint_intermediate
},
&mut swap_tick_sequence_two,
amount,
sqrt_price_limit_two,
amount_specified_is_input, // false
a_to_b_two,
timestamp,
)?;
// The output of swap 1 is input of swap_calc_two
let swap_one_output_amount = if a_to_b_two {
calculate_transfer_fee_excluded_amount(
&ctx.accounts.token_mint_intermediate,
swap_calc_two.amount_a,
)?
.amount
} else {
calculate_transfer_fee_excluded_amount(
&ctx.accounts.token_mint_intermediate,
swap_calc_two.amount_b,
)?
.amount
};
let swap_calc_one = swap_with_transfer_fee_extension(
whirlpool_one,
if a_to_b_one {
&ctx.accounts.token_mint_input
} else {
&ctx.accounts.token_mint_intermediate
},
if a_to_b_one {
&ctx.accounts.token_mint_intermediate
} else {
&ctx.accounts.token_mint_input
},
&mut swap_tick_sequence_one,
swap_one_output_amount,
sqrt_price_limit_one,
amount_specified_is_input, // false
a_to_b_one,
timestamp,
)?;
(swap_calc_one, swap_calc_two)
};
// All output token should be consumed by the second swap
let swap_calc_one_output = if a_to_b_one {
swap_update_one.amount_b
} else {
swap_update_one.amount_a
};
let swap_calc_two_input = if a_to_b_two {
swap_update_two.amount_a
} else {
swap_update_two.amount_b
};
if swap_calc_one_output != swap_calc_two_input {
return Err(ErrorCode::IntermediateTokenAmountMismatch.into());
}
if amount_specified_is_input {
// If amount_specified_is_input == true, then we have a variable amount of output
// The slippage we care about is the output of the second swap.
let output_amount = if a_to_b_two {
calculate_transfer_fee_excluded_amount(
&ctx.accounts.token_mint_output,
swap_update_two.amount_b,
)?
.amount
} else {
calculate_transfer_fee_excluded_amount(
&ctx.accounts.token_mint_output,
swap_update_two.amount_a,
)?
.amount
};
// If we have received less than the minimum out, throw an error
if output_amount < other_amount_threshold {
return Err(ErrorCode::AmountOutBelowMinimum.into());
}
} else {
// amount_specified_is_output == false, then we have a variable amount of input
// The slippage we care about is the input of the first swap
let input_amount = if a_to_b_one {
swap_update_one.amount_a
} else {
swap_update_one.amount_b
};
if input_amount > other_amount_threshold {
return Err(ErrorCode::AmountInAboveMaximum.into());
}
}
/*
update_and_swap_whirlpool_v2(
whirlpool_one,
&ctx.accounts.token_authority,
&ctx.accounts.token_mint_one_a,
&ctx.accounts.token_mint_one_b,
&ctx.accounts.token_owner_account_one_a,
&ctx.accounts.token_owner_account_one_b,
&ctx.accounts.token_vault_one_a,
&ctx.accounts.token_vault_one_b,
&remaining_accounts.transfer_hook_one_a,
&remaining_accounts.transfer_hook_one_b,
&ctx.accounts.token_program_one_a,
&ctx.accounts.token_program_one_b,
&ctx.accounts.memo_program,
swap_update_one,
a_to_b_one,
timestamp,
transfer_memo::TRANSFER_MEMO_SWAP.as_bytes(),
)?;
update_and_swap_whirlpool_v2(
whirlpool_two,
&ctx.accounts.token_authority,
&ctx.accounts.token_mint_two_a,
&ctx.accounts.token_mint_two_b,
&ctx.accounts.token_owner_account_two_a,
&ctx.accounts.token_owner_account_two_b,
&ctx.accounts.token_vault_two_a,
&ctx.accounts.token_vault_two_b,
&remaining_accounts.transfer_hook_two_a,
&remaining_accounts.transfer_hook_two_b,
&ctx.accounts.token_program_two_a,
&ctx.accounts.token_program_two_b,
&ctx.accounts.memo_program,
swap_update_two,
a_to_b_two,
timestamp,
transfer_memo::TRANSFER_MEMO_SWAP.as_bytes(),
)
*/
update_and_two_hop_swap_whirlpool_v2(
swap_update_one,
swap_update_two,
whirlpool_one,
whirlpool_two,
a_to_b_one,
a_to_b_two,
&ctx.accounts.token_mint_input,
&ctx.accounts.token_mint_intermediate,
&ctx.accounts.token_mint_output,
&ctx.accounts.token_program_input,
&ctx.accounts.token_program_intermediate,
&ctx.accounts.token_program_output,
&ctx.accounts.token_owner_account_input,
&ctx.accounts.token_vault_one_input,
&ctx.accounts.token_vault_one_intermediate,
&ctx.accounts.token_vault_two_intermediate,
&ctx.accounts.token_vault_two_output,
&ctx.accounts.token_owner_account_output,
&remaining_accounts.transfer_hook_input,
&remaining_accounts.transfer_hook_intermediate,
&remaining_accounts.transfer_hook_output,
&ctx.accounts.token_authority,
&ctx.accounts.memo_program,
timestamp,
transfer_memo::TRANSFER_MEMO_SWAP.as_bytes(),
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/collect_reward.rs
|
use anchor_lang::prelude::*;
use anchor_spl::memo::Memo;
use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
use crate::util::{parse_remaining_accounts, AccountsType, RemainingAccountsInfo};
use crate::{
constants::transfer_memo,
state::*,
util::{v2::transfer_from_vault_to_owner_v2, verify_position_authority_interface},
};
#[derive(Accounts)]
#[instruction(reward_index: u8)]
pub struct CollectRewardV2<'info> {
pub whirlpool: Box<Account<'info, Whirlpool>>,
pub position_authority: Signer<'info>,
#[account(mut, has_one = whirlpool)]
pub position: Box<Account<'info, Position>>,
#[account(
constraint = position_token_account.mint == position.position_mint,
constraint = position_token_account.amount == 1
)]
pub position_token_account: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(mut,
constraint = reward_owner_account.mint == whirlpool.reward_infos[reward_index as usize].mint
)]
pub reward_owner_account: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(address = whirlpool.reward_infos[reward_index as usize].mint)]
pub reward_mint: Box<InterfaceAccount<'info, Mint>>,
#[account(mut, address = whirlpool.reward_infos[reward_index as usize].vault)]
pub reward_vault: Box<InterfaceAccount<'info, TokenAccount>>,
#[account(address = *reward_mint.to_account_info().owner)]
pub reward_token_program: Interface<'info, TokenInterface>,
pub memo_program: Program<'info, Memo>,
// remaining accounts
// - accounts for transfer hook program of reward_mint
}
/// Collects all harvestable tokens for a specified reward.
///
/// If the Whirlpool reward vault does not have enough tokens, the maximum number of available
/// tokens will be debited to the user. The unharvested amount remains tracked, and it can be
/// harvested in the future.
///
/// # Parameters
/// - `reward_index` - The reward to harvest. Acceptable values are 0, 1, and 2.
///
/// # Returns
/// - `Ok`: Reward tokens at the specified reward index have been successfully harvested
/// - `Err`: `RewardNotInitialized` if the specified reward has not been initialized
/// `InvalidRewardIndex` if the reward index is not 0, 1, or 2
pub fn handler<'info>(
ctx: Context<'_, '_, '_, 'info, CollectRewardV2<'info>>,
reward_index: u8,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
verify_position_authority_interface(
&ctx.accounts.position_token_account,
&ctx.accounts.position_authority,
)?;
// Process remaining accounts
let remaining_accounts = parse_remaining_accounts(
ctx.remaining_accounts,
&remaining_accounts_info,
&[AccountsType::TransferHookReward],
)?;
let index = reward_index as usize;
let position = &mut ctx.accounts.position;
let (transfer_amount, updated_amount_owed) = calculate_collect_reward(
position.reward_infos[index],
ctx.accounts.reward_vault.amount,
);
position.update_reward_owed(index, updated_amount_owed);
transfer_from_vault_to_owner_v2(
&ctx.accounts.whirlpool,
&ctx.accounts.reward_mint,
&ctx.accounts.reward_vault,
&ctx.accounts.reward_owner_account,
&ctx.accounts.reward_token_program,
&ctx.accounts.memo_program,
&remaining_accounts.transfer_hook_reward,
transfer_amount,
transfer_memo::TRANSFER_MEMO_COLLECT_REWARD.as_bytes(),
)
}
// TODO: refactor (remove (dup))
fn calculate_collect_reward(position_reward: PositionRewardInfo, vault_amount: u64) -> (u64, u64) {
let amount_owed = position_reward.amount_owed;
let (transfer_amount, updated_amount_owed) = if amount_owed > vault_amount {
(vault_amount, amount_owed - vault_amount)
} else {
(amount_owed, 0)
};
(transfer_amount, updated_amount_owed)
}
#[cfg(test)]
mod unit_tests {
use super::calculate_collect_reward;
use crate::state::PositionRewardInfo;
#[test]
fn test_calculate_collect_reward_vault_insufficient_tokens() {
let (transfer_amount, updated_amount_owed) =
calculate_collect_reward(position_reward(10), 1);
assert_eq!(transfer_amount, 1);
assert_eq!(updated_amount_owed, 9);
}
#[test]
fn test_calculate_collect_reward_vault_sufficient_tokens() {
let (transfer_amount, updated_amount_owed) =
calculate_collect_reward(position_reward(10), 10);
assert_eq!(transfer_amount, 10);
assert_eq!(updated_amount_owed, 0);
}
fn position_reward(amount_owed: u64) -> PositionRewardInfo {
PositionRewardInfo {
amount_owed,
..Default::default()
}
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/collect_protocol_fees.rs
|
use crate::util::{parse_remaining_accounts, AccountsType, RemainingAccountsInfo};
use crate::{constants::transfer_memo, state::*, util::v2::transfer_from_vault_to_owner_v2};
use anchor_lang::prelude::*;
use anchor_spl::memo::Memo;
use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
#[derive(Accounts)]
pub struct CollectProtocolFeesV2<'info> {
pub whirlpools_config: Box<Account<'info, WhirlpoolsConfig>>,
#[account(mut, has_one = whirlpools_config)]
pub whirlpool: Box<Account<'info, Whirlpool>>,
#[account(address = whirlpools_config.collect_protocol_fees_authority)]
pub collect_protocol_fees_authority: Signer<'info>,
#[account(address = whirlpool.token_mint_a)]
pub token_mint_a: InterfaceAccount<'info, Mint>,
#[account(address = whirlpool.token_mint_b)]
pub token_mint_b: InterfaceAccount<'info, Mint>,
#[account(mut, address = whirlpool.token_vault_a)]
pub token_vault_a: InterfaceAccount<'info, TokenAccount>,
#[account(mut, address = whirlpool.token_vault_b)]
pub token_vault_b: InterfaceAccount<'info, TokenAccount>,
#[account(mut, constraint = token_destination_a.mint == whirlpool.token_mint_a)]
pub token_destination_a: InterfaceAccount<'info, TokenAccount>,
#[account(mut, constraint = token_destination_b.mint == whirlpool.token_mint_b)]
pub token_destination_b: InterfaceAccount<'info, TokenAccount>,
#[account(address = *token_mint_a.to_account_info().owner)]
pub token_program_a: Interface<'info, TokenInterface>,
#[account(address = *token_mint_b.to_account_info().owner)]
pub token_program_b: Interface<'info, TokenInterface>,
pub memo_program: Program<'info, Memo>,
// remaining accounts
// - accounts for transfer hook program of token_mint_a
// - accounts for transfer hook program of token_mint_b
}
pub fn handler<'info>(
ctx: Context<'_, '_, '_, 'info, CollectProtocolFeesV2<'info>>,
remaining_accounts_info: Option<RemainingAccountsInfo>,
) -> Result<()> {
let whirlpool = &ctx.accounts.whirlpool;
// Process remaining accounts
let remaining_accounts = parse_remaining_accounts(
ctx.remaining_accounts,
&remaining_accounts_info,
&[AccountsType::TransferHookA, AccountsType::TransferHookB],
)?;
transfer_from_vault_to_owner_v2(
whirlpool,
&ctx.accounts.token_mint_a,
&ctx.accounts.token_vault_a,
&ctx.accounts.token_destination_a,
&ctx.accounts.token_program_a,
&ctx.accounts.memo_program,
&remaining_accounts.transfer_hook_a,
whirlpool.protocol_fee_owed_a,
transfer_memo::TRANSFER_MEMO_COLLECT_PROTOCOL_FEES.as_bytes(),
)?;
transfer_from_vault_to_owner_v2(
whirlpool,
&ctx.accounts.token_mint_b,
&ctx.accounts.token_vault_b,
&ctx.accounts.token_destination_b,
&ctx.accounts.token_program_b,
&ctx.accounts.memo_program,
&remaining_accounts.transfer_hook_b,
whirlpool.protocol_fee_owed_b,
transfer_memo::TRANSFER_MEMO_COLLECT_PROTOCOL_FEES.as_bytes(),
)?;
ctx.accounts.whirlpool.reset_protocol_fees_owed();
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/mod.rs
|
#![allow(ambiguous_glob_reexports)]
pub mod collect_fees;
pub mod collect_protocol_fees;
pub mod collect_reward;
pub mod decrease_liquidity;
pub mod increase_liquidity;
pub mod initialize_pool;
pub mod initialize_reward;
pub mod set_reward_emissions;
pub mod swap;
pub mod two_hop_swap;
pub mod delete_token_badge;
pub mod initialize_config_extension;
pub mod initialize_token_badge;
pub mod set_config_extension_authority;
pub mod set_token_badge_authority;
pub use collect_fees::*;
pub use collect_protocol_fees::*;
pub use collect_reward::*;
pub use increase_liquidity::*;
pub use initialize_pool::*;
pub use initialize_reward::*;
pub use set_reward_emissions::*;
pub use swap::*;
pub use two_hop_swap::*;
pub use delete_token_badge::*;
pub use initialize_config_extension::*;
pub use initialize_token_badge::*;
pub use set_config_extension_authority::*;
pub use set_token_badge_authority::*;
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/initialize_token_badge.rs
|
use crate::state::*;
use anchor_lang::prelude::*;
use anchor_spl::token_interface::Mint;
#[derive(Accounts)]
pub struct InitializeTokenBadge<'info> {
pub whirlpools_config: Box<Account<'info, WhirlpoolsConfig>>,
#[account(has_one = whirlpools_config)]
pub whirlpools_config_extension: Box<Account<'info, WhirlpoolsConfigExtension>>,
#[account(address = whirlpools_config_extension.token_badge_authority)]
pub token_badge_authority: Signer<'info>,
pub token_mint: InterfaceAccount<'info, Mint>,
#[account(init,
payer = funder,
seeds = [
b"token_badge",
whirlpools_config.key().as_ref(),
token_mint.key().as_ref(),
],
bump,
space = TokenBadge::LEN)]
pub token_badge: Account<'info, TokenBadge>,
#[account(mut)]
pub funder: Signer<'info>,
pub system_program: Program<'info, System>,
}
pub fn handler(ctx: Context<InitializeTokenBadge>) -> Result<()> {
ctx.accounts.token_badge.initialize(
ctx.accounts.whirlpools_config.key(),
ctx.accounts.token_mint.key(),
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/initialize_config_extension.rs
|
use crate::state::*;
use anchor_lang::prelude::*;
#[derive(Accounts)]
pub struct InitializeConfigExtension<'info> {
pub config: Box<Account<'info, WhirlpoolsConfig>>,
#[account(init,
payer = funder,
seeds = [
b"config_extension",
config.key().as_ref(),
],
bump,
space = WhirlpoolsConfigExtension::LEN)]
pub config_extension: Account<'info, WhirlpoolsConfigExtension>,
#[account(mut)]
pub funder: Signer<'info>,
// fee_authority can initialize config extension
#[account(address = config.fee_authority)]
pub fee_authority: Signer<'info>,
pub system_program: Program<'info, System>,
}
pub fn handler(ctx: Context<InitializeConfigExtension>) -> Result<()> {
ctx.accounts
.config_extension
.initialize(ctx.accounts.config.key(), ctx.accounts.fee_authority.key())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/set_reward_emissions.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token_interface::TokenAccount;
use crate::errors::ErrorCode;
use crate::manager::whirlpool_manager::next_whirlpool_reward_infos;
use crate::math::checked_mul_shift_right;
use crate::state::Whirlpool;
use crate::util::to_timestamp_u64;
const DAY_IN_SECONDS: u128 = 60 * 60 * 24;
#[derive(Accounts)]
#[instruction(reward_index: u8)]
pub struct SetRewardEmissionsV2<'info> {
#[account(mut)]
pub whirlpool: Account<'info, Whirlpool>,
#[account(address = whirlpool.reward_infos[reward_index as usize].authority)]
pub reward_authority: Signer<'info>,
#[account(address = whirlpool.reward_infos[reward_index as usize].vault)]
pub reward_vault: InterfaceAccount<'info, TokenAccount>,
}
pub fn handler(
ctx: Context<SetRewardEmissionsV2>,
reward_index: u8,
emissions_per_second_x64: u128,
) -> Result<()> {
let whirlpool = &ctx.accounts.whirlpool;
let reward_vault = &ctx.accounts.reward_vault;
let emissions_per_day = checked_mul_shift_right(DAY_IN_SECONDS, emissions_per_second_x64)?;
if reward_vault.amount < emissions_per_day {
return Err(ErrorCode::RewardVaultAmountInsufficient.into());
}
let clock = Clock::get()?;
let timestamp = to_timestamp_u64(clock.unix_timestamp)?;
let next_reward_infos = next_whirlpool_reward_infos(whirlpool, timestamp)?;
ctx.accounts.whirlpool.update_emissions(
reward_index as usize,
next_reward_infos,
timestamp,
emissions_per_second_x64,
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/instructions/v2/delete_token_badge.rs
|
use crate::state::*;
use anchor_lang::prelude::*;
use anchor_spl::token_interface::Mint;
#[derive(Accounts)]
pub struct DeleteTokenBadge<'info> {
pub whirlpools_config: Box<Account<'info, WhirlpoolsConfig>>,
#[account(has_one = whirlpools_config)]
pub whirlpools_config_extension: Box<Account<'info, WhirlpoolsConfigExtension>>,
#[account(address = whirlpools_config_extension.token_badge_authority)]
pub token_badge_authority: Signer<'info>,
pub token_mint: InterfaceAccount<'info, Mint>,
#[account(
mut,
seeds = [
b"token_badge",
whirlpools_config.key().as_ref(),
token_mint.key().as_ref(),
],
bump,
has_one = whirlpools_config,
close = receiver
)]
pub token_badge: Account<'info, TokenBadge>,
/// CHECK: safe, for receiving rent only
#[account(mut)]
pub receiver: UncheckedAccount<'info>,
}
pub fn handler(_ctx: Context<DeleteTokenBadge>) -> Result<()> {
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/token.rs
|
use crate::state::{PositionBundle, Whirlpool};
use anchor_lang::prelude::*;
use anchor_spl::metadata::{self, mpl_token_metadata::types::DataV2, CreateMetadataAccountsV3};
use anchor_spl::token::{self, Mint, Token, TokenAccount, Transfer};
use solana_program::program::invoke_signed;
use spl_token::instruction::{burn_checked, close_account, mint_to, set_authority, AuthorityType};
use crate::constants::nft::{
WPB_METADATA_NAME_PREFIX, WPB_METADATA_SYMBOL, WPB_METADATA_URI, WP_METADATA_NAME,
WP_METADATA_SYMBOL, WP_METADATA_URI,
};
pub fn transfer_from_owner_to_vault<'info>(
position_authority: &Signer<'info>,
token_owner_account: &Account<'info, TokenAccount>,
token_vault: &Account<'info, TokenAccount>,
token_program: &Program<'info, Token>,
amount: u64,
) -> Result<()> {
token::transfer(
CpiContext::new(
token_program.to_account_info(),
Transfer {
from: token_owner_account.to_account_info(),
to: token_vault.to_account_info(),
authority: position_authority.to_account_info(),
},
),
amount,
)
}
pub fn transfer_from_vault_to_owner<'info>(
whirlpool: &Account<'info, Whirlpool>,
token_vault: &Account<'info, TokenAccount>,
token_owner_account: &Account<'info, TokenAccount>,
token_program: &Program<'info, Token>,
amount: u64,
) -> Result<()> {
token::transfer(
CpiContext::new_with_signer(
token_program.to_account_info(),
Transfer {
from: token_vault.to_account_info(),
to: token_owner_account.to_account_info(),
authority: whirlpool.to_account_info(),
},
&[&whirlpool.seeds()],
),
amount,
)
}
pub fn burn_and_close_user_position_token<'info>(
token_authority: &Signer<'info>,
receiver: &UncheckedAccount<'info>,
position_mint: &Account<'info, Mint>,
position_token_account: &Account<'info, TokenAccount>,
token_program: &Program<'info, Token>,
) -> Result<()> {
// Burn a single token in user account
invoke_signed(
&burn_checked(
token_program.key,
position_token_account.to_account_info().key,
position_mint.to_account_info().key,
token_authority.key,
&[],
1,
position_mint.decimals,
)?,
&[
token_program.to_account_info(),
position_token_account.to_account_info(),
position_mint.to_account_info(),
token_authority.to_account_info(),
],
&[],
)?;
// Close user account
invoke_signed(
&close_account(
token_program.key,
position_token_account.to_account_info().key,
receiver.key,
token_authority.key,
&[],
)?,
&[
token_program.to_account_info(),
position_token_account.to_account_info(),
receiver.to_account_info(),
token_authority.to_account_info(),
],
&[],
)?;
Ok(())
}
pub fn mint_position_token_and_remove_authority<'info>(
whirlpool: &Account<'info, Whirlpool>,
position_mint: &Account<'info, Mint>,
position_token_account: &Account<'info, TokenAccount>,
token_program: &Program<'info, Token>,
) -> Result<()> {
mint_position_token(
whirlpool,
position_mint,
position_token_account,
token_program,
)?;
remove_position_token_mint_authority(whirlpool, position_mint, token_program)
}
#[allow(clippy::too_many_arguments)]
pub fn mint_position_token_with_metadata_and_remove_authority<'info>(
whirlpool: &Account<'info, Whirlpool>,
position_mint: &Account<'info, Mint>,
position_token_account: &Account<'info, TokenAccount>,
position_metadata_account: &UncheckedAccount<'info>,
metadata_update_auth: &UncheckedAccount<'info>,
funder: &Signer<'info>,
metadata_program: &Program<'info, metadata::Metadata>,
token_program: &Program<'info, Token>,
system_program: &Program<'info, System>,
rent: &Sysvar<'info, Rent>,
) -> Result<()> {
mint_position_token(
whirlpool,
position_mint,
position_token_account,
token_program,
)?;
let metadata_mint_auth_account = whirlpool;
metadata::create_metadata_accounts_v3(
CpiContext::new_with_signer(
metadata_program.to_account_info(),
CreateMetadataAccountsV3 {
metadata: position_metadata_account.to_account_info(),
mint: position_mint.to_account_info(),
mint_authority: metadata_mint_auth_account.to_account_info(),
update_authority: metadata_update_auth.to_account_info(),
payer: funder.to_account_info(),
rent: rent.to_account_info(),
system_program: system_program.to_account_info(),
},
&[&metadata_mint_auth_account.seeds()],
),
DataV2 {
name: WP_METADATA_NAME.to_string(),
symbol: WP_METADATA_SYMBOL.to_string(),
uri: WP_METADATA_URI.to_string(),
creators: None,
seller_fee_basis_points: 0,
collection: None,
uses: None,
},
true,
false,
None,
)?;
remove_position_token_mint_authority(whirlpool, position_mint, token_program)
}
fn mint_position_token<'info>(
whirlpool: &Account<'info, Whirlpool>,
position_mint: &Account<'info, Mint>,
position_token_account: &Account<'info, TokenAccount>,
token_program: &Program<'info, Token>,
) -> Result<()> {
invoke_signed(
&mint_to(
token_program.key,
position_mint.to_account_info().key,
position_token_account.to_account_info().key,
whirlpool.to_account_info().key,
&[whirlpool.to_account_info().key],
1,
)?,
&[
position_mint.to_account_info(),
position_token_account.to_account_info(),
whirlpool.to_account_info(),
token_program.to_account_info(),
],
&[&whirlpool.seeds()],
)?;
Ok(())
}
fn remove_position_token_mint_authority<'info>(
whirlpool: &Account<'info, Whirlpool>,
position_mint: &Account<'info, Mint>,
token_program: &Program<'info, Token>,
) -> Result<()> {
invoke_signed(
&set_authority(
token_program.key,
position_mint.to_account_info().key,
Option::None,
AuthorityType::MintTokens,
whirlpool.to_account_info().key,
&[whirlpool.to_account_info().key],
)?,
&[
position_mint.to_account_info(),
whirlpool.to_account_info(),
token_program.to_account_info(),
],
&[&whirlpool.seeds()],
)?;
Ok(())
}
pub fn mint_position_bundle_token_and_remove_authority<'info>(
position_bundle: &Account<'info, PositionBundle>,
position_bundle_mint: &Account<'info, Mint>,
position_bundle_token_account: &Account<'info, TokenAccount>,
token_program: &Program<'info, Token>,
position_bundle_seeds: &[&[u8]],
) -> Result<()> {
mint_position_bundle_token(
position_bundle,
position_bundle_mint,
position_bundle_token_account,
token_program,
position_bundle_seeds,
)?;
remove_position_bundle_token_mint_authority(
position_bundle,
position_bundle_mint,
token_program,
position_bundle_seeds,
)
}
#[allow(clippy::too_many_arguments)]
pub fn mint_position_bundle_token_with_metadata_and_remove_authority<'info>(
funder: &Signer<'info>,
position_bundle: &Account<'info, PositionBundle>,
position_bundle_mint: &Account<'info, Mint>,
position_bundle_token_account: &Account<'info, TokenAccount>,
position_bundle_metadata: &UncheckedAccount<'info>,
metadata_update_auth: &UncheckedAccount<'info>,
metadata_program: &Program<'info, metadata::Metadata>,
token_program: &Program<'info, Token>,
system_program: &Program<'info, System>,
rent: &Sysvar<'info, Rent>,
position_bundle_seeds: &[&[u8]],
) -> Result<()> {
mint_position_bundle_token(
position_bundle,
position_bundle_mint,
position_bundle_token_account,
token_program,
position_bundle_seeds,
)?;
// Create Metadata
// Orca Position Bundle xxxx...yyyy
// xxxx and yyyy are the first and last 4 chars of mint address
let mint_address = position_bundle_mint.key().to_string();
let mut nft_name = String::from(WPB_METADATA_NAME_PREFIX);
nft_name += " ";
nft_name += &mint_address[0..4];
nft_name += "...";
nft_name += &mint_address[mint_address.len() - 4..];
metadata::create_metadata_accounts_v3(
CpiContext::new_with_signer(
metadata_program.to_account_info(),
CreateMetadataAccountsV3 {
metadata: position_bundle_metadata.to_account_info(),
mint: position_bundle_mint.to_account_info(),
mint_authority: position_bundle.to_account_info(),
update_authority: metadata_update_auth.to_account_info(),
payer: funder.to_account_info(),
rent: rent.to_account_info(),
system_program: system_program.to_account_info(),
},
&[position_bundle_seeds],
),
DataV2 {
name: nft_name,
symbol: WPB_METADATA_SYMBOL.to_string(),
uri: WPB_METADATA_URI.to_string(),
creators: None,
seller_fee_basis_points: 0,
collection: None,
uses: None,
},
true,
false,
None,
)?;
remove_position_bundle_token_mint_authority(
position_bundle,
position_bundle_mint,
token_program,
position_bundle_seeds,
)
}
fn mint_position_bundle_token<'info>(
position_bundle: &Account<'info, PositionBundle>,
position_bundle_mint: &Account<'info, Mint>,
position_bundle_token_account: &Account<'info, TokenAccount>,
token_program: &Program<'info, Token>,
position_bundle_seeds: &[&[u8]],
) -> Result<()> {
invoke_signed(
&mint_to(
token_program.key,
position_bundle_mint.to_account_info().key,
position_bundle_token_account.to_account_info().key,
position_bundle.to_account_info().key,
&[],
1,
)?,
&[
position_bundle_mint.to_account_info(),
position_bundle_token_account.to_account_info(),
position_bundle.to_account_info(),
token_program.to_account_info(),
],
&[position_bundle_seeds],
)?;
Ok(())
}
fn remove_position_bundle_token_mint_authority<'info>(
position_bundle: &Account<'info, PositionBundle>,
position_bundle_mint: &Account<'info, Mint>,
token_program: &Program<'info, Token>,
position_bundle_seeds: &[&[u8]],
) -> Result<()> {
invoke_signed(
&set_authority(
token_program.key,
position_bundle_mint.to_account_info().key,
Option::None,
AuthorityType::MintTokens,
position_bundle.to_account_info().key,
&[],
)?,
&[
position_bundle_mint.to_account_info(),
position_bundle.to_account_info(),
token_program.to_account_info(),
],
&[position_bundle_seeds],
)?;
Ok(())
}
pub fn burn_and_close_position_bundle_token<'info>(
position_bundle_authority: &Signer<'info>,
receiver: &UncheckedAccount<'info>,
position_bundle_mint: &Account<'info, Mint>,
position_bundle_token_account: &Account<'info, TokenAccount>,
token_program: &Program<'info, Token>,
) -> Result<()> {
// use same logic
burn_and_close_user_position_token(
position_bundle_authority,
receiver,
position_bundle_mint,
position_bundle_token_account,
token_program,
)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/swap_utils.rs
|
use anchor_lang::prelude::*;
use anchor_spl::token::{Token, TokenAccount};
use crate::{manager::swap_manager::PostSwapUpdate, state::Whirlpool};
use super::{transfer_from_owner_to_vault, transfer_from_vault_to_owner};
#[allow(clippy::too_many_arguments)]
pub fn update_and_swap_whirlpool<'info>(
whirlpool: &mut Account<'info, Whirlpool>,
token_authority: &Signer<'info>,
token_owner_account_a: &Account<'info, TokenAccount>,
token_owner_account_b: &Account<'info, TokenAccount>,
token_vault_a: &Account<'info, TokenAccount>,
token_vault_b: &Account<'info, TokenAccount>,
token_program: &Program<'info, Token>,
swap_update: PostSwapUpdate,
is_token_fee_in_a: bool,
reward_last_updated_timestamp: u64,
) -> Result<()> {
whirlpool.update_after_swap(
swap_update.next_liquidity,
swap_update.next_tick_index,
swap_update.next_sqrt_price,
swap_update.next_fee_growth_global,
swap_update.next_reward_infos,
swap_update.next_protocol_fee,
is_token_fee_in_a,
reward_last_updated_timestamp,
);
perform_swap(
whirlpool,
token_authority,
token_owner_account_a,
token_owner_account_b,
token_vault_a,
token_vault_b,
token_program,
swap_update.amount_a,
swap_update.amount_b,
is_token_fee_in_a,
)
}
#[allow(clippy::too_many_arguments)]
fn perform_swap<'info>(
whirlpool: &Account<'info, Whirlpool>,
token_authority: &Signer<'info>,
token_owner_account_a: &Account<'info, TokenAccount>,
token_owner_account_b: &Account<'info, TokenAccount>,
token_vault_a: &Account<'info, TokenAccount>,
token_vault_b: &Account<'info, TokenAccount>,
token_program: &Program<'info, Token>,
amount_a: u64,
amount_b: u64,
a_to_b: bool,
) -> Result<()> {
// Transfer from user to pool
let deposit_account_user;
let deposit_account_pool;
let deposit_amount;
// Transfer from pool to user
let withdrawal_account_user;
let withdrawal_account_pool;
let withdrawal_amount;
if a_to_b {
deposit_account_user = token_owner_account_a;
deposit_account_pool = token_vault_a;
deposit_amount = amount_a;
withdrawal_account_user = token_owner_account_b;
withdrawal_account_pool = token_vault_b;
withdrawal_amount = amount_b;
} else {
deposit_account_user = token_owner_account_b;
deposit_account_pool = token_vault_b;
deposit_amount = amount_b;
withdrawal_account_user = token_owner_account_a;
withdrawal_account_pool = token_vault_a;
withdrawal_amount = amount_a;
}
transfer_from_owner_to_vault(
token_authority,
deposit_account_user,
deposit_account_pool,
token_program,
deposit_amount,
)?;
transfer_from_vault_to_owner(
whirlpool,
withdrawal_account_pool,
withdrawal_account_user,
token_program,
withdrawal_amount,
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/mod.rs
|
pub mod shared;
pub mod sparse_swap;
pub mod swap_tick_sequence;
pub mod swap_utils;
pub mod token;
pub mod token_2022;
pub mod v2;
pub use shared::*;
pub use sparse_swap::*;
pub use swap_tick_sequence::*;
pub use swap_utils::*;
pub use token::*;
pub use token_2022::*;
pub use v2::*;
#[cfg(test)]
pub mod test_utils;
#[cfg(test)]
pub use test_utils::*;
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/sparse_swap.rs
|
use anchor_lang::prelude::*;
use std::{
cell::{Ref, RefMut},
collections::VecDeque,
};
use crate::{
errors::ErrorCode,
state::{
Tick, TickArray, TickArrayType, TickUpdate, Whirlpool, ZeroedTickArray, TICK_ARRAY_SIZE,
},
util::SwapTickSequence,
};
// In the case of an uninitialized TickArray, ZeroedTickArray is used to substitute TickArray behavior.
// Since all Tick are not initialized, it can be substituted by returning Tick::default().
pub(crate) enum ProxiedTickArray<'a> {
Initialized(RefMut<'a, TickArray>),
Uninitialized(ZeroedTickArray),
}
impl<'a> ProxiedTickArray<'a> {
pub fn new_initialized(refmut: RefMut<'a, TickArray>) -> Self {
ProxiedTickArray::Initialized(refmut)
}
pub fn new_uninitialized(start_tick_index: i32) -> Self {
ProxiedTickArray::Uninitialized(ZeroedTickArray::new(start_tick_index))
}
pub fn start_tick_index(&self) -> i32 {
self.as_ref().start_tick_index()
}
pub fn get_next_init_tick_index(
&self,
tick_index: i32,
tick_spacing: u16,
a_to_b: bool,
) -> Result<Option<i32>> {
self.as_ref()
.get_next_init_tick_index(tick_index, tick_spacing, a_to_b)
}
pub fn get_tick(&self, tick_index: i32, tick_spacing: u16) -> Result<&Tick> {
self.as_ref().get_tick(tick_index, tick_spacing)
}
pub fn update_tick(
&mut self,
tick_index: i32,
tick_spacing: u16,
update: &TickUpdate,
) -> Result<()> {
self.as_mut().update_tick(tick_index, tick_spacing, update)
}
pub fn is_min_tick_array(&self) -> bool {
self.as_ref().is_min_tick_array()
}
pub fn is_max_tick_array(&self, tick_spacing: u16) -> bool {
self.as_ref().is_max_tick_array(tick_spacing)
}
pub fn tick_offset(&self, tick_index: i32, tick_spacing: u16) -> Result<isize> {
self.as_ref().tick_offset(tick_index, tick_spacing)
}
}
impl<'a> AsRef<dyn TickArrayType + 'a> for ProxiedTickArray<'a> {
fn as_ref(&self) -> &(dyn TickArrayType + 'a) {
match self {
ProxiedTickArray::Initialized(ref array) => &**array,
ProxiedTickArray::Uninitialized(ref array) => array,
}
}
}
impl<'a> AsMut<dyn TickArrayType + 'a> for ProxiedTickArray<'a> {
fn as_mut(&mut self) -> &mut (dyn TickArrayType + 'a) {
match self {
ProxiedTickArray::Initialized(ref mut array) => &mut **array,
ProxiedTickArray::Uninitialized(ref mut array) => array,
}
}
}
enum TickArrayAccount<'info> {
Initialized {
tick_array_whirlpool: Pubkey,
start_tick_index: i32,
account_info: AccountInfo<'info>,
},
Uninitialized {
pubkey: Pubkey,
start_tick_index: Option<i32>,
},
}
pub struct SparseSwapTickSequenceBuilder<'info> {
// AccountInfo ownership must be kept while using RefMut.
// This is why try_from and build are separated and SparseSwapTickSequenceBuilder struct is used.
tick_array_accounts: Vec<TickArrayAccount<'info>>,
}
impl<'info> SparseSwapTickSequenceBuilder<'info> {
/// Create a new SparseSwapTickSequenceBuilder from the given tick array accounts.
///
/// static_tick_array_account_infos and supplemental_tick_array_account_infos will be merged,
/// and deduplicated by key. TickArray accounts can be provided in any order.
///
/// Even if over three tick arrays are provided, only three tick arrays are used in the single swap.
/// The extra TickArray acts as a fallback in case the current price moves.
///
/// # Parameters
/// - `whirlpool` - Whirlpool account
/// - `a_to_b` - Direction of the swap
/// - `static_tick_array_account_infos` - TickArray accounts provided through required accounts
/// - `supplemental_tick_array_account_infos` - TickArray accounts provided through remaining accounts
///
/// # Errors
/// - `DifferentWhirlpoolTickArrayAccount` - If the provided TickArray account is not for the whirlpool
/// - `InvalidTickArraySequence` - If no valid TickArray account for the swap is found
/// - `AccountNotMutable` - If the provided TickArray account is not mutable
/// - `AccountOwnedByWrongProgram` - If the provided initialized TickArray account is not owned by this program
/// - `AccountDiscriminatorNotFound` - If the provided TickArray account does not have a discriminator
/// - `AccountDiscriminatorMismatch` - If the provided TickArray account has a mismatched discriminator
pub fn try_from(
whirlpool: &Account<'info, Whirlpool>,
a_to_b: bool,
static_tick_array_account_infos: Vec<AccountInfo<'info>>,
supplemental_tick_array_account_infos: Option<Vec<AccountInfo<'info>>>,
) -> Result<Self> {
let mut tick_array_account_infos = static_tick_array_account_infos;
if let Some(supplemental_tick_array_account_infos) = supplemental_tick_array_account_infos {
tick_array_account_infos.extend(supplemental_tick_array_account_infos);
}
// dedup by key
tick_array_account_infos.sort_by_key(|a| a.key());
tick_array_account_infos.dedup_by_key(|a| a.key());
let mut initialized = vec![];
let mut uninitialized = vec![];
for account_info in tick_array_account_infos.into_iter() {
let state = peek_tick_array(account_info)?;
match &state {
TickArrayAccount::Initialized {
tick_array_whirlpool,
start_tick_index,
..
} => {
// has_one constraint equivalent check
if *tick_array_whirlpool != whirlpool.key() {
return Err(ErrorCode::DifferentWhirlpoolTickArrayAccount.into());
}
// TickArray accounts in initialized have been verified as:
// - Owned by this program
// - Initialized as TickArray account
// - Writable account
// - TickArray account for this whirlpool
// So we can safely use these accounts.
initialized.push((*start_tick_index, state));
}
TickArrayAccount::Uninitialized {
pubkey: account_address,
..
} => {
// TickArray accounts in uninitialized have been verified as:
// - Owned by System program
// - Data size is zero
// - Writable account
// But we are not sure if these accounts are valid TickArray PDA for this whirlpool,
// so we need to check it later.
uninitialized.push((*account_address, state));
}
}
}
let start_tick_indexes = get_start_tick_indexes(whirlpool, a_to_b);
let mut tick_array_accounts: Vec<TickArrayAccount> = vec![];
for start_tick_index in start_tick_indexes.iter() {
// PDA calculation is expensive (3000 CU ~ / PDA),
// so PDA is calculated only if not found in start_tick_index comparison.
// find from initialized tick arrays
if let Some(pos) = initialized.iter().position(|t| t.0 == *start_tick_index) {
let state = initialized.remove(pos).1;
tick_array_accounts.push(state);
continue;
}
// find from uninitialized tick arrays
let tick_array_pda = derive_tick_array_pda(whirlpool, *start_tick_index);
if let Some(pos) = uninitialized.iter().position(|t| t.0 == tick_array_pda) {
let state = uninitialized.remove(pos).1;
if let TickArrayAccount::Uninitialized { pubkey, .. } = state {
tick_array_accounts.push(TickArrayAccount::Uninitialized {
pubkey,
start_tick_index: Some(*start_tick_index),
});
} else {
unreachable!("state in uninitialized must be Uninitialized");
}
continue;
}
// no more valid tickarrays for this swap
break;
}
if tick_array_accounts.is_empty() {
return Err(crate::errors::ErrorCode::InvalidTickArraySequence.into());
}
Ok(Self {
tick_array_accounts,
})
}
pub fn build<'a>(&'a self) -> Result<SwapTickSequence<'a>> {
let mut proxied_tick_arrays = VecDeque::with_capacity(3);
for tick_array_account in self.tick_array_accounts.iter() {
match tick_array_account {
TickArrayAccount::Initialized { account_info, .. } => {
use std::ops::DerefMut;
let data = account_info.try_borrow_mut_data()?;
let tick_array_refmut = RefMut::map(data, |data| {
bytemuck::from_bytes_mut(
&mut data.deref_mut()[8..std::mem::size_of::<TickArray>() + 8],
)
});
proxied_tick_arrays
.push_back(ProxiedTickArray::new_initialized(tick_array_refmut));
}
TickArrayAccount::Uninitialized {
start_tick_index, ..
} => {
proxied_tick_arrays.push_back(ProxiedTickArray::new_uninitialized(
start_tick_index.unwrap(),
));
}
}
}
Ok(SwapTickSequence::<'a>::new_with_proxy(
proxied_tick_arrays.pop_front().unwrap(),
proxied_tick_arrays.pop_front(),
proxied_tick_arrays.pop_front(),
))
}
}
fn peek_tick_array(account_info: AccountInfo<'_>) -> Result<TickArrayAccount<'_>> {
use anchor_lang::Discriminator;
// following process is ported from anchor-lang's AccountLoader::try_from and AccountLoader::load_mut
// AccountLoader can handle initialized account and partially initialized (owner program changed) account only.
// So we need to handle uninitialized account manually.
// account must be writable
if !account_info.is_writable {
return Err(anchor_lang::error::ErrorCode::AccountNotMutable.into());
}
// uninitialized writable account (owned by system program and its data size is zero)
if account_info.owner == &System::id() && account_info.data_is_empty() {
return Ok(TickArrayAccount::Uninitialized {
pubkey: *account_info.key,
start_tick_index: None,
});
}
// To avoid problems with the lifetime of the reference requested by AccountLoader (&'info AccountInfo<'info>),
// AccountLoader is not used even after the account is found to be initialized.
// owner program check
if account_info.owner != &TickArray::owner() {
return Err(
Error::from(anchor_lang::error::ErrorCode::AccountOwnedByWrongProgram)
.with_pubkeys((*account_info.owner, TickArray::owner())),
);
}
let data = account_info.try_borrow_data()?;
if data.len() < TickArray::discriminator().len() {
return Err(anchor_lang::error::ErrorCode::AccountDiscriminatorNotFound.into());
}
let disc_bytes = arrayref::array_ref![data, 0, 8];
if disc_bytes != &TickArray::discriminator() {
return Err(anchor_lang::error::ErrorCode::AccountDiscriminatorMismatch.into());
}
let tick_array: Ref<TickArray> = Ref::map(data, |data| {
bytemuck::from_bytes(&data[8..std::mem::size_of::<TickArray>() + 8])
});
let start_tick_index = tick_array.start_tick_index;
let whirlpool = tick_array.whirlpool;
drop(tick_array);
Ok(TickArrayAccount::Initialized {
tick_array_whirlpool: whirlpool,
start_tick_index,
account_info,
})
}
fn get_start_tick_indexes(whirlpool: &Account<Whirlpool>, a_to_b: bool) -> Vec<i32> {
let tick_current_index = whirlpool.tick_current_index;
let tick_spacing_u16 = whirlpool.tick_spacing;
let tick_spacing_i32 = whirlpool.tick_spacing as i32;
let ticks_in_array = TICK_ARRAY_SIZE * tick_spacing_i32;
let start_tick_index_base = floor_division(tick_current_index, ticks_in_array) * ticks_in_array;
let offset = if a_to_b {
[0, -1, -2]
} else {
let shifted =
tick_current_index + tick_spacing_i32 >= start_tick_index_base + ticks_in_array;
if shifted {
[1, 2, 3]
} else {
[0, 1, 2]
}
};
let start_tick_indexes = offset
.iter()
.filter_map(|&o| {
let start_tick_index = start_tick_index_base + o * ticks_in_array;
if Tick::check_is_valid_start_tick(start_tick_index, tick_spacing_u16) {
Some(start_tick_index)
} else {
None
}
})
.collect::<Vec<i32>>();
start_tick_indexes
}
fn floor_division(dividend: i32, divisor: i32) -> i32 {
assert!(divisor != 0, "Divisor cannot be zero.");
if dividend % divisor == 0 || dividend.signum() == divisor.signum() {
dividend / divisor
} else {
dividend / divisor - 1
}
}
fn derive_tick_array_pda(whirlpool: &Account<Whirlpool>, start_tick_index: i32) -> Pubkey {
Pubkey::find_program_address(
&[
b"tick_array",
whirlpool.key().as_ref(),
start_tick_index.to_string().as_bytes(),
],
&TickArray::owner(),
)
.0
}
#[cfg(test)]
mod sparse_swap_tick_sequence_tests {
use super::*;
use anchor_lang::solana_program::pubkey;
use anchor_lang::Discriminator;
use std::cell::RefCell;
struct AccountInfoMock {
pub key: Pubkey,
pub lamports: u64,
pub data: Vec<u8>,
pub owner: Pubkey,
pub rent_epoch: u64,
pub executable: bool,
}
impl AccountInfoMock {
pub fn new(key: Pubkey, data: Vec<u8>, owner: Pubkey) -> Self {
Self {
key,
lamports: 0,
data,
owner,
rent_epoch: 0,
executable: false,
}
}
pub fn new_whirlpool(
key: Pubkey,
tick_spacing: u16,
tick_current_index: i32,
owner: Option<Pubkey>,
) -> Self {
let whirlpool = Whirlpool {
tick_spacing,
tick_current_index,
..Whirlpool::default()
};
let mut data = vec![0u8; Whirlpool::LEN];
whirlpool.try_serialize(&mut data.as_mut_slice()).unwrap();
Self::new(key, data, owner.unwrap_or(Whirlpool::owner()))
}
pub fn new_tick_array(
key: Pubkey,
whirlpool: Pubkey,
start_tick_index: i32,
owner: Option<Pubkey>,
) -> Self {
let mut data = vec![0u8; TickArray::LEN];
data[0..8].copy_from_slice(&TickArray::discriminator());
data[8..12].copy_from_slice(&start_tick_index.to_le_bytes());
data[9956..9988].copy_from_slice(&whirlpool.to_bytes());
Self::new(key, data, owner.unwrap_or(TickArray::owner()))
}
pub fn to_account_info(&mut self, is_writable: bool) -> AccountInfo<'_> {
AccountInfo {
key: &self.key,
is_signer: false,
is_writable,
lamports: std::rc::Rc::new(RefCell::new(&mut self.lamports)),
data: std::rc::Rc::new(RefCell::new(&mut self.data)),
owner: &self.owner,
rent_epoch: self.rent_epoch,
executable: self.executable,
}
}
}
#[test]
fn test_derive_tick_array_pda() {
let mut account_info_mock = AccountInfoMock::new_whirlpool(
pubkey!("HJPjoWUrhoZzkNfRpHuieeFk9WcZWjwy6PBjZ81ngndJ"), // well-known whirlpool key (SOL/USDC(ts=64))
64,
0,
Some(pubkey!("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")),
);
let account_info = account_info_mock.to_account_info(false);
let whirlpool_account = Account::<Whirlpool>::try_from(&account_info).unwrap();
let ta_start_neg_11264 = derive_tick_array_pda(&whirlpool_account, -11264);
assert_eq!(
ta_start_neg_11264,
pubkey!("81T5kNuPRkyVzhwbe2RpKR7wmQpGJ7RBkGPdTqyfa5vq")
);
let ta_start_neg_5632 = derive_tick_array_pda(&whirlpool_account, -5632);
assert_eq!(
ta_start_neg_5632,
pubkey!("9K1HWrGKZKfjTnKfF621BmEQdai4FcUz9tsoF41jwz5B")
);
let ta_start_0 = derive_tick_array_pda(&whirlpool_account, 0);
assert_eq!(
ta_start_0,
pubkey!("JCpxMSDRDPBMqjoX7LkhMwro2y6r85Q8E6p5zNdBZyWa")
);
let ta_start_5632 = derive_tick_array_pda(&whirlpool_account, 5632);
assert_eq!(
ta_start_5632,
pubkey!("BW2Mr823NUQN7vnVpv5E6yCTnqEXQ3ZnqjZyiywXPcUp")
);
let ta_start_11264 = derive_tick_array_pda(&whirlpool_account, 11264);
assert_eq!(
ta_start_11264,
pubkey!("2ezvsnoXdukw5dAAZ4EkW67bmUo8PHRPX8ZDqf76BKtV")
);
}
#[test]
fn test_floor_division() {
assert_eq!(floor_division(0, 64), 0);
assert_eq!(floor_division(1, 64), 0);
assert_eq!(floor_division(63, 64), 0);
assert_eq!(floor_division(64, 64), 1);
assert_eq!(floor_division(65, 64), 1);
assert_eq!(floor_division(127, 64), 1);
assert_eq!(floor_division(128, 64), 2);
assert_eq!(floor_division(129, 64), 2);
assert_eq!(floor_division(-1, 64), -1);
assert_eq!(floor_division(-63, 64), -1);
assert_eq!(floor_division(-64, 64), -1);
assert_eq!(floor_division(-65, 64), -2);
assert_eq!(floor_division(-127, 64), -2);
assert_eq!(floor_division(-128, 64), -2);
assert_eq!(floor_division(-129, 64), -3);
}
mod test_get_start_tick_indexes {
use super::*;
// a to b
// a to b (not shifted)
// a to b (only 2 ta)
// a to b (only 1 ta)
// b to a (not shifted)
// b to a (shifted)
// b to a (only 2 ta)
// b to a (only 1 ta)
fn do_test(a_to_b: bool, tick_spacing: u16, tick_current_index: i32, expected: Vec<i32>) {
let mut account_info_mock = AccountInfoMock::new_whirlpool(
Pubkey::new_unique(),
tick_spacing,
tick_current_index,
None,
);
let account_info = account_info_mock.to_account_info(true);
let whirlpool_account = Account::<Whirlpool>::try_from(&account_info).unwrap();
let start_tick_indexes = get_start_tick_indexes(&whirlpool_account, a_to_b);
assert_eq!(start_tick_indexes, expected);
}
mod tick_spacing_1 {
use super::*;
#[test]
fn a_to_b() {
do_test(true, 1, 0, vec![0, -88, -176]);
}
#[test]
fn a_to_b_not_shifted() {
do_test(true, 1, -1, vec![-88, -176, -264]);
}
#[test]
fn a_to_b_only_2_ta() {
do_test(true, 1, -443608, vec![-443608, -443696]);
}
#[test]
fn a_to_b_only_1_ta() {
do_test(true, 1, -443635, vec![-443696]);
}
#[test]
fn b_to_a_not_shifted() {
do_test(false, 1, 86, vec![0, 88, 176]);
}
#[test]
fn b_to_a_shifted() {
do_test(false, 1, 87, vec![88, 176, 264]);
}
#[test]
fn b_to_a_only_2_ta() {
do_test(false, 1, 443600, vec![443520, 443608]);
}
#[test]
fn b_to_a_only_1_ta() {
do_test(false, 1, 443608, vec![443608]);
}
}
mod tick_spacing_64 {
use super::*;
#[test]
fn a_to_b() {
do_test(true, 64, 0, vec![0, -5632, -11264]);
}
#[test]
fn a_to_b_not_shifted() {
do_test(true, 64, -64, vec![-5632, -11264, -16896]);
}
#[test]
fn a_to_b_only_2_ta() {
do_test(true, 64, -439296, vec![-439296, -444928]);
}
#[test]
fn a_to_b_only_1_ta() {
do_test(true, 64, -443635, vec![-444928]);
}
#[test]
fn b_to_a_not_shifted() {
do_test(false, 64, 5567, vec![0, 5632, 11264]);
}
#[test]
fn b_to_a_shifted() {
do_test(false, 64, 5568, vec![5632, 11264, 16896]);
}
#[test]
fn b_to_a_only_2_ta() {
do_test(false, 64, 439200, vec![433664, 439296]);
}
#[test]
fn b_to_a_only_1_ta() {
do_test(false, 64, 443608, vec![439296]);
}
}
mod tick_spacing_32768 {
use super::*;
#[test]
fn a_to_b() {
do_test(true, 32768, 0, vec![0, -2883584]);
}
#[test]
fn a_to_b_not_shifted() {
do_test(true, 32768, -1, vec![-2883584]);
}
#[test]
fn a_to_b_only_2_ta() {
do_test(true, 32768, 443635, vec![0, -2883584]);
}
#[test]
fn a_to_b_only_1_ta() {
do_test(true, 32768, -443635, vec![-2883584]);
}
#[test]
fn b_to_a_not_shifted() {
do_test(false, 32768, -32769, vec![-2883584, 0]);
}
#[test]
fn b_to_a_shifted() {
do_test(false, 32768, -32768, vec![0]);
}
#[test]
fn b_to_a_only_2_ta() {
do_test(false, 32768, -443635, vec![-2883584, 0]);
}
#[test]
fn b_to_a_only_1_ta() {
do_test(false, 32768, 443608, vec![0]);
}
}
}
mod test_peek_tick_array {
use super::*;
#[test]
fn fail_not_writable() {
let mut account_info_mock = AccountInfoMock::new_tick_array(
Pubkey::new_unique(),
Pubkey::new_unique(),
0,
None,
);
let account_info = account_info_mock.to_account_info(false); // not writable
let result = peek_tick_array(account_info);
assert!(result.is_err());
assert!(result
.err()
.unwrap()
.to_string()
.contains("AccountNotMutable"));
}
#[test]
fn uninitialized_tick_array() {
let account_address = Pubkey::new_unique();
let mut account_info_mock = AccountInfoMock::new(account_address, vec![], System::id());
let account_info = account_info_mock.to_account_info(true);
let result = peek_tick_array(account_info);
assert!(result.is_ok());
match result.unwrap() {
TickArrayAccount::Uninitialized {
pubkey,
start_tick_index,
} => {
assert_eq!(pubkey, account_address);
assert!(start_tick_index.is_none());
}
_ => panic!("unexpected state"),
}
}
#[test]
fn fail_system_program_but_not_zero_size() {
let mut account_info_mock =
AccountInfoMock::new(Pubkey::new_unique(), vec![0u8; 1], System::id());
let account_info = account_info_mock.to_account_info(true);
let result = peek_tick_array(account_info);
assert!(result.is_err());
// non empty account should be owned by this program
assert!(result
.err()
.unwrap()
.to_string()
.contains("AccountOwnedByWrongProgram"));
}
#[test]
fn fail_account_discriminator_not_found() {
let mut account_info_mock =
AccountInfoMock::new(Pubkey::new_unique(), vec![], TickArray::owner());
let account_info = account_info_mock.to_account_info(true);
let result = peek_tick_array(account_info);
assert!(result.is_err());
assert!(result
.err()
.unwrap()
.to_string()
.contains("AccountDiscriminatorNotFound"));
}
#[test]
fn fail_discriminator_mismatch() {
let mut account_info_mock =
AccountInfoMock::new_whirlpool(Pubkey::new_unique(), 64, 0, None);
let account_info = account_info_mock.to_account_info(true);
let result = peek_tick_array(account_info);
assert!(result.is_err());
assert!(result
.err()
.unwrap()
.to_string()
.contains("AccountDiscriminatorMismatch"));
}
#[test]
fn initialized_tick_array() {
let tick_array_address = Pubkey::new_unique();
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock = AccountInfoMock::new_tick_array(
tick_array_address,
whirlpool_address,
439296,
None,
);
let account_info = account_info_mock.to_account_info(true);
let result = peek_tick_array(account_info);
assert!(result.is_ok());
match result.unwrap() {
TickArrayAccount::Initialized {
start_tick_index,
tick_array_whirlpool,
account_info,
} => {
assert_eq!(start_tick_index, 439296);
assert_eq!(tick_array_whirlpool, whirlpool_address);
assert_eq!(account_info.key(), tick_array_address);
}
_ => panic!("unexpected state"),
}
}
}
mod test_sparse_swap_tick_sequence_builder {
use crate::state::TICK_ARRAY_SIZE_USIZE;
use super::*;
#[test]
fn check_zeroed_tick_array_data() {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock =
AccountInfoMock::new_whirlpool(whirlpool_address, 64, 5650, None);
let account_info = account_info_mock.to_account_info(false);
let whirlpool = Account::<Whirlpool>::try_from(&account_info).unwrap();
// uninitialized
let ta0_address = derive_tick_array_pda(&whirlpool, 5632);
let mut ta0_mock = AccountInfoMock::new(ta0_address, vec![], System::id());
let ta0 = ta0_mock.to_account_info(true);
let builder = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
false,
vec![ta0.clone(), ta0.clone(), ta0.clone()],
None,
)
.unwrap();
assert_eq!(builder.tick_array_accounts.len(), 1);
match &builder.tick_array_accounts[0] {
TickArrayAccount::Initialized { .. } => {
panic!("unexpected state");
}
TickArrayAccount::Uninitialized {
start_tick_index, ..
} => {
assert!(start_tick_index.is_some());
let start_tick_index = start_tick_index.as_ref().unwrap();
assert_eq!(*start_tick_index, 5632);
}
}
// after build
let swap_tick_sequence = builder.build().unwrap();
for i in 0..TICK_ARRAY_SIZE_USIZE {
let tick = swap_tick_sequence
.get_tick(0, 5632 + (i as i32) * 64, 64)
.unwrap();
let initialized = tick.initialized;
assert!(!initialized);
let liquidity_net = tick.liquidity_net;
assert_eq!(liquidity_net, 0);
let liquidity_gross = tick.liquidity_gross;
assert_eq!(liquidity_gross, 0);
let fee_growth_outside_a = tick.fee_growth_outside_a;
assert_eq!(fee_growth_outside_a, 0);
let fee_growth_outside_b = tick.fee_growth_outside_b;
assert_eq!(fee_growth_outside_b, 0);
let reward_growth_outside_r0 = tick.reward_growths_outside[0];
assert_eq!(reward_growth_outside_r0, 0);
let reward_growth_outside_r1 = tick.reward_growths_outside[1];
assert_eq!(reward_growth_outside_r1, 0);
let reward_growth_outside_r2 = tick.reward_growths_outside[2];
assert_eq!(reward_growth_outside_r2, 0);
}
}
#[test]
fn dedup_tick_array_account_infos() {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock =
AccountInfoMock::new_whirlpool(whirlpool_address, 64, 0, None);
let account_info = account_info_mock.to_account_info(false);
let whirlpool = Account::<Whirlpool>::try_from(&account_info).unwrap();
// initialized
let ta0_address = derive_tick_array_pda(&whirlpool, 0);
let mut ta0_mock =
AccountInfoMock::new_tick_array(ta0_address, whirlpool_address, 0, None);
let ta0 = ta0_mock.to_account_info(true);
// uninitialized
let ta1_address = derive_tick_array_pda(&whirlpool, 5632);
let mut ta1_mock = AccountInfoMock::new(ta1_address, vec![], System::id());
let ta1 = ta1_mock.to_account_info(true);
// initialized
let ta2_address = derive_tick_array_pda(&whirlpool, 11264);
let mut ta2_mock =
AccountInfoMock::new_tick_array(ta2_address, whirlpool_address, 11264, None);
let ta2 = ta2_mock.to_account_info(true);
let builder = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
false,
vec![
ta0.clone(),
ta0.clone(), // dup
ta1.clone(),
],
Some(vec![
ta1.clone(), // dup
ta2.clone(),
ta2.clone(), // dup
]),
)
.unwrap();
assert_eq!(builder.tick_array_accounts.len(), 3);
[0, 5632, 11264]
.iter()
.enumerate()
.for_each(|(i, &expected)| match &builder.tick_array_accounts[i] {
TickArrayAccount::Initialized {
start_tick_index: actual,
..
} => {
assert_eq!(*actual, expected);
}
TickArrayAccount::Uninitialized {
start_tick_index, ..
} => {
assert!(start_tick_index.is_some());
let start_tick_index = start_tick_index.as_ref().unwrap();
assert_eq!(*start_tick_index, expected);
}
});
}
#[test]
fn fail_wrong_whirlpool_tick_array() {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock =
AccountInfoMock::new_whirlpool(whirlpool_address, 64, 0, None);
let account_info = account_info_mock.to_account_info(false);
let whirlpool = Account::<Whirlpool>::try_from(&account_info).unwrap();
let another_whirlpool_address = Pubkey::new_unique();
let mut another_account_info_mock =
AccountInfoMock::new_whirlpool(another_whirlpool_address, 64, 0, None);
let another_account_info = another_account_info_mock.to_account_info(true);
let another_whirlpool = Account::<Whirlpool>::try_from(&another_account_info).unwrap();
let ta0_address = derive_tick_array_pda(&whirlpool, 0);
let mut ta0_mock =
AccountInfoMock::new_tick_array(ta0_address, whirlpool_address, 0, None);
let ta0 = ta0_mock.to_account_info(true);
// uninitialized
let ta1_address = derive_tick_array_pda(&whirlpool, 5632);
let mut ta1_mock = AccountInfoMock::new(ta1_address, vec![], System::id());
let ta1 = ta1_mock.to_account_info(true);
// initialized but for another whirlpool
let ta2_address = derive_tick_array_pda(&another_whirlpool, 11264);
let mut ta2_mock = AccountInfoMock::new_tick_array(
ta2_address,
another_whirlpool_address,
11264,
None,
);
let ta2 = ta2_mock.to_account_info(true);
let result = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
false,
vec![ta0, ta1, ta2],
None,
);
assert!(result.is_err());
assert!(result
.err()
.unwrap()
.to_string()
.contains("DifferentWhirlpoolTickArrayAccount"));
}
#[test]
fn ignore_wrong_uninitialized_tick_array() {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock =
AccountInfoMock::new_whirlpool(whirlpool_address, 64, 0, None);
let account_info = account_info_mock.to_account_info(false);
let whirlpool = Account::<Whirlpool>::try_from(&account_info).unwrap();
let another_whirlpool_address = Pubkey::new_unique();
let mut another_account_info_mock =
AccountInfoMock::new_whirlpool(another_whirlpool_address, 64, 0, None);
let another_account_info = another_account_info_mock.to_account_info(true);
let another_whirlpool = Account::<Whirlpool>::try_from(&another_account_info).unwrap();
let ta0_address = derive_tick_array_pda(&whirlpool, 0);
let mut ta0_mock =
AccountInfoMock::new_tick_array(ta0_address, whirlpool_address, 0, None);
let ta0 = ta0_mock.to_account_info(true);
// uninitialized and for another whirlpool
let ta1_address = derive_tick_array_pda(&another_whirlpool, 5632);
let mut ta1_mock = AccountInfoMock::new(ta1_address, vec![], System::id());
let ta1 = ta1_mock.to_account_info(true);
let builder = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
false,
vec![ta0, ta1.clone(), ta1.clone()],
None,
)
.unwrap();
// ta1 should be ignored
assert_eq!(builder.tick_array_accounts.len(), 1);
match &builder.tick_array_accounts[0] {
TickArrayAccount::Initialized {
start_tick_index: actual,
..
} => {
assert_eq!(*actual, 0);
}
_ => panic!("unexpected state"),
}
}
#[test]
fn fail_if_no_appropriate_tick_arrays() {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock =
AccountInfoMock::new_whirlpool(whirlpool_address, 64, 1, None);
let account_info = account_info_mock.to_account_info(false);
let whirlpool = Account::<Whirlpool>::try_from(&account_info).unwrap();
let ta0_address = derive_tick_array_pda(&whirlpool, 5632);
let mut ta0_mock =
AccountInfoMock::new_tick_array(ta0_address, whirlpool_address, 5632, None);
let ta0 = ta0_mock.to_account_info(true);
let ta1_address = derive_tick_array_pda(&whirlpool, 11264);
let mut ta1_mock =
AccountInfoMock::new_tick_array(ta1_address, whirlpool_address, 11264, None);
let ta1 = ta1_mock.to_account_info(true);
let result = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
false,
vec![ta0, ta1], // provided, but no TA stating at 0
None,
);
assert!(result.is_err());
assert!(result
.err()
.unwrap()
.to_string()
.contains("InvalidTickArraySequence"));
}
#[test]
fn adjust_tick_array_account_ordering() {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock = AccountInfoMock::new_whirlpool(
whirlpool_address,
64,
-65, // no shift
None,
);
let account_info = account_info_mock.to_account_info(false);
let whirlpool = Account::<Whirlpool>::try_from(&account_info).unwrap();
// initialized
let ta0_address = derive_tick_array_pda(&whirlpool, 0);
let mut ta0_mock =
AccountInfoMock::new_tick_array(ta0_address, whirlpool_address, 0, None);
let ta0 = ta0_mock.to_account_info(true);
// uninitialized
let ta1_address = derive_tick_array_pda(&whirlpool, 5632);
let mut ta1_mock = AccountInfoMock::new(ta1_address, vec![], System::id());
let ta1 = ta1_mock.to_account_info(true);
// initialized
let ta2_address = derive_tick_array_pda(&whirlpool, 11264);
let mut ta2_mock =
AccountInfoMock::new_tick_array(ta2_address, whirlpool_address, 11264, None);
let ta2 = ta2_mock.to_account_info(true);
// initialized
let ta3_address = derive_tick_array_pda(&whirlpool, -5632);
let mut ta3_mock =
AccountInfoMock::new_tick_array(ta3_address, whirlpool_address, -5632, None);
let ta3 = ta3_mock.to_account_info(true);
let builder = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
false,
vec![
// reverse order
ta2.clone(), // 11264
ta1.clone(), // 5632
ta0.clone(), // 0
],
Some(vec![
ta3.clone(), // -5632
]),
)
.unwrap();
// -5632 should be used as the first tick array
assert_eq!(builder.tick_array_accounts.len(), 3);
[-5632, 0, 5632]
.iter()
.enumerate()
.for_each(|(i, &expected)| match &builder.tick_array_accounts[i] {
TickArrayAccount::Initialized {
start_tick_index: actual,
..
} => {
assert_eq!(*actual, expected);
}
TickArrayAccount::Uninitialized {
start_tick_index, ..
} => {
assert!(start_tick_index.is_some());
let start_tick_index = start_tick_index.as_ref().unwrap();
assert_eq!(*start_tick_index, expected);
}
});
}
#[test]
fn uninitialized_tick_array_not_provided() {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock = AccountInfoMock::new_whirlpool(
whirlpool_address,
64,
-65, // no shift
None,
);
let account_info = account_info_mock.to_account_info(false);
let whirlpool = Account::<Whirlpool>::try_from(&account_info).unwrap();
// initialized
let ta0_address = derive_tick_array_pda(&whirlpool, 0);
let mut ta0_mock =
AccountInfoMock::new_tick_array(ta0_address, whirlpool_address, 0, None);
let ta0 = ta0_mock.to_account_info(true);
// uninitialized
let ta1_address = derive_tick_array_pda(&whirlpool, 5632);
let mut ta1_mock = AccountInfoMock::new(ta1_address, vec![], System::id());
let _ta1 = ta1_mock.to_account_info(true);
// initialized
let ta2_address = derive_tick_array_pda(&whirlpool, 11264);
let mut ta2_mock =
AccountInfoMock::new_tick_array(ta2_address, whirlpool_address, 11264, None);
let ta2 = ta2_mock.to_account_info(true);
// initialized
let ta3_address = derive_tick_array_pda(&whirlpool, -5632);
let mut ta3_mock =
AccountInfoMock::new_tick_array(ta3_address, whirlpool_address, -5632, None);
let ta3 = ta3_mock.to_account_info(true);
let builder = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
false,
vec![
ta3.clone(), // -5632
ta0.clone(), // 0
// no ta1 provided
ta2.clone(), // 11264
],
None,
)
.unwrap();
// -5632 should be used as the first tick array
// 5632 should not be included because it is not provided
assert_eq!(builder.tick_array_accounts.len(), 2);
[-5632, 0].iter().enumerate().for_each(|(i, &expected)| {
match &builder.tick_array_accounts[i] {
TickArrayAccount::Initialized {
start_tick_index: actual,
..
} => {
assert_eq!(*actual, expected);
}
TickArrayAccount::Uninitialized {
start_tick_index, ..
} => {
assert!(start_tick_index.is_some());
let start_tick_index = start_tick_index.as_ref().unwrap();
assert_eq!(*start_tick_index, expected);
}
}
});
}
#[test]
fn all_tick_array_uninitialized() {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock =
AccountInfoMock::new_whirlpool(whirlpool_address, 64, 6000, None);
let account_info = account_info_mock.to_account_info(false);
let whirlpool = Account::<Whirlpool>::try_from(&account_info).unwrap();
// uninitialized
let ta0_address = derive_tick_array_pda(&whirlpool, 0);
let mut ta0_mock = AccountInfoMock::new(ta0_address, vec![], System::id());
let ta0 = ta0_mock.to_account_info(true);
// uninitialized
let ta1_address = derive_tick_array_pda(&whirlpool, 5632);
let mut ta1_mock = AccountInfoMock::new(ta1_address, vec![], System::id());
let ta1 = ta1_mock.to_account_info(true);
// uninitialized
let ta2_address = derive_tick_array_pda(&whirlpool, 11264);
let mut ta2_mock = AccountInfoMock::new(ta2_address, vec![], System::id());
let ta2 = ta2_mock.to_account_info(true);
// uninitialized
let ta3_address = derive_tick_array_pda(&whirlpool, -5632);
let mut ta3_mock = AccountInfoMock::new(ta3_address, vec![], System::id());
let ta3 = ta3_mock.to_account_info(true);
let builder = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
true,
vec![
ta0.clone(), // 0
ta1.clone(), // 5632
ta2.clone(), // 11264
],
Some(vec![
ta3.clone(), // -5632
]),
)
.unwrap();
// 5632 should be used as the first tick array and its direction should be a to b.
assert_eq!(builder.tick_array_accounts.len(), 3);
[5632, 0, -5632]
.iter()
.enumerate()
.for_each(|(i, &expected)| match &builder.tick_array_accounts[i] {
TickArrayAccount::Initialized { .. } => {
panic!("unexpected state");
}
TickArrayAccount::Uninitialized {
start_tick_index, ..
} => {
assert!(start_tick_index.is_some());
let start_tick_index = start_tick_index.as_ref().unwrap();
assert_eq!(*start_tick_index, expected);
}
});
}
#[test]
fn fail_if_account_is_not_writable() {
fn run_test(i: usize) {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock =
AccountInfoMock::new_whirlpool(whirlpool_address, 64, 0, None);
let account_info = account_info_mock.to_account_info(false);
let whirlpool = Account::<Whirlpool>::try_from(&account_info).unwrap();
// initialized
let ta0_address = derive_tick_array_pda(&whirlpool, 0);
let mut ta0_mock =
AccountInfoMock::new_tick_array(ta0_address, whirlpool_address, 0, None);
// uninitialized
let ta1_address = derive_tick_array_pda(&whirlpool, 5632);
let mut ta1_mock = AccountInfoMock::new(ta1_address, vec![], System::id());
// initialized
let ta2_address = derive_tick_array_pda(&whirlpool, 11264);
let mut ta2_mock =
AccountInfoMock::new_tick_array(ta2_address, whirlpool_address, 11264, None);
let ta0 = ta0_mock.to_account_info(i != 0);
let ta1 = ta1_mock.to_account_info(i != 1);
let ta2 = ta2_mock.to_account_info(i != 2);
let result = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
false,
vec![ta0, ta1, ta2],
None,
);
assert!(result.is_err());
assert!(result
.err()
.unwrap()
.to_string()
.contains("AccountNotMutable"));
}
run_test(0);
run_test(1);
run_test(2);
}
#[test]
fn fail_if_uninitialized_account_is_not_empty() {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock =
AccountInfoMock::new_whirlpool(whirlpool_address, 64, 0, None);
let account_info = account_info_mock.to_account_info(false);
let whirlpool = Account::<Whirlpool>::try_from(&account_info).unwrap();
// initialized
let ta0_address = derive_tick_array_pda(&whirlpool, 0);
let mut ta0_mock =
AccountInfoMock::new_tick_array(ta0_address, whirlpool_address, 0, None);
// uninitialized
let ta1_address = derive_tick_array_pda(&whirlpool, 5632);
let mut ta1_mock = AccountInfoMock::new(
ta1_address,
vec![0u8; 8], // not empty
System::id(),
);
// initialized
let ta2_address = derive_tick_array_pda(&whirlpool, 11264);
let mut ta2_mock =
AccountInfoMock::new_tick_array(ta2_address, whirlpool_address, 11264, None);
let ta0 = ta0_mock.to_account_info(true);
let ta1 = ta1_mock.to_account_info(true);
let ta2 = ta2_mock.to_account_info(true);
let result = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
false,
vec![ta0, ta1, ta2],
None,
);
assert!(result.is_err());
assert!(result
.err()
.unwrap()
.to_string()
.contains("AccountOwnedByWrongProgram"));
}
#[test]
fn fail_if_wrong_tick_array_account() {
let whirlpool_address = Pubkey::new_unique();
let mut account_info_mock =
AccountInfoMock::new_whirlpool(whirlpool_address, 64, 0, None);
let whirlpool_account_info = account_info_mock.to_account_info(true);
let whirlpool = Account::<Whirlpool>::try_from(&whirlpool_account_info).unwrap();
// initialized
let ta0_address = derive_tick_array_pda(&whirlpool, 0);
let mut ta0_mock =
AccountInfoMock::new_tick_array(ta0_address, whirlpool_address, 0, None);
// initialized
let ta2_address = derive_tick_array_pda(&whirlpool, 11264);
let mut ta2_mock =
AccountInfoMock::new_tick_array(ta2_address, whirlpool_address, 11264, None);
let ta0 = ta0_mock.to_account_info(true);
let ta1 = whirlpool_account_info.clone();
let ta2 = ta2_mock.to_account_info(true);
let result = SparseSwapTickSequenceBuilder::try_from(
&whirlpool,
false,
vec![ta0, ta1, ta2],
None,
);
assert!(result.is_err());
assert!(result
.err()
.unwrap()
.to_string()
.contains("AccountDiscriminatorMismatch"));
}
}
mod test_proxied_tick_array {
use crate::state::TICK_ARRAY_SIZE_USIZE;
use super::*;
fn to_proxied_tick_array_initialized<'a>(
account_info: &'a AccountInfo<'a>,
) -> ProxiedTickArray<'a> {
use std::ops::DerefMut;
let data = account_info.try_borrow_mut_data().unwrap();
let tick_array_refmut = RefMut::map(data, |data| {
bytemuck::from_bytes_mut(
&mut data.deref_mut()[8..std::mem::size_of::<TickArray>() + 8],
)
});
ProxiedTickArray::new_initialized(tick_array_refmut)
}
#[test]
fn initialized_start_tick_index() {
let mut start_28160 = AccountInfoMock::new_tick_array(
Pubkey::new_unique(),
Pubkey::new_unique(),
28160,
None,
);
let start_28160 = start_28160.to_account_info(true);
let proxied_28160 = to_proxied_tick_array_initialized(&start_28160);
assert_eq!(proxied_28160.start_tick_index(), 28160);
}
#[test]
fn uninitialized_start_tick_index() {
let proxied_56320 = ProxiedTickArray::new_uninitialized(56320);
assert_eq!(proxied_56320.start_tick_index(), 56320);
}
#[test]
fn initialized_get_and_update_tick() {
let mut start_28160 = AccountInfoMock::new_tick_array(
Pubkey::new_unique(),
Pubkey::new_unique(),
28160,
None,
);
let start_28160 = start_28160.to_account_info(true);
let mut proxied_28160 = to_proxied_tick_array_initialized(&start_28160);
let tick = proxied_28160.get_tick(28160 + 64, 64).unwrap();
assert!(!tick.initialized);
proxied_28160
.update_tick(
28160 + 64,
64,
&TickUpdate {
initialized: true,
..Default::default()
},
)
.unwrap();
let tick = proxied_28160.get_tick(28160 + 64, 64).unwrap();
assert!(tick.initialized);
}
#[test]
fn uninitialized_get_tick() {
let proxied_56320 = ProxiedTickArray::new_uninitialized(56320);
for i in 0..TICK_ARRAY_SIZE_USIZE {
let tick = proxied_56320.get_tick(56320 + (i as i32) * 64, 64).unwrap();
assert!(!tick.initialized);
}
}
#[test]
#[should_panic]
fn panic_uninitialized_update_tick() {
let mut proxied_56320 = ProxiedTickArray::new_uninitialized(56320);
// uninitialized tick must not be updated, so updating ProxiedTickArray::Uninitialized should panic
proxied_56320
.update_tick(
56320 + 64,
64,
&TickUpdate {
initialized: true,
..Default::default()
},
)
.unwrap();
}
#[test]
fn initialized_is_min_tick_array() {
let mut start_28160 = AccountInfoMock::new_tick_array(
Pubkey::new_unique(),
Pubkey::new_unique(),
28160,
None,
);
let start_28160 = start_28160.to_account_info(true);
let proxied_28160 = to_proxied_tick_array_initialized(&start_28160);
assert!(!proxied_28160.is_min_tick_array());
let mut start_neg_444928 = AccountInfoMock::new_tick_array(
Pubkey::new_unique(),
Pubkey::new_unique(),
-444928,
None,
);
let start_neg_444928 = start_neg_444928.to_account_info(true);
let proxied_neg_444928 = to_proxied_tick_array_initialized(&start_neg_444928);
assert!(proxied_neg_444928.is_min_tick_array());
}
#[test]
fn uninitialized_is_min_tick_array() {
let proxied_56320 = ProxiedTickArray::new_uninitialized(56320);
assert!(!proxied_56320.is_min_tick_array());
let proxied_neg_444928 = ProxiedTickArray::new_uninitialized(-444928);
assert!(proxied_neg_444928.is_min_tick_array());
}
#[test]
fn initialized_is_max_tick_array() {
let mut start_28160 = AccountInfoMock::new_tick_array(
Pubkey::new_unique(),
Pubkey::new_unique(),
28160,
None,
);
let start_28160 = start_28160.to_account_info(true);
let proxied_28160 = to_proxied_tick_array_initialized(&start_28160);
assert!(!proxied_28160.is_max_tick_array(64));
let mut start_439296 = AccountInfoMock::new_tick_array(
Pubkey::new_unique(),
Pubkey::new_unique(),
439296,
None,
);
let start_439296 = start_439296.to_account_info(true);
let proxied_439296 = to_proxied_tick_array_initialized(&start_439296);
assert!(proxied_439296.is_max_tick_array(64));
}
#[test]
fn uninitialized_is_max_tick_array() {
let proxied_56320 = ProxiedTickArray::new_uninitialized(56320);
assert!(!proxied_56320.is_max_tick_array(64));
let proxied_439296 = ProxiedTickArray::new_uninitialized(439296);
assert!(proxied_439296.is_max_tick_array(64));
}
#[test]
fn initialized_tick_offset() {
let mut start_28160 = AccountInfoMock::new_tick_array(
Pubkey::new_unique(),
Pubkey::new_unique(),
28160,
None,
);
let start_28160 = start_28160.to_account_info(true);
let proxied_28160 = to_proxied_tick_array_initialized(&start_28160);
for i in 0..TICK_ARRAY_SIZE_USIZE {
let offset = proxied_28160
.tick_offset(28160 + 64 * (i as i32), 64)
.unwrap();
assert_eq!(offset, i as isize);
}
}
#[test]
fn uninitialized_tick_offset() {
let proxied_56320 = ProxiedTickArray::new_uninitialized(56320);
for i in 0..TICK_ARRAY_SIZE_USIZE {
let offset = proxied_56320
.tick_offset(56320 + 64 * (i as i32), 64)
.unwrap();
assert_eq!(offset, i as isize);
}
}
#[test]
fn initialized_get_next_init_tick_index() {
let mut start_28160 = AccountInfoMock::new_tick_array(
Pubkey::new_unique(),
Pubkey::new_unique(),
28160,
None,
);
let start_28160 = start_28160.to_account_info(true);
let mut proxied_28160 = to_proxied_tick_array_initialized(&start_28160);
proxied_28160
.update_tick(
28160 + 64 * 16,
64,
&TickUpdate {
initialized: true,
..Default::default()
},
)
.unwrap();
let next_initialized_tick_index = proxied_28160
.get_next_init_tick_index(28160, 64, false)
.unwrap()
.unwrap();
assert_eq!(next_initialized_tick_index, 28160 + 64 * 16);
}
#[test]
fn uninitialized_get_next_init_tick_index() {
let proxied_56320 = ProxiedTickArray::new_uninitialized(56320);
let next_initialized_tick_index = proxied_56320
.get_next_init_tick_index(56320, 64, false)
.unwrap();
assert!(next_initialized_tick_index.is_none());
}
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/token_2022.rs
|
use anchor_lang::prelude::*;
use anchor_spl::associated_token::{self, AssociatedToken};
use anchor_spl::token_2022::spl_token_2022::extension::{
BaseStateWithExtensions, StateWithExtensions,
};
use anchor_spl::token_2022::spl_token_2022::{
self, extension::ExtensionType, instruction::AuthorityType,
};
use anchor_spl::token_2022::Token2022;
use anchor_spl::token_interface::{Mint, TokenAccount};
use solana_program::program::{invoke, invoke_signed};
use solana_program::system_instruction::{create_account, transfer};
use crate::constants::{
WP_2022_METADATA_NAME_PREFIX, WP_2022_METADATA_SYMBOL, WP_2022_METADATA_URI_BASE,
};
use crate::state::*;
pub fn initialize_position_mint_2022<'info>(
position_mint: &Signer<'info>,
funder: &Signer<'info>,
position: &Account<'info, Position>,
system_program: &Program<'info, System>,
token_2022_program: &Program<'info, Token2022>,
use_token_metadata_extension: bool,
) -> Result<()> {
let space = ExtensionType::try_calculate_account_len::<spl_token_2022::state::Mint>(
if use_token_metadata_extension {
&[
ExtensionType::MintCloseAuthority,
ExtensionType::MetadataPointer,
]
} else {
&[ExtensionType::MintCloseAuthority]
},
)?;
let lamports = Rent::get()?.minimum_balance(space);
let authority = position;
// create account
invoke(
&create_account(
funder.key,
position_mint.key,
lamports,
space as u64,
token_2022_program.key,
),
&[
funder.to_account_info(),
position_mint.to_account_info(),
token_2022_program.to_account_info(),
system_program.to_account_info(),
],
)?;
// initialize MintCloseAuthority extension
// authority: Position account (PDA)
invoke(
&spl_token_2022::instruction::initialize_mint_close_authority(
token_2022_program.key,
position_mint.key,
Some(&authority.key()),
)?,
&[
position_mint.to_account_info(),
authority.to_account_info(),
token_2022_program.to_account_info(),
],
)?;
if use_token_metadata_extension {
// TokenMetadata extension requires MetadataPointer extension to be initialized
// initialize MetadataPointer extension
// authority: None
invoke(
&spl_token_2022::extension::metadata_pointer::instruction::initialize(
token_2022_program.key,
position_mint.key,
None,
Some(position_mint.key()),
)?,
&[
position_mint.to_account_info(),
authority.to_account_info(),
token_2022_program.to_account_info(),
],
)?;
}
// initialize Mint
// mint authority: Position account (PDA) (will be removed in the transaction)
// freeze authority: Position account (PDA) (reserved for future improvements)
invoke(
&spl_token_2022::instruction::initialize_mint2(
token_2022_program.key,
position_mint.key,
&authority.key(),
Some(&authority.key()),
0,
)?,
&[
position_mint.to_account_info(),
authority.to_account_info(),
token_2022_program.to_account_info(),
],
)?;
Ok(())
}
#[allow(clippy::too_many_arguments)]
pub fn initialize_token_metadata_extension<'info>(
name: String,
symbol: String,
uri: String,
position_mint: &Signer<'info>,
position: &Account<'info, Position>,
metadata_update_authority: &UncheckedAccount<'info>,
funder: &Signer<'info>,
system_program: &Program<'info, System>,
token_2022_program: &Program<'info, Token2022>,
position_seeds: &[&[u8]],
) -> Result<()> {
let mint_authority = position;
let metadata = spl_token_metadata_interface::state::TokenMetadata {
name,
symbol,
uri,
..Default::default()
};
// we need to add rent for TokenMetadata extension to reallocate space
let token_mint_data = position_mint.try_borrow_data()?;
let token_mint_unpacked =
StateWithExtensions::<spl_token_2022::state::Mint>::unpack(&token_mint_data)?;
let new_account_len = token_mint_unpacked
.try_get_new_account_len::<spl_token_metadata_interface::state::TokenMetadata>(&metadata)?;
let new_rent_exempt_minimum = Rent::get()?.minimum_balance(new_account_len);
let additional_rent = new_rent_exempt_minimum.saturating_sub(position_mint.lamports());
drop(token_mint_data); // CPI call will borrow the account data
// transfer additional rent
invoke(
&transfer(funder.key, position_mint.key, additional_rent),
&[
funder.to_account_info(),
position_mint.to_account_info(),
system_program.to_account_info(),
],
)?;
// initialize TokenMetadata extension
// update authority: WP_NFT_UPDATE_AUTH
invoke_signed(
&spl_token_metadata_interface::instruction::initialize(
token_2022_program.key,
position_mint.key,
metadata_update_authority.key,
position_mint.key,
&mint_authority.key(),
metadata.name,
metadata.symbol,
metadata.uri,
),
&[
position_mint.to_account_info(),
mint_authority.to_account_info(),
metadata_update_authority.to_account_info(),
token_2022_program.to_account_info(),
],
&[position_seeds],
)?;
Ok(())
}
pub fn initialize_position_token_account_2022<'info>(
position_token_account: &UncheckedAccount<'info>,
position_mint: &Signer<'info>,
funder: &Signer<'info>,
owner: &UncheckedAccount<'info>,
token_2022_program: &Program<'info, Token2022>,
system_program: &Program<'info, System>,
associated_token_program: &Program<'info, AssociatedToken>,
) -> Result<()> {
associated_token::create(CpiContext::new(
associated_token_program.to_account_info(),
associated_token::Create {
payer: funder.to_account_info(),
associated_token: position_token_account.to_account_info(),
authority: owner.to_account_info(),
mint: position_mint.to_account_info(),
system_program: system_program.to_account_info(),
token_program: token_2022_program.to_account_info(),
},
))
}
pub fn mint_position_token_2022_and_remove_authority<'info>(
position: &Account<'info, Position>,
position_mint: &Signer<'info>,
position_token_account: &UncheckedAccount<'info>,
token_2022_program: &Program<'info, Token2022>,
position_seeds: &[&[u8]],
) -> Result<()> {
let authority = position;
// mint
invoke_signed(
&spl_token_2022::instruction::mint_to(
token_2022_program.key,
position_mint.to_account_info().key,
position_token_account.to_account_info().key,
authority.to_account_info().key,
&[authority.to_account_info().key],
1,
)?,
&[
position_mint.to_account_info(),
position_token_account.to_account_info(),
authority.to_account_info(),
token_2022_program.to_account_info(),
],
&[position_seeds],
)?;
// remove mint authority
invoke_signed(
&spl_token_2022::instruction::set_authority(
token_2022_program.key,
position_mint.to_account_info().key,
Option::None,
AuthorityType::MintTokens,
authority.to_account_info().key,
&[authority.to_account_info().key],
)?,
&[
position_mint.to_account_info(),
authority.to_account_info(),
token_2022_program.to_account_info(),
],
&[position_seeds],
)?;
Ok(())
}
pub fn burn_and_close_user_position_token_2022<'info>(
token_authority: &Signer<'info>,
receiver: &UncheckedAccount<'info>,
position_mint: &InterfaceAccount<'info, Mint>,
position_token_account: &InterfaceAccount<'info, TokenAccount>,
token_2022_program: &Program<'info, Token2022>,
position: &Account<'info, Position>,
position_seeds: &[&[u8]],
) -> Result<()> {
// Burn a single token in user account
invoke(
&spl_token_2022::instruction::burn_checked(
token_2022_program.key,
position_token_account.to_account_info().key,
position_mint.to_account_info().key,
token_authority.key,
&[],
1,
position_mint.decimals,
)?,
&[
token_2022_program.to_account_info(),
position_token_account.to_account_info(),
position_mint.to_account_info(),
token_authority.to_account_info(),
],
)?;
// Close user account
invoke(
&spl_token_2022::instruction::close_account(
token_2022_program.key,
position_token_account.to_account_info().key,
receiver.key,
token_authority.key,
&[],
)?,
&[
token_2022_program.to_account_info(),
position_token_account.to_account_info(),
receiver.to_account_info(),
token_authority.to_account_info(),
],
)?;
// Close mint
invoke_signed(
&spl_token_2022::instruction::close_account(
token_2022_program.key,
position_mint.to_account_info().key,
receiver.key,
&position.key(),
&[],
)?,
&[
token_2022_program.to_account_info(),
position_mint.to_account_info(),
receiver.to_account_info(),
position.to_account_info(),
],
&[position_seeds],
)?;
Ok(())
}
pub fn build_position_token_metadata<'info>(
position_mint: &Signer<'info>,
position: &Account<'info, Position>,
whirlpool: &Account<'info, Whirlpool>,
) -> (String, String, String) {
// WP_2022_METADATA_NAME_PREFIX + " xxxx...yyyy"
// xxxx and yyyy are the first and last 4 chars of mint address
let mint_address = position_mint.key().to_string();
let name = format!(
"{} {}...{}",
WP_2022_METADATA_NAME_PREFIX,
&mint_address[0..4],
&mint_address[mint_address.len() - 4..],
);
// WP_2022_METADATA_URI_BASE + "/" + pool address + "/" + position address
// Must be less than 128 bytes
let uri = format!(
"{}/{}/{}",
WP_2022_METADATA_URI_BASE,
whirlpool.key(),
position.key(),
);
(name, WP_2022_METADATA_SYMBOL.to_string(), uri)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/swap_tick_sequence.rs
|
use crate::errors::ErrorCode;
use crate::state::*;
use crate::util::ProxiedTickArray;
use anchor_lang::prelude::*;
use std::cell::RefMut;
pub struct SwapTickSequence<'info> {
arrays: Vec<ProxiedTickArray<'info>>,
}
impl<'info> SwapTickSequence<'info> {
pub fn new(
ta0: RefMut<'info, TickArray>,
ta1: Option<RefMut<'info, TickArray>>,
ta2: Option<RefMut<'info, TickArray>>,
) -> Self {
Self::new_with_proxy(
ProxiedTickArray::new_initialized(ta0),
ta1.map(ProxiedTickArray::new_initialized),
ta2.map(ProxiedTickArray::new_initialized),
)
}
pub(crate) fn new_with_proxy(
ta0: ProxiedTickArray<'info>,
ta1: Option<ProxiedTickArray<'info>>,
ta2: Option<ProxiedTickArray<'info>>,
) -> Self {
let mut vec = Vec::with_capacity(3);
vec.push(ta0);
if let Some(ta1) = ta1 {
vec.push(ta1);
}
if let Some(ta2) = ta2 {
vec.push(ta2);
}
Self { arrays: vec }
}
/// Get the Tick object at the given tick-index & tick-spacing
///
/// # Parameters
/// - `array_index` - the array index that the tick of this given tick-index would be stored in
/// - `tick_index` - the tick index the desired Tick object is stored in
/// - `tick_spacing` - A u8 integer of the tick spacing for this whirlpool
///
/// # Returns
/// - `&Tick`: A reference to the desired Tick object
/// - `TickArrayIndexOutofBounds` - The provided array-index is out of bounds
/// - `TickNotFound`: - The provided tick-index is not an initializable tick index in this Whirlpool w/ this tick-spacing.
pub fn get_tick(
&self,
array_index: usize,
tick_index: i32,
tick_spacing: u16,
) -> Result<&Tick> {
let array = self.arrays.get(array_index);
match array {
Some(array) => array.get_tick(tick_index, tick_spacing),
_ => Err(ErrorCode::TickArrayIndexOutofBounds.into()),
}
}
/// Updates the Tick object at the given tick-index & tick-spacing
///
/// # Parameters
/// - `array_index` - the array index that the tick of this given tick-index would be stored in
/// - `tick_index` - the tick index the desired Tick object is stored in
/// - `tick_spacing` - A u8 integer of the tick spacing for this whirlpool
/// - `update` - A reference to a TickUpdate object to update the Tick object at the given index
///
/// # Errors
/// - `TickArrayIndexOutofBounds` - The provided array-index is out of bounds
/// - `TickNotFound`: - The provided tick-index is not an initializable tick index in this Whirlpool w/ this tick-spacing.
pub fn update_tick(
&mut self,
array_index: usize,
tick_index: i32,
tick_spacing: u16,
update: &TickUpdate,
) -> Result<()> {
let array = self.arrays.get_mut(array_index);
match array {
Some(array) => {
array.update_tick(tick_index, tick_spacing, update)?;
Ok(())
}
_ => Err(ErrorCode::TickArrayIndexOutofBounds.into()),
}
}
pub fn get_tick_offset(
&self,
array_index: usize,
tick_index: i32,
tick_spacing: u16,
) -> Result<isize> {
let array = self.arrays.get(array_index);
match array {
Some(array) => array.tick_offset(tick_index, tick_spacing),
_ => Err(ErrorCode::TickArrayIndexOutofBounds.into()),
}
}
/// Get the next initialized tick in the provided tick range
///
/// # Parameters
/// - `tick_index` - the tick index to start searching from
/// - `tick_spacing` - A u8 integer of the tick spacing for this whirlpool
/// - `a_to_b` - If the trade is from a_to_b, the search will move to the left and the starting search tick is inclusive.
/// If the trade is from b_to_a, the search will move to the right and the starting search tick is not inclusive.
/// - `start_array_index` -
///
/// # Returns
/// - `(usize, i32, &mut Tick)`: The array_index which the next initialized index was found, the next initialized tick-index & a mutable reference to that tick
/// - `TickArraySequenceInvalidIndex` - The swap loop provided an invalid array index to query the next tick in.
/// - `InvalidTickArraySequence`: - User provided tick-arrays are not in sequential order required to proceed in this trade direction.
pub fn get_next_initialized_tick_index(
&self,
tick_index: i32,
tick_spacing: u16,
a_to_b: bool,
start_array_index: usize,
) -> Result<(usize, i32)> {
let ticks_in_array = TICK_ARRAY_SIZE * tick_spacing as i32;
let mut search_index = tick_index;
let mut array_index = start_array_index;
// Keep looping the arrays until an initialized tick index in the subsequent tick-arrays found.
loop {
// If we get to the end of the array sequence and next_index is still not found, throw error
let next_array = match self.arrays.get(array_index) {
Some(array) => array,
None => return Err(ErrorCode::TickArraySequenceInvalidIndex.into()),
};
let next_index =
next_array.get_next_init_tick_index(search_index, tick_spacing, a_to_b)?;
match next_index {
Some(next_index) => {
return Ok((array_index, next_index));
}
None => {
// If we are at the last valid tick array, return the min/max tick index
if a_to_b && next_array.is_min_tick_array() {
return Ok((array_index, MIN_TICK_INDEX));
} else if !a_to_b && next_array.is_max_tick_array(tick_spacing) {
return Ok((array_index, MAX_TICK_INDEX));
}
// If we are at the last tick array in the sequencer, return the last tick
if array_index + 1 == self.arrays.len() {
if a_to_b {
return Ok((array_index, next_array.start_tick_index()));
} else {
let last_tick = next_array.start_tick_index() + ticks_in_array - 1;
return Ok((array_index, last_tick));
}
}
// No initialized index found. Move the search-index to the 1st search position
// of the next array in sequence.
search_index = if a_to_b {
next_array.start_tick_index() - 1
} else {
next_array.start_tick_index() + ticks_in_array - 1
};
array_index += 1;
}
}
}
}
}
#[cfg(test)]
mod swap_tick_sequence_tests {
use super::*;
use std::cell::RefCell;
const TS_8: u16 = 8;
const TS_128: u16 = 128;
const LAST_TICK_OFFSET: usize = TICK_ARRAY_SIZE as usize - 1;
fn build_tick_array(
start_tick_index: i32,
initialized_offsets: Vec<usize>,
) -> RefCell<TickArray> {
let mut array = TickArray {
start_tick_index,
..TickArray::default()
};
for offset in initialized_offsets {
array.ticks[offset] = Tick {
initialized: true,
..Tick::default()
};
}
RefCell::new(array)
}
mod modify_ticks {
use super::*;
#[test]
fn modify_tick_init_tick() {
let ta0 = build_tick_array(11264, vec![50]);
let ta1 = build_tick_array(0, vec![25, 71]);
let ta2 = build_tick_array(-11264, vec![25, 35, 56]);
let mut swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
let initialized_ticks_offsets = [(0, 50), (1, 25), (1, 71), (2, 25), (2, 35), (2, 56)];
for init_tick_offset in initialized_ticks_offsets {
let array_index = init_tick_offset.0 as usize;
let tick_index = 11264 - array_index as i32 * TS_128 as i32 * TICK_ARRAY_SIZE
+ init_tick_offset.1 * TS_128 as i32;
let result = swap_tick_sequence.get_tick(array_index, tick_index, TS_128);
assert!(result.is_ok());
assert!(result.unwrap().initialized);
let update_result = swap_tick_sequence.update_tick(
array_index,
tick_index,
TS_128,
&TickUpdate {
initialized: false,
liquidity_net: 1500,
..Default::default()
},
);
assert!(update_result.is_ok());
let get_updated_result = swap_tick_sequence
.get_tick(array_index, tick_index, TS_128)
.unwrap();
let liq_net = get_updated_result.liquidity_net;
assert_eq!(liq_net, 1500);
}
}
#[test]
fn modify_tick_uninitializable_tick() {
let ta0 = build_tick_array(9216, vec![50]);
let ta1 = build_tick_array(0, vec![25, 71]);
let ta2 = build_tick_array(-9216, vec![25, 35, 56]);
let mut swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
let uninitializable_tick_indices = [(0, 9217), (1, 257), (2, -5341)];
for uninitializable_search_tick in uninitializable_tick_indices {
let result = swap_tick_sequence.get_tick(
uninitializable_search_tick.0,
uninitializable_search_tick.1,
TS_128,
);
assert_eq!(result.unwrap_err(), ErrorCode::TickNotFound.into());
let update_result = swap_tick_sequence.update_tick(
uninitializable_search_tick.0,
uninitializable_search_tick.1,
TS_128,
&TickUpdate {
initialized: false,
liquidity_net: 1500,
..Default::default()
},
);
assert_eq!(update_result.unwrap_err(), ErrorCode::TickNotFound.into());
}
}
#[test]
fn modify_tick_uninitialized_tick() {
let ta0 = build_tick_array(9216, vec![50]);
let ta1 = build_tick_array(0, vec![25, 71]);
let ta2 = build_tick_array(-9216, vec![25, 35, 56]);
let mut swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
let uninitialized_tick_indices = [(0, 13696), (1, 0), (1, 3072), (2, -3456)];
for uninitializable_search_tick in uninitialized_tick_indices {
let result = swap_tick_sequence.get_tick(
uninitializable_search_tick.0,
uninitializable_search_tick.1,
TS_128,
);
assert!(!result.unwrap().initialized);
let update_result = swap_tick_sequence.update_tick(
uninitializable_search_tick.0,
uninitializable_search_tick.1,
TS_128,
&TickUpdate {
initialized: true,
liquidity_net: 1500,
..Default::default()
},
);
assert!(update_result.is_ok());
let get_updated_result = swap_tick_sequence
.get_tick(
uninitializable_search_tick.0,
uninitializable_search_tick.1,
TS_128,
)
.unwrap();
assert!(get_updated_result.initialized);
let liq_net = get_updated_result.liquidity_net;
assert_eq!(liq_net, 1500);
}
}
#[test]
fn cannot_modify_invalid_array_index() {
let ta0 = build_tick_array(9216, vec![50]);
let ta1 = build_tick_array(0, vec![25, 71]);
let ta2 = build_tick_array(-9216, vec![25, 35, 56]);
let mut swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
let get_result = swap_tick_sequence.get_tick(3, 5000, TS_128);
assert_eq!(
get_result.unwrap_err(),
ErrorCode::TickArrayIndexOutofBounds.into()
);
let update_result = swap_tick_sequence.update_tick(
3,
5000,
TS_128,
&TickUpdate {
..Default::default()
},
);
assert_eq!(
update_result.unwrap_err(),
ErrorCode::TickArrayIndexOutofBounds.into()
);
}
}
mod a_to_b {
use super::*;
#[test]
/// In an a_to_b search, the search-range of a tick-array is between 0 & last-tick - 1
fn search_range() {
let ta0 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let ta1 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let ta2 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
// Verify start range is ok at start-tick-index
let (start_range_array_index, start_range_result_index) = swap_tick_sequence
.get_next_initialized_tick_index(0, TS_128, true, 2)
.unwrap();
assert_eq!(start_range_result_index, 0);
assert_eq!(start_range_array_index, 2);
// Verify search is ok at the last tick-index in array
let last_tick_in_array = (TICK_ARRAY_SIZE * TS_128 as i32) - 1;
let expected_last_usable_tick_index = LAST_TICK_OFFSET as i32 * TS_128 as i32;
let (end_range_array_index, end_range_result_index) = swap_tick_sequence
.get_next_initialized_tick_index(last_tick_in_array, TS_128, true, 2)
.unwrap();
assert_eq!(end_range_result_index, expected_last_usable_tick_index);
assert_eq!(end_range_array_index, 2);
}
#[test]
/// On a b_to_a search where the search_index is within [-tickSpacing, 0) and search array begins at 0, correctly
/// uses 0 as next initialized. This test is shifted by TICK_ARRAY_SIZE * TS_128.
fn search_range_on_left() {
let ta0 = build_tick_array(
TICK_ARRAY_SIZE * TS_128 as i32,
vec![0, 1, LAST_TICK_OFFSET],
);
let swap_tick_sequence = SwapTickSequence::new(ta0.borrow_mut(), None, None);
// Verify start range is ok at start-tick-index
let (start_range_array_index, start_range_result_index) = swap_tick_sequence
.get_next_initialized_tick_index(
TICK_ARRAY_SIZE * (TS_128 as i32) - 40,
TS_128,
false,
0,
)
.unwrap();
assert_eq!(start_range_array_index, 0);
assert_eq!(start_range_result_index, TICK_ARRAY_SIZE * TS_128 as i32);
}
#[test]
#[should_panic(expected = "InvalidTickArraySequence")]
/// In an a_to_b search, search will panic if search index is on the last tick in array + 1
fn range_panic_on_end_range_plus_one() {
let ta0 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let ta1 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let ta2 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
let last_tick_in_array_plus_one = TICK_ARRAY_SIZE * TS_8 as i32;
let (_, _) = swap_tick_sequence
.get_next_initialized_tick_index(last_tick_in_array_plus_one, TS_8, true, 1)
.unwrap();
}
#[test]
#[should_panic(expected = "InvalidTickArraySequence")]
/// In an a_to_b search, search will panic if search index is on the first tick in array - 1
fn range_panic_on_start_range_sub_one() {
let ta0 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let ta1 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let ta2 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
let (_, _) = swap_tick_sequence
.get_next_initialized_tick_index(-1, TS_8, true, 2)
.unwrap();
}
}
mod b_to_a {
use super::*;
#[test]
/// In an b_to_a search, the search-range of a tick-array is between the last usable tick in the last array
/// & the last usable tick in this array minus one.
fn search_range() {
let ta0 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let swap_tick_sequence = SwapTickSequence::new(ta0.borrow_mut(), None, None);
// Verify start range is ok at start-tick-index
let (start_range_array_index, start_range_result_index) = swap_tick_sequence
.get_next_initialized_tick_index(-(TS_8 as i32), TS_8, false, 0)
.unwrap();
assert_eq!(start_range_result_index, 0);
assert_eq!(start_range_array_index, 0);
// Verify search is ok at the last tick-index in array
let last_searchable_tick_in_array = LAST_TICK_OFFSET as i32 * TS_8 as i32 - 1;
let last_usable_tick_in_array = LAST_TICK_OFFSET as i32 * TS_8 as i32;
let (end_range_array_index, end_range_result_index) = swap_tick_sequence
.get_next_initialized_tick_index(last_searchable_tick_in_array, TS_8, false, 0)
.unwrap();
assert_eq!(end_range_result_index, last_usable_tick_in_array);
assert_eq!(end_range_array_index, 0);
}
#[test]
#[should_panic(expected = "InvalidTickArraySequence")]
/// In an b_to_a search, search will panic if search index is on the last usable tick
fn range_panic_on_end_range_plus_one() {
let ta0 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let swap_tick_sequence = SwapTickSequence::new(ta0.borrow_mut(), None, None);
let last_searchable_tick_in_array_plus_one = LAST_TICK_OFFSET as i32 * TS_8 as i32;
let (_, _) = swap_tick_sequence
.get_next_initialized_tick_index(
last_searchable_tick_in_array_plus_one,
TS_8,
false,
0,
)
.unwrap();
}
#[test]
#[should_panic(expected = "InvalidTickArraySequence")]
/// In an b_to_a search, search will panic if search index is less than the last usable tick in the previous tick-array
fn range_panic_on_start_range_sub_one() {
let ta0 = build_tick_array(0, vec![0, LAST_TICK_OFFSET]);
let swap_tick_sequence = SwapTickSequence::new(ta0.borrow_mut(), None, None);
let (_, _) = swap_tick_sequence
.get_next_initialized_tick_index(-(TS_8 as i32) - 1, TS_8, false, 0)
.unwrap();
}
}
mod tick_bound {
use super::*;
/// SwapTickSequence will bound the ticks by tick-array, not max/min tick. This is to reduce duplicated responsibility
/// between thsi & the swap loop / compute_swap.
#[test]
fn b_to_a_search_reaching_max_tick() {
let ta0 = build_tick_array(0, vec![]);
let ta1 = build_tick_array(0, vec![]);
let ta2 = build_tick_array(443520, vec![]); // Max(443636).div_floor(tick-spacing (8) * TA Size (72))* tick-spacing (8) * TA Size (72)
let swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
let (array_index, index) = swap_tick_sequence
.get_next_initialized_tick_index(443521, TS_8, false, 2)
.unwrap();
assert_eq!(index, 443636);
assert_eq!(array_index, 2);
}
#[test]
fn a_to_b_search_reaching_min_tick() {
let ta0 = build_tick_array(0, vec![]);
let ta1 = build_tick_array(0, vec![]);
let ta2 = build_tick_array(-444096, vec![]); // Min(-443636).div_ceil(tick-spacing (8) * TA Size (72)) * tick-spacing (8) * TA Size (72)
let swap_tick_sequence = SwapTickSequence::new(
ta2.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta0.borrow_mut()),
);
let (array_index, index) = swap_tick_sequence
.get_next_initialized_tick_index(-443521, TS_8, true, 0)
.unwrap();
assert_eq!(index, -443636);
assert_eq!(array_index, 0);
}
}
#[test]
/// Search index on an initialized tick index will return that tick in a a_to_b search
/// Expect:
/// - The same tick will be returned if search index is an initialized tick
fn a_to_b_search_on_initialized_index() {
let ta0 = build_tick_array(9216, vec![]);
let ta1 = build_tick_array(0, vec![25, 71]);
let ta2 = build_tick_array(-9216, vec![25, 35, 56]);
let swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
let (array_index, index) = swap_tick_sequence
.get_next_initialized_tick_index(9088, TS_128, true, 1)
.unwrap();
assert_eq!(index, 9088);
assert_eq!(array_index, 1);
let tick = swap_tick_sequence
.get_tick(array_index, index, TS_128)
.unwrap();
assert!(tick.initialized);
}
#[test]
/// a-to-b search through the entire tick-array sequence
///
/// Verifies:
/// - Search index will not return previous initialized indicies in a b_to_a search
/// - If the search reaches the end of the last tick array, return the first tick index of the last tick array
fn a_to_b_search_entire_range() {
let ta0 = build_tick_array(9216, vec![]);
let ta1 = build_tick_array(0, vec![25, 71]);
let ta2 = build_tick_array(-9216, vec![25, 35, 56]);
let swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
let mut search_index = 18431;
let mut curr_array_index = 0;
let expectation = [
(9088, 1, true),
(3200, 1, true),
(-2048, 2, true),
(-4736, 2, true),
(-6016, 2, true),
(-9216, 2, false),
];
for expected in expectation.iter() {
let (array_index, index) = swap_tick_sequence
.get_next_initialized_tick_index(search_index, TS_128, true, curr_array_index)
.unwrap();
assert_eq!(index, expected.0);
assert_eq!(array_index, expected.1);
let tick = swap_tick_sequence
.get_tick(array_index, index, TS_128)
.unwrap();
assert_eq!(tick.initialized, expected.2);
// users on a_to_b search must manually decrement since a_to_b is inclusive of current-tick
search_index = index - 1;
curr_array_index = array_index;
}
}
#[test]
/// b-to-a search through the entire tick-array sequence
///
/// Verifies:
/// - Search index on an initialized tick index will not return that tick in a b_to_a search
/// - Search index will not return previous initialized indicies in a b_to_a search
/// - Search indicies within the shifted range (-tick-spacing prior to the start-tick) will
/// return a valid initialized tick
/// - If the search reaches the last tick array, return the last tick in the last tick array
fn b_to_a_search_entire_range() {
let ta0 = build_tick_array(0, vec![10, 25]);
let ta1 = build_tick_array(704, vec![]);
let ta2 = build_tick_array(1408, vec![10, 50, 25]);
let swap_tick_sequence = SwapTickSequence::new(
ta0.borrow_mut(),
Some(ta1.borrow_mut()),
Some(ta2.borrow_mut()),
);
let mut search_index = -7;
let mut curr_array_index = 0;
let expectation = [
(80, 0, true),
(200, 0, true),
(1488, 2, true),
(1608, 2, true),
(1808, 2, true),
(2111, 2, false),
];
for expected in expectation.iter() {
let (array_index, index) = swap_tick_sequence
.get_next_initialized_tick_index(search_index, TS_8, false, curr_array_index)
.unwrap();
assert_eq!(index, expected.0);
assert_eq!(array_index, expected.1);
let mut tick_initialized = false;
if Tick::check_is_usable_tick(index, TS_8) {
tick_initialized = swap_tick_sequence
.get_tick(array_index, index, TS_8)
.unwrap()
.initialized;
};
assert_eq!(tick_initialized, expected.2);
search_index = index;
curr_array_index = array_index;
}
}
#[test]
#[should_panic(expected = "InvalidTickArraySequence")]
/// The starting point of a swap should always be contained within the first array
/// Expected:
/// - Panic on InvalidTickArraySequence on 1st array
fn array_0_out_of_sequence() {
let ta0 = build_tick_array(0, vec![10, 25]);
let ta1 = build_tick_array(720, vec![53, 71]);
let ta2 = build_tick_array(1440, vec![10, 50, 25]);
let swap_tick_sequence = SwapTickSequence::new(
ta1.borrow_mut(),
Some(ta0.borrow_mut()),
Some(ta2.borrow_mut()),
);
let mut search_index = -5;
let mut curr_array_index = 0;
for _ in 0..10 {
let (array_index, index) = swap_tick_sequence
.get_next_initialized_tick_index(search_index, TS_8, false, curr_array_index)
.unwrap();
search_index = index;
curr_array_index = array_index;
}
}
#[test]
#[should_panic(expected = "InvalidTickArraySequence")]
/// Search sequence will be successful up until invalid tick array sequence
///
/// Expected:
/// - Does not panic when traversing tick-array 0
/// - Panic on InvalidTickArraySequence when search-sequence is not in array 1's range
fn array_1_out_of_sequence() {
let ta0 = build_tick_array(-576, vec![10]);
let ta1 = build_tick_array(0, vec![10]);
let ta2 = build_tick_array(576, vec![25]);
let swap_tick_sequence = SwapTickSequence::new(
ta2.borrow_mut(),
Some(ta0.borrow_mut()),
Some(ta1.borrow_mut()),
);
let mut search_index = 1439;
let mut curr_array_index = 0;
let expectation = [(776, 0, true), (576, 0, false), (80, 0, true)];
for expected in expectation.iter() {
let (array_index, index) = swap_tick_sequence
.get_next_initialized_tick_index(search_index, TS_8, true, curr_array_index)
.unwrap();
assert_eq!(index, expected.0);
assert_eq!(array_index, expected.1);
let tick = swap_tick_sequence
.get_tick(array_index, index, TS_8)
.unwrap();
assert_eq!(tick.initialized, expected.2);
search_index = index - 1;
curr_array_index = array_index;
}
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/shared.rs
|
use anchor_lang::{
prelude::{AccountInfo, Pubkey, Signer, *},
ToAccountInfo,
};
use anchor_spl::token::TokenAccount;
use anchor_spl::token_interface::TokenAccount as TokenAccountInterface;
use solana_program::program_option::COption;
use std::convert::TryFrom;
use crate::errors::ErrorCode;
pub fn verify_position_bundle_authority(
position_bundle_token_account: &TokenAccount,
position_bundle_authority: &Signer<'_>,
) -> Result<()> {
// use same logic
verify_position_authority(position_bundle_token_account, position_bundle_authority)
}
pub fn verify_position_authority(
position_token_account: &TokenAccount,
position_authority: &Signer<'_>,
) -> Result<()> {
// Check token authority using validate_owner method...
match position_token_account.delegate {
COption::Some(ref delegate) if position_authority.key == delegate => {
validate_owner(delegate, &position_authority.to_account_info())?;
if position_token_account.delegated_amount != 1 {
return Err(ErrorCode::InvalidPositionTokenAmount.into());
}
}
_ => validate_owner(
&position_token_account.owner,
&position_authority.to_account_info(),
)?,
};
Ok(())
}
pub fn verify_position_authority_interface(
// position_token_account is owned by either TokenProgram or Token2022Program
position_token_account: &InterfaceAccount<'_, TokenAccountInterface>,
position_authority: &Signer<'_>,
) -> Result<()> {
// Check token authority using validate_owner method...
match position_token_account.delegate {
COption::Some(ref delegate) if position_authority.key == delegate => {
validate_owner(delegate, &position_authority.to_account_info())?;
if position_token_account.delegated_amount != 1 {
return Err(ErrorCode::InvalidPositionTokenAmount.into());
}
}
_ => validate_owner(
&position_token_account.owner,
&position_authority.to_account_info(),
)?,
};
Ok(())
}
fn validate_owner(expected_owner: &Pubkey, owner_account_info: &AccountInfo) -> Result<()> {
if expected_owner != owner_account_info.key || !owner_account_info.is_signer {
return Err(ErrorCode::MissingOrInvalidDelegate.into());
}
Ok(())
}
pub fn to_timestamp_u64(t: i64) -> Result<u64> {
u64::try_from(t).or(Err(ErrorCode::InvalidTimestampConversion.into()))
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/test_utils/liquidity_test_fixture.rs
|
use crate::manager::liquidity_manager::ModifyLiquidityUpdate;
use crate::manager::tick_manager::next_tick_cross_update;
use crate::manager::whirlpool_manager::*;
use crate::math::{add_liquidity_delta, Q64_RESOLUTION};
use crate::state::position_builder::PositionBuilder;
use crate::state::{
tick::*, tick_builder::TickBuilder, whirlpool_builder::WhirlpoolBuilder, Whirlpool,
};
use crate::state::{
Position, PositionRewardInfo, PositionUpdate, WhirlpoolRewardInfo, NUM_REWARDS,
};
use anchor_lang::prelude::*;
const BELOW_LOWER_TICK_INDEX: i32 = -120;
const ABOVE_UPPER_TICK_INDEX: i32 = 120;
pub enum CurrIndex {
Below,
Inside,
Above,
}
pub enum TickLabel {
Upper,
Lower,
}
pub enum Direction {
Left,
Right,
}
// State for testing modifying liquidity in a single whirlpool position
pub struct LiquidityTestFixture {
pub whirlpool: Whirlpool,
pub position: Position,
pub tick_lower: Tick,
pub tick_upper: Tick,
}
pub struct LiquidityTestFixtureInfo {
pub curr_index_loc: CurrIndex,
pub whirlpool_liquidity: u128,
pub position_liquidity: u128,
pub tick_lower_liquidity_gross: u128,
pub tick_upper_liquidity_gross: u128,
pub fee_growth_global_a: u128,
pub fee_growth_global_b: u128,
pub reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
}
impl LiquidityTestFixture {
pub fn new(info: LiquidityTestFixtureInfo) -> LiquidityTestFixture {
assert!(info.tick_lower_liquidity_gross < i64::MAX as u128);
assert!(info.tick_upper_liquidity_gross < i64::MAX as u128);
// Tick's must have enough at least enough liquidity to support the position
assert!(info.tick_lower_liquidity_gross >= info.position_liquidity);
assert!(info.tick_upper_liquidity_gross >= info.position_liquidity);
let curr_index = match info.curr_index_loc {
CurrIndex::Below => BELOW_LOWER_TICK_INDEX,
CurrIndex::Inside => 0,
CurrIndex::Above => ABOVE_UPPER_TICK_INDEX,
};
let whirlpool = WhirlpoolBuilder::new()
.tick_current_index(curr_index)
.liquidity(info.whirlpool_liquidity)
.reward_infos(info.reward_infos)
.fee_growth_global_a(info.fee_growth_global_a)
.fee_growth_global_b(info.fee_growth_global_b)
.build();
let tick_lower_initialized = info.tick_lower_liquidity_gross > 0;
let tick_upper_initialized = info.tick_upper_liquidity_gross > 0;
LiquidityTestFixture {
whirlpool,
position: PositionBuilder::new(-100, 100)
.liquidity(info.position_liquidity)
.build(),
tick_lower: TickBuilder::default()
.initialized(tick_lower_initialized)
.liquidity_gross(info.tick_lower_liquidity_gross)
.liquidity_net(info.tick_lower_liquidity_gross as i128)
.build(),
tick_upper: TickBuilder::default()
.initialized(tick_upper_initialized)
.liquidity_gross(info.tick_upper_liquidity_gross)
.liquidity_net(-(info.tick_upper_liquidity_gross as i128))
.build(),
}
}
pub fn increment_whirlpool_fee_growths(
&mut self,
fee_growth_delta_a: u128,
fee_growth_delta_b: u128,
) {
self.whirlpool.fee_growth_global_a = self
.whirlpool
.fee_growth_global_a
.wrapping_add(fee_growth_delta_a);
self.whirlpool.fee_growth_global_b = self
.whirlpool
.fee_growth_global_b
.wrapping_add(fee_growth_delta_b);
}
pub fn increment_whirlpool_reward_growths_by_time(&mut self, seconds: u64) {
let next_timestamp = self.whirlpool.reward_last_updated_timestamp + seconds;
self.whirlpool.reward_infos =
next_whirlpool_reward_infos(&self.whirlpool, next_timestamp).unwrap();
self.whirlpool.reward_last_updated_timestamp = next_timestamp;
}
/// Simulates crossing a tick within the test fixture.
pub fn cross_tick(&mut self, tick_label: TickLabel, direction: Direction) {
let tick = match tick_label {
TickLabel::Lower => &mut self.tick_lower,
TickLabel::Upper => &mut self.tick_upper,
};
let update = next_tick_cross_update(
tick,
self.whirlpool.fee_growth_global_a,
self.whirlpool.fee_growth_global_b,
&self.whirlpool.reward_infos,
)
.unwrap();
tick.update(&update);
self.whirlpool.liquidity = add_liquidity_delta(
self.whirlpool.liquidity,
match direction {
Direction::Left => -tick.liquidity_net,
Direction::Right => tick.liquidity_net,
},
)
.unwrap();
match tick_label {
TickLabel::Lower => match direction {
Direction::Right => self.whirlpool.tick_current_index = 0,
Direction::Left => self.whirlpool.tick_current_index = BELOW_LOWER_TICK_INDEX,
},
TickLabel::Upper => match direction {
Direction::Left => self.whirlpool.tick_current_index = 0,
Direction::Right => self.whirlpool.tick_current_index = ABOVE_UPPER_TICK_INDEX,
},
}
}
pub fn apply_update(
&mut self,
update: &ModifyLiquidityUpdate,
reward_last_updated_timestamp: u64,
) {
assert!(reward_last_updated_timestamp >= self.whirlpool.reward_last_updated_timestamp);
self.whirlpool.reward_last_updated_timestamp = reward_last_updated_timestamp;
self.whirlpool.liquidity = update.whirlpool_liquidity;
self.whirlpool.reward_infos = update.reward_infos;
self.tick_lower.update(&update.tick_lower_update);
self.tick_upper.update(&update.tick_upper_update);
self.position.update(&update.position_update);
}
}
pub fn create_whirlpool_reward_infos(
emissions_per_second_x64: u128,
growth_global_x64: u128,
) -> [WhirlpoolRewardInfo; NUM_REWARDS] {
[
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64,
growth_global_x64,
..Default::default()
},
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64,
growth_global_x64,
..Default::default()
},
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64,
growth_global_x64,
..Default::default()
},
]
}
pub fn create_position_reward_infos(
growth_inside_checkpoint: u128,
amount_owed: u64,
) -> [PositionRewardInfo; NUM_REWARDS] {
[
PositionRewardInfo {
growth_inside_checkpoint,
amount_owed,
},
PositionRewardInfo {
growth_inside_checkpoint,
amount_owed,
},
PositionRewardInfo {
growth_inside_checkpoint,
amount_owed,
},
]
}
pub fn create_reward_growths(growth_global_x64: u128) -> [u128; NUM_REWARDS] {
[growth_global_x64, growth_global_x64, growth_global_x64]
}
pub fn to_x64(n: u128) -> u128 {
n << Q64_RESOLUTION
}
pub fn assert_whirlpool_reward_growths(
reward_infos: &[WhirlpoolRewardInfo; NUM_REWARDS],
expected_growth: u128,
) {
assert_eq!(
WhirlpoolRewardInfo::to_reward_growths(reward_infos),
create_reward_growths(expected_growth)
)
}
pub struct ModifyLiquidityExpectation {
pub whirlpool_liquidity: u128,
pub whirlpool_reward_growths: [u128; NUM_REWARDS],
pub position_update: PositionUpdate,
pub tick_lower_update: TickUpdate,
pub tick_upper_update: TickUpdate,
}
pub fn assert_modify_liquidity(
update: &ModifyLiquidityUpdate,
expect: &ModifyLiquidityExpectation,
) {
assert_eq!(update.whirlpool_liquidity, expect.whirlpool_liquidity);
assert_eq!(
WhirlpoolRewardInfo::to_reward_growths(&update.reward_infos),
expect.whirlpool_reward_growths
);
assert_eq!(update.tick_lower_update, expect.tick_lower_update);
assert_eq!(update.tick_upper_update, expect.tick_upper_update);
assert_eq!(update.position_update, expect.position_update);
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/test_utils/mod.rs
|
pub mod liquidity_test_fixture;
pub mod swap_test_fixture;
pub use liquidity_test_fixture::*;
pub use swap_test_fixture::*;
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/test_utils/swap_test_fixture.rs
|
use crate::manager::swap_manager::*;
use crate::math::tick_math::*;
use crate::state::{
tick::*, tick_builder::TickBuilder, whirlpool_builder::WhirlpoolBuilder, TickArray, Whirlpool,
};
use crate::state::{WhirlpoolRewardInfo, NUM_REWARDS};
use crate::util::SwapTickSequence;
use anchor_lang::prelude::*;
use std::cell::RefCell;
pub const TS_8: u16 = 8;
pub const TS_128: u16 = 128;
const NO_TICKS_VEC: &Vec<TestTickInfo> = &vec![];
pub struct SwapTestFixture {
pub whirlpool: Whirlpool,
pub tick_arrays: Vec<RefCell<TickArray>>,
pub trade_amount: u64,
pub sqrt_price_limit: u128,
pub amount_specified_is_input: bool,
pub a_to_b: bool,
pub reward_last_updated_timestamp: u64,
}
#[derive(Default)]
pub struct TestTickInfo {
pub index: i32,
pub liquidity_net: i128,
pub fee_growth_outside_a: u128,
pub fee_growth_outside_b: u128,
pub reward_growths_outside: [u128; NUM_REWARDS],
}
pub struct SwapTestFixtureInfo<'info> {
pub tick_spacing: u16,
pub liquidity: u128,
pub curr_tick_index: i32,
pub start_tick_index: i32,
pub trade_amount: u64,
pub sqrt_price_limit: u128,
pub amount_specified_is_input: bool,
pub a_to_b: bool,
pub reward_last_updated_timestamp: u64,
pub reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
pub fee_growth_global_a: u128,
pub fee_growth_global_b: u128,
pub array_1_ticks: &'info Vec<TestTickInfo>,
pub array_2_ticks: Option<&'info Vec<TestTickInfo>>,
pub array_3_ticks: Option<&'info Vec<TestTickInfo>>,
pub fee_rate: u16,
pub protocol_fee_rate: u16,
}
impl<'info> Default for SwapTestFixtureInfo<'info> {
fn default() -> Self {
SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 0,
curr_tick_index: 0,
start_tick_index: 0,
trade_amount: 0,
sqrt_price_limit: 0,
amount_specified_is_input: false,
a_to_b: false,
reward_last_updated_timestamp: 0,
reward_infos: [
WhirlpoolRewardInfo::default(),
WhirlpoolRewardInfo::default(),
WhirlpoolRewardInfo::default(),
],
fee_growth_global_a: 0,
fee_growth_global_b: 0,
array_1_ticks: NO_TICKS_VEC,
array_2_ticks: None,
array_3_ticks: None,
fee_rate: 0,
protocol_fee_rate: 0,
}
}
}
pub struct SwapTestExpectation {
pub traded_amount_a: u64,
pub traded_amount_b: u64,
pub end_tick_index: i32,
pub end_liquidity: u128,
pub end_reward_growths: [u128; NUM_REWARDS],
}
#[derive(Default)]
pub struct TickExpectation {
pub fee_growth_outside_a: u128,
pub fee_growth_outside_b: u128,
pub reward_growths_outside: [u128; NUM_REWARDS],
}
pub fn assert_swap(swap_update: &PostSwapUpdate, expect: &SwapTestExpectation) {
assert_eq!(swap_update.amount_a, expect.traded_amount_a);
assert_eq!(swap_update.amount_b, expect.traded_amount_b);
assert_eq!(swap_update.next_tick_index, expect.end_tick_index);
assert_eq!(swap_update.next_liquidity, expect.end_liquidity);
assert_eq!(
WhirlpoolRewardInfo::to_reward_growths(&swap_update.next_reward_infos),
expect.end_reward_growths
);
}
pub fn assert_swap_tick_state(tick: &Tick, expect: &TickExpectation) {
assert_eq!({ tick.fee_growth_outside_a }, expect.fee_growth_outside_a);
assert_eq!({ tick.fee_growth_outside_b }, expect.fee_growth_outside_b);
assert_eq!(
{ tick.reward_growths_outside },
expect.reward_growths_outside
);
}
pub fn build_filled_tick_array(start_index: i32, tick_spacing: u16) -> Vec<TestTickInfo> {
let mut array_ticks: Vec<TestTickInfo> = vec![];
for n in 0..TICK_ARRAY_SIZE {
let index = start_index + n * tick_spacing as i32;
if (MIN_TICK_INDEX..MAX_TICK_INDEX).contains(&index) {
array_ticks.push(TestTickInfo {
index,
liquidity_net: -5,
..Default::default()
});
}
}
array_ticks
}
impl SwapTestFixture {
pub fn new(info: SwapTestFixtureInfo) -> SwapTestFixture {
let whirlpool = WhirlpoolBuilder::new()
.liquidity(info.liquidity)
.sqrt_price(sqrt_price_from_tick_index(info.curr_tick_index))
.tick_spacing(info.tick_spacing)
.tick_current_index(info.curr_tick_index)
.reward_last_updated_timestamp(info.reward_last_updated_timestamp)
.reward_infos(info.reward_infos)
.fee_growth_global_a(info.fee_growth_global_a)
.fee_growth_global_b(info.fee_growth_global_b)
.fee_rate(info.fee_rate)
.protocol_fee_rate(info.protocol_fee_rate)
.build();
let array_ticks: Vec<Option<&Vec<TestTickInfo>>> = vec![
Some(info.array_1_ticks),
info.array_2_ticks,
info.array_3_ticks,
];
let mut ref_mut_tick_arrays = Vec::with_capacity(3);
let direction: i32 = if info.a_to_b { -1 } else { 1 };
for (i, array) in array_ticks.iter().enumerate() {
let array_index = <i32>::from(i as u16);
let array_start_tick_index = info.start_tick_index
+ info.tick_spacing as i32 * TICK_ARRAY_SIZE * array_index * direction;
let mut new_ta = TickArray {
start_tick_index: array_start_tick_index,
ticks: [Tick::default(); TICK_ARRAY_SIZE_USIZE],
whirlpool: Pubkey::default(),
};
if array.is_none() {
ref_mut_tick_arrays.push(RefCell::new(new_ta));
continue;
}
let tick_array = array.unwrap();
for tick in tick_array {
let update = TickUpdate::from(
&TickBuilder::default()
.initialized(true)
.liquidity_net(tick.liquidity_net)
.fee_growth_outside_a(tick.fee_growth_outside_a)
.fee_growth_outside_b(tick.fee_growth_outside_b)
.reward_growths_outside(tick.reward_growths_outside)
.build(),
);
let update_result = new_ta.update_tick(tick.index, info.tick_spacing, &update);
if update_result.is_err() {
panic!("Failed to set tick {}", tick.index);
}
}
ref_mut_tick_arrays.push(RefCell::new(new_ta));
}
SwapTestFixture {
whirlpool,
tick_arrays: ref_mut_tick_arrays,
trade_amount: info.trade_amount,
sqrt_price_limit: info.sqrt_price_limit,
amount_specified_is_input: info.amount_specified_is_input,
a_to_b: info.a_to_b,
reward_last_updated_timestamp: info.reward_last_updated_timestamp,
}
}
pub fn run(&self, tick_sequence: &mut SwapTickSequence, next_timestamp: u64) -> PostSwapUpdate {
swap(
&self.whirlpool,
tick_sequence,
self.trade_amount,
self.sqrt_price_limit,
self.amount_specified_is_input,
self.a_to_b,
next_timestamp,
)
.unwrap()
}
pub fn eval(
&self,
tick_sequence: &mut SwapTickSequence,
next_timestamp: u64,
) -> Result<PostSwapUpdate> {
swap(
&self.whirlpool,
tick_sequence,
self.trade_amount,
self.sqrt_price_limit,
self.amount_specified_is_input,
self.a_to_b,
next_timestamp,
)
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/v2/token.rs
|
use crate::errors::ErrorCode;
use crate::state::{TokenBadge, Whirlpool};
use anchor_lang::prelude::*;
use anchor_spl::token_2022::spl_token_2022::extension::transfer_fee::{
TransferFee, MAX_FEE_BASIS_POINTS,
};
use anchor_spl::token_interface::spl_token_2022::extension::BaseStateWithExtensions;
use anchor_spl::memo::{self, BuildMemo, Memo};
use anchor_spl::token::Token;
use anchor_spl::token_2022::spl_token_2022::{
self,
extension::{self, StateWithExtensions},
state::AccountState,
};
use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
use spl_transfer_hook_interface;
#[allow(clippy::too_many_arguments)]
pub fn transfer_from_owner_to_vault_v2<'info>(
authority: &Signer<'info>,
token_mint: &InterfaceAccount<'info, Mint>,
token_owner_account: &InterfaceAccount<'info, TokenAccount>,
token_vault: &InterfaceAccount<'info, TokenAccount>,
token_program: &Interface<'info, TokenInterface>,
memo_program: &Program<'info, Memo>,
transfer_hook_accounts: &Option<Vec<AccountInfo<'info>>>,
amount: u64,
) -> Result<()> {
// TransferFee extension
if let Some(epoch_transfer_fee) = get_epoch_transfer_fee(token_mint)? {
// log applied transfer fee
// - Not must, but important for ease of investigation and replay when problems occur
// - Use Memo because logs risk being truncated
let transfer_fee_memo = format!(
"TFe: {}, {}",
u16::from(epoch_transfer_fee.transfer_fee_basis_points),
u64::from(epoch_transfer_fee.maximum_fee),
);
memo::build_memo(
CpiContext::new(memo_program.to_account_info(), BuildMemo {}),
transfer_fee_memo.as_bytes(),
)?;
}
// MemoTransfer extension
// The vault doesn't have MemoTransfer extension, so we don't need to use memo_program here
let mut instruction = spl_token_2022::instruction::transfer_checked(
token_program.key,
// owner to vault
&token_owner_account.key(), // from (owner account)
&token_mint.key(), // mint
&token_vault.key(), // to (vault account)
authority.key, // authority (owner)
&[],
amount,
token_mint.decimals,
)?;
let mut account_infos = vec![
token_program.to_account_info(),
// owner to vault
token_owner_account.to_account_info(), // from (owner account)
token_mint.to_account_info(), // mint
token_vault.to_account_info(), // to (vault account)
authority.to_account_info(), // authority (owner)
];
// TransferHook extension
if let Some(hook_program_id) = get_transfer_hook_program_id(token_mint)? {
if transfer_hook_accounts.is_none() {
return Err(ErrorCode::NoExtraAccountsForTransferHook.into());
}
spl_transfer_hook_interface::onchain::add_extra_accounts_for_execute_cpi(
&mut instruction,
&mut account_infos,
&hook_program_id,
// owner to vault
token_owner_account.to_account_info(), // from (owner account)
token_mint.to_account_info(), // mint
token_vault.to_account_info(), // to (vault account)
authority.to_account_info(), // authority (owner)
amount,
transfer_hook_accounts.as_ref().unwrap(),
)?;
}
solana_program::program::invoke_signed(&instruction, &account_infos, &[])?;
Ok(())
}
#[allow(clippy::too_many_arguments)]
pub fn transfer_from_vault_to_owner_v2<'info>(
whirlpool: &Account<'info, Whirlpool>,
token_mint: &InterfaceAccount<'info, Mint>,
token_vault: &InterfaceAccount<'info, TokenAccount>,
token_owner_account: &InterfaceAccount<'info, TokenAccount>,
token_program: &Interface<'info, TokenInterface>,
memo_program: &Program<'info, Memo>,
transfer_hook_accounts: &Option<Vec<AccountInfo<'info>>>,
amount: u64,
memo: &[u8],
) -> Result<()> {
// TransferFee extension
if let Some(epoch_transfer_fee) = get_epoch_transfer_fee(token_mint)? {
// log applied transfer fee
// - Not must, but important for ease of investigation and replay when problems occur
// - Use Memo because logs risk being truncated
let transfer_fee_memo = format!(
"TFe: {}, {}",
u16::from(epoch_transfer_fee.transfer_fee_basis_points),
u64::from(epoch_transfer_fee.maximum_fee),
);
memo::build_memo(
CpiContext::new(memo_program.to_account_info(), BuildMemo {}),
transfer_fee_memo.as_bytes(),
)?;
}
// MemoTransfer extension
if is_transfer_memo_required(token_owner_account)? {
memo::build_memo(
CpiContext::new(memo_program.to_account_info(), BuildMemo {}),
memo,
)?;
}
let mut instruction = spl_token_2022::instruction::transfer_checked(
token_program.key,
// vault to owner
&token_vault.key(), // from (vault account)
&token_mint.key(), // mint
&token_owner_account.key(), // to (owner account)
&whirlpool.key(), // authority (pool)
&[],
amount,
token_mint.decimals,
)?;
let mut account_infos = vec![
token_program.to_account_info(),
// vault to owner
token_vault.to_account_info(), // from (vault account)
token_mint.to_account_info(), // mint
token_owner_account.to_account_info(), // to (owner account)
whirlpool.to_account_info(), // authority (pool)
];
// TransferHook extension
if let Some(hook_program_id) = get_transfer_hook_program_id(token_mint)? {
if transfer_hook_accounts.is_none() {
return Err(ErrorCode::NoExtraAccountsForTransferHook.into());
}
spl_transfer_hook_interface::onchain::add_extra_accounts_for_execute_cpi(
&mut instruction,
&mut account_infos,
&hook_program_id,
// vault to owner
token_vault.to_account_info(), // from (vault account)
token_mint.to_account_info(), // mint
token_owner_account.to_account_info(), // to (owner account)
whirlpool.to_account_info(), // authority (pool)
amount,
transfer_hook_accounts.as_ref().unwrap(),
)?;
}
solana_program::program::invoke_signed(&instruction, &account_infos, &[&whirlpool.seeds()])?;
Ok(())
}
fn get_transfer_hook_program_id(token_mint: &InterfaceAccount<'_, Mint>) -> Result<Option<Pubkey>> {
let token_mint_info = token_mint.to_account_info();
if *token_mint_info.owner == Token::id() {
return Ok(None);
}
let token_mint_data = token_mint_info.try_borrow_data()?;
let token_mint_unpacked =
StateWithExtensions::<spl_token_2022::state::Mint>::unpack(&token_mint_data)?;
Ok(extension::transfer_hook::get_program_id(
&token_mint_unpacked,
))
}
fn is_transfer_memo_required(token_account: &InterfaceAccount<'_, TokenAccount>) -> Result<bool> {
let token_account_info = token_account.to_account_info();
if *token_account_info.owner == Token::id() {
return Ok(false);
}
let token_account_data = token_account_info.try_borrow_data()?;
let token_account_unpacked =
StateWithExtensions::<spl_token_2022::state::Account>::unpack(&token_account_data)?;
let extension =
token_account_unpacked.get_extension::<extension::memo_transfer::MemoTransfer>();
if let Ok(memo_transfer) = extension {
Ok(memo_transfer.require_incoming_transfer_memos.into())
} else {
Ok(false)
}
}
pub fn is_supported_token_mint(
token_mint: &InterfaceAccount<'_, Mint>,
is_token_badge_initialized: bool,
) -> Result<bool> {
let token_mint_info = token_mint.to_account_info();
// if mint is owned by Token Program, it is supported (compatible to initialize_pool / initialize_reward)
if *token_mint_info.owner == Token::id() {
return Ok(true);
}
// now mint is owned by Token-2022 Program
// reject native mint of Token-2022 Program to avoid SOL liquidity fragmentation
if spl_token_2022::native_mint::check_id(&token_mint.key()) {
return Ok(false);
}
// reject if mint has freeze_authority
if token_mint.freeze_authority.is_some() && !is_token_badge_initialized {
return Ok(false);
}
let token_mint_data = token_mint_info.try_borrow_data()?;
let token_mint_unpacked =
StateWithExtensions::<spl_token_2022::state::Mint>::unpack(&token_mint_data)?;
let extensions = token_mint_unpacked.get_extension_types()?;
for extension in extensions {
match extension {
// supported
extension::ExtensionType::TransferFeeConfig => {}
extension::ExtensionType::InterestBearingConfig => {}
extension::ExtensionType::TokenMetadata => {}
extension::ExtensionType::MetadataPointer => {}
// partially supported
extension::ExtensionType::ConfidentialTransferMint => {
// Supported, but non-confidential transfer only
//
// WhirlpoolProgram invokes TransferChecked instruction and it supports non-confidential transfer only.
//
// Because the vault accounts are not configured to support confidential transfer,
// it is impossible to send tokens directly to the vault accounts confidentially.
// Note: Only the owner (Whirlpool account) can call ConfidentialTransferInstruction::ConfigureAccount.
}
extension::ExtensionType::ConfidentialTransferFeeConfig => {
// Supported, but non-confidential transfer only
// When both TransferFeeConfig and ConfidentialTransferMint are initialized,
// ConfidentialTransferFeeConfig is also initialized to store encrypted transfer fee amount.
}
// supported if token badge is initialized
extension::ExtensionType::PermanentDelegate => {
if !is_token_badge_initialized {
return Ok(false);
}
}
extension::ExtensionType::TransferHook => {
if !is_token_badge_initialized {
return Ok(false);
}
}
extension::ExtensionType::MintCloseAuthority => {
if !is_token_badge_initialized {
return Ok(false);
}
}
extension::ExtensionType::DefaultAccountState => {
if !is_token_badge_initialized {
return Ok(false);
}
// reject if default state is not Initialized even if it has token badge
let default_state = token_mint_unpacked
.get_extension::<extension::default_account_state::DefaultAccountState>(
)?;
let initialized: u8 = AccountState::Initialized.into();
if default_state.state != initialized {
return Ok(false);
}
}
// No possibility to support the following extensions
extension::ExtensionType::NonTransferable => {
return Ok(false);
}
// mint has unknown or unsupported extensions
_ => {
return Ok(false);
}
}
}
Ok(true)
}
pub fn is_token_badge_initialized(
whirlpools_config_key: Pubkey,
token_mint_key: Pubkey,
token_badge: &UncheckedAccount<'_>,
) -> Result<bool> {
if *token_badge.owner != crate::id() {
return Ok(false);
}
let token_badge = TokenBadge::try_deserialize(&mut token_badge.data.borrow().as_ref())?;
Ok(token_badge.whirlpools_config == whirlpools_config_key
&& token_badge.token_mint == token_mint_key)
}
#[derive(Debug)]
pub struct TransferFeeIncludedAmount {
pub amount: u64,
pub transfer_fee: u64,
}
#[derive(Debug)]
pub struct TransferFeeExcludedAmount {
pub amount: u64,
pub transfer_fee: u64,
}
pub fn calculate_transfer_fee_excluded_amount(
token_mint: &InterfaceAccount<'_, Mint>,
transfer_fee_included_amount: u64,
) -> Result<TransferFeeExcludedAmount> {
if let Some(epoch_transfer_fee) = get_epoch_transfer_fee(token_mint)? {
let transfer_fee = epoch_transfer_fee
.calculate_fee(transfer_fee_included_amount)
.unwrap();
let transfer_fee_excluded_amount = transfer_fee_included_amount
.checked_sub(transfer_fee)
.unwrap();
return Ok(TransferFeeExcludedAmount {
amount: transfer_fee_excluded_amount,
transfer_fee,
});
}
Ok(TransferFeeExcludedAmount {
amount: transfer_fee_included_amount,
transfer_fee: 0,
})
}
pub fn calculate_transfer_fee_included_amount(
token_mint: &InterfaceAccount<'_, Mint>,
transfer_fee_excluded_amount: u64,
) -> Result<TransferFeeIncludedAmount> {
if transfer_fee_excluded_amount == 0 {
return Ok(TransferFeeIncludedAmount {
amount: 0,
transfer_fee: 0,
});
}
// now transfer_fee_excluded_amount > 0
if let Some(epoch_transfer_fee) = get_epoch_transfer_fee(token_mint)? {
let transfer_fee: u64 =
if u16::from(epoch_transfer_fee.transfer_fee_basis_points) == MAX_FEE_BASIS_POINTS {
// edge-case: if transfer fee rate is 100%, current SPL implementation returns 0 as inverse fee.
// https://github.com/solana-labs/solana-program-library/blob/fe1ac9a2c4e5d85962b78c3fc6aaf028461e9026/token/program-2022/src/extension/transfer_fee/mod.rs#L95
// But even if transfer fee is 100%, we can use maximum_fee as transfer fee.
// if transfer_fee_excluded_amount + maximum_fee > u64 max, the following checked_add should fail.
u64::from(epoch_transfer_fee.maximum_fee)
} else {
epoch_transfer_fee
.calculate_inverse_fee(transfer_fee_excluded_amount)
.ok_or(ErrorCode::TransferFeeCalculationError)?
};
let transfer_fee_included_amount = transfer_fee_excluded_amount
.checked_add(transfer_fee)
.ok_or(ErrorCode::TransferFeeCalculationError)?;
// verify transfer fee calculation for safety
let transfer_fee_verification = epoch_transfer_fee
.calculate_fee(transfer_fee_included_amount)
.unwrap();
if transfer_fee != transfer_fee_verification {
// We believe this should never happen
return Err(ErrorCode::TransferFeeCalculationError.into());
}
return Ok(TransferFeeIncludedAmount {
amount: transfer_fee_included_amount,
transfer_fee,
});
}
Ok(TransferFeeIncludedAmount {
amount: transfer_fee_excluded_amount,
transfer_fee: 0,
})
}
pub fn get_epoch_transfer_fee(
token_mint: &InterfaceAccount<'_, Mint>,
) -> Result<Option<TransferFee>> {
let token_mint_info = token_mint.to_account_info();
if *token_mint_info.owner == Token::id() {
return Ok(None);
}
let token_mint_data = token_mint_info.try_borrow_data()?;
let token_mint_unpacked =
StateWithExtensions::<spl_token_2022::state::Mint>::unpack(&token_mint_data)?;
if let Ok(transfer_fee_config) =
token_mint_unpacked.get_extension::<extension::transfer_fee::TransferFeeConfig>()
{
let epoch = Clock::get()?.epoch;
return Ok(Some(*transfer_fee_config.get_epoch_fee(epoch)));
}
Ok(None)
}
// special thanks for OtterSec
#[cfg(test)]
mod fuzz_tests {
use super::*;
use proptest::prelude::*;
struct SyscallStubs {}
impl solana_program::program_stubs::SyscallStubs for SyscallStubs {
fn sol_get_clock_sysvar(&self, _var_addr: *mut u8) -> u64 {
0
}
}
#[derive(Default, AnchorSerialize)]
struct MintWithTransferFeeConfigLayout {
// 82 for Mint
pub coption_mint_authority: u32, // 4
pub mint_authority: Pubkey, // 32
pub supply: u64, // 8
pub decimals: u8, // 1
pub is_initialized: bool, // 1
pub coption_freeze_authority: u32, // 4
pub freeze_authority: Pubkey, // 4 + 32
// 83 for padding
pub padding1: [u8; 32],
pub padding2: [u8; 32],
pub padding3: [u8; 19],
pub account_type: u8, // 1
pub extension_type: u16, // 2
pub extension_length: u16, // 2
// 108 for TransferFeeConfig data
pub transfer_fee_config_authority: Pubkey, // 32
pub withdraw_withheld_authority: Pubkey, // 32
pub withheld_amount: u64, // 8
pub older_epoch: u64, // 8
pub older_maximum_fee: u64, // 8
pub older_transfer_fee_basis_point: u16, // 2
pub newer_epoch: u64, // 8
pub newer_maximum_fee: u64, // 8
pub newer_transfer_fee_basis_point: u16, // 2
}
impl MintWithTransferFeeConfigLayout {
pub const LEN: usize = 82 + 83 + 1 + 2 + 2 + 108;
}
/// Maximum possible fee in basis points is 100%, aka 10_000 basis points
const MAX_FEE_BASIS_POINTS: u16 = 10_000;
const MAX_FEE: u64 = 1_000_000_000;
const MAX_AMOUNT: u64 = 0xFFFFFFFF;
proptest! {
#![proptest_config(ProptestConfig::with_cases(100000))]
#[test]
fn test_calculate_transfer_fee_included_amount(
amount in 0..MAX_AMOUNT,
maximum_fee in 0..MAX_FEE,
transfer_fee_basis_point in 0..MAX_FEE_BASIS_POINTS
) {
// stub Clock
solana_program::program_stubs::set_syscall_stubs(Box::new(SyscallStubs {}));
assert_eq!(Clock::get().unwrap().epoch, 0);
let mint_with_transfer_fee_config = MintWithTransferFeeConfigLayout {
is_initialized: true,
account_type: 1, // Mint
extension_type: 1, // TransferFeeConfig
extension_length: 108,
older_epoch: 0,
older_maximum_fee: maximum_fee,
older_transfer_fee_basis_point: transfer_fee_basis_point,
newer_epoch: 0,
newer_maximum_fee: maximum_fee,
newer_transfer_fee_basis_point: transfer_fee_basis_point,
..Default::default()
};
let mut data = Vec::<u8>::new();
mint_with_transfer_fee_config.serialize(&mut data).unwrap();
assert_eq!(data.len(), MintWithTransferFeeConfigLayout::LEN);
let key = Pubkey::default();
let mut lamports = 0u64;
let owner = anchor_spl::token_2022::ID;
let rent_epoch = 0;
let is_signer = false;
let is_writable = false;
let executable = false;
let account_info = AccountInfo::new(
&key,
is_signer,
is_writable,
&mut lamports,
&mut data,
&owner,
executable,
rent_epoch
);
let interface_account_mint = InterfaceAccount::<Mint>::try_from(&account_info).unwrap();
let transfer_fee = get_epoch_transfer_fee(&interface_account_mint).unwrap().unwrap();
assert_eq!(u64::from(transfer_fee.maximum_fee), maximum_fee);
assert_eq!(u16::from(transfer_fee.transfer_fee_basis_points), transfer_fee_basis_point);
let _ = calculate_transfer_fee_included_amount(&interface_account_mint, amount)?;
}
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/v2/swap_utils.rs
|
use anchor_lang::prelude::*;
use anchor_spl::memo::Memo;
use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
use crate::{manager::swap_manager::PostSwapUpdate, state::Whirlpool};
use super::{transfer_from_owner_to_vault_v2, transfer_from_vault_to_owner_v2};
#[allow(clippy::too_many_arguments)]
pub fn update_and_swap_whirlpool_v2<'info>(
whirlpool: &mut Account<'info, Whirlpool>,
token_authority: &Signer<'info>,
token_mint_a: &InterfaceAccount<'info, Mint>,
token_mint_b: &InterfaceAccount<'info, Mint>,
token_owner_account_a: &InterfaceAccount<'info, TokenAccount>,
token_owner_account_b: &InterfaceAccount<'info, TokenAccount>,
token_vault_a: &InterfaceAccount<'info, TokenAccount>,
token_vault_b: &InterfaceAccount<'info, TokenAccount>,
transfer_hook_accounts_a: &Option<Vec<AccountInfo<'info>>>,
transfer_hook_accounts_b: &Option<Vec<AccountInfo<'info>>>,
token_program_a: &Interface<'info, TokenInterface>,
token_program_b: &Interface<'info, TokenInterface>,
memo_program: &Program<'info, Memo>,
swap_update: PostSwapUpdate,
is_token_fee_in_a: bool,
reward_last_updated_timestamp: u64,
memo: &[u8],
) -> Result<()> {
whirlpool.update_after_swap(
swap_update.next_liquidity,
swap_update.next_tick_index,
swap_update.next_sqrt_price,
swap_update.next_fee_growth_global,
swap_update.next_reward_infos,
swap_update.next_protocol_fee,
is_token_fee_in_a,
reward_last_updated_timestamp,
);
perform_swap_v2(
whirlpool,
token_authority,
token_mint_a,
token_mint_b,
token_owner_account_a,
token_owner_account_b,
token_vault_a,
token_vault_b,
transfer_hook_accounts_a,
transfer_hook_accounts_b,
token_program_a,
token_program_b,
memo_program,
swap_update.amount_a,
swap_update.amount_b,
is_token_fee_in_a,
memo,
)
}
#[allow(clippy::too_many_arguments)]
fn perform_swap_v2<'info>(
whirlpool: &Account<'info, Whirlpool>,
token_authority: &Signer<'info>,
token_mint_a: &InterfaceAccount<'info, Mint>,
token_mint_b: &InterfaceAccount<'info, Mint>,
token_owner_account_a: &InterfaceAccount<'info, TokenAccount>,
token_owner_account_b: &InterfaceAccount<'info, TokenAccount>,
token_vault_a: &InterfaceAccount<'info, TokenAccount>,
token_vault_b: &InterfaceAccount<'info, TokenAccount>,
transfer_hook_accounts_a: &Option<Vec<AccountInfo<'info>>>,
transfer_hook_accounts_b: &Option<Vec<AccountInfo<'info>>>,
token_program_a: &Interface<'info, TokenInterface>,
token_program_b: &Interface<'info, TokenInterface>,
memo_program: &Program<'info, Memo>,
amount_a: u64,
amount_b: u64,
a_to_b: bool,
memo: &[u8],
) -> Result<()> {
// Transfer from user to pool
let deposit_token_program;
let deposit_mint;
let deposit_account_user;
let deposit_account_pool;
let deposit_transfer_hook_accounts;
let deposit_amount;
// Transfer from pool to user
let withdrawal_token_program;
let withdrawal_mint;
let withdrawal_account_user;
let withdrawal_account_pool;
let withdrawal_transfer_hook_accounts;
let withdrawal_amount;
if a_to_b {
deposit_token_program = token_program_a;
deposit_mint = token_mint_a;
deposit_account_user = token_owner_account_a;
deposit_account_pool = token_vault_a;
deposit_transfer_hook_accounts = transfer_hook_accounts_a;
deposit_amount = amount_a;
withdrawal_token_program = token_program_b;
withdrawal_mint = token_mint_b;
withdrawal_account_user = token_owner_account_b;
withdrawal_account_pool = token_vault_b;
withdrawal_transfer_hook_accounts = transfer_hook_accounts_b;
withdrawal_amount = amount_b;
} else {
deposit_token_program = token_program_b;
deposit_mint = token_mint_b;
deposit_account_user = token_owner_account_b;
deposit_account_pool = token_vault_b;
deposit_transfer_hook_accounts = transfer_hook_accounts_b;
deposit_amount = amount_b;
withdrawal_token_program = token_program_a;
withdrawal_mint = token_mint_a;
withdrawal_account_user = token_owner_account_a;
withdrawal_account_pool = token_vault_a;
withdrawal_transfer_hook_accounts = transfer_hook_accounts_a;
withdrawal_amount = amount_a;
}
transfer_from_owner_to_vault_v2(
token_authority,
deposit_mint,
deposit_account_user,
deposit_account_pool,
deposit_token_program,
memo_program,
deposit_transfer_hook_accounts,
deposit_amount,
)?;
transfer_from_vault_to_owner_v2(
whirlpool,
withdrawal_mint,
withdrawal_account_pool,
withdrawal_account_user,
withdrawal_token_program,
memo_program,
withdrawal_transfer_hook_accounts,
withdrawal_amount,
memo,
)?;
Ok(())
}
#[allow(clippy::too_many_arguments)]
pub fn update_and_two_hop_swap_whirlpool_v2<'info>(
// update
swap_update_one: PostSwapUpdate,
swap_update_two: PostSwapUpdate,
// whirlpool
whirlpool_one: &mut Account<'info, Whirlpool>,
whirlpool_two: &mut Account<'info, Whirlpool>,
// direction
is_token_fee_in_one_a: bool,
is_token_fee_in_two_a: bool,
// mint
token_mint_input: &InterfaceAccount<'info, Mint>,
token_mint_intermediate: &InterfaceAccount<'info, Mint>,
token_mint_output: &InterfaceAccount<'info, Mint>,
// token program
token_program_input: &Interface<'info, TokenInterface>,
token_program_intermediate: &Interface<'info, TokenInterface>,
token_program_output: &Interface<'info, TokenInterface>,
// token accounts
token_owner_account_input: &InterfaceAccount<'info, TokenAccount>,
token_vault_one_input: &InterfaceAccount<'info, TokenAccount>,
token_vault_one_intermediate: &InterfaceAccount<'info, TokenAccount>,
token_vault_two_intermediate: &InterfaceAccount<'info, TokenAccount>,
token_vault_two_output: &InterfaceAccount<'info, TokenAccount>,
token_owner_account_output: &InterfaceAccount<'info, TokenAccount>,
// hook
transfer_hook_accounts_input: &Option<Vec<AccountInfo<'info>>>,
transfer_hook_accounts_intermediate: &Option<Vec<AccountInfo<'info>>>,
transfer_hook_accounts_output: &Option<Vec<AccountInfo<'info>>>,
// common
token_authority: &Signer<'info>,
memo_program: &Program<'info, Memo>,
reward_last_updated_timestamp: u64,
memo: &[u8],
) -> Result<()> {
whirlpool_one.update_after_swap(
swap_update_one.next_liquidity,
swap_update_one.next_tick_index,
swap_update_one.next_sqrt_price,
swap_update_one.next_fee_growth_global,
swap_update_one.next_reward_infos,
swap_update_one.next_protocol_fee,
is_token_fee_in_one_a,
reward_last_updated_timestamp,
);
whirlpool_two.update_after_swap(
swap_update_two.next_liquidity,
swap_update_two.next_tick_index,
swap_update_two.next_sqrt_price,
swap_update_two.next_fee_growth_global,
swap_update_two.next_reward_infos,
swap_update_two.next_protocol_fee,
is_token_fee_in_two_a,
reward_last_updated_timestamp,
);
// amount
let (input_amount, intermediate_amount) = if is_token_fee_in_one_a {
(swap_update_one.amount_a, swap_update_one.amount_b)
} else {
(swap_update_one.amount_b, swap_update_one.amount_a)
};
let output_amount = if is_token_fee_in_two_a {
swap_update_two.amount_b
} else {
swap_update_two.amount_a
};
transfer_from_owner_to_vault_v2(
token_authority,
token_mint_input,
token_owner_account_input,
token_vault_one_input,
token_program_input,
memo_program,
transfer_hook_accounts_input,
input_amount,
)?;
// Transfer from pool to pool
transfer_from_vault_to_owner_v2(
whirlpool_one,
token_mint_intermediate,
token_vault_one_intermediate,
token_vault_two_intermediate,
token_program_intermediate,
memo_program,
transfer_hook_accounts_intermediate,
intermediate_amount,
memo,
)?;
transfer_from_vault_to_owner_v2(
whirlpool_two,
token_mint_output,
token_vault_two_output,
token_owner_account_output,
token_program_output,
memo_program,
transfer_hook_accounts_output,
output_amount,
memo,
)?;
Ok(())
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/v2/mod.rs
|
pub mod remaining_accounts_utils;
pub mod swap_utils;
pub mod token;
pub use remaining_accounts_utils::*;
pub use swap_utils::*;
pub use token::*;
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/util/v2/remaining_accounts_utils.rs
|
use crate::errors::ErrorCode;
use anchor_lang::prelude::*;
pub const MAX_SUPPLEMENTAL_TICK_ARRAYS_LEN: usize = 3;
#[derive(AnchorSerialize, AnchorDeserialize, Clone, PartialEq, Eq)]
pub enum AccountsType {
TransferHookA,
TransferHookB,
TransferHookReward,
TransferHookInput,
TransferHookIntermediate,
TransferHookOutput,
SupplementalTickArrays,
SupplementalTickArraysOne,
SupplementalTickArraysTwo,
}
#[derive(AnchorSerialize, AnchorDeserialize, Clone)]
pub struct RemainingAccountsSlice {
pub accounts_type: AccountsType,
pub length: u8,
}
#[derive(AnchorSerialize, AnchorDeserialize, Clone)]
pub struct RemainingAccountsInfo {
pub slices: Vec<RemainingAccountsSlice>,
}
#[derive(Default)]
pub struct ParsedRemainingAccounts<'info> {
pub transfer_hook_a: Option<Vec<AccountInfo<'info>>>,
pub transfer_hook_b: Option<Vec<AccountInfo<'info>>>,
pub transfer_hook_reward: Option<Vec<AccountInfo<'info>>>,
pub transfer_hook_input: Option<Vec<AccountInfo<'info>>>,
pub transfer_hook_intermediate: Option<Vec<AccountInfo<'info>>>,
pub transfer_hook_output: Option<Vec<AccountInfo<'info>>>,
pub supplemental_tick_arrays: Option<Vec<AccountInfo<'info>>>,
pub supplemental_tick_arrays_one: Option<Vec<AccountInfo<'info>>>,
pub supplemental_tick_arrays_two: Option<Vec<AccountInfo<'info>>>,
}
pub fn parse_remaining_accounts<'info>(
remaining_accounts: &[AccountInfo<'info>],
remaining_accounts_info: &Option<RemainingAccountsInfo>,
valid_accounts_type_list: &[AccountsType],
) -> Result<ParsedRemainingAccounts<'info>> {
let mut remaining_accounts_iter = remaining_accounts.iter();
let mut parsed_remaining_accounts = ParsedRemainingAccounts::default();
if remaining_accounts_info.is_none() {
return Ok(parsed_remaining_accounts);
}
let remaining_accounts_info = remaining_accounts_info.as_ref().unwrap();
for slice in remaining_accounts_info.slices.iter() {
if !valid_accounts_type_list.contains(&slice.accounts_type) {
return Err(ErrorCode::RemainingAccountsInvalidSlice.into());
}
if slice.length == 0 {
continue;
}
let mut accounts: Vec<AccountInfo<'info>> = Vec::with_capacity(slice.length as usize);
for _ in 0..slice.length {
if let Some(account) = remaining_accounts_iter.next() {
accounts.push(account.clone());
} else {
return Err(ErrorCode::RemainingAccountsInsufficient.into());
}
}
match slice.accounts_type {
AccountsType::TransferHookA => {
if parsed_remaining_accounts.transfer_hook_a.is_some() {
return Err(ErrorCode::RemainingAccountsDuplicatedAccountsType.into());
}
parsed_remaining_accounts.transfer_hook_a = Some(accounts);
}
AccountsType::TransferHookB => {
if parsed_remaining_accounts.transfer_hook_b.is_some() {
return Err(ErrorCode::RemainingAccountsDuplicatedAccountsType.into());
}
parsed_remaining_accounts.transfer_hook_b = Some(accounts);
}
AccountsType::TransferHookReward => {
if parsed_remaining_accounts.transfer_hook_reward.is_some() {
return Err(ErrorCode::RemainingAccountsDuplicatedAccountsType.into());
}
parsed_remaining_accounts.transfer_hook_reward = Some(accounts);
}
AccountsType::TransferHookInput => {
if parsed_remaining_accounts.transfer_hook_input.is_some() {
return Err(ErrorCode::RemainingAccountsDuplicatedAccountsType.into());
}
parsed_remaining_accounts.transfer_hook_input = Some(accounts);
}
AccountsType::TransferHookIntermediate => {
if parsed_remaining_accounts
.transfer_hook_intermediate
.is_some()
{
return Err(ErrorCode::RemainingAccountsDuplicatedAccountsType.into());
}
parsed_remaining_accounts.transfer_hook_intermediate = Some(accounts);
}
AccountsType::TransferHookOutput => {
if parsed_remaining_accounts.transfer_hook_output.is_some() {
return Err(ErrorCode::RemainingAccountsDuplicatedAccountsType.into());
}
parsed_remaining_accounts.transfer_hook_output = Some(accounts);
}
AccountsType::SupplementalTickArrays => {
if accounts.len() > MAX_SUPPLEMENTAL_TICK_ARRAYS_LEN {
return Err(ErrorCode::TooManySupplementalTickArrays.into());
}
if parsed_remaining_accounts.supplemental_tick_arrays.is_some() {
return Err(ErrorCode::RemainingAccountsDuplicatedAccountsType.into());
}
parsed_remaining_accounts.supplemental_tick_arrays = Some(accounts);
}
AccountsType::SupplementalTickArraysOne => {
if accounts.len() > MAX_SUPPLEMENTAL_TICK_ARRAYS_LEN {
return Err(ErrorCode::TooManySupplementalTickArrays.into());
}
if parsed_remaining_accounts
.supplemental_tick_arrays_one
.is_some()
{
return Err(ErrorCode::RemainingAccountsDuplicatedAccountsType.into());
}
parsed_remaining_accounts.supplemental_tick_arrays_one = Some(accounts);
}
AccountsType::SupplementalTickArraysTwo => {
if accounts.len() > MAX_SUPPLEMENTAL_TICK_ARRAYS_LEN {
return Err(ErrorCode::TooManySupplementalTickArrays.into());
}
if parsed_remaining_accounts
.supplemental_tick_arrays_two
.is_some()
{
return Err(ErrorCode::RemainingAccountsDuplicatedAccountsType.into());
}
parsed_remaining_accounts.supplemental_tick_arrays_two = Some(accounts);
}
}
}
Ok(parsed_remaining_accounts)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/constants/nft.rs
|
use anchor_lang::prelude::*;
pub mod whirlpool_nft_update_auth {
use super::*;
declare_id!("3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr");
}
// Based on Metaplex TokenMetadata
//
// METADATA_NAME : max 32 bytes
// METADATA_SYMBOL : max 10 bytes
// METADATA_URI : max 200 bytes
pub const WP_METADATA_NAME: &str = "Orca Whirlpool Position";
pub const WP_METADATA_SYMBOL: &str = "OWP";
pub const WP_METADATA_URI: &str = "https://arweave.net/E19ZNY2sqMqddm1Wx7mrXPUZ0ZZ5ISizhebb0UsVEws";
pub const WPB_METADATA_NAME_PREFIX: &str = "Orca Position Bundle";
pub const WPB_METADATA_SYMBOL: &str = "OPB";
pub const WPB_METADATA_URI: &str =
"https://arweave.net/A_Wo8dx2_3lSUwMIi7bdT_sqxi8soghRNAWXXiqXpgE";
// Based on Token-2022 TokenMetadata extension
//
// There is no clear upper limit on the length of name, symbol, and uri,
// but it is safe for wallet apps to limit the uri to 128 bytes.
//
// see also: TokenMetadata struct
// https://github.com/solana-labs/solana-program-library/blob/cd6ce4b7709d2420bca60b4656bbd3d15d2e1485/token-metadata/interface/src/state.rs#L25
pub const WP_2022_METADATA_NAME_PREFIX: &str = "OWP";
pub const WP_2022_METADATA_SYMBOL: &str = "OWP";
pub const WP_2022_METADATA_URI_BASE: &str = "https://position-nft.orca.so/meta";
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/constants/transfer_memo.rs
|
pub const TRANSFER_MEMO_COLLECT_PROTOCOL_FEES: &str = "Orca CollectProtocolFees";
pub const TRANSFER_MEMO_COLLECT_FEES: &str = "Orca CollectFees";
pub const TRANSFER_MEMO_COLLECT_REWARD: &str = "Orca CollectReward";
pub const TRANSFER_MEMO_DECREASE_LIQUIDITY: &str = "Orca Withdraw";
pub const TRANSFER_MEMO_SWAP: &str = "Orca Trade";
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/constants/test_constants.rs
|
#[cfg(test)]
use anchor_lang::prelude::Pubkey;
#[cfg(test)]
pub fn test_program_id() -> Pubkey {
"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
.parse()
.unwrap()
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/constants/mod.rs
|
pub mod nft;
pub mod test_constants;
pub mod transfer_memo;
pub use nft::*;
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/tests/swap_integration_tests.rs
|
use crate::errors::ErrorCode;
use crate::manager::swap_manager::*;
use crate::math::*;
use crate::state::{MAX_TICK_INDEX, MIN_TICK_INDEX, TICK_ARRAY_SIZE};
use crate::util::test_utils::swap_test_fixture::*;
use crate::util::{create_whirlpool_reward_infos, SwapTickSequence};
use serde::Deserialize;
use serde_json;
use serde_with::{serde_as, DisplayFromStr};
use solana_program::msg;
use std::fs;
#[serde_as]
#[derive(Debug, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
struct TestCase {
test_id: u32,
description: String,
tick_spacing: u16,
fee_rate: u16,
protocol_fee_rate: u16,
#[serde_as(as = "DisplayFromStr")]
liquidity: u128,
curr_tick_index: i32,
#[serde_as(as = "DisplayFromStr")]
trade_amount: u64,
amount_is_input: bool,
a_to_b: bool,
expectation: Expectation,
}
#[serde_as]
#[derive(Debug, Default, Deserialize)]
#[serde(rename_all = "camelCase")]
struct Expectation {
exception: String,
#[serde_as(as = "DisplayFromStr")]
amount_a: u64,
#[serde_as(as = "DisplayFromStr")]
amount_b: u64,
#[serde_as(as = "DisplayFromStr")]
next_liquidity: u128,
next_tick_index: i32,
#[serde_as(as = "DisplayFromStr")]
next_sqrt_price: u128,
#[serde_as(as = "DisplayFromStr")]
next_fee_growth_global: u128,
#[serde_as(as = "DisplayFromStr")]
next_protocol_fee: u64,
}
/// Current version of Anchor doesn't bubble up errors in a way
/// where we can compare. v0.23.0 has an updated format that will allow us to do so.
const CATCHABLE_ERRORS: [(&str, ErrorCode); 10] = [
(
"MultiplicationShiftRightOverflow",
ErrorCode::MultiplicationShiftRightOverflow,
),
("TokenMaxExceeded", ErrorCode::TokenMaxExceeded),
("DivideByZero", ErrorCode::DivideByZero),
("SqrtPriceOutOfBounds", ErrorCode::SqrtPriceOutOfBounds),
(
"InvalidTickArraySequence",
ErrorCode::InvalidTickArraySequence,
),
("ZeroTradableAmount", ErrorCode::ZeroTradableAmount),
("NumberDownCastError", ErrorCode::NumberDownCastError),
("MultiplicationOverflow", ErrorCode::MultiplicationOverflow),
// from swap_manager.rs
(
"AmountRemainingOverflow",
ErrorCode::AmountRemainingOverflow,
),
("AmountCalcOverflow", ErrorCode::AmountCalcOverflow),
];
#[test]
/// Run a collection of tests on the swap_manager against expectations
/// A total of 3840 tests on these variables:
/// 1. FeeRate ([MAX_FEE, MAX_PROTOCOL_FEE], [65535, 600], [700, 300], [0, 0])
/// 2. CurrentTickPosition (-443500, -223027, 0, 223027, 443500)
/// 3. Liquidity (0, 2^32, 2^64, 2^110)
/// 4. TickSpacing (1, 8, 128)
/// 5. TradeAmount (0, 10^9, 10^12, U64::max)
/// 6. Trade Direction (a->b, b->a)
/// 7. TradeAmountToken (amountIsInput, amountIsOutput)
fn run_concentrated_pool_swap_integration_tests() {
run_swap_integration_tests("src/tests/swap_test_cases.json");
}
#[test]
/// Run a collection of tests on the swap_manager against expectations
/// A total of 2880 tests on these variables:
/// 1. FeeRate ([MAX_FEE, MAX_PROTOCOL_FEE], [65535, 600], [700, 300], [0, 0])
/// 2. CurrentTickPosition (-443500, -223027, 0, 223027, 443500)
/// 3. Liquidity (0, 2^32, 2^64)
/// 4. TickSpacing (32768+1, 32768+64, 32768+128)
/// 5. TradeAmount (0, 10^9, 10^12, U64::max)
/// 6. Trade Direction (a->b, b->a)
/// 7. TradeAmountToken (amountIsInput, amountIsOutput)
fn run_splash_pool_swap_integration_tests() {
run_swap_integration_tests("src/tests/swap_test_cases_splash_pool.json");
}
fn run_swap_integration_tests(test_cases_json_path: &str) {
let contents = fs::read_to_string(test_cases_json_path).expect("Failure to read the file.");
let json: Vec<TestCase> = serde_json::from_str(&contents).expect("JSON was not well-formatted");
let test_iterator = json.iter();
let mut total_cases: u16 = 0;
let mut pass_cases: u16 = 0;
let mut fail_cases: u16 = 0;
for test in test_iterator {
let test_id = test.test_id;
total_cases += 1;
let derived_start_tick = derive_start_tick(test.curr_tick_index, test.tick_spacing);
let last_tick_in_seq =
derive_last_tick_in_seq(derived_start_tick, test.tick_spacing, test.a_to_b);
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: test.tick_spacing,
liquidity: test.liquidity,
curr_tick_index: test.curr_tick_index,
start_tick_index: derived_start_tick,
trade_amount: test.trade_amount,
sqrt_price_limit: sqrt_price_from_tick_index(last_tick_in_seq),
amount_specified_is_input: test.amount_is_input,
a_to_b: test.a_to_b,
array_1_ticks: &vec![],
array_2_ticks: Some(&vec![]),
array_3_ticks: Some(&vec![]),
fee_growth_global_a: 0,
fee_growth_global_b: 0,
fee_rate: test.fee_rate,
protocol_fee_rate: test.protocol_fee_rate,
reward_infos: create_whirlpool_reward_infos(100, 10),
..Default::default()
});
let mut tick_sequence = SwapTickSequence::new(
swap_test_info.tick_arrays[0].borrow_mut(),
Some(swap_test_info.tick_arrays[1].borrow_mut()),
Some(swap_test_info.tick_arrays[2].borrow_mut()),
);
let post_swap = swap_test_info.eval(&mut tick_sequence, 1643027024);
if post_swap.is_err() {
let e = post_swap.unwrap_err();
if test.expectation.exception.is_empty() {
fail_cases += 1;
msg!("Test case {} - {}", test_id, test.description);
msg!("Received an unexpected error - {}", e.to_string());
msg!("");
continue;
}
let expected_error = derive_error(&test.expectation.exception);
if expected_error.is_none() {
msg!("Test case {} - {}", test_id, test.description);
msg!(
"Expectation expecting an unregistered error - {}. Test received this error - {}",
test.expectation.exception,
e.to_string()
);
msg!("");
fail_cases += 1;
} else if expected_error.is_some()
&& !anchor_lang::error!(expected_error.unwrap()).eq(&e)
{
fail_cases += 1;
msg!("Test case {} - {}", test_id, test.description);
msg!(
"Test case expected error - {}, but received - {}",
expected_error.unwrap().to_string(),
e.to_string()
);
msg!("");
} else {
pass_cases += 1;
}
} else {
let expectation = &test.expectation;
let results = post_swap.unwrap();
let equal = assert_expectation(&results, expectation);
if equal {
pass_cases += 1;
} else {
msg!("Test case {} - {}", test_id, test.description);
msg!("Fail - results do not equal.");
if !expectation.exception.is_empty() {
msg!(
"Test case received no error but expected error - {}",
expectation.exception
);
} else {
msg!(
"amount_a - {}, expect - {}",
results.amount_a,
expectation.amount_a
);
msg!(
"amount_b - {}, expect - {}",
results.amount_b,
expectation.amount_b
);
msg!(
"next_liq - {}, expect - {}",
results.next_liquidity,
expectation.next_liquidity
);
msg!(
"next_tick - {}, expect - {}",
results.next_tick_index,
expectation.next_tick_index
);
msg!(
"next_sqrt_price - {}, expect - {}",
results.next_sqrt_price,
expectation.next_sqrt_price
);
msg!(
"next_fee_growth_global - {}, expect - {}, delta - {}",
results.next_fee_growth_global,
expectation.next_fee_growth_global,
results.next_fee_growth_global as i128
- expectation.next_fee_growth_global as i128,
);
msg!(
"next_protocol_fee - {}, expect - {}",
results.next_protocol_fee,
expectation.next_protocol_fee
);
}
msg!("");
fail_cases += 1;
}
}
}
msg!(
"Total - {}, Pass - {}, Failed - {}",
total_cases,
pass_cases,
fail_cases
);
assert_eq!(total_cases, pass_cases);
}
fn assert_expectation(post_swap: &PostSwapUpdate, expectation: &Expectation) -> bool {
let amount_a_equal = post_swap.amount_a.eq(&expectation.amount_a);
let amount_b_equal = post_swap.amount_b.eq(&expectation.amount_b);
let next_liquidity_equal = post_swap.next_liquidity.eq(&expectation.next_liquidity);
let next_tick_equal = post_swap.next_tick_index.eq(&expectation.next_tick_index);
let next_sqrt_price_equal = post_swap.next_sqrt_price.eq(&expectation.next_sqrt_price);
let next_fees_equal = post_swap
.next_fee_growth_global
.eq(&expectation.next_fee_growth_global);
let next_protocol_fees_equal = post_swap
.next_protocol_fee
.eq(&expectation.next_protocol_fee);
amount_a_equal
&& amount_b_equal
&& next_liquidity_equal
&& next_tick_equal
&& next_sqrt_price_equal
&& next_fees_equal
&& next_protocol_fees_equal
}
fn derive_error(expected_err: &String) -> Option<ErrorCode> {
for possible_error in CATCHABLE_ERRORS {
if expected_err.eq(&possible_error.0) {
return Some(possible_error.1);
}
}
None
}
/// Given a tick & tick-spacing, derive the start tick of the tick-array that this tick would reside in
fn derive_start_tick(curr_tick: i32, tick_spacing: u16) -> i32 {
let num_of_ticks_in_array = TICK_ARRAY_SIZE * tick_spacing as i32;
let rem = curr_tick % num_of_ticks_in_array;
if curr_tick < 0 && rem != 0 {
((curr_tick / num_of_ticks_in_array) - 1) * num_of_ticks_in_array
} else {
curr_tick / num_of_ticks_in_array * num_of_ticks_in_array
}
}
/// Given a start-tick & tick-spacing, derive the last tick of a 3-tick-array sequence
fn derive_last_tick_in_seq(start_tick: i32, tick_spacing: u16, a_to_b: bool) -> i32 {
let num_of_ticks_in_array = TICK_ARRAY_SIZE * tick_spacing as i32;
let potential_last = if a_to_b {
start_tick - (2 * num_of_ticks_in_array)
} else {
start_tick + (3 * num_of_ticks_in_array) - 1
};
potential_last.clamp(MIN_TICK_INDEX, MAX_TICK_INDEX)
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/tests/swap_test_cases.json
|
[
{
"testId": 1,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239131409",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808458751"
}
},
{
"testId": 3,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 4,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 5,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 6,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 7,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 8,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 9,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 10,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 11,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 12,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 13,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 14,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 15,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 16,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 17,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "196608",
"nextProtocolFee": "4611686018427387903"
}
},
{
"testId": 18,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 19,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 20,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 21,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 22,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 23,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 24,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 25,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 26,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 27,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 28,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 29,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 30,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 31,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 32,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 33,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18262237226475716608",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709292094",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808394520"
}
},
{
"testId": 34,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18262237226475459681",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709811138",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808458751"
}
},
{
"testId": 35,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 36,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 37,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 38,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 39,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "71079539573399",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 40,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "71079539573398",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 41,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 42,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 43,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "71079539573399",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 44,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "71079539573398",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 45,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 46,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 47,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 48,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 49,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 50,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3767894230",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039875105",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808458751"
}
},
{
"testId": 51,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 52,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 53,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 54,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 55,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14666",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "36"
}
},
{
"testId": 56,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 57,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4798303927986552832",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039547395",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "2501549"
}
},
{
"testId": 58,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 59,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14666",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "36"
}
},
{
"testId": 60,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4895816526736506053",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "521",
"nextProtocolFee": "12239541316841265"
}
},
{
"testId": 61,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 62,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 63,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 64,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 65,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "196608",
"nextProtocolFee": "4611686018427387903"
}
},
{
"testId": 66,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 67,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 68,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 69,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 70,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 71,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 72,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 73,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 74,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 75,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 76,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 77,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 78,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 79,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 80,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 81,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 82,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482338260332211327985",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 83,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 84,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 85,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 86,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984689238871887",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 87,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 88,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 89,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 90,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700228871887",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 91,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 92,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 93,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 94,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 95,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 96,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 97,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "187386814678750058",
"nextProtocolFee": "62462271559583352"
}
},
{
"testId": 98,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 99,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 100,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 101,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000000",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 102,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 103,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 104,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 105,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 106,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 107,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 108,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 109,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 110,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 111,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 112,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 113,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "164686381608593732",
"amountB": "161611135553062958",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "1235147862064454",
"nextProtocolFee": "411715954021484"
}
},
{
"testId": 114,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "240974754707347856",
"amountB": "246630645263171373",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "1849729839473786",
"nextProtocolFee": "616576613157928"
}
},
{
"testId": 115,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "164686381608593732",
"amountB": "161611135553062958",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "1235147862064454",
"nextProtocolFee": "411715954021484"
}
},
{
"testId": 116,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "240974754707347856",
"amountB": "246630645263171373",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "1849729839473786",
"nextProtocolFee": "616576613157928"
}
},
{
"testId": 117,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "989999946868",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743083709604748",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 118,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999946868",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745063709551616",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 119,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101064860",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 120,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1010101064860",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 121,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "989999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072719551617",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 122,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074699551616",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 123,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101012",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 124,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1010101012",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 125,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 126,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 127,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 128,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 129,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 130,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3767848781",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261716833918012071681",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 131,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3844461264",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "28833460",
"nextProtocolFee": "9611153"
}
},
{
"testId": 132,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 133,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 134,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "204",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558275039615583",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 135,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "210",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 136,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 137,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4798316034585943377",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238656241250453672206",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 138,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286029615583",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 139,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 140,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4895778055119342092",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "36718335413395066",
"nextProtocolFee": "12239445137798355"
}
},
{
"testId": 141,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 142,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 143,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 144,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 145,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3767848781",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963412410855",
"nextFeeGrowthGlobal": "138350581409062182",
"nextProtocolFee": "46116860469687394"
}
},
{
"testId": 146,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 147,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 148,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 149,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "204",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259432",
"nextFeeGrowthGlobal": "8439296690",
"nextProtocolFee": "2813098896"
}
},
{
"testId": 150,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 151,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 152,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "210",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 153,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 154,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4798316034585962117",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968170259636",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 155,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4895778055119361214",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "36718335413395210",
"nextProtocolFee": "12239445137798403"
}
},
{
"testId": 156,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 157,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 158,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 159,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 160,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 161,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 162,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 163,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 164,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 165,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 166,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790716093606739238871887",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 167,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 168,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 169,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 170,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468328001322278871887",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 171,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 172,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 173,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 174,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 175,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 176,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 177,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 178,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 179,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 180,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 181,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352166",
"nextFeeGrowthGlobal": "41317902338926575616",
"nextProtocolFee": "3206691265"
}
},
{
"testId": 182,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 183,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 184,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 185,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "3221225472000000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 186,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 187,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 188,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 189,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 190,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 191,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 192,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 193,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "38344037",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "1235150989950976",
"nextProtocolFee": "95860"
}
},
{
"testId": 194,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "57423173",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "1849730745237504",
"nextProtocolFee": "143558"
}
},
{
"testId": 195,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "38344037",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "1235150989950976",
"nextProtocolFee": "95860"
}
},
{
"testId": 196,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "57423173",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "1849730745237504",
"nextProtocolFee": "143558"
}
},
{
"testId": 197,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "38344037",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "1235150989950976",
"nextProtocolFee": "95860"
}
},
{
"testId": 198,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "57423173",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "1849730745237504",
"nextProtocolFee": "143558"
}
},
{
"testId": 199,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "38344037",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "1235150989950976",
"nextProtocolFee": "95860"
}
},
{
"testId": 200,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "57423173",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "1849730745237504",
"nextProtocolFee": "143558"
}
},
{
"testId": 201,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "38344037",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "1235150989950976",
"nextProtocolFee": "95860"
}
},
{
"testId": 202,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "57423173",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "1849730745237504",
"nextProtocolFee": "143558"
}
},
{
"testId": 203,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "38344037",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "1235150989950976",
"nextProtocolFee": "95860"
}
},
{
"testId": 204,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "57423173",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "1849730745237504",
"nextProtocolFee": "143558"
}
},
{
"testId": 205,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 206,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 207,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 208,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 209,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "662",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "25769803776",
"nextProtocolFee": "1"
}
},
{
"testId": 210,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3462686301263",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "111540933154004008960",
"nextProtocolFee": "8656715753"
}
},
{
"testId": 211,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "662",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "25769803776",
"nextProtocolFee": "1"
}
},
{
"testId": 212,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3462686301263",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "111540933154004008960",
"nextProtocolFee": "8656715753"
}
},
{
"testId": 213,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "662",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "25769803776",
"nextProtocolFee": "1"
}
},
{
"testId": 214,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "203",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288495472180325039615583",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 215,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "211",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 216,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3462686301263",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "111540933154004008960",
"nextProtocolFee": "8656715753"
}
},
{
"testId": 217,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "662",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "25769803776",
"nextProtocolFee": "1"
}
},
{
"testId": 218,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247706574908079615583",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 219,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 220,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3462686301263",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "111540933154004008960",
"nextProtocolFee": "8656715753"
}
},
{
"testId": 221,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 222,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 223,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 224,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 225,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3477960631010",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "112032953758346379264",
"nextProtocolFee": "8694901577"
}
},
{
"testId": 226,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "659",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "25769803776",
"nextProtocolFee": "1"
}
},
{
"testId": 227,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3477960631010",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "112032953758346379264",
"nextProtocolFee": "8694901577"
}
},
{
"testId": 228,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "659",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "25769803776",
"nextProtocolFee": "1"
}
},
{
"testId": 229,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "203",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264092792150158",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 230,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "659",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "25769803776",
"nextProtocolFee": "1"
}
},
{
"testId": 231,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3477960631010",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "112032953758346379264",
"nextProtocolFee": "8694901577"
}
},
{
"testId": 232,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "211",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 233,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966302979409",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 234,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "659",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "25769803776",
"nextProtocolFee": "1"
}
},
{
"testId": 235,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3477960631010",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "112032953758346379264",
"nextProtocolFee": "8694901577"
}
},
{
"testId": 236,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 237,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 238,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 239,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 240,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 241,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 242,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 243,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 244,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 245,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 246,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 247,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 248,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 249,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 250,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 251,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 252,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 253,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 254,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 255,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 256,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 257,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 258,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 259,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 260,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 261,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 262,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 263,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 264,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 265,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 266,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 267,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 268,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 269,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 270,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 271,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 272,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 273,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 274,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 275,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 276,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 277,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 278,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 279,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 280,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 281,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 282,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 283,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 284,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 285,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 286,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 287,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 288,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 289,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 290,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 291,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 292,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 293,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 294,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 295,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 296,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 297,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 298,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 299,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 300,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 301,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 302,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 303,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 304,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 305,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 306,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 307,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 308,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 309,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 310,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 311,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 312,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 313,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 314,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 315,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 316,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 317,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 318,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 319,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 320,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 1,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 321,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 322,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239131409",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808458751"
}
},
{
"testId": 323,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 324,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 325,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 326,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 327,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 328,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 329,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 330,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 331,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 332,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 333,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 334,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 335,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 336,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 337,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "196608",
"nextProtocolFee": "4611686018427387903"
}
},
{
"testId": 338,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 339,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 340,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 341,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 342,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 343,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 344,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 345,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 346,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 347,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 348,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 349,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 350,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 351,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 352,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 353,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18262237226475716608",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709292094",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808394520"
}
},
{
"testId": 354,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18262237226475459681",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709811138",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808458751"
}
},
{
"testId": 355,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 356,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 357,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 358,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 359,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "71079539573399",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 360,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "71079539573398",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 361,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 362,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 363,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "71079539573399",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 364,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "71079539573398",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 365,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 366,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 367,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 368,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 369,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 370,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3767894230",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039875105",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808458751"
}
},
{
"testId": 371,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 372,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 373,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 374,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 375,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14666",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "36"
}
},
{
"testId": 376,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 377,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4798303927986552832",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039547395",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "2501549"
}
},
{
"testId": 378,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 379,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14666",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "36"
}
},
{
"testId": 380,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4895816526736506053",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "521",
"nextProtocolFee": "12239541316841265"
}
},
{
"testId": 381,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 382,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 383,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 384,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 385,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "196608",
"nextProtocolFee": "4611686018427387903"
}
},
{
"testId": 386,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 387,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 388,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 389,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 390,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 391,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 392,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 393,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 394,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 395,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 396,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 397,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 398,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 399,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 400,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 401,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 402,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482338260332211327985",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 403,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 404,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 405,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 406,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984689238871887",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 407,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 408,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 409,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 410,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700228871887",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 411,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 412,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 413,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 414,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 415,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 416,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 417,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "187386814678750058",
"nextProtocolFee": "62462271559583352"
}
},
{
"testId": 418,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 419,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 420,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 421,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000000",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 422,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 423,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 424,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 425,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 426,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 427,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 428,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 429,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 430,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 431,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 432,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 433,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1358975248081401530",
"amountB": "1253931863719602977",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "10192314360610512",
"nextProtocolFee": "3397438120203504"
}
},
{
"testId": 434,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1847732346382633346",
"amountB": "2074155716413252474",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "15556167873099394",
"nextProtocolFee": "5185389291033131"
}
},
{
"testId": 435,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1358975248081401530",
"amountB": "1253931863719602977",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "10192314360610512",
"nextProtocolFee": "3397438120203504"
}
},
{
"testId": 436,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1847732346382633346",
"amountB": "2074155716413252474",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "15556167873099394",
"nextProtocolFee": "5185389291033131"
}
},
{
"testId": 437,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "989999946868",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743083709604748",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 438,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999946868",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745063709551616",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 439,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101064860",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 440,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1010101064860",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 441,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "989999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072719551617",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 442,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074699551616",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 443,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101012",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 444,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1010101012",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 445,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 446,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 447,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 448,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 449,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 450,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3767848781",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261716833918012071681",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 451,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3844461264",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "28833460",
"nextProtocolFee": "9611153"
}
},
{
"testId": 452,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 453,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 454,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "204",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558275039615583",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 455,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "210",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 456,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 457,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4798316034585943377",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238656241250453672206",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 458,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286029615583",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 459,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 460,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4895778055119342092",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "36718335413395066",
"nextProtocolFee": "12239445137798355"
}
},
{
"testId": 461,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 462,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 463,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 464,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 465,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3767848781",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963412410855",
"nextFeeGrowthGlobal": "138350581409062182",
"nextProtocolFee": "46116860469687394"
}
},
{
"testId": 466,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 467,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 468,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 469,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "204",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259432",
"nextFeeGrowthGlobal": "8439296690",
"nextProtocolFee": "2813098896"
}
},
{
"testId": 470,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 471,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 472,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "210",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 473,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 474,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4798316034585962117",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968170259636",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 475,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4895778055119361214",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "36718335413395210",
"nextProtocolFee": "12239445137798403"
}
},
{
"testId": 476,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 477,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 478,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 479,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 480,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 481,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 482,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 483,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 484,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 485,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 486,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790716093606739238871887",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 487,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 488,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 489,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 490,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468328001322278871887",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 491,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 492,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 493,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 494,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 495,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 496,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 497,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 498,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 499,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 500,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 501,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352166",
"nextFeeGrowthGlobal": "41317902338926575616",
"nextProtocolFee": "3206691265"
}
},
{
"testId": 502,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 503,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 504,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 505,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "3221225472000000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 506,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 507,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 508,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 509,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 510,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 511,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 512,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 513,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "316411082",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "10192318170660864",
"nextProtocolFee": "791027"
}
},
{
"testId": 514,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "482927012",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "15556173977616384",
"nextProtocolFee": "1207317"
}
},
{
"testId": 515,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "316411082",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "10192318170660864",
"nextProtocolFee": "791027"
}
},
{
"testId": 516,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "482927012",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "15556173977616384",
"nextProtocolFee": "1207317"
}
},
{
"testId": 517,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "316411082",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "10192318170660864",
"nextProtocolFee": "791027"
}
},
{
"testId": 518,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "482927012",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "15556173977616384",
"nextProtocolFee": "1207317"
}
},
{
"testId": 519,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "316411082",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "10192318170660864",
"nextProtocolFee": "791027"
}
},
{
"testId": 520,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "482927012",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "15556173977616384",
"nextProtocolFee": "1207317"
}
},
{
"testId": 521,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "316411082",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "10192318170660864",
"nextProtocolFee": "791027"
}
},
{
"testId": 522,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "482927012",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "15556173977616384",
"nextProtocolFee": "1207317"
}
},
{
"testId": 523,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "316411082",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "10192318170660864",
"nextProtocolFee": "791027"
}
},
{
"testId": 524,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "482927012",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "15556173977616384",
"nextProtocolFee": "1207317"
}
},
{
"testId": 525,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 526,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 527,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 528,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 529,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6455",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "210453397504",
"nextProtocolFee": "16"
}
},
{
"testId": 530,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24304478017398",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "782902036735276875776",
"nextProtocolFee": "60761195043"
}
},
{
"testId": 531,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6455",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "210453397504",
"nextProtocolFee": "16"
}
},
{
"testId": 532,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24304478017398",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "782902036735276875776",
"nextProtocolFee": "60761195043"
}
},
{
"testId": 533,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6455",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "210453397504",
"nextProtocolFee": "16"
}
},
{
"testId": 534,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "203",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288495472180325039615583",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 535,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "211",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 536,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24304478017398",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "782902036735276875776",
"nextProtocolFee": "60761195043"
}
},
{
"testId": 537,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6455",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "210453397504",
"nextProtocolFee": "16"
}
},
{
"testId": 538,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247706574908079615583",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 539,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 540,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24304478017398",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "782902036735276875776",
"nextProtocolFee": "60761195043"
}
},
{
"testId": 541,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 542,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 543,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 544,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 545,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24320794410679",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "783427624553441918976",
"nextProtocolFee": "60801986026"
}
},
{
"testId": 546,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6451",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "210453397504",
"nextProtocolFee": "16"
}
},
{
"testId": 547,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24320794410679",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "783427624553441918976",
"nextProtocolFee": "60801986026"
}
},
{
"testId": 548,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6451",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "210453397504",
"nextProtocolFee": "16"
}
},
{
"testId": 549,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "203",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264092792150158",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 550,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6451",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "210453397504",
"nextProtocolFee": "16"
}
},
{
"testId": 551,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24320794410679",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "783427624553441918976",
"nextProtocolFee": "60801986026"
}
},
{
"testId": 552,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "211",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 553,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966302979409",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 554,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6451",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "210453397504",
"nextProtocolFee": "16"
}
},
{
"testId": 555,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24320794410679",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "783427624553441918976",
"nextProtocolFee": "60801986026"
}
},
{
"testId": 556,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 557,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 558,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 559,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 560,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 561,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 562,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 563,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 564,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 565,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 566,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 567,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 568,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 569,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 570,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 571,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 572,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 573,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 574,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 575,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 576,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 577,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 578,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 579,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 580,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 581,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 582,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 583,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 584,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 585,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 586,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 587,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 588,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 589,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 590,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 591,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 592,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 593,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 594,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 595,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 596,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 597,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 598,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 599,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 600,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 601,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 602,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 603,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 604,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 605,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 606,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 607,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 608,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 609,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 610,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 611,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 612,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 613,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 614,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 615,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 616,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 617,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 618,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 619,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 620,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 621,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 622,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 623,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 624,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 625,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 626,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 627,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 628,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 629,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 630,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 631,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 632,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 633,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 634,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 635,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 636,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 637,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 638,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 639,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 640,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 8,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 641,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 642,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239131409",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808458751"
}
},
{
"testId": 643,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 644,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 645,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 646,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 647,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 648,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 649,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 650,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 651,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 652,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 653,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 654,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 655,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 656,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 657,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "196608",
"nextProtocolFee": "4611686018427387903"
}
},
{
"testId": 658,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 659,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 660,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 661,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 662,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 663,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 664,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 665,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 666,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 667,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 668,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 669,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 670,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 671,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 672,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 673,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18262237226475716608",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709292094",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808394520"
}
},
{
"testId": 674,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18262237226475459681",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709811138",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808458751"
}
},
{
"testId": 675,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 676,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 677,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 678,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 679,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "71079539573399",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 680,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "71079539573398",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 681,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 682,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 683,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "71079539573399",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 684,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "71079539573398",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "177698848933"
}
},
{
"testId": 685,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 686,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 687,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 688,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 689,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 690,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3767894230",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039875105",
"nextFeeGrowthGlobal": "1966",
"nextProtocolFee": "46126711808458751"
}
},
{
"testId": 691,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 692,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 693,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 694,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 695,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14666",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "36"
}
},
{
"testId": 696,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 697,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4798303927986552832",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039547395",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "2501549"
}
},
{
"testId": 698,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 699,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14666",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "36"
}
},
{
"testId": 700,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4895816526736506053",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "521",
"nextProtocolFee": "12239541316841265"
}
},
{
"testId": 701,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 702,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 703,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 704,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 705,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "196608",
"nextProtocolFee": "4611686018427387903"
}
},
{
"testId": 706,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 707,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 708,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 709,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 710,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 711,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 712,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 713,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 714,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "250000000"
}
},
{
"testId": 715,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 716,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 717,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 718,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 719,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 720,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 721,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 722,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482338260332211327985",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 723,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 724,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 725,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 726,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984689238871887",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 727,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 728,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 729,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 730,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700228871887",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 731,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 732,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 733,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 734,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 735,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 736,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 737,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "187386814678750058",
"nextProtocolFee": "62462271559583352"
}
},
{
"testId": 738,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 739,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 740,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 741,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000000",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 742,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 743,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 744,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 745,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 746,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 747,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 748,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 749,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 750,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 751,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 752,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 753,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9177023433654500552",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13764,
"nextSqrtPrice": "9269720640055051064",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 754,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9177023433654500552",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13763,
"nextSqrtPrice": "36709020706682007714",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 755,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 756,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 757,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "989999946868",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743083709604748",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 758,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999946868",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745063709551616",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 759,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101064860",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 760,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1010101064860",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 761,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "989999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072719551617",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 762,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074699551616",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 763,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101012",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 764,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1010101012",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 765,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 766,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 767,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 768,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 769,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 770,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3767848781",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261716833918012071681",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 771,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3844461264",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "28833460",
"nextProtocolFee": "9611153"
}
},
{
"testId": 772,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 773,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 774,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "204",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558275039615583",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 775,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "210",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 776,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 777,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4798316034585943377",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238656241250453672206",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 778,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286029615583",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 779,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 780,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4895778055119342092",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "36718335413395066",
"nextProtocolFee": "12239445137798355"
}
},
{
"testId": 781,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 782,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 783,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 784,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 785,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3767848781",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963412410855",
"nextFeeGrowthGlobal": "138350581409062182",
"nextProtocolFee": "46116860469687394"
}
},
{
"testId": 786,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 787,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 788,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 789,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "204",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259432",
"nextFeeGrowthGlobal": "8439296690",
"nextProtocolFee": "2813098896"
}
},
{
"testId": 790,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 791,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 792,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "210",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 793,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 794,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4798316034585962117",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968170259636",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 795,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4895778055119361214",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "36718335413395210",
"nextProtocolFee": "12239445137798403"
}
},
{
"testId": 796,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 797,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 798,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 799,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 800,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 801,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 802,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 803,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 804,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 805,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 806,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790716093606739238871887",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 807,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 808,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 809,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 810,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468328001322278871887",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 811,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 812,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 813,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 814,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 815,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 816,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 817,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 818,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 819,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 820,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 821,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352166",
"nextFeeGrowthGlobal": "41317902338926575616",
"nextProtocolFee": "3206691265"
}
},
{
"testId": 822,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 823,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 824,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 825,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "3221225472000000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 826,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 827,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 828,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 829,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 830,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 831,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 832,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 833,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "9042678237",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "291285059971842048",
"nextProtocolFee": "22606695"
}
},
{
"testId": 834,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "19160694736",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "617209181509779456",
"nextProtocolFee": "47901737"
}
},
{
"testId": 835,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "9042678237",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "291285059971842048",
"nextProtocolFee": "22606695"
}
},
{
"testId": 836,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "19160694736",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "617209181509779456",
"nextProtocolFee": "47901737"
}
},
{
"testId": 837,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "9042678237",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "291285059971842048",
"nextProtocolFee": "22606695"
}
},
{
"testId": 838,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "19160694736",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "617209181509779456",
"nextProtocolFee": "47901737"
}
},
{
"testId": 839,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "9042678237",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "291285059971842048",
"nextProtocolFee": "22606695"
}
},
{
"testId": 840,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "19160694736",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "617209181509779456",
"nextProtocolFee": "47901737"
}
},
{
"testId": 841,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "804549467",
"nextLiquidity": "4294967296",
"nextTickIndex": -4149,
"nextSqrtPrice": "14991230423361230502",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 842,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "804549467",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4148,
"nextSqrtPrice": "22698761696749551616",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 843,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1316659747",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "42412583004667904",
"nextProtocolFee": "3291649"
}
},
{
"testId": 844,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1316659747",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "42412583004667904",
"nextProtocolFee": "3291649"
}
},
{
"testId": 845,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 846,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 847,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 848,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 849,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "239280",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "7709466296320",
"nextProtocolFee": "598"
}
},
{
"testId": 850,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "740564960984881",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "23855267159953534615552",
"nextProtocolFee": "1851412402462"
}
},
{
"testId": 851,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "239280",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "7709466296320",
"nextProtocolFee": "598"
}
},
{
"testId": 852,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "740564960984881",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "23855267159953534615552",
"nextProtocolFee": "1851412402462"
}
},
{
"testId": 853,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "239280",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "7709466296320",
"nextProtocolFee": "598"
}
},
{
"testId": 854,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "203",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288495472180325039615583",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 855,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "211",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 856,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "740564960984881",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "23855267159953534615552",
"nextProtocolFee": "1851412402462"
}
},
{
"testId": 857,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "239280",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "7709466296320",
"nextProtocolFee": "598"
}
},
{
"testId": 858,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247706574908079615583",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 859,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 860,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "740564960984881",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "23855267159953534615552",
"nextProtocolFee": "1851412402462"
}
},
{
"testId": 861,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 862,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 863,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 864,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 865,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "740617089507030",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "23856946337190965673984",
"nextProtocolFee": "1851542723767"
}
},
{
"testId": 866,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "239265",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "7709466296320",
"nextProtocolFee": "598"
}
},
{
"testId": 867,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "740617089507030",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "23856946337190965673984",
"nextProtocolFee": "1851542723767"
}
},
{
"testId": 868,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "239265",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "7709466296320",
"nextProtocolFee": "598"
}
},
{
"testId": 869,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "203",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264092792150158",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 870,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "239265",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "7709466296320",
"nextProtocolFee": "598"
}
},
{
"testId": 871,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "740617089507030",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "23856946337190965673984",
"nextProtocolFee": "1851542723767"
}
},
{
"testId": 872,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "211",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 873,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966302979409",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 874,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "239265",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "7709466296320",
"nextProtocolFee": "598"
}
},
{
"testId": 875,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "740617089507030",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "23856946337190965673984",
"nextProtocolFee": "1851542723767"
}
},
{
"testId": 876,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 877,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 878,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 879,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 880,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 881,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 882,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 883,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 884,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 885,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 886,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 887,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 888,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 889,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 890,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 891,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 892,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 893,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 894,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 895,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 896,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 897,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 898,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 899,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 900,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 901,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 902,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 903,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 904,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 905,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 906,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 907,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 908,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 909,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 910,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 911,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 912,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 913,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 914,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 915,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 916,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 917,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 918,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 919,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 920,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 921,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 922,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 923,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 924,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 925,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 926,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 927,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 928,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 929,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 930,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 931,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 932,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 933,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 934,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 935,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 936,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 937,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 938,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 939,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 940,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 941,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 942,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 943,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 944,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 945,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 946,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 947,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 948,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 949,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 950,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 951,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 952,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 953,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 954,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 955,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 956,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 957,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 958,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 959,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 960,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 128,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 961,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 962,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239116851",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498336051"
}
},
{
"testId": 963,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 964,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 965,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 966,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 967,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 968,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 969,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 970,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 971,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 972,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 973,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 974,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 975,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 976,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 977,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "246415",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 978,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 979,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 980,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 981,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 982,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 983,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 984,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 985,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 986,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 987,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 988,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 989,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 990,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 991,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 992,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 993,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "17237809048737284096",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709306652",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498322316"
}
},
{
"testId": 994,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "17237809048737055186",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709796580",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498336051"
}
},
{
"testId": 995,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 996,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 997,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 998,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 999,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "75303777217622",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1000,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "75303777217621",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1001,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1002,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1003,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "75303777217622",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1004,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "75303777217621",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1005,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1006,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1007,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1008,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1009,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1010,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3556532557",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039860547",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498336051"
}
},
{
"testId": 1011,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1012,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1013,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1014,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1015,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "15538",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "61"
}
},
{
"testId": 1016,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1017,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4529143481506988032",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039551220",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "3932388"
}
},
{
"testId": 1018,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1019,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "15538",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "61"
}
},
{
"testId": 1020,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "5186773567195283924",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "4540",
"nextProtocolFee": "20394912343568575"
}
},
{
"testId": 1021,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1022,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1023,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1024,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1025,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "246415",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1026,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1027,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1028,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1029,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1030,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1031,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1032,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1033,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1034,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1035,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1036,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1037,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1038,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1039,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1040,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1041,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1042,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786481313820400077868036",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1043,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1044,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1045,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1046,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984633703871887",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1047,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1048,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1049,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1050,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700173336887",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1051,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1052,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1053,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1054,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1055,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1056,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1057,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "17339939429286978519",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1058,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1059,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1060,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1061,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000000",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1062,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1063,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1064,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1065,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1066,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1067,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1068,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1069,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1070,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1071,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1072,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1073,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "174473648336222110",
"amountB": "161611135553062958",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "10748082711091458",
"nextProtocolFee": "686047832622858"
}
},
{
"testId": 1074,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "240974754707347856",
"amountB": "261287837222945385",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "16096088507661383",
"nextProtocolFee": "1027409904744343"
}
},
{
"testId": 1075,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "174473648336222110",
"amountB": "161611135553062958",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "10748082711091458",
"nextProtocolFee": "686047832622858"
}
},
{
"testId": 1076,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "240974754707347856",
"amountB": "261287837222945385",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "16096088507661383",
"nextProtocolFee": "1027409904744343"
}
},
{
"testId": 1077,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "934464952662",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743139244598954",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1078,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464952662",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745008174551616",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1079,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131095559",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1080,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1070131095559",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1081,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "934464999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072775086617",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1082,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074644016616",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1083,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131039",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1084,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1070131039",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1085,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1086,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1087,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1088,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1089,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1090,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3556490525",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284260692393985878611732",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1091,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4072936548",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "250904704",
"nextProtocolFee": "16015193"
}
},
{
"testId": 1092,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1093,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1094,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558219504615583",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1095,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "222",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1096,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1097,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4529150841451380342",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238925406443588235241",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1098,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285974080583",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1099,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1100,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "5186732809220408117",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "319517782573123880",
"nextProtocolFee": "20394752079135566"
}
},
{
"testId": 1101,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1102,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1103,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1104,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1105,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3556490525",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963623769111",
"nextFeeGrowthGlobal": "1136372931449860984",
"nextProtocolFee": "72534442432969850"
}
},
{
"testId": 1106,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1107,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1108,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1109,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259444",
"nextFeeGrowthGlobal": "65249178213",
"nextProtocolFee": "4164841162"
}
},
{
"testId": 1110,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1111,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1112,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "222",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1113,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1114,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4529150841451398030",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968114724636",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1115,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "5186732809220428375",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "319517782573125128",
"nextProtocolFee": "20394752079135646"
}
},
{
"testId": 1116,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1117,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1118,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1119,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1120,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1121,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1122,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1123,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1124,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1125,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1126,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790477572597955878871887",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1127,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1128,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1129,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1130,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468089480313495511887",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1131,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1132,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1133,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1134,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1135,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1136,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1137,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1138,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1139,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1140,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1141,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352179",
"nextFeeGrowthGlobal": "274151184252585115648",
"nextProtocolFee": "4074306171"
}
},
{
"testId": 1142,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1143,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1144,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1145,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4037269258240000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1146,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1147,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1148,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1149,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1150,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1151,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1152,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1153,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "40622812",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "10748086938763264",
"nextProtocolFee": "159732"
}
},
{
"testId": 1154,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "60835817",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "16096094316396544",
"nextProtocolFee": "239212"
}
},
{
"testId": 1155,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "40622812",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "10748086938763264",
"nextProtocolFee": "159732"
}
},
{
"testId": 1156,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "60835817",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "16096094316396544",
"nextProtocolFee": "239212"
}
},
{
"testId": 1157,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "40622812",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "10748086938763264",
"nextProtocolFee": "159732"
}
},
{
"testId": 1158,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "60835817",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "16096094316396544",
"nextProtocolFee": "239212"
}
},
{
"testId": 1159,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "40622812",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "10748086938763264",
"nextProtocolFee": "159732"
}
},
{
"testId": 1160,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "60835817",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "16096094316396544",
"nextProtocolFee": "239212"
}
},
{
"testId": 1161,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "40622812",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "10748086938763264",
"nextProtocolFee": "159732"
}
},
{
"testId": 1162,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "60835817",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "16096094316396544",
"nextProtocolFee": "239212"
}
},
{
"testId": 1163,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "40622812",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "10748086938763264",
"nextProtocolFee": "159732"
}
},
{
"testId": 1164,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "60835817",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "16096094316396544",
"nextProtocolFee": "239212"
}
},
{
"testId": 1165,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1166,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1167,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1168,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1169,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "701",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "188978561024",
"nextProtocolFee": "2"
}
},
{
"testId": 1170,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3668472803423",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "970613488484612046848",
"nextProtocolFee": "14424801910"
}
},
{
"testId": 1171,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "701",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "188978561024",
"nextProtocolFee": "2"
}
},
{
"testId": 1172,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3668472803423",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "970613488484612046848",
"nextProtocolFee": "14424801910"
}
},
{
"testId": 1173,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "701",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "188978561024",
"nextProtocolFee": "2"
}
},
{
"testId": 1174,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223089,
"nextSqrtPrice": "1288256951171541679615583",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1175,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "223",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1176,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3668472803423",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "970613488484612046848",
"nextProtocolFee": "14424801910"
}
},
{
"testId": 1177,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "701",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "188978561024",
"nextProtocolFee": "2"
}
},
{
"testId": 1178,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247468053899296255583",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1179,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1180,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3668472803423",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "970613488484612046848",
"nextProtocolFee": "14424801910"
}
},
{
"testId": 1181,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1182,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1183,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1184,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1185,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3684654882419",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "974894982442434691072",
"nextProtocolFee": "14488431463"
}
},
{
"testId": 1186,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "698",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "188978561024",
"nextProtocolFee": "2"
}
},
{
"testId": 1187,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3684654882419",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "974894982442434691072",
"nextProtocolFee": "14488431463"
}
},
{
"testId": 1188,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "698",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "188978561024",
"nextProtocolFee": "2"
}
},
{
"testId": 1189,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "4294967296",
"nextTickIndex": -223090,
"nextSqrtPrice": "264141688978651",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1190,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "698",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "188978561024",
"nextProtocolFee": "2"
}
},
{
"testId": 1191,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3684654882419",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "974894982442434691072",
"nextProtocolFee": "14488431463"
}
},
{
"testId": 1192,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "223",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1193,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966352191132",
"nextFeeGrowthGlobal": "264582445133725696",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1194,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "698",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "188978561024",
"nextProtocolFee": "2"
}
},
{
"testId": 1195,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3684654882419",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "974894982442434691072",
"nextProtocolFee": "14488431463"
}
},
{
"testId": 1196,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1197,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1198,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1199,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1200,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1201,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1202,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1203,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1204,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1205,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1206,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1207,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1208,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1209,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1210,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1211,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1212,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1213,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1214,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1215,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1216,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1217,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1218,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1219,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1220,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1221,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1222,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1223,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1224,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1225,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1226,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1227,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1228,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1229,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1230,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1231,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1232,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1233,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1234,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1235,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1236,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1237,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1238,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1239,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1240,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1241,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1242,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1243,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1244,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1245,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1246,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1247,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1248,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1249,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1250,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1251,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1252,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1253,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1254,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1255,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1256,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1257,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1258,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1259,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1260,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1261,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1262,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1263,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1264,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1265,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1266,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1267,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1268,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1269,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1270,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1271,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1272,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1273,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1274,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1275,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1276,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1277,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1278,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1279,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1280,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 1,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1281,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1282,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239116851",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498336051"
}
},
{
"testId": 1283,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1284,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1285,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1286,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1287,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1288,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1289,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1290,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1291,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1292,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1293,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1294,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1295,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1296,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1297,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "246415",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1298,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1299,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1300,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1301,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1302,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1303,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1304,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1305,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1306,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1307,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1308,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1309,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1310,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1311,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1312,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1313,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "17237809048737284096",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709306652",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498322316"
}
},
{
"testId": 1314,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "17237809048737055186",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709796580",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498336051"
}
},
{
"testId": 1315,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1316,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1317,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1318,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1319,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "75303777217622",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1320,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "75303777217621",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1321,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1322,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1323,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "75303777217622",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1324,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "75303777217621",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1325,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1326,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1327,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1328,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1329,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1330,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3556532557",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039860547",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498336051"
}
},
{
"testId": 1331,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1332,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1333,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1334,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1335,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "15538",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "61"
}
},
{
"testId": 1336,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1337,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4529143481506988032",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039551220",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "3932388"
}
},
{
"testId": 1338,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1339,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "15538",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "61"
}
},
{
"testId": 1340,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "5186773567195283924",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "4540",
"nextProtocolFee": "20394912343568575"
}
},
{
"testId": 1341,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1342,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1343,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1344,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1345,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "246415",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1346,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1347,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1348,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1349,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1350,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1351,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1352,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1353,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1354,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1355,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1356,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1357,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1358,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1359,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1360,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1361,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1362,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786481313820400077868036",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1363,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1364,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1365,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1366,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984633703871887",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1367,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1368,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1369,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1370,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700173336887",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1371,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1372,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1373,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1374,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1375,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1376,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1377,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "17339939429286978519",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1378,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1379,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1380,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1381,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000000",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1382,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1383,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1384,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1385,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1386,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1387,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1388,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1389,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1390,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1391,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1392,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1393,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1439738776305787284",
"amountB": "1253931863719602977",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "88692083862887784",
"nextProtocolFee": "5661196842311986"
}
},
{
"testId": 1394,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1847732346382633346",
"amountB": "2197422224747978736",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "135367581568927260",
"nextProtocolFee": "8640483929931527"
}
},
{
"testId": 1395,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1439738776305787284",
"amountB": "1253931863719602977",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "88692083862887784",
"nextProtocolFee": "5661196842311986"
}
},
{
"testId": 1396,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1847732346382633346",
"amountB": "2197422224747978736",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "135367581568927260",
"nextProtocolFee": "8640483929931527"
}
},
{
"testId": 1397,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "934464952662",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743139244598954",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1398,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464952662",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745008174551616",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1399,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131095559",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1400,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1070131095559",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1401,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "934464999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072775086617",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1402,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074644016616",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1403,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131039",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1404,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1070131039",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1405,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1406,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1407,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1408,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1409,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1410,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3556490525",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284260692393985878611732",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1411,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4072936548",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "250904704",
"nextProtocolFee": "16015193"
}
},
{
"testId": 1412,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1413,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1414,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558219504615583",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1415,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "222",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1416,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1417,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4529150841451380342",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238925406443588235241",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1418,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285974080583",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1419,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1420,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "5186732809220408117",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "319517782573123880",
"nextProtocolFee": "20394752079135566"
}
},
{
"testId": 1421,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1422,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1423,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1424,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1425,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3556490525",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963623769111",
"nextFeeGrowthGlobal": "1136372931449860984",
"nextProtocolFee": "72534442432969850"
}
},
{
"testId": 1426,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1427,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1428,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1429,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259444",
"nextFeeGrowthGlobal": "65249178213",
"nextProtocolFee": "4164841162"
}
},
{
"testId": 1430,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1431,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1432,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "222",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1433,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1434,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4529150841451398030",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968114724636",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1435,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "5186732809220428375",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "319517782573125128",
"nextProtocolFee": "20394752079135646"
}
},
{
"testId": 1436,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1437,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1438,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1439,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1440,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1441,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1442,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1443,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1444,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1445,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1446,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790477572597955878871887",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1447,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1448,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1449,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1450,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468089480313495511887",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1451,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1452,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1453,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1454,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1455,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1456,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1457,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1458,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1459,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1460,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1461,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352179",
"nextFeeGrowthGlobal": "274151184252585115648",
"nextProtocolFee": "4074306171"
}
},
{
"testId": 1462,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1463,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1464,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1465,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4037269258240000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1466,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1467,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1468,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1469,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1470,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1471,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1472,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1473,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "335215307",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "88692088274681856",
"nextProtocolFee": "1318100"
}
},
{
"testId": 1474,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "511627232",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "135367585234419712",
"nextProtocolFee": "2011769"
}
},
{
"testId": 1475,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "335215307",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "88692088274681856",
"nextProtocolFee": "1318100"
}
},
{
"testId": 1476,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "511627232",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "135367585234419712",
"nextProtocolFee": "2011769"
}
},
{
"testId": 1477,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "335215307",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "88692088274681856",
"nextProtocolFee": "1318100"
}
},
{
"testId": 1478,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "511627232",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "135367585234419712",
"nextProtocolFee": "2011769"
}
},
{
"testId": 1479,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "335215307",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "88692088274681856",
"nextProtocolFee": "1318100"
}
},
{
"testId": 1480,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "511627232",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "135367585234419712",
"nextProtocolFee": "2011769"
}
},
{
"testId": 1481,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "335215307",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "88692088274681856",
"nextProtocolFee": "1318100"
}
},
{
"testId": 1482,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "511627232",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "135367585234419712",
"nextProtocolFee": "2011769"
}
},
{
"testId": 1483,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "335215307",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "88692088274681856",
"nextProtocolFee": "1318100"
}
},
{
"testId": 1484,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "511627232",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "135367585234419712",
"nextProtocolFee": "2011769"
}
},
{
"testId": 1485,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1486,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1487,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1488,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1489,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6839",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "1816771166208",
"nextProtocolFee": "26"
}
},
{
"testId": 1490,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "25748886514984",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "6812703243019348869120",
"nextProtocolFee": "101247196665"
}
},
{
"testId": 1491,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6839",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "1816771166208",
"nextProtocolFee": "26"
}
},
{
"testId": 1492,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "25748886514984",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "6812703243019348869120",
"nextProtocolFee": "101247196665"
}
},
{
"testId": 1493,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6839",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "1816771166208",
"nextProtocolFee": "26"
}
},
{
"testId": 1494,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223089,
"nextSqrtPrice": "1288256951171541679615583",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1495,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "223",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1496,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "25748886514984",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "6812703243019348869120",
"nextProtocolFee": "101247196665"
}
},
{
"testId": 1497,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6839",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "1816771166208",
"nextProtocolFee": "26"
}
},
{
"testId": 1498,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247468053899296255583",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1499,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1500,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "25748886514984",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "6812703243019348869120",
"nextProtocolFee": "101247196665"
}
},
{
"testId": 1501,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1502,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1503,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1504,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1505,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "25766172587066",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "6817276834163919421440",
"nextProtocolFee": "101315167229"
}
},
{
"testId": 1506,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6834",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "1812476198912",
"nextProtocolFee": "26"
}
},
{
"testId": 1507,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "25766172587066",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "6817276834163919421440",
"nextProtocolFee": "101315167229"
}
},
{
"testId": 1508,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6834",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "1812476198912",
"nextProtocolFee": "26"
}
},
{
"testId": 1509,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "4294967296",
"nextTickIndex": -223090,
"nextSqrtPrice": "264141688978651",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1510,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6834",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "1812476198912",
"nextProtocolFee": "26"
}
},
{
"testId": 1511,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "25766172587066",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "6817276834163919421440",
"nextProtocolFee": "101315167229"
}
},
{
"testId": 1512,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "223",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1513,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966352191132",
"nextFeeGrowthGlobal": "264582445133725696",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1514,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6834",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "1812476198912",
"nextProtocolFee": "26"
}
},
{
"testId": 1515,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "25766172587066",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "6817276834163919421440",
"nextProtocolFee": "101315167229"
}
},
{
"testId": 1516,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1517,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1518,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1519,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1520,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1521,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1522,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1523,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1524,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1525,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1526,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1527,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1528,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1529,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1530,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1531,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1532,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1533,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1534,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1535,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1536,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1537,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1538,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1539,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1540,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1541,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1542,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1543,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1544,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1545,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1546,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1547,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1548,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1549,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1550,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1551,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1552,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1553,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1554,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1555,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1556,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1557,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1558,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1559,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1560,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1561,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1562,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1563,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1564,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1565,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1566,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1567,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1568,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1569,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1570,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1571,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1572,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1573,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1574,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1575,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1576,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1577,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1578,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1579,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1580,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1581,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1582,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1583,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1584,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1585,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1586,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1587,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1588,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1589,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1590,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1591,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1592,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1593,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1594,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1595,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1596,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1597,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1598,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1599,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1600,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 8,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1601,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1602,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239116851",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498336051"
}
},
{
"testId": 1603,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1604,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1605,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1606,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1607,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1608,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1609,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1610,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1611,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1612,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1613,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1614,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1615,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1616,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1617,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "246415",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1618,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1619,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1620,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1621,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1622,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1623,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1624,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1625,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1626,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1627,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1628,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1629,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1630,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1631,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1632,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1633,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "17237809048737284096",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709306652",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498322316"
}
},
{
"testId": 1634,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "17237809048737055186",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709796580",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498336051"
}
},
{
"testId": 1635,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1636,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1637,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1638,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1639,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "75303777217622",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1640,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "75303777217621",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1641,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1642,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1643,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "75303777217622",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1644,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "75303777217621",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "296101982397"
}
},
{
"testId": 1645,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1646,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1647,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1648,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1649,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1650,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3556532557",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039860547",
"nextFeeGrowthGlobal": "16149",
"nextProtocolFee": "72536101498336051"
}
},
{
"testId": 1651,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1652,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1653,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1654,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1655,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "15538",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "61"
}
},
{
"testId": 1656,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1657,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4529143481506988032",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039551220",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "3932388"
}
},
{
"testId": 1658,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1659,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "15538",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "61"
}
},
{
"testId": 1660,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "5186773567195283924",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "4540",
"nextProtocolFee": "20394912343568575"
}
},
{
"testId": 1661,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1662,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1663,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1664,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1665,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "246415",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1666,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1667,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1668,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1669,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1670,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1671,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1672,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1673,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1674,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1675,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1676,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1677,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1678,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1679,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1680,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1681,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1682,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786481313820400077868036",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1683,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1684,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1685,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1686,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984633703871887",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1687,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1688,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1689,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1690,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700173336887",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1691,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1692,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1693,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1694,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1695,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1696,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1697,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "17339939429286978519",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1698,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1699,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1700,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1701,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000000",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1702,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1703,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1704,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1705,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1706,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1707,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1708,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1709,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1710,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1711,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1712,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1713,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "8910906478452179879",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13198,
"nextSqrtPrice": "9535837595257371737",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1714,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "8910906478452179879",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13197,
"nextSqrtPrice": "35684580774548547765",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1715,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1716,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1717,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "934464952662",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743139244598954",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1718,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464952662",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745008174551616",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1719,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131095559",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1720,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1070131095559",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1721,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "934464999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072775086617",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1722,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074644016616",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1723,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131039",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1724,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1070131039",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1725,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1726,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1727,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1728,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1729,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1730,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3556490525",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284260692393985878611732",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1731,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4072936548",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "250904704",
"nextProtocolFee": "16015193"
}
},
{
"testId": 1732,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1733,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1734,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558219504615583",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1735,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "222",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1736,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1737,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4529150841451380342",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238925406443588235241",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1738,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285974080583",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1739,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1740,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "5186732809220408117",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "319517782573123880",
"nextProtocolFee": "20394752079135566"
}
},
{
"testId": 1741,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1742,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1743,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1744,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1745,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3556490525",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963623769111",
"nextFeeGrowthGlobal": "1136372931449860984",
"nextProtocolFee": "72534442432969850"
}
},
{
"testId": 1746,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1747,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1748,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1749,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259444",
"nextFeeGrowthGlobal": "65249178213",
"nextProtocolFee": "4164841162"
}
},
{
"testId": 1750,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1751,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1752,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "222",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1753,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1754,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4529150841451398030",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968114724636",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1755,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "5186732809220428375",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "319517782573125128",
"nextProtocolFee": "20394752079135646"
}
},
{
"testId": 1756,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1757,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1758,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1759,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1760,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1761,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1762,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1763,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1764,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1765,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1766,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790477572597955878871887",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1767,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1768,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1769,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1770,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468089480313495511887",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1771,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1772,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1773,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1774,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1775,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1776,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1777,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1778,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1779,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1780,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1781,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352179",
"nextFeeGrowthGlobal": "274151184252585115648",
"nextProtocolFee": "4074306171"
}
},
{
"testId": 1782,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1783,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1784,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1785,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4037269258240000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1786,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1787,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1788,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1789,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1790,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1791,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1792,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1793,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "9580082137",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "2534721520064790528",
"nextProtocolFee": "37669840"
}
},
{
"testId": 1794,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "20299409596",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "5370867341066240000",
"nextProtocolFee": "79819308"
}
},
{
"testId": 1795,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "9580082137",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "2534721520064790528",
"nextProtocolFee": "37669840"
}
},
{
"testId": 1796,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "20299409596",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "5370867341066240000",
"nextProtocolFee": "79819308"
}
},
{
"testId": 1797,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "9580082137",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "2534721520064790528",
"nextProtocolFee": "37669840"
}
},
{
"testId": 1798,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "20299409596",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "5370867341066240000",
"nextProtocolFee": "79819308"
}
},
{
"testId": 1799,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "9580082137",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "2534721520064790528",
"nextProtocolFee": "37669840"
}
},
{
"testId": 1800,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "20299409596",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "5370867341066240000",
"nextProtocolFee": "79819308"
}
},
{
"testId": 1801,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "767482278",
"nextLiquidity": "4294967296",
"nextTickIndex": -3938,
"nextSqrtPrice": "15150432786913804916",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1802,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "767482278",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 3937,
"nextSqrtPrice": "22460240687966191616",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1803,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1394908476",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "369068292091936768",
"nextProtocolFee": "5484919"
}
},
{
"testId": 1804,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1394908476",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "369068292091936768",
"nextProtocolFee": "5484919"
}
},
{
"testId": 1805,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1806,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1807,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1808,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1809,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "253501",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "67078799228928",
"nextProtocolFee": "996"
}
},
{
"testId": 1810,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "784576534567943",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "207585174540807152074752",
"nextProtocolFee": "3085033391574"
}
},
{
"testId": 1811,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "253501",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "67078799228928",
"nextProtocolFee": "996"
}
},
{
"testId": 1812,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "784576534567943",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "207585174540807152074752",
"nextProtocolFee": "3085033391574"
}
},
{
"testId": 1813,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "253501",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "67078799228928",
"nextProtocolFee": "996"
}
},
{
"testId": 1814,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223089,
"nextSqrtPrice": "1288256951171541679615583",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1815,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "223",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1816,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "784576534567943",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "207585174540807152074752",
"nextProtocolFee": "3085033391574"
}
},
{
"testId": 1817,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "253501",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "67078799228928",
"nextProtocolFee": "996"
}
},
{
"testId": 1818,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247468053899296255583",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1819,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1820,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "784576534567943",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "207585174540807152074752",
"nextProtocolFee": "3085033391574"
}
},
{
"testId": 1821,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1822,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1823,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1824,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1825,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "784631761073940",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "207599786504561620942848",
"nextProtocolFee": "3085250547718"
}
},
{
"testId": 1826,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "253485",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "67074504261632",
"nextProtocolFee": "996"
}
},
{
"testId": 1827,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "784631761073940",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "207599786504561620942848",
"nextProtocolFee": "3085250547718"
}
},
{
"testId": 1828,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "253485",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "67074504261632",
"nextProtocolFee": "996"
}
},
{
"testId": 1829,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "4294967296",
"nextTickIndex": -223090,
"nextSqrtPrice": "264141688978651",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1830,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "253485",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "67074504261632",
"nextProtocolFee": "996"
}
},
{
"testId": 1831,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "784631761073940",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "207599786504561620942848",
"nextProtocolFee": "3085250547718"
}
},
{
"testId": 1832,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "223",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1833,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966352191132",
"nextFeeGrowthGlobal": "264582445133725696",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1834,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "253485",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "67074504261632",
"nextProtocolFee": "996"
}
},
{
"testId": 1835,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "784631761073940",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "207599786504561620942848",
"nextProtocolFee": "3085250547718"
}
},
{
"testId": 1836,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1837,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1838,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1839,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1840,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1841,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1842,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1843,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1844,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1845,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1846,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1847,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1848,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1849,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1850,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1851,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1852,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1853,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1854,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1855,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1856,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1857,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1858,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1859,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1860,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1861,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1862,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1863,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1864,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1865,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1866,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1867,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1868,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1869,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1870,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1871,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1872,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1873,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1874,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1875,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1876,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1877,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1878,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1879,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1880,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1881,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1882,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1883,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1884,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1885,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1886,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1887,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1888,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1889,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1890,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1891,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1892,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1893,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1894,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1895,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1896,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1897,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1898,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1899,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1900,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1901,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1902,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1903,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1904,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1905,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1906,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1907,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1908,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1909,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1910,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1911,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1912,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1913,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1914,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1915,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1916,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1917,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1918,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1919,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1920,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 128,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1921,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1922,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239133847",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467860705"
}
},
{
"testId": 1923,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1924,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1925,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1926,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1927,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1928,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1929,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1930,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1931,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1932,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1933,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1934,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1935,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1936,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1937,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "254279",
"nextProtocolFee": "553402322211286548"
}
},
{
"testId": 1938,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1939,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1940,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1941,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1942,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1943,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1944,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1945,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1946,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1947,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1948,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1949,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1950,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1951,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1952,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1953,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18433796224780861440",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709289656",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467852851"
}
},
{
"testId": 1954,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18433796224780599663",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709813576",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467860705"
}
},
{
"testId": 1955,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1956,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1957,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1958,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1959,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70418036803428",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 1960,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "70418036803427",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 1961,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1962,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1963,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70418036803428",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 1964,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "70418036803427",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 1965,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1966,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1967,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1968,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1969,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1970,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3803290559",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039877543",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467860705"
}
},
{
"testId": 1971,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1972,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1973,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1974,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1975,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14530",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1976,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1977,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4843339924260257792",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039546755",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "21428"
}
},
{
"testId": 1978,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1979,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14530",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1980,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4850253538946403475",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "46",
"nextProtocolFee": "101855324317874"
}
},
{
"testId": 1981,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1982,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1983,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1984,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1985,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "254279",
"nextProtocolFee": "553402322211286548"
}
},
{
"testId": 1986,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1987,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1988,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1989,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1990,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1991,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1992,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1993,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1994,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1995,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1996,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1997,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1998,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1999,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2000,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2001,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2002,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482509815052096826815",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 2003,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2004,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2005,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2006,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984698538871887",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2007,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2008,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2009,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2010,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238171887",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2011,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2012,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2013,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2014,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2015,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2016,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2017,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "242353613651183408",
"nextProtocolFee": "7495472587150002"
}
},
{
"testId": 2018,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2019,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2020,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2021,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000000",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2022,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2023,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2024,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2025,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2026,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2027,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2028,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2029,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2030,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2031,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2032,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2033,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "163153725400287996",
"amountB": "161611135553062958",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "110781379546796",
"nextProtocolFee": "3426228233406"
}
},
{
"testId": 2034,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "240974754707347856",
"amountB": "244335373572040088",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "165903718655417",
"nextProtocolFee": "5131042845012"
}
},
{
"testId": 2035,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "163153725400287996",
"amountB": "161611135553062958",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "110781379546796",
"nextProtocolFee": "3426228233406"
}
},
{
"testId": 2036,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "240974754707347856",
"amountB": "244335373572040088",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "165903718655417",
"nextProtocolFee": "5131042845012"
}
},
{
"testId": 2037,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999299945865",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743074409605751",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2038,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299945865",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073009551616",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2039,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700544593",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 2040,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000700544593",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 2041,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999299999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072710251617",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2042,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074708851616",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2043,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700492",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 2044,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000700492",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 2045,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2046,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2047,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2048,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2049,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2050,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3803243216",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261888388637897570511",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 2051,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3808682729",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "2586096",
"nextProtocolFee": "79982"
}
},
{
"testId": 2052,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2053,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2054,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558284339615583",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2055,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2056,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2057,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4843390954611785642",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238611166330427829941",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2058,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286038915583",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2059,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2060,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4850215425365904805",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "3293296273823450",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 2061,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2062,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2063,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2064,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2065,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3803243216",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963377016420",
"nextFeeGrowthGlobal": "12525340569584541",
"nextProtocolFee": "387381667100552"
}
},
{
"testId": 2066,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2067,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2068,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2069,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1512027873",
"nextProtocolFee": "46763748"
}
},
{
"testId": 2070,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2071,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2072,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2073,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2074,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4843390954611804558",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968179559636",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2075,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4850215425365923748",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "3293296273823463",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 2076,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2077,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2078,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2079,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2080,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2081,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2082,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2083,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2084,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2085,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2086,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790756036802592038871887",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2087,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2088,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2089,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2090,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468367944518131671887",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2091,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2092,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2093,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2094,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2095,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2096,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2097,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2098,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2099,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2100,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2101,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352164",
"nextFeeGrowthGlobal": "18135840268849512448",
"nextProtocolFee": "130595238"
}
},
{
"testId": 2102,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2103,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2104,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2105,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4166118277120000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2106,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2107,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2108,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2109,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2110,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2111,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2112,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2113,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37987188",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "110788681400320",
"nextProtocolFee": "797"
}
},
{
"testId": 2114,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56888764",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "165910291677184",
"nextProtocolFee": "1194"
}
},
{
"testId": 2115,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37987188",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "110788681400320",
"nextProtocolFee": "797"
}
},
{
"testId": 2116,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56888764",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "165910291677184",
"nextProtocolFee": "1194"
}
},
{
"testId": 2117,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37987188",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "110788681400320",
"nextProtocolFee": "797"
}
},
{
"testId": 2118,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56888764",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "165910291677184",
"nextProtocolFee": "1194"
}
},
{
"testId": 2119,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37987188",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "110788681400320",
"nextProtocolFee": "797"
}
},
{
"testId": 2120,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56888764",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "165910291677184",
"nextProtocolFee": "1194"
}
},
{
"testId": 2121,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37987188",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "110788681400320",
"nextProtocolFee": "797"
}
},
{
"testId": 2122,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56888764",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "165910291677184",
"nextProtocolFee": "1194"
}
},
{
"testId": 2123,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37987188",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "110788681400320",
"nextProtocolFee": "797"
}
},
{
"testId": 2124,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56888764",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "165910291677184",
"nextProtocolFee": "1194"
}
},
{
"testId": 2125,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2126,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2127,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2128,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2129,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "656",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2130,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3430460760783",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "10004193698243411968",
"nextProtocolFee": "72039675"
}
},
{
"testId": 2131,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "656",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2132,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3430460760783",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "10004193698243411968",
"nextProtocolFee": "72039675"
}
},
{
"testId": 2133,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "656",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2134,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288535415376177839615583",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2135,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "209",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2136,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3430460760783",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "10004193698243411968",
"nextProtocolFee": "72039675"
}
},
{
"testId": 2137,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "656",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2138,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247746518103932415583",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2139,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2140,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3430460760783",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "10004193698243411968",
"nextProtocolFee": "72039675"
}
},
{
"testId": 2141,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2142,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2143,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2144,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2145,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3445592939757",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "10048323409173020672",
"nextProtocolFee": "72357451"
}
},
{
"testId": 2146,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "653",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2147,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3445592939757",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "10048323409173020672",
"nextProtocolFee": "72357451"
}
},
{
"testId": 2148,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "653",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2149,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264084605560954",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2150,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "653",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2151,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3445592939757",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "10048323409173020672",
"nextProtocolFee": "72357451"
}
},
{
"testId": 2152,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "209",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2153,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294738319",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2154,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "653",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2155,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3445592939757",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "10048323409173020672",
"nextProtocolFee": "72357451"
}
},
{
"testId": 2156,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2157,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2158,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2159,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2160,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2161,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2162,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2163,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2164,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2165,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2166,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2167,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2168,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2169,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2170,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2171,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2172,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2173,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2174,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2175,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2176,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2177,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2178,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2179,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2180,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2181,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2182,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2183,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2184,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2185,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2186,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2187,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2188,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2189,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2190,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2191,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2192,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2193,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2194,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2195,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2196,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2197,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2198,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2199,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2200,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2201,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2202,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2203,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2204,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2205,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2206,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2207,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2208,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2209,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2210,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2211,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2212,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2213,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2214,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2215,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2216,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2217,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2218,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2219,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2220,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2221,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2222,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2223,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2224,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2225,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2226,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2227,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2228,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2229,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2230,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2231,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2232,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2233,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2234,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2235,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2236,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2237,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2238,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2239,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2240,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 1,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2241,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2242,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239133847",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467860705"
}
},
{
"testId": 2243,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2244,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2245,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2246,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2247,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2248,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2249,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2250,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2251,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2252,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2253,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2254,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2255,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2256,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2257,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "254279",
"nextProtocolFee": "553402322211286548"
}
},
{
"testId": 2258,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2259,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2260,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2261,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2262,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2263,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2264,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2265,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2266,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2267,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2268,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2269,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2270,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2271,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2272,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2273,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18433796224780861440",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709289656",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467852851"
}
},
{
"testId": 2274,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18433796224780599663",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709813576",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467860705"
}
},
{
"testId": 2275,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2276,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2277,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2278,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2279,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70418036803428",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 2280,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "70418036803427",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 2281,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2282,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2283,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70418036803428",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 2284,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "70418036803427",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 2285,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2286,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2287,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2288,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2289,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2290,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3803290559",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039877543",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467860705"
}
},
{
"testId": 2291,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2292,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2293,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2294,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2295,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14530",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2296,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2297,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4843339924260257792",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039546755",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "21428"
}
},
{
"testId": 2298,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2299,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14530",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2300,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4850253538946403475",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "46",
"nextProtocolFee": "101855324317874"
}
},
{
"testId": 2301,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2302,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2303,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2304,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2305,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "254279",
"nextProtocolFee": "553402322211286548"
}
},
{
"testId": 2306,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2307,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2308,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2309,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2310,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2311,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2312,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2313,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2314,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2315,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2316,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2317,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2318,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2319,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2320,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2321,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2322,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482509815052096826815",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 2323,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2324,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2325,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2326,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984698538871887",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2327,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2328,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2329,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2330,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238171887",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2331,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2332,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2333,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2334,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2335,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2336,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2337,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "242353613651183408",
"nextProtocolFee": "7495472587150002"
}
},
{
"testId": 2338,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2339,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2340,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2341,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000000",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2342,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2343,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2344,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2345,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2346,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2347,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2348,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2349,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2350,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2351,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2352,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2353,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1346327925148191248",
"amountB": "1253931863719602977",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "914156661175622",
"nextProtocolFee": "28272886428112"
}
},
{
"testId": 2354,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1847732346382633346",
"amountB": "2054852556038346792",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "1395244885550038",
"nextProtocolFee": "43151903676805"
}
},
{
"testId": 2355,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1346327925148191248",
"amountB": "1253931863719602977",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "914156661175622",
"nextProtocolFee": "28272886428112"
}
},
{
"testId": 2356,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1847732346382633346",
"amountB": "2054852556038346792",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "1395244885550038",
"nextProtocolFee": "43151903676805"
}
},
{
"testId": 2357,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999299945865",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743074409605751",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2358,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299945865",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073009551616",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2359,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700544593",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 2360,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000700544593",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 2361,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999299999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072710251617",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2362,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074708851616",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2363,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700492",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 2364,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000700492",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 2365,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2366,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2367,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2368,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2369,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2370,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3803243216",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261888388637897570511",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 2371,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3808682729",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "2586096",
"nextProtocolFee": "79982"
}
},
{
"testId": 2372,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2373,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2374,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558284339615583",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2375,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2376,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2377,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4843390954611785642",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238611166330427829941",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2378,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286038915583",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2379,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2380,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4850215425365904805",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "3293296273823450",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 2381,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2382,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2383,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2384,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2385,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3803243216",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963377016420",
"nextFeeGrowthGlobal": "12525340569584541",
"nextProtocolFee": "387381667100552"
}
},
{
"testId": 2386,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2387,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2388,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2389,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1512027873",
"nextProtocolFee": "46763748"
}
},
{
"testId": 2390,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2391,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2392,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2393,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2394,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4843390954611804558",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968179559636",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2395,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4850215425365923748",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "3293296273823463",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 2396,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2397,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2398,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2399,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2400,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2401,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2402,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2403,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2404,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2405,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2406,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790756036802592038871887",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2407,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2408,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2409,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2410,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468367944518131671887",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2411,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2412,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2413,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2414,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2415,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2416,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2417,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2418,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2419,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2420,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2421,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352164",
"nextFeeGrowthGlobal": "18135840268849512448",
"nextProtocolFee": "130595238"
}
},
{
"testId": 2422,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2423,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2424,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2425,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4166118277120000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2426,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2427,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2428,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2429,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2430,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2431,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2432,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2433,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313466398",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "914162314117120",
"nextProtocolFee": "6582"
}
},
{
"testId": 2434,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478432644",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "1395245895909376",
"nextProtocolFee": "10047"
}
},
{
"testId": 2435,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313466398",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "914162314117120",
"nextProtocolFee": "6582"
}
},
{
"testId": 2436,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478432644",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "1395245895909376",
"nextProtocolFee": "10047"
}
},
{
"testId": 2437,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313466398",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "914162314117120",
"nextProtocolFee": "6582"
}
},
{
"testId": 2438,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478432644",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "1395245895909376",
"nextProtocolFee": "10047"
}
},
{
"testId": 2439,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313466398",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "914162314117120",
"nextProtocolFee": "6582"
}
},
{
"testId": 2440,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478432644",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "1395245895909376",
"nextProtocolFee": "10047"
}
},
{
"testId": 2441,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313466398",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "914162314117120",
"nextProtocolFee": "6582"
}
},
{
"testId": 2442,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478432644",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "1395245895909376",
"nextProtocolFee": "10047"
}
},
{
"testId": 2443,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313466398",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "914162314117120",
"nextProtocolFee": "6582"
}
},
{
"testId": 2444,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478432644",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "1395245895909376",
"nextProtocolFee": "10047"
}
},
{
"testId": 2445,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2446,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2447,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2448,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2449,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6395",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "21474836480",
"nextProtocolFee": "0"
}
},
{
"testId": 2450,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24078288038852",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "70219097123250503680",
"nextProtocolFee": "505644048"
}
},
{
"testId": 2451,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6395",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "21474836480",
"nextProtocolFee": "0"
}
},
{
"testId": 2452,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24078288038852",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "70219097123250503680",
"nextProtocolFee": "505644048"
}
},
{
"testId": 2453,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6395",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "21474836480",
"nextProtocolFee": "0"
}
},
{
"testId": 2454,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288535415376177839615583",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2455,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "209",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2456,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24078288038852",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "70219097123250503680",
"nextProtocolFee": "505644048"
}
},
{
"testId": 2457,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6395",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "21474836480",
"nextProtocolFee": "0"
}
},
{
"testId": 2458,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247746518103932415583",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2459,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2460,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24078288038852",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "70219097123250503680",
"nextProtocolFee": "505644048"
}
},
{
"testId": 2461,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2462,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2463,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2464,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2465,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24094452583381",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "70266237503175393280",
"nextProtocolFee": "505983504"
}
},
{
"testId": 2466,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6391",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "21474836480",
"nextProtocolFee": "0"
}
},
{
"testId": 2467,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24094452583381",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "70266237503175393280",
"nextProtocolFee": "505983504"
}
},
{
"testId": 2468,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6391",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "21474836480",
"nextProtocolFee": "0"
}
},
{
"testId": 2469,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264084605560954",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2470,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6391",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "21474836480",
"nextProtocolFee": "0"
}
},
{
"testId": 2471,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24094452583381",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "70266237503175393280",
"nextProtocolFee": "505983504"
}
},
{
"testId": 2472,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "209",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2473,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294738319",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2474,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6391",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "21474836480",
"nextProtocolFee": "0"
}
},
{
"testId": 2475,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24094452583381",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "70266237503175393280",
"nextProtocolFee": "505983504"
}
},
{
"testId": 2476,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2477,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2478,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2479,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2480,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2481,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2482,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2483,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2484,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2485,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2486,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2487,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2488,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2489,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2490,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2491,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2492,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2493,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2494,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2495,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2496,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2497,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2498,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2499,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2500,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2501,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2502,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2503,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2504,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2505,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2506,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2507,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2508,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2509,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2510,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2511,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2512,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2513,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2514,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2515,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2516,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2517,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2518,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2519,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2520,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2521,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2522,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2523,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2524,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2525,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2526,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2527,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2528,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2529,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2530,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2531,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2532,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2533,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2534,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2535,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2536,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2537,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2538,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2539,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2540,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2541,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2542,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2543,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2544,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2545,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2546,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2547,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2548,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2549,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2550,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2551,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2552,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2553,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2554,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2555,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2556,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2557,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2558,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2559,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2560,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 8,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2561,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2562,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239133847",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467860705"
}
},
{
"testId": 2563,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2564,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2565,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2566,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2567,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2568,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2569,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2570,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2571,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2572,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2573,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2574,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2575,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2576,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2577,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "254279",
"nextProtocolFee": "553402322211286548"
}
},
{
"testId": 2578,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2579,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2580,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2581,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2582,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2583,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2584,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2585,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2586,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2587,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2588,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2589,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2590,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2591,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2592,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2593,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18433796224780861440",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709289656",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467852851"
}
},
{
"testId": 2594,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18433796224780599663",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709813576",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467860705"
}
},
{
"testId": 2595,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2596,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2597,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2598,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2599,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70418036803428",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 2600,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "70418036803427",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 2601,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2602,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2603,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70418036803428",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 2604,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "70418036803427",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "1478778772"
}
},
{
"testId": 2605,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2606,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2607,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2608,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2609,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2610,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3803290559",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039877543",
"nextFeeGrowthGlobal": "178",
"nextProtocolFee": "388435467860705"
}
},
{
"testId": 2611,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2612,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2613,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2614,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2615,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14530",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2616,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2617,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4843339924260257792",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039546755",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "21428"
}
},
{
"testId": 2618,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2619,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14530",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2620,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4850253538946403475",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "46",
"nextProtocolFee": "101855324317874"
}
},
{
"testId": 2621,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2622,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2623,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2624,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2625,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "254279",
"nextProtocolFee": "553402322211286548"
}
},
{
"testId": 2626,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2627,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2628,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2629,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2630,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2631,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2632,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2633,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2634,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2635,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2636,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2637,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2638,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2639,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2640,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2641,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2642,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482509815052096826815",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 2643,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2644,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2645,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2646,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984698538871887",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2647,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2648,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2649,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2650,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238171887",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2651,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2652,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2653,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2654,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2655,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2656,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2657,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "242353613651183408",
"nextProtocolFee": "7495472587150002"
}
},
{
"testId": 2658,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2659,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2660,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2661,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000000",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 2662,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2663,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2664,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2665,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2666,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2667,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2668,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2669,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2670,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2671,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2672,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2673,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9220142726383211588",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13857,
"nextSqrtPrice": "9226601347326340028",
"nextFeeGrowthGlobal": "12525339226048789",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 2674,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9220142726383211588",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13856,
"nextSqrtPrice": "36880575426567506544",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 2675,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2676,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2677,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999299945865",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743074409605751",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2678,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299945865",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073009551616",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2679,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700544593",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 2680,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000700544593",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 2681,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999299999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072710251617",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2682,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074708851616",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2683,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700492",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 2684,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000700492",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 2685,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2686,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2687,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2688,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2689,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2690,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3803243216",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261888388637897570511",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 2691,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3808682729",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "2586096",
"nextProtocolFee": "79982"
}
},
{
"testId": 2692,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2693,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2694,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558284339615583",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2695,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2696,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2697,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4843390954611785642",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238611166330427829941",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2698,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286038915583",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2699,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2700,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4850215425365904805",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "3293296273823450",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 2701,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2702,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2703,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2704,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2705,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3803243216",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963377016420",
"nextFeeGrowthGlobal": "12525340569584541",
"nextProtocolFee": "387381667100552"
}
},
{
"testId": 2706,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2707,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2708,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2709,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1512027873",
"nextProtocolFee": "46763748"
}
},
{
"testId": 2710,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2711,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2712,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2713,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2714,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4843390954611804558",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968179559636",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2715,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4850215425365923748",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "3293296273823463",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 2716,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 2717,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2718,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2719,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2720,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2721,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2722,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2723,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2724,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2725,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2726,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790756036802592038871887",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2727,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2728,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2729,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2730,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468367944518131671887",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2731,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2732,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 2733,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2734,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2735,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2736,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2737,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2738,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2739,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2740,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2741,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352164",
"nextFeeGrowthGlobal": "18135840268849512448",
"nextProtocolFee": "130595238"
}
},
{
"testId": 2742,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2743,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2744,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2745,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4166118277120000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 2746,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "4",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2747,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 2748,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2749,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2750,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2751,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2752,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2753,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "8958522420",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "26125590276866048",
"nextProtocolFee": "188128"
}
},
{
"testId": 2754,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "18982375451",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "55357979507032064",
"nextProtocolFee": "398629"
}
},
{
"testId": 2755,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "8958522420",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "26125590276866048",
"nextProtocolFee": "188128"
}
},
{
"testId": 2756,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "18982375451",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "55357979507032064",
"nextProtocolFee": "398629"
}
},
{
"testId": 2757,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "8958522420",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "26125590276866048",
"nextProtocolFee": "188128"
}
},
{
"testId": 2758,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "18982375451",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "55357979507032064",
"nextProtocolFee": "398629"
}
},
{
"testId": 2759,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "8958522420",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "26125590276866048",
"nextProtocolFee": "188128"
}
},
{
"testId": 2760,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "18982375451",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "55357979507032064",
"nextProtocolFee": "398629"
}
},
{
"testId": 2761,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "810680794",
"nextLiquidity": "4294967296",
"nextTickIndex": -4184,
"nextSqrtPrice": "14964896572963726990",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2762,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "810680794",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4183,
"nextSqrtPrice": "22738704892602351616",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2763,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1304406234",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "3804022469296128",
"nextProtocolFee": "27392"
}
},
{
"testId": 2764,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1304406234",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "3804022469296128",
"nextProtocolFee": "27392"
}
},
{
"testId": 2765,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2766,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2767,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2768,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2769,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "237053",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "695784701952",
"nextProtocolFee": "4"
}
},
{
"testId": 2770,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "733672882392707",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "2139597603336009809920",
"nextProtocolFee": "15407130530"
}
},
{
"testId": 2771,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "237053",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "695784701952",
"nextProtocolFee": "4"
}
},
{
"testId": 2772,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "733672882392707",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "2139597603336009809920",
"nextProtocolFee": "15407130530"
}
},
{
"testId": 2773,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "237053",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "695784701952",
"nextProtocolFee": "4"
}
},
{
"testId": 2774,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288535415376177839615583",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2775,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "209",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2776,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "733672882392707",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "2139597603336009809920",
"nextProtocolFee": "15407130530"
}
},
{
"testId": 2777,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "237053",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "695784701952",
"nextProtocolFee": "4"
}
},
{
"testId": 2778,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247746518103932415583",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2779,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2780,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "733672882392707",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "2139597603336009809920",
"nextProtocolFee": "15407130530"
}
},
{
"testId": 2781,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2782,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2783,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2784,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2785,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "733724525780006",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "2139748210062210891776",
"nextProtocolFee": "15408215041"
}
},
{
"testId": 2786,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "237038",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "695784701952",
"nextProtocolFee": "4"
}
},
{
"testId": 2787,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "733724525780006",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "2139748210062210891776",
"nextProtocolFee": "15408215041"
}
},
{
"testId": 2788,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "237038",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "695784701952",
"nextProtocolFee": "4"
}
},
{
"testId": 2789,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264084605560954",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 2790,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "237038",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "695784701952",
"nextProtocolFee": "4"
}
},
{
"testId": 2791,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "733724525780006",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "2139748210062210891776",
"nextProtocolFee": "15408215041"
}
},
{
"testId": 2792,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "209",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2793,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294738319",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 2794,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "237038",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "695784701952",
"nextProtocolFee": "4"
}
},
{
"testId": 2795,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "733724525780006",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "2139748210062210891776",
"nextProtocolFee": "15408215041"
}
},
{
"testId": 2796,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 2797,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2798,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2799,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2800,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2801,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2802,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2803,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2804,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2805,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2806,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2807,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2808,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2809,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2810,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2811,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2812,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2813,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2814,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2815,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2816,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2817,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2818,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2819,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2820,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2821,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2822,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2823,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2824,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2825,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2826,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2827,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2828,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2829,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2830,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2831,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2832,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2833,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2834,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2835,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2836,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2837,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2838,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2839,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2840,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2841,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2842,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2843,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2844,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2845,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2846,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2847,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2848,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2849,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2850,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2851,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2852,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2853,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2854,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2855,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2856,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2857,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2858,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2859,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2860,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2861,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2862,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2863,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2864,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2865,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2866,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2867,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2868,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2869,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2870,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2871,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2872,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2873,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2874,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2875,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2876,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2877,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2878,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2879,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2880,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 128,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2881,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2882,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239134030",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2883,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2884,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2885,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2886,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2887,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2888,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2889,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2890,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2891,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2892,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2893,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2894,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2895,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2896,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2897,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "262143",
"nextProtocolFee": "0"
}
},
{
"testId": 2898,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2899,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2900,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2901,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2902,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2903,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2904,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2905,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2906,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2907,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2908,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2909,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2910,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2911,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2912,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2913,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18446673704965373952",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709289473",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2914,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18446673704965111809",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709813759",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2915,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2916,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2917,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2918,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2919,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70368744177665",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2920,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "70368744177664",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2921,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2922,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2923,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70368744177665",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2924,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "70368744177664",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2925,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2926,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2927,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2928,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2929,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2930,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3805947462",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039877726",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2931,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2932,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2933,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2934,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2935,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14519",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2936,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2937,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846787992724963328",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039546706",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2938,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2939,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14519",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2940,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846858361469140992",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2941,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2942,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2943,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2944,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2945,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "262143",
"nextProtocolFee": "0"
}
},
{
"testId": 2946,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2947,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2948,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2949,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2950,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2951,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2952,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2953,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2954,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2955,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2956,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2957,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2958,
"description": "In a ts_1 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2959,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2960,
"description": "In a ts_1 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2961,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2962,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482522727772948423502",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2963,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2964,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2965,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2966,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2967,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2968,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2969,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2970,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2971,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2972,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2973,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2974,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2975,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2976,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2977,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "249849086238333410",
"nextProtocolFee": "0"
}
},
{
"testId": 2978,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2979,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2980,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2981,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 2982,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2983,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2984,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2985,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 2986,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2987,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2988,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2989,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2990,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2991,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2992,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2993,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "163039517792507794",
"amountB": "161611135553062958",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2994,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "240974754707347856",
"amountB": "244164338810539659",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2995,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "163039517792507794",
"amountB": "161611135553062958",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2996,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "240974754707347856",
"amountB": "244164338810539659",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2997,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999999945789",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2998,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999945789",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 2999,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000054211",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3000,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000000054211",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3001,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3002,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3003,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000001",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3004,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000000001",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3005,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3006,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3007,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3008,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3009,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3010,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3805907313",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261901301358749167198",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3011,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3806016651",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3012,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3013,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3014,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3015,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "207",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3016,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3017,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846783690399666109",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238607773594639949474",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3018,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3019,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3020,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846820274568148671",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3021,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3022,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3023,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3024,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3025,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3805907313",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963374352323",
"nextFeeGrowthGlobal": "799491063",
"nextProtocolFee": "0"
}
},
{
"testId": 3026,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3027,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3028,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3029,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1558791621",
"nextProtocolFee": "0"
}
},
{
"testId": 3030,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3031,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3032,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "207",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3033,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 3034,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4846783690399685038",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3035,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4846820274568167601",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3036,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3037,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3038,
"description": "In a ts_1 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3039,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3040,
"description": "In a ts_1 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3041,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3042,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3043,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3044,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3045,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3046,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790759043279699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3047,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3048,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3049,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "222152012331693918",
"nextLiquidity": "4294967296",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3050,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468370950995238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3051,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3052,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3053,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3054,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3055,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3056,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3057,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3058,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3059,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3060,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3061,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352163",
"nextFeeGrowthGlobal": "499845579489148928",
"nextProtocolFee": "0"
}
},
{
"testId": 3062,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3063,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3064,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3065,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4294967296000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 3066,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "221247072229197460",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3067,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3068,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3069,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3070,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3071,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3072,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3073,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37960596",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3074,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56848941",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3075,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37960596",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3076,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56848941",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3077,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37960596",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3078,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56848941",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3079,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37960596",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3080,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56848941",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3081,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37960596",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3082,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56848941",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3083,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "37960596",
"amountB": "37628024",
"nextLiquidity": "4294967296",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3084,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "56106307",
"amountB": "56848941",
"nextLiquidity": "4294967296",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3085,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3086,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3087,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3088,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3089,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "655",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3090,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3428059438250",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3091,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "655",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3092,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3428059438250",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3093,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "655",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3094,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288538421853285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3095,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3096,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3428059438250",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3097,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "655",
"amountB": "3137830430949",
"nextLiquidity": "4294967296",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3098,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247749524581039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3099,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3100,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "699",
"amountB": "3428059438250",
"nextLiquidity": "4294967296",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3101,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3102,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3103,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3104,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3105,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3443181024699",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3106,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "652",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3107,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3443181024699",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3108,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "652",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3109,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264083989386607",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3110,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "652",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3111,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3443181024699",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3112,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3113,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294118022",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3114,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3123037130788",
"amountB": "652",
"nextLiquidity": "4294967296",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3115,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3443181024699",
"amountB": "702",
"nextLiquidity": "4294967296",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3116,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3117,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3118,
"description": "In a ts_1 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3119,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3120,
"description": "In a ts_1 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3121,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3122,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3123,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3124,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3125,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3126,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3127,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3128,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3129,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3130,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3131,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443255,
"nextSqrtPrice": "77735650836370769616350596754",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3132,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3133,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3134,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3135,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3136,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3137,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3138,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3139,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3140,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3141,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3142,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3143,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3144,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3145,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3146,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3147,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3148,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443257,
"nextSqrtPrice": "4377211104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3149,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3150,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3151,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3152,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3153,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3154,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3155,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3156,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3157,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3158,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3159,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3160,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3161,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3162,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3163,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -177,
"nextSqrtPrice": "18285132938156488658",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3164,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 263,
"nextSqrtPrice": "18690908412520091275",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3165,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3166,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3167,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3168,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3169,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3170,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3171,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3172,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3173,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3174,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3175,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3176,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3177,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3178,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3179,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 222815,
"nextSqrtPrice": "1270766575475963239534908",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3180,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 223255,
"nextSqrtPrice": "1298966857733312654752301",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3181,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3182,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3183,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3184,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3185,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3186,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3187,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3188,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3189,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3190,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3191,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3192,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3193,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3194,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3195,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -223257,
"nextSqrtPrice": "261950758830217",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3196,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -222817,
"nextSqrtPrice": "267763852658069",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3197,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3198,
"description": "In a ts_1 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3199,
"description": "In a ts_1 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3200,
"description": "In a ts_1 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 1,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3201,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3202,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239134030",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3203,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3204,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3205,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3206,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3207,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3208,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3209,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3210,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3211,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3212,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3213,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3214,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3215,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3216,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3217,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "262143",
"nextProtocolFee": "0"
}
},
{
"testId": 3218,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3219,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3220,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3221,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3222,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3223,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3224,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3225,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3226,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3227,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3228,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3229,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3230,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3231,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3232,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3233,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18446673704965373952",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709289473",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3234,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18446673704965111809",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709813759",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3235,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3236,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3237,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3238,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3239,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70368744177665",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3240,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "70368744177664",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3241,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3242,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3243,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70368744177665",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3244,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "70368744177664",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3245,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3246,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3247,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3248,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3249,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3250,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3805947462",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039877726",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3251,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3252,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3253,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3254,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3255,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14519",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3256,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3257,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846787992724963328",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039546706",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3258,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3259,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14519",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3260,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846858361469140992",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3261,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3262,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3263,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3264,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3265,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "262143",
"nextProtocolFee": "0"
}
},
{
"testId": 3266,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3267,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3268,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3269,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3270,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3271,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3272,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3273,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3274,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3275,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3276,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3277,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3278,
"description": "In a ts_8 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3279,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3280,
"description": "In a ts_8 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3281,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3282,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482522727772948423502",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3283,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3284,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3285,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3286,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3287,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3288,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3289,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3290,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3291,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3292,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3293,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3294,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3295,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3296,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3297,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "249849086238333410",
"nextProtocolFee": "0"
}
},
{
"testId": 3298,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3299,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3300,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3301,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 3302,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3303,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3304,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3305,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 3306,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3307,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3308,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3309,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3310,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3311,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3312,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3313,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1345385495600587514",
"amountB": "1253931863719602977",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3314,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1847732346382633346",
"amountB": "2053414159249119949",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3315,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1345385495600587514",
"amountB": "1253931863719602977",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3316,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1847732346382633346",
"amountB": "2053414159249119949",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3317,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999999945789",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3318,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999945789",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3319,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000054211",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3320,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000000054211",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3321,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3322,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3323,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000001",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3324,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000000001",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3325,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3326,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3327,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3328,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3329,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3330,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3805907313",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261901301358749167198",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3331,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3806016651",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3332,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3333,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3334,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3335,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "207",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3336,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3337,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846783690399666109",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238607773594639949474",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3338,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3339,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3340,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846820274568148671",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3341,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3342,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3343,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3344,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3345,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3805907313",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963374352323",
"nextFeeGrowthGlobal": "799491063",
"nextProtocolFee": "0"
}
},
{
"testId": 3346,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3347,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3348,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3349,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1558791621",
"nextProtocolFee": "0"
}
},
{
"testId": 3350,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3351,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3352,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "207",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3353,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 3354,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4846783690399685038",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3355,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4846820274568167601",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3356,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3357,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3358,
"description": "In a ts_8 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3359,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3360,
"description": "In a ts_8 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3361,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3362,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3363,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3364,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3365,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3366,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790759043279699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3367,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3368,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3369,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1819507958431500011",
"nextLiquidity": "4294967296",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3370,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468370950995238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3371,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3372,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3373,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3374,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3375,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3376,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3377,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3378,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3379,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3380,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3381,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352163",
"nextFeeGrowthGlobal": "499845579489148928",
"nextProtocolFee": "0"
}
},
{
"testId": 3382,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3383,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3384,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3385,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4294967296000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 3386,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1818682886082718358",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3387,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3388,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3389,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3390,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3391,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3392,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3393,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313246971",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3394,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478097741",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3395,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313246971",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3396,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478097741",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3397,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313246971",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3398,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478097741",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3399,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313246971",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3400,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478097741",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3401,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313246971",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3402,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478097741",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3403,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "313246971",
"amountB": "291953762",
"nextLiquidity": "4294967296",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3404,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "430208711",
"amountB": "478097741",
"nextLiquidity": "4294967296",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3405,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3406,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3407,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3408,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3409,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6390",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3410,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24061433237224",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3411,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6390",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3412,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24061433237224",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3413,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6390",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3414,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288538421853285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3415,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3416,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24061433237224",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3417,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "6390",
"amountB": "28060754122726",
"nextLiquidity": "4294967296",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3418,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247749524581039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3419,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3420,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4594",
"amountB": "24061433237224",
"nextLiquidity": "4294967296",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3421,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3422,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3423,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3424,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3425,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24077586466572",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3426,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6386",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3427,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24077586466572",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3428,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6386",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3429,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264083989386607",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3430,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6386",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3431,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24077586466572",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3432,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3433,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294118022",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3434,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "28047206937597",
"amountB": "6386",
"nextLiquidity": "4294967296",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3435,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "24077586466572",
"amountB": "4597",
"nextLiquidity": "4294967296",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3436,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3437,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3438,
"description": "In a ts_8 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3439,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3440,
"description": "In a ts_8 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3441,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3442,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3443,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3444,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3445,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3446,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3447,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3448,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3449,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3450,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3451,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 441407,
"nextSqrtPrice": "70875059287800963694839334936",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3452,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3453,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3454,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3455,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3456,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3457,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3458,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3459,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3460,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3461,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3462,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3463,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3464,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3465,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3466,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3467,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3468,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -441409,
"nextSqrtPrice": "4800918087",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3469,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3470,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3471,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3472,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3473,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3474,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3475,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3476,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3477,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3478,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3479,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3480,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3481,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3482,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3483,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -1409,
"nextSqrtPrice": "17192812209989948639",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3484,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 2111,
"nextSqrtPrice": "20500158232958671565",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3485,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3486,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3487,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3488,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3489,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3490,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3491,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3492,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3493,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3494,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3495,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3496,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3497,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3498,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3499,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 221055,
"nextSqrtPrice": "1163723433299076165172299",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3500,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 224575,
"nextSqrtPrice": "1387586523406046954089323",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3501,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3502,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3503,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3504,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3505,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3506,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3507,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3508,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3509,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3510,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3511,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3512,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3513,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3514,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3515,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -224577,
"nextSqrtPrice": "245220999439595",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3516,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -221057,
"nextSqrtPrice": "292393660161947",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3517,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3518,
"description": "In a ts_8 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3519,
"description": "In a ts_8 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3520,
"description": "In a ts_8 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 8,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3521,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3522,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699239134030",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3523,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3524,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3525,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3526,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3527,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3528,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3529,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3530,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3531,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983699238871886",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3532,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3533,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3534,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3535,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3536,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3537,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "262143",
"nextProtocolFee": "0"
}
},
{
"testId": 3538,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3539,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3540,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3541,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3542,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3543,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3544,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3545,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3546,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3547,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3548,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3549,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3550,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3551,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3552,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3553,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18446673704965373952",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709289473",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3554,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18446673704965111809",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709813759",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3555,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3556,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3557,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3558,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3559,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70368744177665",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3560,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "70368744177664",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3561,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3562,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3563,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "70368744177665",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744073709551615",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3564,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "70368744177664",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744073709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3565,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3566,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3567,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3568,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3569,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3570,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3805947462",
"amountB": "18446744073709551615",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039877726",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3571,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3572,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3573,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3574,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3575,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14519",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3576,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3577,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846787992724963328",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039546706",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3578,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3579,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "14519",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557285039615582",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3580,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846858361469140992",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285039684461",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3581,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3582,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3583,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3584,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3585,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "262143",
"nextProtocolFee": "0"
}
},
{
"testId": 3586,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3587,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3588,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3589,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3590,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3591,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3592,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3593,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3594,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "1298074214633706907132624082305024",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3595,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3596,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3597,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3598,
"description": "In a ts_128 pool with 2^110 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3599,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3600,
"description": "In a ts_128 pool with 2^110 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "1298074214633706907132624082305024",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3601,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3602,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482522727772948423502",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3603,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3604,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3605,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3606,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3607,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3608,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3609,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3610,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3611,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3612,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3613,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3614,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3615,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3616,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3617,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "249849086238333410",
"nextProtocolFee": "0"
}
},
{
"testId": 3618,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3619,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3620,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3621,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 3622,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3623,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3624,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3625,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 3626,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3627,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3628,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3629,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3630,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3631,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3632,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3633,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9223372036854775807",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13864,
"nextSqrtPrice": "9223372036854775809",
"nextFeeGrowthGlobal": "2",
"nextProtocolFee": "0"
}
},
{
"testId": 3634,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9223372036854775807",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13863,
"nextSqrtPrice": "36893488147419103231",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3635,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3636,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3637,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999999945789",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3638,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999945789",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3639,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000054211",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3640,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000000054211",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3641,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3642,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3643,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000001",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3644,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000000001",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3645,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3646,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3647,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3648,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3649,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3650,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3805907313",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261901301358749167198",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3651,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3806016651",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3652,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3653,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3654,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3655,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "207",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3656,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3657,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846783690399666109",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238607773594639949474",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3658,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3659,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3660,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846820274568148671",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3661,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3662,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3663,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3664,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3665,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3805907313",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963374352323",
"nextFeeGrowthGlobal": "799491063",
"nextProtocolFee": "0"
}
},
{
"testId": 3666,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3667,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3668,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3669,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1558791621",
"nextProtocolFee": "0"
}
},
{
"testId": 3670,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3671,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3672,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "207",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3673,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 3674,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4846783690399685038",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3675,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4846820274568167601",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3676,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3677,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3678,
"description": "In a ts_128 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3679,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3680,
"description": "In a ts_128 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3681,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3682,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3683,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3684,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3685,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3686,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790759043279699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3687,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3688,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3689,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "13507355532688697643",
"nextLiquidity": "4294967296",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3690,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468370950995238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3691,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3692,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3693,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3694,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3695,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3696,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3697,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3698,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "3",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3699,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3700,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "3",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3701,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352163",
"nextFeeGrowthGlobal": "499845579489148928",
"nextProtocolFee": "0"
}
},
{
"testId": 3702,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "3",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3703,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3704,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3705,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4294967296000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 3706,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "13507114839124405324",
"amountB": "3",
"nextLiquidity": "4294967296",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3707,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3708,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3709,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3710,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3711,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3712,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3713,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "8952251454",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3714,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "18969087788",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3715,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "8952251454",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3716,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "18969087788",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3717,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "8952251454",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3718,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "18969087788",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3719,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "8952251454",
"amountB": "2902467902",
"nextLiquidity": "4294967296",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3720,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3502038289",
"amountB": "18969087788",
"nextLiquidity": "4294967296",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3721,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "811141420",
"nextLiquidity": "4294967296",
"nextTickIndex": -4187,
"nextSqrtPrice": "14962918198591332262",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3722,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "811141420",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4186,
"nextSqrtPrice": "22741711369709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3723,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1303493149",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3724,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1303493149",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3725,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3726,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3727,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3728,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3729,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "236887",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3730,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "733159311375032",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3731,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "236887",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3732,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "733159311375032",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3733,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "236887",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3734,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288538421853285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3735,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3736,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "733159311375032",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3737,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "236887",
"amountB": "237229359010002",
"nextLiquidity": "4294967296",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3738,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247749524581039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3739,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3740,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "43820",
"amountB": "733159311375032",
"nextLiquidity": "4294967296",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3741,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3742,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3743,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3744,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3745,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "733210918611959",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3746,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "236872",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3747,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "733210918611959",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3748,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "236872",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3749,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264083989386607",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3750,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "236872",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3751,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "733210918611959",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3752,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3753,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294118022",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3754,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "237226269993670",
"amountB": "236872",
"nextLiquidity": "4294967296",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3755,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "733210918611959",
"amountB": "43821",
"nextLiquidity": "4294967296",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3756,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3757,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3758,
"description": "In a ts_128 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3759,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3760,
"description": "In a ts_128 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3761,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3762,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3763,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3764,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3765,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3766,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3767,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3768,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3769,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3770,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3771,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 416767,
"nextSqrtPrice": "20676136195733368370761324026",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3772,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3773,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3774,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3775,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3776,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3777,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3778,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3779,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3780,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3781,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3782,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3783,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3784,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3785,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3786,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3787,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3788,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -416769,
"nextSqrtPrice": "16456912009",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3789,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3790,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3791,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3792,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3793,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3794,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3795,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3796,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3797,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3798,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3799,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3800,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3801,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3802,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3803,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -22529,
"nextSqrtPrice": "5980739354458315104",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3804,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 33791,
"nextSqrtPrice": "99918355755764668879",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3805,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3806,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3807,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3808,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3809,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3810,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3811,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3812,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3813,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3814,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3815,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3816,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3817,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3818,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3819,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 191487,
"nextSqrtPrice": "265351115958282680265311",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3820,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 247807,
"nextSqrtPrice": "4433138719670925470028609",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3821,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3822,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3823,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3824,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3825,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3826,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3827,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3828,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3829,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3830,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3831,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3832,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3833,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3834,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3835,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -247809,
"nextSqrtPrice": "76754953001742",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3836,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -191489,
"nextSqrtPrice": "1282321172269122",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3837,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3838,
"description": "In a ts_128 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3839,
"description": "In a ts_128 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 3840,
"description": "In a ts_128 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 128,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
}
]
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/tests/swap_test_cases_splash_pool.json
|
[
{
"testId": 1000001,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000002,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482338260332211327985",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000003,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000004,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000005,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000006,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984689238871887",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000007,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000008,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000009,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000010,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700228871887",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000011,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000012,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000013,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000014,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000015,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000016,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000017,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "187386814678750058",
"nextProtocolFee": "62462271559583352"
}
},
{
"testId": 1000018,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000019,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000020,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000021,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000000",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 1000022,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000023,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000024,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000025,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 1000026,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000027,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000028,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000029,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000030,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000031,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000032,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000033,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9177023433654500552",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13764,
"nextSqrtPrice": "9269720640055051064",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000034,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9177023433654500552",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13763,
"nextSqrtPrice": "36709020706682007714",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000035,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000036,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000037,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "989999946868",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743083709604748",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000038,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999946868",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745063709551616",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000039,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101064860",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 1000040,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1010101064860",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 1000041,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "989999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072719551617",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000042,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074699551616",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000043,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101012",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 1000044,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1010101012",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 1000045,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000046,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000047,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000048,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000049,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000050,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3767848781",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261716833918012071681",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000051,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3844461264",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "28833460",
"nextProtocolFee": "9611153"
}
},
{
"testId": 1000052,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000053,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000054,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "204",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558275039615583",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000055,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "210",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 1000056,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000057,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4798316034585943377",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238656241250453672206",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000058,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286029615583",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000059,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000060,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4895778055119342092",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "36718335413395066",
"nextProtocolFee": "12239445137798355"
}
},
{
"testId": 1000061,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000062,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000063,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000064,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000065,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3767848781",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963412410855",
"nextFeeGrowthGlobal": "138350581409062182",
"nextProtocolFee": "46116860469687394"
}
},
{
"testId": 1000066,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000067,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000068,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000069,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "204",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259432",
"nextFeeGrowthGlobal": "8439296690",
"nextProtocolFee": "2813098896"
}
},
{
"testId": 1000070,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000071,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000072,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "210",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 1000073,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 1000074,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4798316034585962117",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968170259636",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000075,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4895778055119361214",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "36718335413395210",
"nextProtocolFee": "12239445137798403"
}
},
{
"testId": 1000076,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000077,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000078,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000079,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000080,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000081,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338350805",
"nextFeeGrowthGlobal": "594211231868854630642352128",
"nextProtocolFee": "46116861194128064"
}
},
{
"testId": 1000082,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000083,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000084,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000085,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631397736084",
"nextLiquidity": "4294967296",
"nextTickIndex": -108811,
"nextSqrtPrice": "80028446984024002",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000086,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790716093606739238871887",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000087,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000088,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000089,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393612783294356",
"nextLiquidity": "4294967296",
"nextTickIndex": 29351,
"nextSqrtPrice": "80028446902715510967",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000090,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468328001322278871887",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000091,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000092,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000093,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000094,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000095,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000096,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000097,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000098,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78435880889121694214030123407",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000099,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000100,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000101,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352166",
"nextFeeGrowthGlobal": "41317902338926575616",
"nextProtocolFee": "3206691265"
}
},
{
"testId": 1000102,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633993648446",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108810,
"nextSqrtPrice": "4252017623044324352399",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000103,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000104,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000105,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "3221225472000000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 1000106,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393615379206718",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29352,
"nextSqrtPrice": "4252017627364352399",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000107,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000108,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000109,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000110,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000111,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000112,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000113,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338350804",
"nextFeeGrowthGlobal": "594211232144172286402887680",
"nextProtocolFee": "46116861215495526"
}
},
{
"testId": 1000114,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78435880907568438283415322624",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000115,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000116,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000117,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4276414708",
"nextLiquidity": "4294967296",
"nextTickIndex": -108898,
"nextSqrtPrice": "79682755238846786",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000118,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4276414708",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108897,
"nextSqrtPrice": "4270464367113709551616",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000119,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000120,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000121,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "804549467",
"nextLiquidity": "4294967296",
"nextTickIndex": -4149,
"nextSqrtPrice": "14991230423361230502",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000122,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "804549467",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4148,
"nextSqrtPrice": "22698761696749551616",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000123,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1316659747",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "42412583004667904",
"nextProtocolFee": "3291649"
}
},
{
"testId": 1000124,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1316659747",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "42412583004667904",
"nextProtocolFee": "3291649"
}
},
{
"testId": 1000125,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000126,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000127,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000128,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000129,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338350805",
"nextFeeGrowthGlobal": "594211231869053350189203456",
"nextProtocolFee": "46116861194143487"
}
},
{
"testId": 1000130,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78437165132576251494745386591",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000131,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000132,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000133,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011211499768",
"nextLiquidity": "4294967296",
"nextTickIndex": -108811,
"nextSqrtPrice": "80028441997082172",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000134,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "203",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288495472180325039615583",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000135,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "211",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 1000136,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000137,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298992598219079",
"nextLiquidity": "4294967296",
"nextTickIndex": 29350,
"nextSqrtPrice": "80023460271325129686",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000138,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247706574908079615583",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000139,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000140,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000141,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000142,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000143,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000144,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000145,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338279773",
"nextFeeGrowthGlobal": "594211223209736353251065856",
"nextProtocolFee": "46116860522092036"
}
},
{
"testId": 1000146,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78435880889121959176886030644",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000147,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000148,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000149,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "203",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264092792150158",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000150,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011211499768",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108810,
"nextSqrtPrice": "4252017888007180259636",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000151,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000152,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "211",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 1000153,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966302979409",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000154,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298992598219079",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29351,
"nextSqrtPrice": "4252282590220259636",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000155,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000156,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000157,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000158,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000159,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000160,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000161,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000162,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000163,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000164,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000165,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000166,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000167,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000168,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000169,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000170,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000171,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000172,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000173,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000174,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000175,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000176,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000177,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000178,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000179,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000180,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000181,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000182,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000183,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000184,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000185,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000186,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000187,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000188,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000189,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000190,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000191,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000192,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000193,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000194,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000195,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000196,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000197,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000198,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000199,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000200,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000201,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000202,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000203,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000204,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000205,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000206,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000207,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000208,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000209,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000210,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000211,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000212,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000213,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000214,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000215,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000216,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000217,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000218,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000219,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000220,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000221,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000222,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000223,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000224,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000225,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000226,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000227,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000228,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000229,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000230,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000231,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000232,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000233,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000234,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000235,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000236,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000237,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000238,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000239,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000240,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32769,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000241,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000242,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482338260332211327985",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000243,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000244,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000245,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000246,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984689238871887",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000247,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000248,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000249,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000250,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700228871887",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000251,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000252,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000253,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000254,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000255,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000256,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000257,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "187386814678750058",
"nextProtocolFee": "62462271559583352"
}
},
{
"testId": 1000258,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000259,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000260,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000261,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000000",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 1000262,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000263,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000264,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000265,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 1000266,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000267,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000268,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000269,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000270,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000271,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000272,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000273,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9177023433654500552",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13764,
"nextSqrtPrice": "9269720640055051064",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000274,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9177023433654500552",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13763,
"nextSqrtPrice": "36709020706682007714",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000275,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000276,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000277,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "989999946868",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743083709604748",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000278,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999946868",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745063709551616",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000279,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101064860",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 1000280,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1010101064860",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 1000281,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "989999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072719551617",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000282,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074699551616",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000283,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101012",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 1000284,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1010101012",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 1000285,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000286,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000287,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000288,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000289,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000290,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3767848781",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261716833918012071681",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000291,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3844461264",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "28833460",
"nextProtocolFee": "9611153"
}
},
{
"testId": 1000292,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000293,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000294,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "204",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558275039615583",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000295,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "210",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 1000296,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000297,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4798316034585943377",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238656241250453672206",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000298,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286029615583",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000299,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000300,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4895778055119342092",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "36718335413395066",
"nextProtocolFee": "12239445137798355"
}
},
{
"testId": 1000301,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000302,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000303,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000304,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000305,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3767848781",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963412410855",
"nextFeeGrowthGlobal": "138350581409062182",
"nextProtocolFee": "46116860469687394"
}
},
{
"testId": 1000306,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000307,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000308,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000309,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "204",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259432",
"nextFeeGrowthGlobal": "8439296690",
"nextProtocolFee": "2813098896"
}
},
{
"testId": 1000310,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000311,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000312,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "210",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 1000313,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 1000314,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4798316034585962117",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968170259636",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000315,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4895778055119361214",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "36718335413395210",
"nextProtocolFee": "12239445137798403"
}
},
{
"testId": 1000316,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000317,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000318,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000319,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000320,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000321,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338350805",
"nextFeeGrowthGlobal": "594211231868854630642352128",
"nextProtocolFee": "46116861194128064"
}
},
{
"testId": 1000322,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000323,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000324,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000325,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631397736084",
"nextLiquidity": "4294967296",
"nextTickIndex": -108811,
"nextSqrtPrice": "80028446984024002",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000326,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790716093606739238871887",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000327,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000328,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000329,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393612783294356",
"nextLiquidity": "4294967296",
"nextTickIndex": 29351,
"nextSqrtPrice": "80028446902715510967",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000330,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468328001322278871887",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000331,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000332,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000333,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000334,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000335,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000336,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000337,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000338,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78435880889121694214030123407",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000339,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000340,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000341,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352166",
"nextFeeGrowthGlobal": "41317902338926575616",
"nextProtocolFee": "3206691265"
}
},
{
"testId": 1000342,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633993648446",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108810,
"nextSqrtPrice": "4252017623044324352399",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000343,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000344,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000345,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "3221225472000000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 1000346,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393615379206718",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29352,
"nextSqrtPrice": "4252017627364352399",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000347,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000348,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000349,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000350,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000351,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000352,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000353,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338350804",
"nextFeeGrowthGlobal": "594211232144172286402887680",
"nextProtocolFee": "46116861215495526"
}
},
{
"testId": 1000354,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78435880907568438283415322624",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000355,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000356,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000357,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4276414708",
"nextLiquidity": "4294967296",
"nextTickIndex": -108898,
"nextSqrtPrice": "79682755238846786",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000358,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4276414708",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108897,
"nextSqrtPrice": "4270464367113709551616",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000359,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000360,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000361,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "804549467",
"nextLiquidity": "4294967296",
"nextTickIndex": -4149,
"nextSqrtPrice": "14991230423361230502",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000362,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "804549467",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4148,
"nextSqrtPrice": "22698761696749551616",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000363,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1316659747",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "42412583004667904",
"nextProtocolFee": "3291649"
}
},
{
"testId": 1000364,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1316659747",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "42412583004667904",
"nextProtocolFee": "3291649"
}
},
{
"testId": 1000365,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000366,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000367,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000368,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000369,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338350805",
"nextFeeGrowthGlobal": "594211231869053350189203456",
"nextProtocolFee": "46116861194143487"
}
},
{
"testId": 1000370,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78437165132576251494745386591",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000371,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000372,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000373,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011211499768",
"nextLiquidity": "4294967296",
"nextTickIndex": -108811,
"nextSqrtPrice": "80028441997082172",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000374,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "203",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288495472180325039615583",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000375,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "211",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 1000376,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000377,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298992598219079",
"nextLiquidity": "4294967296",
"nextTickIndex": 29350,
"nextSqrtPrice": "80023460271325129686",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000378,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247706574908079615583",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000379,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000380,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000381,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000382,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000383,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000384,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000385,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338279773",
"nextFeeGrowthGlobal": "594211223209736353251065856",
"nextProtocolFee": "46116860522092036"
}
},
{
"testId": 1000386,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78435880889121959176886030644",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000387,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000388,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000389,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "203",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264092792150158",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000390,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011211499768",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108810,
"nextSqrtPrice": "4252017888007180259636",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000391,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000392,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "211",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 1000393,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966302979409",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000394,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298992598219079",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29351,
"nextSqrtPrice": "4252282590220259636",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000395,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000396,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000397,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000398,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000399,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000400,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000401,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000402,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000403,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000404,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000405,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000406,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000407,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000408,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000409,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000410,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000411,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000412,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000413,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000414,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000415,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000416,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000417,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000418,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000419,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000420,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000421,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000422,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000423,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000424,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000425,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000426,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000427,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000428,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000429,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000430,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000431,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000432,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000433,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000434,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000435,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000436,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000437,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000438,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000439,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000440,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000441,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000442,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000443,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000444,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000445,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000446,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000447,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000448,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000449,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000450,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000451,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000452,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000453,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000454,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000455,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000456,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000457,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000458,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000459,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000460,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000461,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000462,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000463,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000464,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000465,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000466,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000467,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000468,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000469,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000470,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000471,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000472,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000473,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000474,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000475,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000476,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000477,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000478,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000479,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000480,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32832,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000481,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000482,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482338260332211327985",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000483,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000484,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000485,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000486,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984689238871887",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000487,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000488,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000489,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000490,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700228871887",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000491,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000492,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000493,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000494,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000495,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000496,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000497,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "187386814678750058",
"nextProtocolFee": "62462271559583352"
}
},
{
"testId": 1000498,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000499,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000500,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000501,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000000",
"nextProtocolFee": "250000000000"
}
},
{
"testId": 1000502,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000503,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000504,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000505,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 1000506,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000507,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000508,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000509,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000510,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000511,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000512,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000513,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9177023433654500552",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13764,
"nextSqrtPrice": "9269720640055051064",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000514,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9177023433654500552",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13763,
"nextSqrtPrice": "36709020706682007714",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000515,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000516,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000517,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "989999946868",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743083709604748",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000518,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999946868",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745063709551616",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000519,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101064860",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 1000520,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1010101064860",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "7575757987",
"nextProtocolFee": "2525252662"
}
},
{
"testId": 1000521,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "989999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072719551617",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000522,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "989999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074699551616",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000523,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1010101012",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 1000524,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1010101012",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "7575759",
"nextProtocolFee": "2525252"
}
},
{
"testId": 1000525,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000526,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000527,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000528,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000529,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000530,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3767848781",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261716833918012071681",
"nextFeeGrowthGlobal": "138350580552821638",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000531,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3844461264",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "28833460",
"nextProtocolFee": "9611153"
}
},
{
"testId": 1000532,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000533,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000534,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "204",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558275039615583",
"nextFeeGrowthGlobal": "7500000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000535,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "210",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 1000536,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000537,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4798316034585943377",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238656241250453672206",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000538,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286029615583",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000539,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000540,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4895778055119342092",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "36718335413395066",
"nextProtocolFee": "12239445137798355"
}
},
{
"testId": 1000541,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000542,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000543,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000544,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000545,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3767848781",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963412410855",
"nextFeeGrowthGlobal": "138350581409062182",
"nextProtocolFee": "46116860469687394"
}
},
{
"testId": 1000546,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000547,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000548,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000549,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "204",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259432",
"nextFeeGrowthGlobal": "8439296690",
"nextProtocolFee": "2813098896"
}
},
{
"testId": 1000550,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000551,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000552,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "210",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "3",
"nextProtocolFee": "0"
}
},
{
"testId": 1000553,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "750000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 1000554,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4798316034585962117",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968170259636",
"nextFeeGrowthGlobal": "7500000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000555,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4895778055119361214",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "36718335413395210",
"nextProtocolFee": "12239445137798403"
}
},
{
"testId": 1000556,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000557,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000558,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000559,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000560,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000561,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338350805",
"nextFeeGrowthGlobal": "594211231868854630642352128",
"nextProtocolFee": "46116861194128064"
}
},
{
"testId": 1000562,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000563,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000564,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000565,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631397736084",
"nextLiquidity": "4294967296",
"nextTickIndex": -108811,
"nextSqrtPrice": "80028446984024002",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000566,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790716093606739238871887",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000567,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000568,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000569,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393612783294356",
"nextLiquidity": "4294967296",
"nextTickIndex": 29351,
"nextSqrtPrice": "80028446902715510967",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000570,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468328001322278871887",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000571,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000572,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "126266421948986744",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "4067326146403761647517696",
"nextProtocolFee": "315666054872467"
}
},
{
"testId": 1000573,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000574,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000575,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000576,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000577,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000578,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78435880889121694214030123407",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000579,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000580,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000581,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352166",
"nextFeeGrowthGlobal": "41317902338926575616",
"nextProtocolFee": "3206691265"
}
},
{
"testId": 1000582,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633993648446",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108810,
"nextSqrtPrice": "4252017623044324352399",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000583,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000584,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000585,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "3221225472000000000",
"nextProtocolFee": "250000000"
}
},
{
"testId": 1000586,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393615379206718",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29352,
"nextSqrtPrice": "4252017627364352399",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000587,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "126266420659326182",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "4067326104860888045453312",
"nextProtocolFee": "315666051648315"
}
},
{
"testId": 1000588,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000589,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000590,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000591,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000592,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000593,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338350804",
"nextFeeGrowthGlobal": "594211232144172286402887680",
"nextProtocolFee": "46116861215495526"
}
},
{
"testId": 1000594,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78435880907568438283415322624",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000595,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000596,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000597,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4276414708",
"nextLiquidity": "4294967296",
"nextTickIndex": -108898,
"nextSqrtPrice": "79682755238846786",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000598,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4276414708",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108897,
"nextSqrtPrice": "4270464367113709551616",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000599,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000600,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000601,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "804549467",
"nextLiquidity": "4294967296",
"nextTickIndex": -4149,
"nextSqrtPrice": "14991230423361230502",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000602,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "804549467",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4148,
"nextSqrtPrice": "22698761696749551616",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000603,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1316659747",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "42412583004667904",
"nextProtocolFee": "3291649"
}
},
{
"testId": 1000604,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1316659747",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "42412583004667904",
"nextProtocolFee": "3291649"
}
},
{
"testId": 1000605,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000606,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000607,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000608,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000609,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338350805",
"nextFeeGrowthGlobal": "594211231869053350189203456",
"nextProtocolFee": "46116861194143487"
}
},
{
"testId": 1000610,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78437165132576251494745386591",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000611,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000612,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000613,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011211499768",
"nextLiquidity": "4294967296",
"nextTickIndex": -108811,
"nextSqrtPrice": "80028441997082172",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000614,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "203",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288495472180325039615583",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000615,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "211",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 1000616,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000617,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298992598219079",
"nextLiquidity": "4294967296",
"nextTickIndex": 29350,
"nextSqrtPrice": "80023460271325129686",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000618,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247706574908079615583",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000619,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000620,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000621,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000622,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000623,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000624,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000625,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443436,
"nextSqrtPrice": "4338279773",
"nextFeeGrowthGlobal": "594211223209736353251065856",
"nextProtocolFee": "46116860522092036"
}
},
{
"testId": 1000626,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443435,
"nextSqrtPrice": "78435880889121959176886030644",
"nextFeeGrowthGlobal": "594211218856982535731150848",
"nextProtocolFee": "46116860184273879"
}
},
{
"testId": 1000627,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000628,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000629,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "203",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264092792150158",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000630,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011211499768",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108810,
"nextSqrtPrice": "4252017888007180259636",
"nextFeeGrowthGlobal": "32212254720000000000",
"nextProtocolFee": "2500000000"
}
},
{
"testId": 1000631,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000632,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "211",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "12884901888",
"nextProtocolFee": "0"
}
},
{
"testId": 1000633,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966302979409",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000634,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298992598219079",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29351,
"nextSqrtPrice": "4252282590220259636",
"nextFeeGrowthGlobal": "32212254720000000",
"nextProtocolFee": "2500000"
}
},
{
"testId": 1000635,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000636,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000637,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000638,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000639,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000640,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000641,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000642,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000643,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000644,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000645,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000646,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000647,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000648,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000649,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000650,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000651,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000652,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000653,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000654,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000655,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000656,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000657,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000658,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000659,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000660,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000661,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000662,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000663,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000664,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000665,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000666,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000667,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000668,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000669,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000670,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000671,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000672,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000673,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000674,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000675,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000676,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000677,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000678,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000679,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000680,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000681,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000682,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000683,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000684,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000685,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000686,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000687,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000688,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000689,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000690,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000691,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000692,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000693,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000694,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000695,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000696,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000697,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000698,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000699,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000700,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000701,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000702,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000703,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000704,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000705,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000706,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000707,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000708,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000709,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000710,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000711,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000712,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000713,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000714,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000715,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000716,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000717,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000718,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000719,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000720,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 1.00%/2500 fee",
"tickSpacing": 32896,
"feeRate": 10000,
"protocolFeeRate": 2500,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000721,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000722,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786481313820400077868036",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000723,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000724,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000725,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000726,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984633703871887",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000727,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000728,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000729,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000730,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700173336887",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000731,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000732,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000733,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000734,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000735,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000736,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000737,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "17339939429286978519",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1000738,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000739,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000740,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000741,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000000",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1000742,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000743,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000744,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000745,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1000746,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000747,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000748,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000749,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000750,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000751,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000752,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000753,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "8910906478452179879",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13198,
"nextSqrtPrice": "9535837595257371737",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000754,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "8910906478452179879",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13197,
"nextSqrtPrice": "35684580774548547765",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000755,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000756,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000757,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "934464952662",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743139244598954",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000758,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464952662",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745008174551616",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000759,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131095559",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1000760,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1070131095559",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1000761,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "934464999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072775086617",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000762,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074644016616",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000763,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131039",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1000764,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1070131039",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1000765,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000766,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000767,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000768,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000769,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000770,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3556490525",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284260692393985878611732",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000771,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4072936548",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "250904704",
"nextProtocolFee": "16015193"
}
},
{
"testId": 1000772,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000773,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000774,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558219504615583",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000775,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "222",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1000776,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000777,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4529150841451380342",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238925406443588235241",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000778,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285974080583",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000779,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000780,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "5186732809220408117",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "319517782573123880",
"nextProtocolFee": "20394752079135566"
}
},
{
"testId": 1000781,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000782,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000783,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000784,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000785,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3556490525",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963623769111",
"nextFeeGrowthGlobal": "1136372931449860984",
"nextProtocolFee": "72534442432969850"
}
},
{
"testId": 1000786,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000787,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000788,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000789,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259444",
"nextFeeGrowthGlobal": "65249178213",
"nextProtocolFee": "4164841162"
}
},
{
"testId": 1000790,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000791,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000792,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "222",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1000793,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1000794,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4529150841451398030",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968114724636",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000795,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "5186732809220428375",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "319517782573125128",
"nextProtocolFee": "20394752079135646"
}
},
{
"testId": 1000796,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000797,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000798,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000799,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000800,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000801,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -442281,
"nextSqrtPrice": "4596177809",
"nextFeeGrowthGlobal": "4880684577203395807722602496",
"nextProtocolFee": "72534442441390289"
}
},
{
"testId": 1000802,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1000803,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000804,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1000805,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631396628726",
"nextLiquidity": "4294967296",
"nextTickIndex": -107656,
"nextSqrtPrice": "84784515754125594",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000806,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790477572597955878871887",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000807,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000808,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1000809,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393611675935805",
"nextLiquidity": "4294967296",
"nextTickIndex": 30506,
"nextSqrtPrice": "84784515662865647458",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000810,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468089480313495511887",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000811,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000812,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1000813,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000814,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000815,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000816,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000817,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1000818,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442280,
"nextSqrtPrice": "74035944883892024225749295503",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000819,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1000820,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000821,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352179",
"nextFeeGrowthGlobal": "274151184252585115648",
"nextProtocolFee": "4074306171"
}
},
{
"testId": 1000822,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633992541088",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 107655,
"nextSqrtPrice": "4013496614260964352399",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000823,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1000824,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000825,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4037269258240000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1000826,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393614271848167",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -30507,
"nextSqrtPrice": "4013496618580992399",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000827,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1000828,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000829,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000830,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000831,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000832,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000833,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -442281,
"nextSqrtPrice": "4596177808",
"nextFeeGrowthGlobal": "4880684579401669462632431616",
"nextProtocolFee": "72534442474060000"
}
},
{
"testId": 1000834,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442280,
"nextSqrtPrice": "74035944902338768295134494720",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000835,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000836,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000837,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4275317178",
"nextLiquidity": "4294967296",
"nextTickIndex": -107748,
"nextSqrtPrice": "84396613910233925",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000838,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4275317178",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 107747,
"nextSqrtPrice": "4031943358330349551616",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000839,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000840,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000841,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "767482278",
"nextLiquidity": "4294967296",
"nextTickIndex": -3938,
"nextSqrtPrice": "15150432786913804916",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000842,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "767482278",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 3937,
"nextSqrtPrice": "22460240687966191616",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000843,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1394908476",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "369068292091936768",
"nextProtocolFee": "5484919"
}
},
{
"testId": 1000844,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1394908476",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "369068292091936768",
"nextProtocolFee": "5484919"
}
},
{
"testId": 1000845,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000846,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000847,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000848,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000849,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -442281,
"nextSqrtPrice": "4596177809",
"nextFeeGrowthGlobal": "4880684577203644872876097536",
"nextProtocolFee": "72534442441393990"
}
},
{
"testId": 1000850,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442281,
"nextSqrtPrice": "74037229127346581506464558687",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000851,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000852,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000853,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011210392409",
"nextLiquidity": "4294967296",
"nextTickIndex": -107656,
"nextSqrtPrice": "84784510156825258",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000854,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223089,
"nextSqrtPrice": "1288256951171541679615583",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000855,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "223",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1000856,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000857,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298991491002625",
"nextLiquidity": "4294967296",
"nextTickIndex": 30504,
"nextSqrtPrice": "84778918731670072430",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000858,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247468053899296255583",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000859,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000860,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000861,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000862,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000863,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000864,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000865,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -442282,
"nextSqrtPrice": "4596098084",
"nextFeeGrowthGlobal": "4880684575807621033835364352",
"nextProtocolFee": "72534442420646940"
}
},
{
"testId": 1000866,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442280,
"nextSqrtPrice": "74035944883892289188605202740",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000867,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000868,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000869,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "4294967296",
"nextTickIndex": -223090,
"nextSqrtPrice": "264141688978651",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000870,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011210392410",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 107655,
"nextSqrtPrice": "4013496879223820259636",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000871,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000872,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "223",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1000873,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966352191132",
"nextFeeGrowthGlobal": "264582445133725696",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000874,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298991491002625",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -30505,
"nextSqrtPrice": "4013761581436899636",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000875,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000876,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1000877,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000878,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000879,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000880,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000881,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000882,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000883,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000884,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000885,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000886,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000887,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000888,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000889,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000890,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000891,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000892,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000893,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000894,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000895,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000896,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000897,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000898,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000899,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000900,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000901,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000902,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000903,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000904,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000905,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000906,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000907,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000908,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000909,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000910,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000911,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000912,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000913,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000914,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000915,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000916,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000917,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000918,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000919,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000920,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000921,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000922,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000923,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000924,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000925,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000926,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000927,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000928,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000929,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000930,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000931,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000932,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000933,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000934,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000935,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000936,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000937,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000938,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000939,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000940,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000941,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000942,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000943,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000944,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000945,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000946,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000947,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000948,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000949,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000950,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000951,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000952,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000953,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000954,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000955,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000956,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000957,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000958,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000959,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000960,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32769,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000961,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000962,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786481313820400077868036",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000963,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000964,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000965,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000966,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984633703871887",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000967,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000968,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000969,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000970,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700173336887",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1000971,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000972,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000973,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000974,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000975,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000976,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000977,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "17339939429286978519",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1000978,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000979,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000980,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000981,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000000",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1000982,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000983,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000984,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000985,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1000986,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000987,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000988,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1000989,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000990,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000991,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000992,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000993,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "8910906478452179879",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13198,
"nextSqrtPrice": "9535837595257371737",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000994,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "8910906478452179879",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13197,
"nextSqrtPrice": "35684580774548547765",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1000995,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000996,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1000997,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "934464952662",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743139244598954",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000998,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464952662",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745008174551616",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1000999,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131095559",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1001000,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1070131095559",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1001001,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "934464999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072775086617",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001002,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074644016616",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001003,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131039",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1001004,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1070131039",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1001005,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001006,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001007,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001008,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001009,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001010,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3556490525",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284260692393985878611732",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001011,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4072936548",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "250904704",
"nextProtocolFee": "16015193"
}
},
{
"testId": 1001012,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001013,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001014,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558219504615583",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001015,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "222",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1001016,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001017,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4529150841451380342",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238925406443588235241",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001018,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285974080583",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001019,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001020,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "5186732809220408117",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "319517782573123880",
"nextProtocolFee": "20394752079135566"
}
},
{
"testId": 1001021,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001022,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001023,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001024,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001025,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3556490525",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963623769111",
"nextFeeGrowthGlobal": "1136372931449860984",
"nextProtocolFee": "72534442432969850"
}
},
{
"testId": 1001026,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001027,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001028,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001029,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259444",
"nextFeeGrowthGlobal": "65249178213",
"nextProtocolFee": "4164841162"
}
},
{
"testId": 1001030,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001031,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001032,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "222",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1001033,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1001034,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4529150841451398030",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968114724636",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001035,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "5186732809220428375",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "319517782573125128",
"nextProtocolFee": "20394752079135646"
}
},
{
"testId": 1001036,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001037,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001038,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001039,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001040,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001041,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -442281,
"nextSqrtPrice": "4596177809",
"nextFeeGrowthGlobal": "4880684577203395807722602496",
"nextProtocolFee": "72534442441390289"
}
},
{
"testId": 1001042,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1001043,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001044,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1001045,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631396628726",
"nextLiquidity": "4294967296",
"nextTickIndex": -107656,
"nextSqrtPrice": "84784515754125594",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001046,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790477572597955878871887",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001047,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001048,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1001049,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393611675935805",
"nextLiquidity": "4294967296",
"nextTickIndex": 30506,
"nextSqrtPrice": "84784515662865647458",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001050,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468089480313495511887",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001051,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001052,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1001053,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001054,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001055,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001056,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001057,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1001058,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442280,
"nextSqrtPrice": "74035944883892024225749295503",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001059,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1001060,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001061,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352179",
"nextFeeGrowthGlobal": "274151184252585115648",
"nextProtocolFee": "4074306171"
}
},
{
"testId": 1001062,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633992541088",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 107655,
"nextSqrtPrice": "4013496614260964352399",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001063,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1001064,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001065,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4037269258240000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1001066,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393614271848167",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -30507,
"nextSqrtPrice": "4013496618580992399",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001067,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1001068,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001069,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001070,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001071,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001072,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001073,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -442281,
"nextSqrtPrice": "4596177808",
"nextFeeGrowthGlobal": "4880684579401669462632431616",
"nextProtocolFee": "72534442474060000"
}
},
{
"testId": 1001074,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442280,
"nextSqrtPrice": "74035944902338768295134494720",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001075,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001076,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001077,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4275317178",
"nextLiquidity": "4294967296",
"nextTickIndex": -107748,
"nextSqrtPrice": "84396613910233925",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001078,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4275317178",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 107747,
"nextSqrtPrice": "4031943358330349551616",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001079,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001080,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001081,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "767482278",
"nextLiquidity": "4294967296",
"nextTickIndex": -3938,
"nextSqrtPrice": "15150432786913804916",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001082,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "767482278",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 3937,
"nextSqrtPrice": "22460240687966191616",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001083,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1394908476",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "369068292091936768",
"nextProtocolFee": "5484919"
}
},
{
"testId": 1001084,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1394908476",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "369068292091936768",
"nextProtocolFee": "5484919"
}
},
{
"testId": 1001085,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001086,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001087,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001088,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001089,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -442281,
"nextSqrtPrice": "4596177809",
"nextFeeGrowthGlobal": "4880684577203644872876097536",
"nextProtocolFee": "72534442441393990"
}
},
{
"testId": 1001090,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442281,
"nextSqrtPrice": "74037229127346581506464558687",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001091,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001092,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001093,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011210392409",
"nextLiquidity": "4294967296",
"nextTickIndex": -107656,
"nextSqrtPrice": "84784510156825258",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001094,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223089,
"nextSqrtPrice": "1288256951171541679615583",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001095,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "223",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1001096,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001097,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298991491002625",
"nextLiquidity": "4294967296",
"nextTickIndex": 30504,
"nextSqrtPrice": "84778918731670072430",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001098,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247468053899296255583",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001099,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001100,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001101,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001102,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001103,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001104,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001105,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -442282,
"nextSqrtPrice": "4596098084",
"nextFeeGrowthGlobal": "4880684575807621033835364352",
"nextProtocolFee": "72534442420646940"
}
},
{
"testId": 1001106,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442280,
"nextSqrtPrice": "74035944883892289188605202740",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001107,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001108,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001109,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "4294967296",
"nextTickIndex": -223090,
"nextSqrtPrice": "264141688978651",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001110,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011210392410",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 107655,
"nextSqrtPrice": "4013496879223820259636",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001111,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001112,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "223",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1001113,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966352191132",
"nextFeeGrowthGlobal": "264582445133725696",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001114,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298991491002625",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -30505,
"nextSqrtPrice": "4013761581436899636",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001115,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001116,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001117,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001118,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001119,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001120,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001121,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001122,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001123,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001124,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001125,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001126,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001127,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001128,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001129,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001130,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001131,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001132,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001133,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001134,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001135,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001136,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001137,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001138,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001139,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001140,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001141,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001142,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001143,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001144,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001145,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001146,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001147,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001148,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001149,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001150,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001151,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001152,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001153,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001154,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001155,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001156,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001157,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001158,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001159,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001160,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001161,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001162,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001163,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001164,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001165,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001166,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001167,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001168,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001169,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001170,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001171,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001172,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001173,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001174,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001175,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001176,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001177,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001178,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001179,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001180,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001181,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001182,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001183,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001184,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001185,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001186,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001187,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001188,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001189,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001190,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001191,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001192,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001193,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001194,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001195,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001196,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001197,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001198,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001199,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001200,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32832,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001201,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001202,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786481313820400077868036",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001203,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001204,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001205,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001206,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984633703871887",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001207,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001208,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001209,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001210,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700173336887",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001211,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001212,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001213,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001214,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001215,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001216,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001217,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "17339939429286978519",
"nextProtocolFee": "1106804644422573096"
}
},
{
"testId": 1001218,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001219,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001220,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001221,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000000",
"nextProtocolFee": "60000000000"
}
},
{
"testId": 1001222,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001223,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001224,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001225,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1001226,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001227,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001228,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001229,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001230,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001231,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001232,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001233,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "8910906478452179879",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13198,
"nextSqrtPrice": "9535837595257371737",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001234,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "8910906478452179879",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13197,
"nextSqrtPrice": "35684580774548547765",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001235,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001236,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001237,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "934464952662",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743139244598954",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001238,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464952662",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745008174551616",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001239,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131095559",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1001240,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1070131095559",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "65923178868",
"nextProtocolFee": "4207862480"
}
},
{
"testId": 1001241,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "934464999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072775086617",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001242,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "934464999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074644016616",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001243,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1070131039",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1001244,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1070131039",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "65923176",
"nextProtocolFee": "4207862"
}
},
{
"testId": 1001245,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001246,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001247,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001248,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001249,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001250,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3556490525",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284260692393985878611732",
"nextFeeGrowthGlobal": "1136372930498322139",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001251,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4072936548",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "250904704",
"nextProtocolFee": "16015193"
}
},
{
"testId": 1001252,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001253,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001254,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558219504615583",
"nextFeeGrowthGlobal": "61602900000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001255,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "222",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1001256,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001257,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4529150841451380342",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238925406443588235241",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001258,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557285974080583",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001259,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001260,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "5186732809220408117",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "319517782573123880",
"nextProtocolFee": "20394752079135566"
}
},
{
"testId": 1001261,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001262,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001263,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001264,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001265,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3556490525",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963623769111",
"nextFeeGrowthGlobal": "1136372931449860984",
"nextProtocolFee": "72534442432969850"
}
},
{
"testId": 1001266,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001267,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001268,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001269,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259444",
"nextFeeGrowthGlobal": "65249178213",
"nextProtocolFee": "4164841162"
}
},
{
"testId": 1001270,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001271,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001272,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "222",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "15",
"nextProtocolFee": "0"
}
},
{
"testId": 1001273,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "940000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1001274,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4529150841451398030",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968114724636",
"nextFeeGrowthGlobal": "61602900",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001275,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "5186732809220428375",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "319517782573125128",
"nextProtocolFee": "20394752079135646"
}
},
{
"testId": 1001276,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001277,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001278,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001279,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001280,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001281,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -442281,
"nextSqrtPrice": "4596177809",
"nextFeeGrowthGlobal": "4880684577203395807722602496",
"nextProtocolFee": "72534442441390289"
}
},
{
"testId": 1001282,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1001283,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001284,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1001285,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631396628726",
"nextLiquidity": "4294967296",
"nextTickIndex": -107656,
"nextSqrtPrice": "84784515754125594",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001286,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790477572597955878871887",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001287,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001288,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1001289,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393611675935805",
"nextLiquidity": "4294967296",
"nextTickIndex": 30506,
"nextSqrtPrice": "84784515662865647458",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001290,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468089480313495511887",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001291,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001292,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "133770400956158739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "35393299196959863175380992",
"nextProtocolFee": "525998593599711"
}
},
{
"testId": 1001293,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001294,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001295,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001296,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001297,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1001298,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442280,
"nextSqrtPrice": "74035944883892024225749295503",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001299,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1001300,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001301,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352179",
"nextFeeGrowthGlobal": "274151184252585115648",
"nextProtocolFee": "4074306171"
}
},
{
"testId": 1001302,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633992541088",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 107655,
"nextSqrtPrice": "4013496614260964352399",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001303,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1001304,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001305,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4037269258240000000",
"nextProtocolFee": "60000000"
}
},
{
"testId": 1001306,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393614271848167",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -30507,
"nextSqrtPrice": "4013496618580992399",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001307,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "133770399589854003",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "35393298835459625581543424",
"nextProtocolFee": "525998588227264"
}
},
{
"testId": 1001308,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001309,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001310,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001311,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001312,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001313,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -442281,
"nextSqrtPrice": "4596177808",
"nextFeeGrowthGlobal": "4880684579401669462632431616",
"nextProtocolFee": "72534442474060000"
}
},
{
"testId": 1001314,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442280,
"nextSqrtPrice": "74035944902338768295134494720",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001315,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001316,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001317,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4275317178",
"nextLiquidity": "4294967296",
"nextTickIndex": -107748,
"nextSqrtPrice": "84396613910233925",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001318,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4275317178",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 107747,
"nextSqrtPrice": "4031943358330349551616",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001319,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001320,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001321,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "767482278",
"nextLiquidity": "4294967296",
"nextTickIndex": -3938,
"nextSqrtPrice": "15150432786913804916",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001322,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "767482278",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 3937,
"nextSqrtPrice": "22460240687966191616",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001323,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1394908476",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "369068292091936768",
"nextProtocolFee": "5484919"
}
},
{
"testId": 1001324,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1394908476",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "369068292091936768",
"nextProtocolFee": "5484919"
}
},
{
"testId": 1001325,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001326,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001327,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001328,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001329,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -442281,
"nextSqrtPrice": "4596177809",
"nextFeeGrowthGlobal": "4880684577203644872876097536",
"nextProtocolFee": "72534442441393990"
}
},
{
"testId": 1001330,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442281,
"nextSqrtPrice": "74037229127346581506464558687",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001331,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001332,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001333,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011210392409",
"nextLiquidity": "4294967296",
"nextTickIndex": -107656,
"nextSqrtPrice": "84784510156825258",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001334,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "192",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223089,
"nextSqrtPrice": "1288256951171541679615583",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001335,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "223",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1001336,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001337,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298991491002625",
"nextLiquidity": "4294967296",
"nextTickIndex": 30504,
"nextSqrtPrice": "84778918731670072430",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001338,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247468053899296255583",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001339,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001340,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001341,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001342,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001343,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001344,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001345,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -442282,
"nextSqrtPrice": "4596098084",
"nextFeeGrowthGlobal": "4880684575807621033835364352",
"nextProtocolFee": "72534442420646940"
}
},
{
"testId": 1001346,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 442280,
"nextSqrtPrice": "74035944883892289188605202740",
"nextFeeGrowthGlobal": "4880684572549974569877766144",
"nextProtocolFee": "72534442372233327"
}
},
{
"testId": 1001347,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001348,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001349,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "192",
"nextLiquidity": "4294967296",
"nextTickIndex": -223090,
"nextSqrtPrice": "264141688978651",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001350,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011210392410",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 107655,
"nextSqrtPrice": "4013496879223820259636",
"nextFeeGrowthGlobal": "264582440838758400000",
"nextProtocolFee": "3932100000"
}
},
{
"testId": 1001351,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001352,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "223",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "64424509440",
"nextProtocolFee": "0"
}
},
{
"testId": 1001353,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966352191132",
"nextFeeGrowthGlobal": "264582445133725696",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001354,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298991491002625",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -30505,
"nextSqrtPrice": "4013761581436899636",
"nextFeeGrowthGlobal": "264582440838758400",
"nextProtocolFee": "3932100"
}
},
{
"testId": 1001355,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001356,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001357,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001358,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001359,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001360,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001361,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001362,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001363,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001364,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001365,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001366,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001367,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001368,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001369,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001370,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001371,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001372,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001373,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001374,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001375,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001376,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001377,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001378,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001379,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001380,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001381,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001382,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001383,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001384,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001385,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001386,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001387,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001388,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001389,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001390,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001391,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001392,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001393,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001394,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001395,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001396,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001397,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001398,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001399,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001400,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001401,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001402,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001403,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001404,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001405,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001406,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001407,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001408,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001409,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001410,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001411,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001412,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001413,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001414,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001415,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001416,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001417,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001418,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001419,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001420,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001421,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001422,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001423,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001424,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001425,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001426,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001427,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001428,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001429,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001430,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001431,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001432,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001433,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001434,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001435,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001436,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001437,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001438,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001439,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001440,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 6.55%/600 fee",
"tickSpacing": 32896,
"feeRate": 65535,
"protocolFeeRate": 600,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001441,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001442,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482509815052096826815",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001443,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001444,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001445,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001446,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984698538871887",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001447,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001448,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001449,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001450,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238171887",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001451,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001452,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001453,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001454,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001455,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001456,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001457,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "242353613651183408",
"nextProtocolFee": "7495472587150002"
}
},
{
"testId": 1001458,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001459,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001460,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001461,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000000",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1001462,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001463,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001464,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001465,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1001466,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001467,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001468,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001469,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001470,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001471,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001472,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001473,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9220142726383211588",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13857,
"nextSqrtPrice": "9226601347326340028",
"nextFeeGrowthGlobal": "12525339226048789",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001474,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9220142726383211588",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13856,
"nextSqrtPrice": "36880575426567506544",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001475,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001476,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001477,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999299945865",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743074409605751",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001478,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299945865",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073009551616",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001479,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700544593",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 1001480,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000700544593",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 1001481,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999299999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072710251617",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001482,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074708851616",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001483,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700492",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 1001484,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000700492",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 1001485,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001486,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001487,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001488,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001489,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001490,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3803243216",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261888388637897570511",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001491,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3808682729",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "2586096",
"nextProtocolFee": "79982"
}
},
{
"testId": 1001492,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001493,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001494,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558284339615583",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001495,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001496,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001497,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4843390954611785642",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238611166330427829941",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001498,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286038915583",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001499,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001500,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4850215425365904805",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "3293296273823450",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 1001501,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001502,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001503,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001504,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001505,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3803243216",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963377016420",
"nextFeeGrowthGlobal": "12525340569584541",
"nextProtocolFee": "387381667100552"
}
},
{
"testId": 1001506,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001507,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001508,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001509,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1512027873",
"nextProtocolFee": "46763748"
}
},
{
"testId": 1001510,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001511,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001512,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001513,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1001514,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4843390954611804558",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968179559636",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001515,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4850215425365923748",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "3293296273823463",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 1001516,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001517,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001518,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001519,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001520,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001521,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297975880",
"nextFeeGrowthGlobal": "53795938153827191392043008",
"nextProtocolFee": "387381739370701"
}
},
{
"testId": 1001522,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1001523,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001524,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1001525,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631397909493",
"nextLiquidity": "4294967296",
"nextTickIndex": -108998,
"nextSqrtPrice": "79283661076938369",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001526,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790756036802592038871887",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001527,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001528,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1001529,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393612956703338",
"nextLiquidity": "4294967296",
"nextTickIndex": 29164,
"nextSqrtPrice": "79283660997136232767",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001530,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468367944518131671887",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001531,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001532,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1001533,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001534,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001535,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001536,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001537,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1001538,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79172702800504352553526387087",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001539,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1001540,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001541,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352164",
"nextFeeGrowthGlobal": "18135840268849512448",
"nextProtocolFee": "130595238"
}
},
{
"testId": 1001542,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633993821855",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108997,
"nextSqrtPrice": "4291960818897124352399",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001543,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1001544,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001545,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4166118277120000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1001546,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393615552615700",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29165,
"nextSqrtPrice": "4291960823217152399",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001547,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1001548,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001549,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001550,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001551,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001552,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001553,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297975879",
"nextFeeGrowthGlobal": "53795938178869101290586112",
"nextProtocolFee": "387381739551026"
}
},
{
"testId": 1001554,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79172702818951096622911586304",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001555,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001556,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001557,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4276586629",
"nextLiquidity": "4294967296",
"nextTickIndex": -109084,
"nextSqrtPrice": "78944360121424172",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001558,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4276586629",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109083,
"nextSqrtPrice": "4310407562966509551616",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001559,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001560,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001561,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "810680794",
"nextLiquidity": "4294967296",
"nextTickIndex": -4184,
"nextSqrtPrice": "14964896572963726990",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001562,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "810680794",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4183,
"nextSqrtPrice": "22738704892602351616",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001563,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1304406234",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "3804022469296128",
"nextProtocolFee": "27392"
}
},
{
"testId": 1001564,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1304406234",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "3804022469296128",
"nextProtocolFee": "27392"
}
},
{
"testId": 1001565,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001566,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001567,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001568,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001569,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297975880",
"nextFeeGrowthGlobal": "53795938154084202235035648",
"nextProtocolFee": "387381739372552"
}
},
{
"testId": 1001570,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79173987043958909834241650271",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001571,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001572,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001573,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011211673177",
"nextLiquidity": "4294967296",
"nextTickIndex": -108998,
"nextSqrtPrice": "79283656182386705",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001574,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288535415376177839615583",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001575,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "209",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001576,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001577,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298992771606551",
"nextLiquidity": "4294967296",
"nextTickIndex": 29163,
"nextSqrtPrice": "79278766747324691084",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001578,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247746518103932415583",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001579,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001580,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001581,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001582,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001583,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001584,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001585,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297906164",
"nextFeeGrowthGlobal": "53795927707054456373772288",
"nextProtocolFee": "387381664144036"
}
},
{
"testId": 1001586,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79172702800504617516382294324",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001587,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001588,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001589,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264084605560954",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001590,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011211673177",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108997,
"nextSqrtPrice": "4291961083859980259636",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001591,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001592,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "209",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001593,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294738319",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001594,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298992771606552",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29164,
"nextSqrtPrice": "4292225786073059636",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001595,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001596,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001597,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001598,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001599,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001600,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001601,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001602,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001603,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001604,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001605,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001606,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001607,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001608,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001609,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001610,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001611,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001612,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001613,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001614,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001615,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001616,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001617,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001618,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001619,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001620,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001621,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001622,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001623,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001624,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001625,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001626,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001627,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001628,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001629,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001630,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001631,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001632,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001633,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001634,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001635,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001636,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001637,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001638,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001639,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001640,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001641,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001642,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001643,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001644,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001645,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001646,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001647,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001648,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001649,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001650,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001651,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001652,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001653,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001654,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001655,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001656,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001657,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001658,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001659,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001660,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001661,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001662,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001663,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001664,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001665,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001666,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001667,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001668,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001669,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001670,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001671,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001672,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001673,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001674,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001675,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001676,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001677,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001678,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001679,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001680,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32769,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001681,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001682,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482509815052096826815",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001683,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001684,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001685,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001686,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984698538871887",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001687,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001688,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001689,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001690,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238171887",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001691,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001692,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001693,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001694,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001695,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001696,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001697,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "242353613651183408",
"nextProtocolFee": "7495472587150002"
}
},
{
"testId": 1001698,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001699,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001700,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001701,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000000",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1001702,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001703,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001704,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001705,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1001706,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001707,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001708,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001709,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001710,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001711,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001712,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001713,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9220142726383211588",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13857,
"nextSqrtPrice": "9226601347326340028",
"nextFeeGrowthGlobal": "12525339226048789",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001714,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9220142726383211588",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13856,
"nextSqrtPrice": "36880575426567506544",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001715,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001716,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001717,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999299945865",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743074409605751",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001718,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299945865",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073009551616",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001719,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700544593",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 1001720,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000700544593",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 1001721,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999299999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072710251617",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001722,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074708851616",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001723,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700492",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 1001724,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000700492",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 1001725,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001726,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001727,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001728,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001729,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001730,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3803243216",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261888388637897570511",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001731,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3808682729",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "2586096",
"nextProtocolFee": "79982"
}
},
{
"testId": 1001732,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001733,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001734,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558284339615583",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001735,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001736,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001737,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4843390954611785642",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238611166330427829941",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001738,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286038915583",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001739,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001740,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4850215425365904805",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "3293296273823450",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 1001741,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001742,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001743,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001744,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001745,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3803243216",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963377016420",
"nextFeeGrowthGlobal": "12525340569584541",
"nextProtocolFee": "387381667100552"
}
},
{
"testId": 1001746,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001747,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001748,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001749,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1512027873",
"nextProtocolFee": "46763748"
}
},
{
"testId": 1001750,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001751,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001752,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001753,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1001754,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4843390954611804558",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968179559636",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001755,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4850215425365923748",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "3293296273823463",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 1001756,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001757,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001758,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001759,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001760,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001761,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297975880",
"nextFeeGrowthGlobal": "53795938153827191392043008",
"nextProtocolFee": "387381739370701"
}
},
{
"testId": 1001762,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1001763,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001764,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1001765,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631397909493",
"nextLiquidity": "4294967296",
"nextTickIndex": -108998,
"nextSqrtPrice": "79283661076938369",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001766,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790756036802592038871887",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001767,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001768,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1001769,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393612956703338",
"nextLiquidity": "4294967296",
"nextTickIndex": 29164,
"nextSqrtPrice": "79283660997136232767",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001770,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468367944518131671887",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001771,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001772,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1001773,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001774,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001775,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001776,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001777,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1001778,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79172702800504352553526387087",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001779,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1001780,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001781,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352164",
"nextFeeGrowthGlobal": "18135840268849512448",
"nextProtocolFee": "130595238"
}
},
{
"testId": 1001782,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633993821855",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108997,
"nextSqrtPrice": "4291960818897124352399",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001783,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1001784,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001785,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4166118277120000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1001786,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393615552615700",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29165,
"nextSqrtPrice": "4291960823217152399",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001787,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1001788,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001789,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001790,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001791,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001792,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001793,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297975879",
"nextFeeGrowthGlobal": "53795938178869101290586112",
"nextProtocolFee": "387381739551026"
}
},
{
"testId": 1001794,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79172702818951096622911586304",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001795,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001796,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001797,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4276586629",
"nextLiquidity": "4294967296",
"nextTickIndex": -109084,
"nextSqrtPrice": "78944360121424172",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001798,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4276586629",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109083,
"nextSqrtPrice": "4310407562966509551616",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001799,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001800,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001801,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "810680794",
"nextLiquidity": "4294967296",
"nextTickIndex": -4184,
"nextSqrtPrice": "14964896572963726990",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001802,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "810680794",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4183,
"nextSqrtPrice": "22738704892602351616",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001803,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1304406234",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "3804022469296128",
"nextProtocolFee": "27392"
}
},
{
"testId": 1001804,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1304406234",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "3804022469296128",
"nextProtocolFee": "27392"
}
},
{
"testId": 1001805,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001806,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001807,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001808,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001809,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297975880",
"nextFeeGrowthGlobal": "53795938154084202235035648",
"nextProtocolFee": "387381739372552"
}
},
{
"testId": 1001810,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79173987043958909834241650271",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001811,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001812,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001813,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011211673177",
"nextLiquidity": "4294967296",
"nextTickIndex": -108998,
"nextSqrtPrice": "79283656182386705",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001814,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288535415376177839615583",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001815,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "209",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001816,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001817,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298992771606551",
"nextLiquidity": "4294967296",
"nextTickIndex": 29163,
"nextSqrtPrice": "79278766747324691084",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001818,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247746518103932415583",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001819,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001820,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001821,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001822,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001823,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001824,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001825,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297906164",
"nextFeeGrowthGlobal": "53795927707054456373772288",
"nextProtocolFee": "387381664144036"
}
},
{
"testId": 1001826,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79172702800504617516382294324",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001827,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001828,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001829,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264084605560954",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001830,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011211673177",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108997,
"nextSqrtPrice": "4291961083859980259636",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001831,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001832,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "209",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001833,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294738319",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001834,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298992771606552",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29164,
"nextSqrtPrice": "4292225786073059636",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001835,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001836,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1001837,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001838,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001839,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001840,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001841,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001842,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001843,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001844,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001845,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001846,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001847,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001848,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001849,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001850,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001851,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001852,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001853,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001854,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001855,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001856,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001857,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001858,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001859,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001860,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001861,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001862,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001863,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001864,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001865,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001866,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001867,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001868,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001869,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001870,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001871,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001872,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001873,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001874,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001875,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001876,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001877,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001878,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001879,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001880,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001881,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001882,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001883,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001884,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001885,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001886,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001887,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001888,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001889,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001890,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001891,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001892,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001893,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001894,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001895,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001896,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001897,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001898,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001899,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001900,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001901,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001902,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001903,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001904,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001905,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001906,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001907,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001908,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001909,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001910,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001911,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001912,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001913,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001914,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001915,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001916,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001917,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001918,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001919,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001920,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32832,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001921,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001922,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482509815052096826815",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001923,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001924,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001925,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001926,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984698538871887",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001927,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001928,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001929,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001930,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238171887",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001931,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001932,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001933,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001934,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001935,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001936,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001937,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "242353613651183408",
"nextProtocolFee": "7495472587150002"
}
},
{
"testId": 1001938,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001939,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001940,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001941,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000000",
"nextProtocolFee": "30000000000"
}
},
{
"testId": 1001942,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001943,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001944,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001945,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1001946,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001947,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001948,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001949,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001950,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001951,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001952,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001953,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9220142726383211588",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13857,
"nextSqrtPrice": "9226601347326340028",
"nextFeeGrowthGlobal": "12525339226048789",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001954,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9220142726383211588",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13856,
"nextSqrtPrice": "36880575426567506544",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001955,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001956,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001957,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999299945865",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743074409605751",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001958,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299945865",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073009551616",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001959,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700544593",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 1001960,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000700544593",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "679475671",
"nextProtocolFee": "21014711"
}
},
{
"testId": 1001961,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999299999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072710251617",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001962,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999299999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074708851616",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001963,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000700492",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 1001964,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000700492",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "679477",
"nextProtocolFee": "21014"
}
},
{
"testId": 1001965,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001966,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001967,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001968,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001969,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001970,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3803243216",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261888388637897570511",
"nextFeeGrowthGlobal": "12525339226048787",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1001971,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3808682729",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "2586096",
"nextProtocolFee": "79982"
}
},
{
"testId": 1001972,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001973,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001974,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558284339615583",
"nextFeeGrowthGlobal": "679000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1001975,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001976,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001977,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4843390954611785642",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238611166330427829941",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001978,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286038915583",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001979,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001980,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4850215425365904805",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "3293296273823450",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 1001981,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001982,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001983,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001984,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001985,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3803243216",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963377016420",
"nextFeeGrowthGlobal": "12525340569584541",
"nextProtocolFee": "387381667100552"
}
},
{
"testId": 1001986,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001987,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001988,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001989,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1512027873",
"nextProtocolFee": "46763748"
}
},
{
"testId": 1001990,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001991,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001992,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001993,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "970000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1001994,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4843390954611804558",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968179559636",
"nextFeeGrowthGlobal": "679000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1001995,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4850215425365923748",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "3293296273823463",
"nextProtocolFee": "101854523932684"
}
},
{
"testId": 1001996,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "1",
"nextProtocolFee": "0"
}
},
{
"testId": 1001997,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001998,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1001999,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002000,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002001,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297975880",
"nextFeeGrowthGlobal": "53795938153827191392043008",
"nextProtocolFee": "387381739370701"
}
},
{
"testId": 1002002,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1002003,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002004,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1002005,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631397909493",
"nextLiquidity": "4294967296",
"nextTickIndex": -108998,
"nextSqrtPrice": "79283661076938369",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1002006,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790756036802592038871887",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1002007,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1002008,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1002009,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393612956703338",
"nextLiquidity": "4294967296",
"nextTickIndex": 29164,
"nextSqrtPrice": "79283660997136232767",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1002010,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468367944518131671887",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1002011,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1002012,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125091321654655135",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "364801669018193915543552",
"nextProtocolFee": "2626917754747"
}
},
{
"testId": 1002013,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002014,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002015,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002016,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002017,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1002018,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79172702800504352553526387087",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1002019,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1002020,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002021,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352164",
"nextFeeGrowthGlobal": "18135840268849512448",
"nextProtocolFee": "130595238"
}
},
{
"testId": 1002022,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633993821855",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108997,
"nextSqrtPrice": "4291960818897124352399",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1002023,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1002024,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1002025,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4166118277120000000",
"nextProtocolFee": "30000000"
}
},
{
"testId": 1002026,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393615552615700",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29165,
"nextSqrtPrice": "4291960823217152399",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1002027,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125091320376996818",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "364801665292180937244672",
"nextProtocolFee": "2626917727916"
}
},
{
"testId": 1002028,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1002029,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002030,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002031,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002032,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002033,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297975879",
"nextFeeGrowthGlobal": "53795938178869101290586112",
"nextProtocolFee": "387381739551026"
}
},
{
"testId": 1002034,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79172702818951096622911586304",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1002035,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002036,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002037,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4276586629",
"nextLiquidity": "4294967296",
"nextTickIndex": -109084,
"nextSqrtPrice": "78944360121424172",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1002038,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4276586629",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109083,
"nextSqrtPrice": "4310407562966509551616",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1002039,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002040,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002041,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "810680794",
"nextLiquidity": "4294967296",
"nextTickIndex": -4184,
"nextSqrtPrice": "14964896572963726990",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1002042,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "810680794",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4183,
"nextSqrtPrice": "22738704892602351616",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1002043,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1304406234",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "3804022469296128",
"nextProtocolFee": "27392"
}
},
{
"testId": 1002044,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1304406234",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "3804022469296128",
"nextProtocolFee": "27392"
}
},
{
"testId": 1002045,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002046,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002047,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002048,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002049,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297975880",
"nextFeeGrowthGlobal": "53795938154084202235035648",
"nextProtocolFee": "387381739372552"
}
},
{
"testId": 1002050,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79173987043958909834241650271",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1002051,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002052,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002053,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011211673177",
"nextLiquidity": "4294967296",
"nextTickIndex": -108998,
"nextSqrtPrice": "79283656182386705",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1002054,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288535415376177839615583",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1002055,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "209",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1002056,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002057,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298992771606551",
"nextLiquidity": "4294967296",
"nextTickIndex": 29163,
"nextSqrtPrice": "79278766747324691084",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1002058,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247746518103932415583",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1002059,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1002060,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002061,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002062,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002063,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002064,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002065,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443623,
"nextSqrtPrice": "4297906164",
"nextFeeGrowthGlobal": "53795927707054456373772288",
"nextProtocolFee": "387381664144036"
}
},
{
"testId": 1002066,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446744073709551615",
"nextLiquidity": "4294967296",
"nextTickIndex": 443622,
"nextSqrtPrice": "79172702800504617516382294324",
"nextFeeGrowthGlobal": "53795922347185491465469952",
"nextProtocolFee": "387381625547900"
}
},
{
"testId": 1002067,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002068,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002069,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264084605560954",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1002070,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011211673177",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 108997,
"nextSqrtPrice": "4291961083859980259636",
"nextFeeGrowthGlobal": "2916282793984000000",
"nextProtocolFee": "21000000"
}
},
{
"testId": 1002071,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002072,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "209",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1002073,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294738319",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1002074,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298992771606552",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29164,
"nextSqrtPrice": "4292225786073059636",
"nextFeeGrowthGlobal": "2916282793984000",
"nextProtocolFee": "21000"
}
},
{
"testId": 1002075,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "AmountCalcOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002076,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "2",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "4294967296",
"nextProtocolFee": "0"
}
},
{
"testId": 1002077,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002078,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002079,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002080,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002081,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002082,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002083,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002084,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002085,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002086,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002087,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002088,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002089,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002090,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002091,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002092,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002093,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002094,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002095,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002096,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002097,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002098,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002099,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002100,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002101,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002102,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002103,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002104,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002105,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002106,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002107,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002108,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002109,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002110,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002111,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002112,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002113,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002114,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002115,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002116,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002117,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002118,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002119,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002120,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002121,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002122,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002123,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002124,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002125,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002126,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002127,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002128,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002129,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002130,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002131,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002132,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002133,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002134,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002135,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002136,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002137,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002138,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002139,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002140,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002141,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002142,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002143,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002144,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002145,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002146,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002147,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002148,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002149,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002150,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002151,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002152,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002153,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002154,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002155,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002156,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002157,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002158,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002159,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002160,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.07%/300 fee",
"tickSpacing": 32896,
"feeRate": 700,
"protocolFeeRate": 300,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002161,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002162,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482522727772948423502",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002163,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002164,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002165,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002166,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002167,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002168,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002169,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002170,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002171,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002172,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002173,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002174,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002175,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002176,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002177,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "249849086238333410",
"nextProtocolFee": "0"
}
},
{
"testId": 1002178,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002179,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002180,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002181,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002182,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002183,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002184,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002185,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002186,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002187,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002188,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002189,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002190,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002191,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002192,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002193,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9223372036854775807",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13864,
"nextSqrtPrice": "9223372036854775809",
"nextFeeGrowthGlobal": "2",
"nextProtocolFee": "0"
}
},
{
"testId": 1002194,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9223372036854775807",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13863,
"nextSqrtPrice": "36893488147419103231",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002195,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002196,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002197,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999999945789",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002198,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999945789",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002199,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000054211",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002200,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000000054211",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002201,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002202,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002203,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000001",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002204,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000000001",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002205,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002206,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002207,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002208,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002209,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002210,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3805907313",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261901301358749167198",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002211,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3806016651",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002212,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002213,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002214,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002215,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "207",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002216,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002217,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846783690399666109",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238607773594639949474",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002218,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002219,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002220,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846820274568148671",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002221,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002222,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002223,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002224,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002225,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3805907313",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963374352323",
"nextFeeGrowthGlobal": "799491063",
"nextProtocolFee": "0"
}
},
{
"testId": 1002226,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002227,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002228,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002229,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1558791621",
"nextProtocolFee": "0"
}
},
{
"testId": 1002230,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002231,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002232,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "207",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002233,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002234,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4846783690399685038",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002235,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4846820274568167601",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002236,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002237,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002238,
"description": "In a ts_32769 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002239,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002240,
"description": "In a ts_32769 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002241,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390465014441",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002242,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002243,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390465014441",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002244,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002245,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631397922415",
"nextLiquidity": "4294967296",
"nextTickIndex": -109012,
"nextSqrtPrice": "79228162514184568",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002246,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790759043279699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002247,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002248,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002249,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393612969625104",
"nextLiquidity": "4294967296",
"nextTickIndex": 29150,
"nextSqrtPrice": "79228162434494115674",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002250,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468370950995238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002251,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002252,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002253,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002254,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002255,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002256,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002257,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002258,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446397389145866034",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002259,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002260,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446397389145866034",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002261,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352163",
"nextFeeGrowthGlobal": "499845579489148928",
"nextProtocolFee": "0"
}
},
{
"testId": 1002262,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633993834777",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109011,
"nextSqrtPrice": "4294967296004324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002263,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002264,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002265,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4294967296000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002266,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393615565537466",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29151,
"nextSqrtPrice": "4294967300324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002267,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002268,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002269,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002270,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002271,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002272,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002273,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397386170047146",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002274,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446397384850898739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002275,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397386170047146",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002276,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446397384850898739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002277,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4276599441",
"nextLiquidity": "4294967296",
"nextTickIndex": -109098,
"nextSqrtPrice": "78889335398723645",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002278,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4276599441",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109097,
"nextSqrtPrice": "4313414040073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002279,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397386170047146",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002280,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446397384850898739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002281,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "811141420",
"nextLiquidity": "4294967296",
"nextTickIndex": -4187,
"nextSqrtPrice": "14962918198591332262",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002282,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "811141420",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4186,
"nextSqrtPrice": "22741711369709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002283,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1303493149",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002284,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1303493149",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002285,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002286,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002287,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002288,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002289,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390464952749",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002290,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002291,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390464952749",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002292,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002293,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011211686098",
"nextLiquidity": "4294967296",
"nextTickIndex": -109012,
"nextSqrtPrice": "79228157626482877",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002294,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288538421853285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002295,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002296,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002297,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298992784526723",
"nextLiquidity": "4294967296",
"nextTickIndex": 29149,
"nextSqrtPrice": "79223275034022928390",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002298,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247749524581039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002299,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002300,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002301,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002302,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002303,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002304,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002305,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002306,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446397389145804343",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002307,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002308,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446397389145804343",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002309,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264083989386607",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002310,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011211686099",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109011,
"nextSqrtPrice": "4294967560967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002311,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002312,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002313,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294118022",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002314,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298992784526723",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29150,
"nextSqrtPrice": "4295232263180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002315,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002316,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002317,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002318,
"description": "In a ts_32769 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002319,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002320,
"description": "In a ts_32769 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002321,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002322,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002323,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002324,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002325,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002326,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002327,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002328,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002329,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002330,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002331,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002332,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002333,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002334,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002335,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002336,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002337,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002338,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002339,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002340,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002341,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002342,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002343,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002344,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002345,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002346,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002347,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002348,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002349,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002350,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002351,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002352,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002353,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002354,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002355,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002356,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002357,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002358,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002359,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002360,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002361,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002362,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002363,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002364,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002365,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002366,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002367,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002368,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002369,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002370,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002371,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002372,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002373,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002374,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002375,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002376,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002377,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002378,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002379,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002380,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002381,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002382,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002383,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002384,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002385,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002386,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002387,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002388,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002389,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002390,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002391,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002392,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002393,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002394,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002395,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002396,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002397,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002398,
"description": "In a ts_32769 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002399,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002400,
"description": "In a ts_32769 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32769,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002401,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002402,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482522727772948423502",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002403,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002404,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002405,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002406,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002407,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002408,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002409,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002410,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002411,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002412,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002413,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002414,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002415,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002416,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002417,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "249849086238333410",
"nextProtocolFee": "0"
}
},
{
"testId": 1002418,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002419,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002420,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002421,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002422,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002423,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002424,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002425,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002426,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002427,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002428,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002429,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002430,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002431,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002432,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002433,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9223372036854775807",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13864,
"nextSqrtPrice": "9223372036854775809",
"nextFeeGrowthGlobal": "2",
"nextProtocolFee": "0"
}
},
{
"testId": 1002434,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9223372036854775807",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13863,
"nextSqrtPrice": "36893488147419103231",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002435,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002436,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002437,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999999945789",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002438,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999945789",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002439,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000054211",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002440,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000000054211",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002441,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002442,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002443,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000001",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002444,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000000001",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002445,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002446,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002447,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002448,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002449,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002450,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3805907313",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261901301358749167198",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002451,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3806016651",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002452,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002453,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002454,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002455,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "207",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002456,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002457,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846783690399666109",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238607773594639949474",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002458,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002459,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002460,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846820274568148671",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002461,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002462,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002463,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002464,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002465,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3805907313",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963374352323",
"nextFeeGrowthGlobal": "799491063",
"nextProtocolFee": "0"
}
},
{
"testId": 1002466,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002467,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002468,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002469,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1558791621",
"nextProtocolFee": "0"
}
},
{
"testId": 1002470,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002471,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002472,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "207",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002473,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002474,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4846783690399685038",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002475,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4846820274568167601",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002476,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002477,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002478,
"description": "In a ts_32832 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002479,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002480,
"description": "In a ts_32832 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002481,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390465014441",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002482,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002483,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390465014441",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002484,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002485,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631397922415",
"nextLiquidity": "4294967296",
"nextTickIndex": -109012,
"nextSqrtPrice": "79228162514184568",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002486,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790759043279699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002487,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002488,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002489,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393612969625104",
"nextLiquidity": "4294967296",
"nextTickIndex": 29150,
"nextSqrtPrice": "79228162434494115674",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002490,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468370950995238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002491,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002492,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002493,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002494,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002495,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002496,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002497,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002498,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446397389145866034",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002499,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002500,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446397389145866034",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002501,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352163",
"nextFeeGrowthGlobal": "499845579489148928",
"nextProtocolFee": "0"
}
},
{
"testId": 1002502,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633993834777",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109011,
"nextSqrtPrice": "4294967296004324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002503,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002504,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002505,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4294967296000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002506,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393615565537466",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29151,
"nextSqrtPrice": "4294967300324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002507,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002508,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002509,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002510,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002511,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002512,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002513,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397386170047146",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002514,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446397384850898739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002515,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397386170047146",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002516,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446397384850898739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002517,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4276599441",
"nextLiquidity": "4294967296",
"nextTickIndex": -109098,
"nextSqrtPrice": "78889335398723645",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002518,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4276599441",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109097,
"nextSqrtPrice": "4313414040073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002519,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397386170047146",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002520,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446397384850898739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002521,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "811141420",
"nextLiquidity": "4294967296",
"nextTickIndex": -4187,
"nextSqrtPrice": "14962918198591332262",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002522,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "811141420",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4186,
"nextSqrtPrice": "22741711369709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002523,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1303493149",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002524,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1303493149",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002525,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002526,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002527,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002528,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002529,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390464952749",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002530,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002531,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390464952749",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002532,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002533,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011211686098",
"nextLiquidity": "4294967296",
"nextTickIndex": -109012,
"nextSqrtPrice": "79228157626482877",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002534,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288538421853285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002535,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002536,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002537,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298992784526723",
"nextLiquidity": "4294967296",
"nextTickIndex": 29149,
"nextSqrtPrice": "79223275034022928390",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002538,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247749524581039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002539,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002540,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002541,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002542,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002543,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002544,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002545,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002546,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446397389145804343",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002547,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002548,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446397389145804343",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002549,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264083989386607",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002550,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011211686099",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109011,
"nextSqrtPrice": "4294967560967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002551,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002552,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002553,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294118022",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002554,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298992784526723",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29150,
"nextSqrtPrice": "4295232263180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002555,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002556,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002557,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002558,
"description": "In a ts_32832 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002559,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002560,
"description": "In a ts_32832 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002561,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002562,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002563,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002564,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002565,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002566,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002567,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002568,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002569,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002570,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002571,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002572,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002573,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002574,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002575,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002576,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002577,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002578,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002579,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002580,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002581,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002582,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002583,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002584,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002585,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002586,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002587,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002588,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002589,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002590,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002591,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002592,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002593,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002594,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002595,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002596,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002597,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002598,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002599,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002600,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002601,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002602,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002603,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002604,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002605,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002606,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002607,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002608,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002609,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002610,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002611,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002612,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002613,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002614,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002615,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002616,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002617,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002618,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002619,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002620,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002621,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002622,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002623,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002624,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002625,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002626,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002627,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002628,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002629,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002630,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002631,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002632,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002633,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002634,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002635,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002636,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002637,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002638,
"description": "In a ts_32832 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002639,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002640,
"description": "In a ts_32832 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32832,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002641,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002642,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786482522727772948423502",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002643,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "2",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786445629239625529320272",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002644,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002645,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002646,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075984699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002647,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075982699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002648,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002649,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002650,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786464075983700238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002651,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786464075983698238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002652,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002653,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002654,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002655,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002656,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002657,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352398",
"nextFeeGrowthGlobal": "249849086238333410",
"nextProtocolFee": "0"
}
},
{
"testId": 1002658,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002659,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002660,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002661,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002662,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002663,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002664,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002665,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002666,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002667,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002668,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002669,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002670,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002671,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002672,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002673,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "9223372036854775807",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -13864,
"nextSqrtPrice": "9223372036854775809",
"nextFeeGrowthGlobal": "2",
"nextProtocolFee": "0"
}
},
{
"testId": 1002674,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "9223372036854775807",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 13863,
"nextSqrtPrice": "36893488147419103231",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002675,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002676,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002677,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "999999945789",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002678,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999945789",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002679,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000054211",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446743073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002680,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1000000054211",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446745073709605827",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002681,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "999999999",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002682,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "999999999",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002683,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000001",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -1,
"nextSqrtPrice": "18446744072709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002684,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1000000001",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 0,
"nextSqrtPrice": "18446744074709551617",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002685,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002686,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002687,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002688,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002689,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002690,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "3805907313",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284261901301358749167198",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002691,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "3806016651",
"amountB": "18446744073709551615",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284225007813211330063968",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002692,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002693,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002694,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "206",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454558285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002695,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "207",
"amountB": "1000000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454556285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002696,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "MultiplicationShiftRightOverflow",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002697,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846783690399666109",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284238607773594639949474",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002698,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284243454557286039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002699,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284243454557284039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002700,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "4846820274568148671",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284248301377559607764254",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002701,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002702,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002703,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002704,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002705,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446744073709551615",
"amountB": "3805907313",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264963374352323",
"nextFeeGrowthGlobal": "799491063",
"nextProtocolFee": "0"
}
},
{
"testId": 1002706,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002707,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002708,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002709,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "206",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264967180259430",
"nextFeeGrowthGlobal": "1558791621",
"nextProtocolFee": "0"
}
},
{
"testId": 1002710,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002711,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "TokenMaxExceeded",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002712,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "207",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259843",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002713,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259636",
"nextFeeGrowthGlobal": "1000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002714,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4846783690399685038",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002715,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "4846820274568167601",
"amountB": "1000000000",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002716,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "18446744073709551616",
"nextTickIndex": -223027,
"nextSqrtPrice": "264967180259637",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002717,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002718,
"description": "In a ts_32896 pool with 2^64 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002719,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002720,
"description": "In a ts_32896 pool with 2^64 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "18446744073709551616",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002721,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390465014441",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002722,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002723,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390465014441",
"amountB": "18321393631416369158",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002724,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002725,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "18321393631397922415",
"nextLiquidity": "4294967296",
"nextTickIndex": -109012,
"nextSqrtPrice": "79228162514184568",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002726,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689790759043279699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002727,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689782169108687699238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002728,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002729,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "18321393612969625104",
"nextLiquidity": "4294967296",
"nextTickIndex": 29150,
"nextSqrtPrice": "79228162434494115674",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002730,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443500,
"nextSqrtPrice": "78689786468370950995238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002731,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 443499,
"nextSqrtPrice": "78689786459781016403238871887",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002732,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "125003757729496876",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002733,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002734,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002735,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002736,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002737,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002738,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446397389145866034",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002739,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002740,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393634012281520",
"amountB": "18446397389145866034",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002741,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443501,
"nextSqrtPrice": "4324352163",
"nextFeeGrowthGlobal": "499845579489148928",
"nextProtocolFee": "0"
}
},
{
"testId": 1002742,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393633993834777",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109011,
"nextSqrtPrice": "4294967296004324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002743,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002744,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002745,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352399",
"nextFeeGrowthGlobal": "4294967296000000000",
"nextProtocolFee": "0"
}
},
{
"testId": 1002746,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "18321393615565537466",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29151,
"nextSqrtPrice": "4294967300324352399",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002747,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "125003756452732920",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002748,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -443500,
"nextSqrtPrice": "4324352400",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002749,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002750,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002751,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002752,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002753,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397386170047146",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002754,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446397384850898739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002755,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397386170047146",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002756,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446397384850898739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002757,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "4276599441",
"nextLiquidity": "4294967296",
"nextTickIndex": -109098,
"nextSqrtPrice": "78889335398723645",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002758,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4276599441",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109097,
"nextSqrtPrice": "4313414040073709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002759,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397386170047146",
"amountB": "4294967294",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002760,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "4294967294",
"amountB": "18446397384850898739",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002761,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "811141420",
"nextLiquidity": "4294967296",
"nextTickIndex": -4187,
"nextSqrtPrice": "14962918198591332262",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002762,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "811141420",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 4186,
"nextSqrtPrice": "22741711369709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002763,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1303493149",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -5302,
"nextSqrtPrice": "14151776777709551616",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002764,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1303493149",
"nextLiquidity": "4294967296",
"nextTickIndex": 5301,
"nextSqrtPrice": "24045204518553235921",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002765,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002766,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002767,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002768,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002769,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390464952749",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002770,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002771,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446397390464952749",
"amountB": "299011230132840",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002772,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002773,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "299011211686098",
"nextLiquidity": "4294967296",
"nextTickIndex": -109012,
"nextSqrtPrice": "79228157626482877",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002774,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "205",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223093,
"nextSqrtPrice": "1288538421853285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002775,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "208",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 222959,
"nextSqrtPrice": "1279948487261285039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002776,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002777,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "298992784526723",
"nextLiquidity": "4294967296",
"nextTickIndex": 29149,
"nextSqrtPrice": "79223275034022928390",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002778,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223027,
"nextSqrtPrice": "1284247749524581039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002779,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 223026,
"nextSqrtPrice": "1284239159589989039615583",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002780,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "61691",
"amountB": "18446098377915733193",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002781,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002782,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002783,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002784,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002785,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002786,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446397389145804343",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002787,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002788,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011230132841",
"amountB": "18446397389145804343",
"nextLiquidity": "4294967296",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002789,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "205",
"nextLiquidity": "4294967296",
"nextTickIndex": -223094,
"nextSqrtPrice": "264083989386607",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002790,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "299011211686099",
"amountB": "1000000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": 109011,
"nextSqrtPrice": "4294967560967180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002791,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002792,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000000",
"amountB": "208",
"nextLiquidity": "4294967296",
"nextTickIndex": -222960,
"nextSqrtPrice": "265856298364822",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002793,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "0",
"nextLiquidity": "4294967296",
"nextTickIndex": -223028,
"nextSqrtPrice": "264966294118022",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002794,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "298992784526723",
"amountB": "1000000000",
"nextLiquidity": "4294967296",
"nextTickIndex": -29150,
"nextSqrtPrice": "4295232263180259636",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002795,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "18446098379234881599",
"amountB": "61691",
"nextLiquidity": "4294967296",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002796,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "1000000000",
"amountB": "1",
"nextLiquidity": "4294967296",
"nextTickIndex": -223027,
"nextSqrtPrice": "264968066407178",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002797,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002798,
"description": "In a ts_32896 pool with 2^32 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002799,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002800,
"description": "In a ts_32896 pool with 2^32 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "4294967296",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002801,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002802,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002803,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002804,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002805,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002806,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002807,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002808,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002809,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002810,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002811,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002812,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002813,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002814,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002815,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002816,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near max tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002817,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002818,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002819,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002820,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002821,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002822,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002823,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002824,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002825,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002826,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002827,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002828,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002829,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002830,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002831,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002832,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at near min tick with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -443500,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002833,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002834,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002835,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002836,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002837,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002838,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002839,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002840,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002841,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002842,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002843,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002844,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002845,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002846,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002847,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002848,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 0 (p = 1) with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 0,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002849,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002850,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002851,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002852,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002853,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002854,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002855,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002856,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002857,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002858,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002859,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002860,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002861,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002862,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002863,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002864,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick 223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": 223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002865,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002866,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1.8446744073709551615e+19 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002867,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1.8446744073709551615e+19 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002868,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1.8446744073709551615e+19 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "18446744073709551615",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002869,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002870,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+12 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002871,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+12 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002872,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+12 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002873,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002874,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 1e+9 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002875,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 1e+9 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": -443637,
"nextSqrtPrice": "4295048016",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002876,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 1e+9 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "1000000000",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 443636,
"nextSqrtPrice": "79226673515401279992447579055",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002877,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenA to tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002878,
"description": "In a ts_32896 pool with 0 liquidity, swap exactly 0 tokenB to tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": true,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002879,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenA to exactly 0 tokenB at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": true,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
},
{
"testId": 1002880,
"description": "In a ts_32896 pool with 0 liquidity, swap tokenB to exactly 0 tokenA at tick -223027 with 0.00%/0 fee",
"tickSpacing": 32896,
"feeRate": 0,
"protocolFeeRate": 0,
"liquidity": "0",
"currTickIndex": -223027,
"tradeAmount": "0",
"amountIsInput": false,
"aToB": false,
"expectation": {
"exception": "ZeroTradableAmount",
"amountA": "0",
"amountB": "0",
"nextLiquidity": "0",
"nextTickIndex": 0,
"nextSqrtPrice": "0",
"nextFeeGrowthGlobal": "0",
"nextProtocolFee": "0"
}
}
]
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/tests/generate_swap_testcase_json.ts
|
import { writeFileSync } from "fs";
import path from "path";
import Decimal from "decimal.js";
import {
MAX_SQRT_PRICE,
MAX_TICK_INDEX,
MIN_SQRT_PRICE,
MIN_TICK_INDEX,
TICK_ARRAY_SIZE,
PriceMath,
} from "@orca-so/whirlpools-sdk";
import BN from "bn.js";
Decimal.set({ toExpPos: 8, toExpNeg: -8, precision: 128 });
const MAX_FEE_RATE = 10_000;
const FEE_RATE_MUL_VALUE = 1_000_000;
const MAX_PROTOCOL_FEE_RATE = 2500;
const PROTOCOL_FEE_RATE_MUL_VALUE = 10_000;
const U64_MAX = new Decimal(2).pow(64).sub(1);
const U128_MAX = new Decimal(2).pow(128).sub(1);
const U192_MAX = new Decimal(2).pow(192).sub(1);
const U256_MAX = new Decimal(2).pow(256).sub(1);
export type TestCaseJSON = {
testId: number;
description: string;
tickSpacing: number;
feeRate: number;
protocolFeeRate: number;
liquidity: string;
currTickIndex: number;
tradeAmount: string;
amountIsInput: boolean;
aToB: boolean;
expectation: TestCaseExpectationJSON;
};
export type TestCaseExpectationJSON = {
exception: string;
amountA: string;
amountB: string;
nextLiquidity: string;
nextTickIndex: number;
nextSqrtPrice: string;
nextFeeGrowthGlobal: string;
nextProtocolFee: string;
};
enum LiquiditySetup {
MaxLiquidity,
ThirdQuartile,
FirstQuartile,
Zero,
}
enum CurrTickSetup {
NearMax = 443500,
NearMin = -443500,
At1 = 0,
At10 = 223027,
AtNeg10 = -223027,
}
const feeRateVariants = [
// TODO: Verify these values
[MAX_FEE_RATE, MAX_PROTOCOL_FEE_RATE],
[65535, 600], // Regular pool
[700, 300], // Stable pool
[0, 0],
];
const tickSpacingVariantsForConcentratedPool = [1, 8, 128];
const tickSpacingVariantsForSplashPool = [32768 + 1, 32768 + 64, 32768 + 128];
const liquidityVariantsForConcentratedPool = [
LiquiditySetup.MaxLiquidity,
LiquiditySetup.ThirdQuartile,
LiquiditySetup.FirstQuartile,
LiquiditySetup.Zero,
];
const liquidityVariantsForSplashPool = [
// max liquidity = u64 max
LiquiditySetup.ThirdQuartile,
LiquiditySetup.FirstQuartile,
LiquiditySetup.Zero,
];
const liquidityValues = [
new Decimal(2).pow(110),
new Decimal(2).pow(64),
new Decimal(2).pow(32),
new Decimal(0),
];
const currTickVariants = [
CurrTickSetup.NearMax,
CurrTickSetup.NearMin,
CurrTickSetup.At1,
CurrTickSetup.At10,
CurrTickSetup.AtNeg10,
];
const tradeAmountVariants = [
new Decimal(2).pow(64).sub(1), // u64::max
new Decimal(10).pow(12), // 1 million in 10^6
new Decimal(10).pow(9), // 1000 in 10^6
new Decimal(0),
];
const exactInputVariants = [true, false];
const aToBVariants = [true, false];
const testCase = 0;
const TEST_CASE_ID_BASE_CONCENTRATED_POOL = 0;
const TEST_CASE_ID_BASE_SPLASH_POOL = 1_000_000;
main();
function main() {
// ConcentratedPool
generateTests(
TEST_CASE_ID_BASE_CONCENTRATED_POOL,
path.join("swap_test_cases.json"),
feeRateVariants,
tickSpacingVariantsForConcentratedPool,
liquidityVariantsForConcentratedPool,
currTickVariants,
tradeAmountVariants,
exactInputVariants,
aToBVariants,
);
// SplashPool
generateTests(
TEST_CASE_ID_BASE_SPLASH_POOL,
path.join("swap_test_cases_splash_pool.json"),
feeRateVariants,
tickSpacingVariantsForSplashPool,
liquidityVariantsForSplashPool,
currTickVariants,
tradeAmountVariants,
exactInputVariants,
aToBVariants,
);
}
function generateTests(
testIdBase: number,
testCaseOutputFilePath: string,
feeRateVariants: number[][],
tickSpacingVariants: number[],
liquidityVariants: LiquiditySetup[],
currTickVariants: CurrTickSetup[],
tradeAmountVariants: Decimal[],
exactInputVariants: boolean[],
aToBVariants: boolean[],
) {
let testId = testIdBase;
let testCases: TestCaseJSON[] = [];
// lol.
feeRateVariants.forEach((feeRateVariant) => {
tickSpacingVariants.forEach((tickSpacingVariant) => {
liquidityVariants.forEach((liquiditySetup) => {
currTickVariants.forEach((currTickVariant) => {
tradeAmountVariants.forEach((tradeAmount) => {
exactInputVariants.forEach((exactInputVariant) => {
aToBVariants.forEach((aToB) => {
testId++;
if (testCase > 0 && testId != testCase) {
return;
}
let expectation = generateExpectation(
feeRateVariant[0],
feeRateVariant[1],
getLiquidityValue(liquiditySetup),
currTickVariant,
tickSpacingVariant,
tradeAmount,
exactInputVariant,
aToB,
);
testCases.push({
testId,
description: getDescription(
feeRateVariant[0],
feeRateVariant[1],
liquiditySetup,
tickSpacingVariant,
currTickVariant,
tradeAmount,
exactInputVariant,
aToB,
),
tickSpacing: tickSpacingVariant,
feeRate: feeRateVariant[0],
protocolFeeRate: feeRateVariant[1],
liquidity: getLiquidityValue(liquiditySetup).toFixed(0, 1),
currTickIndex: currTickVariant,
tradeAmount: tradeAmount.toFixed(0, 1),
amountIsInput: exactInputVariant,
aToB: aToB,
expectation: expectation,
});
});
});
});
});
});
});
});
writeJson(testCaseOutputFilePath, testCases);
}
function generateExpectation(
feeRate: number,
protocolRate: number,
liquidity: Decimal,
currTick: number,
tickSpacing: number,
tradeAmount: Decimal,
exactInput: boolean,
aToB: boolean,
): TestCaseExpectationJSON {
try {
let tradeInfo = getTradeInfo(
currTick,
tickSpacing,
liquidity,
tradeAmount,
feeRate,
exactInput,
aToB,
);
let nextFees = getFeeIncrements(
tradeInfo.feeAmount,
protocolRate,
liquidity,
);
return {
exception: "",
amountA: tradeInfo.amountA.toFixed(0, 1),
amountB: tradeInfo.amountB.toFixed(0, 1),
nextLiquidity: liquidity.toFixed(0, 1),
nextTickIndex: tradeInfo.nextTick,
nextSqrtPrice: tradeInfo.nextSqrtPrice.toFixed(0, 1),
nextFeeGrowthGlobal: nextFees.nextFeeGrowthGlobal,
nextProtocolFee: nextFees.nextProtocolFee,
};
} catch (e) {
return {
exception: (<Error>e).message,
amountA: "0",
amountB: "0",
nextLiquidity: "0",
nextTickIndex: 0,
nextSqrtPrice: "0",
nextFeeGrowthGlobal: "0",
nextProtocolFee: "0",
};
}
}
/**
* Expectation Helpers
*/
function getTradeInfo(
currTick: number,
tickSpacing: number,
liquidity: Decimal,
tradeAmount: Decimal,
feeRate: number,
exactInput: boolean,
aToB: boolean,
) {
let feeAmount = new Decimal(0);
let currSqrtPrice = toDecimal(tickIndexToSqrtPriceX64(currTick));
let nextSqrtPrice: Decimal;
let targetSqrtPrice: Decimal = toDecimal(
tickIndexToSqrtPriceX64(getLastTickInSequence(currTick, tickSpacing, aToB)),
);
if (tradeAmount.eq(0)) {
throw new Error("ZeroTradableAmount");
}
/**
* If the swap states that the trade_amount is the maximum input, the actual tradable input is max - fees
* Otherwise, we derive the required amountIn (incl fees) from the specified output (trade_amount)
*/
if (exactInput) {
let postFeeTradeAmount = tradeAmount
.mul(FEE_RATE_MUL_VALUE - feeRate)
.div(FEE_RATE_MUL_VALUE)
// Note(yugure) add .floor() to make it integer
.floor();
const tryAmountIn = aToB
? tryGetAmountADelta(targetSqrtPrice, currSqrtPrice, liquidity, true)
: tryGetAmountBDelta(targetSqrtPrice, currSqrtPrice, liquidity, true);
// Note(yugure): original script used tradeAmount, but postFeeTradeAmount should be used.
if (
tryAmountIn.type === "ExceedsMax" ||
(tryAmountIn.type === "Valid" && tryAmountIn.value.gt(postFeeTradeAmount))
) {
nextSqrtPrice = getNextSqrtPriceFromInput(
currSqrtPrice,
liquidity,
postFeeTradeAmount,
exactInput,
aToB,
);
} else {
nextSqrtPrice = targetSqrtPrice;
}
} else {
const tryAmountOut = aToB
? tryGetAmountBDelta(targetSqrtPrice, currSqrtPrice, liquidity, false)
: tryGetAmountADelta(targetSqrtPrice, currSqrtPrice, liquidity, false);
if (
tryAmountOut.type === "ExceedsMax" ||
(tryAmountOut.type === "Valid" && tryAmountOut.value.gt(tradeAmount))
) {
nextSqrtPrice = getNextSqrtPriceFromOutput(
currSqrtPrice,
liquidity,
tradeAmount,
exactInput,
aToB,
);
} else {
nextSqrtPrice = targetSqrtPrice;
}
}
nextSqrtPrice = Decimal.min(
Decimal.max(nextSqrtPrice, MIN_SQRT_PRICE),
MAX_SQRT_PRICE,
);
let maxSwap = nextSqrtPrice.eq(targetSqrtPrice);
let amountIn: Decimal;
let amountOut: Decimal;
if (aToB) {
amountIn = getAmountADelta(nextSqrtPrice, currSqrtPrice, liquidity, true);
amountOut = getAmountBDelta(nextSqrtPrice, currSqrtPrice, liquidity, false);
} else {
amountIn = getAmountBDelta(currSqrtPrice, nextSqrtPrice, liquidity, true);
amountOut = getAmountADelta(currSqrtPrice, nextSqrtPrice, liquidity, false);
}
if (!exactInput && amountOut.gt(tradeAmount)) {
amountOut = tradeAmount;
}
if (exactInput && !maxSwap) {
feeAmount = tradeAmount.sub(amountIn);
} else {
feeAmount = amountIn
.mul(feeRate)
.div(FEE_RATE_MUL_VALUE - feeRate)
.ceil();
}
let remaining: Decimal = tradeAmount,
calculated: Decimal;
if (exactInput) {
remaining = remaining.sub(amountIn.add(feeAmount));
calculated = amountOut;
} else {
remaining = remaining.sub(amountOut);
calculated = amountIn.add(feeAmount);
}
// Note(yugure): ported from swap_manager.rs (checked_sub and checked_add)
if (remaining.isNegative()) {
// checked_sub equivalent
throw new Error("AmountRemainingOverflow");
}
if (calculated.gt(U64_MAX)) {
// checked_add equivalent
throw new Error("AmountCalcOverflow");
}
let amountA: Decimal, amountB: Decimal;
if (aToB == exactInput) {
amountA = tradeAmount.sub(remaining);
amountB = calculated;
} else {
amountA = calculated;
amountB = tradeAmount.sub(remaining);
}
if (amountA.gt(U64_MAX) || amountB.gt(U64_MAX)) {
// Note(yugure): in the current implementation, this is not possible (so I use panic)
panic();
throw new Error("TokenMaxExceeded");
}
if (amountA.lt(0) || amountB.lt(0)) {
// Note(yugure): in the current implementation, this is not possible (so I use panic)
panic();
throw new Error("TokenMinSubceeded");
}
let nextTick = sqrtPriceX64ToTickIndex(toBN(nextSqrtPrice));
if (nextSqrtPrice.eq(targetSqrtPrice) && aToB) {
nextTick -= 1;
}
return {
amountA,
amountB,
nextSqrtPrice,
nextTick,
feeAmount,
};
}
function getFeeIncrements(
feeAmount: Decimal,
protocolRate: number,
currLiquidity: Decimal,
) {
let globalFee = feeAmount,
protocolFee = new Decimal(0);
if (protocolRate > 0) {
let delta = globalFee
.mul(protocolRate)
.div(PROTOCOL_FEE_RATE_MUL_VALUE)
.floor();
globalFee = globalFee.sub(delta);
protocolFee = delta;
}
let feeGlobalForInputToken = new Decimal(0);
if (currLiquidity.gt(0)) {
feeGlobalForInputToken = toX64(globalFee).div(currLiquidity).floor();
}
return {
nextFeeGrowthGlobal: feeGlobalForInputToken.toFixed(0, 1),
nextProtocolFee: protocolFee.toFixed(0, 1),
};
}
/**
* Math Methods
*/
function getLastTickInSequence(
currTick: number,
tickSpacing: number,
aToB: boolean,
) {
const numTicksInArray = TICK_ARRAY_SIZE * tickSpacing;
const startTick = getStartTick(currTick, tickSpacing);
const potentialLast = aToB
? startTick - 2 * numTicksInArray
: startTick + 3 * numTicksInArray - 1;
return Math.max(Math.min(potentialLast, MAX_TICK_INDEX), MIN_TICK_INDEX);
}
function getStartTick(currTick: number, tickSpacing: number) {
const numTicksInArray = TICK_ARRAY_SIZE * tickSpacing;
const currTickDecimal = new Decimal(currTick);
return currTickDecimal
.div(numTicksInArray)
.floor()
.mul(numTicksInArray)
.toNumber();
}
function getNextSqrtPriceFromInput(
currSqrtPrice: Decimal,
liquidity: Decimal,
tradeAmount: Decimal,
exactIn: boolean,
aToB: boolean,
) {
return aToB
? getNextSqrtPriceFromTokenARoundingUp(
currSqrtPrice,
liquidity,
tradeAmount,
true,
)
: getNextSqrtPriceFromTokenBRoundingDown(
currSqrtPrice,
liquidity,
tradeAmount,
true,
);
}
function getNextSqrtPriceFromOutput(
currSqrtPrice: Decimal,
liquidity: Decimal,
tradeAmount: Decimal,
exactIn: boolean,
aToB: boolean,
) {
return aToB
? getNextSqrtPriceFromTokenBRoundingDown(
currSqrtPrice,
liquidity,
tradeAmount,
false,
)
: getNextSqrtPriceFromTokenARoundingUp(
currSqrtPrice,
liquidity,
tradeAmount,
false,
);
}
// sqrt_price_new = (sqrt_price * liquidity) / (liquidity + amount * sqrt_price)
function getNextSqrtPriceFromTokenARoundingUp(
currSqrtPrice: Decimal,
liquidity: Decimal,
tradeAmount: Decimal,
add: boolean,
) {
if (tradeAmount.eq(0) || liquidity.eq(0)) {
return currSqrtPrice;
}
let liquidityX64 = toX64(liquidity);
let product = tradeAmount.mul(currSqrtPrice);
if (add) {
let denominator = liquidityX64.add(product);
let numerator = liquidityX64.mul(currSqrtPrice);
if (numerator.gt(U256_MAX)) {
throw new Error("MultiplicationOverflow");
}
let result = numerator.div(denominator);
return result.ceil();
} else {
let denominator = liquidityX64.sub(product);
let numerator = liquidityX64.mul(currSqrtPrice);
if (numerator.gt(U256_MAX)) {
throw new Error("MultiplicationOverflow");
}
if (denominator.lte(0)) {
throw new Error("DivideByZero");
}
let result = numerator.div(denominator);
return result.ceil();
}
}
function getNextSqrtPriceFromTokenBRoundingDown(
currSqrtPrice: Decimal,
liquidity: Decimal,
tradeAmount: Decimal,
add: boolean,
) {
if (tradeAmount.eq(0) || liquidity.eq(0)) {
return currSqrtPrice;
}
if (add) {
let quotient = toX64(tradeAmount).div(liquidity).floor();
let result = currSqrtPrice.add(quotient);
if (result.gt(toDecimal(tickIndexToSqrtPriceX64(443636)))) {
throw new Error("SqrtPriceOutOfBounds");
}
return result;
} else {
let quotient = toX64(tradeAmount).div(liquidity).ceil();
let result = currSqrtPrice.sub(quotient);
if (result.lt(toDecimal(tickIndexToSqrtPriceX64(-443636)))) {
throw new Error("SqrtPriceOutOfBounds");
}
return result;
}
}
function getAmountADelta(
sqrtPrice1: Decimal,
sqrtPrice2: Decimal,
liquidity: Decimal,
round: boolean,
): Decimal {
const result = tryGetAmountADelta(sqrtPrice1, sqrtPrice2, liquidity, round);
if (result.type === "ExceedsMax") {
throw result.error;
}
return result.value;
}
type AmountDeltaU64 = AmountDeltaU64Valid | AmountDeltaU64ExceedsMax;
type AmountDeltaU64Valid = {
type: "Valid";
value: Decimal;
};
type AmountDeltaU64ExceedsMax = {
type: "ExceedsMax";
error: Error;
};
function tryGetAmountADelta(
sqrtPrice1: Decimal,
sqrtPrice2: Decimal,
liquidity: Decimal,
round: boolean,
): AmountDeltaU64 {
let sqrtPriceLower = Decimal.min(sqrtPrice1, sqrtPrice2);
let sqrtPriceUpper = Decimal.max(sqrtPrice1, sqrtPrice2);
let diff = sqrtPriceUpper.sub(sqrtPriceLower);
let dem = sqrtPriceUpper.mul(sqrtPriceLower);
let product = liquidity.mul(diff);
let num = toX64(product);
// eslint-disable-next-line no-console
console.log(
`liquidity - ${liquidity.toFixed(0, 1)}, diff - ${diff.toFixed(0, 1)}`,
);
// eslint-disable-next-line no-console
console.log(`product - ${product.toFixed(0, 1)} >192 - ${num.gt(U256_MAX)}`);
if (product.gt(U192_MAX)) {
throw new Error("MultiplicationOverflow");
}
let result = round ? num.div(dem).ceil() : num.div(dem).floor();
if (result.gt(U128_MAX)) {
return {
type: "ExceedsMax",
error: new Error("NumberDownCastError"),
};
}
if (result.gt(U64_MAX)) {
// eslint-disable-next-line no-console
console.log(`result exceed token - ${result.toFixed(0, 1)}`);
return {
type: "ExceedsMax",
error: new Error("TokenMaxExceeded"),
};
}
return {
type: "Valid",
value: result,
};
}
function getAmountBDelta(
sqrtPrice1: Decimal,
sqrtPrice2: Decimal,
liquidity: Decimal,
round: boolean,
): Decimal {
const result = tryGetAmountBDelta(sqrtPrice1, sqrtPrice2, liquidity, round);
if (result.type === "ExceedsMax") {
throw result.error;
}
return result.value;
}
function tryGetAmountBDelta(
sqrtPrice1: Decimal,
sqrtPrice2: Decimal,
liquidity: Decimal,
round: boolean,
): AmountDeltaU64 {
let sqrtPriceLower = Decimal.min(sqrtPrice1, sqrtPrice2);
let sqrtPriceUpper = Decimal.max(sqrtPrice1, sqrtPrice2);
let diff = sqrtPriceUpper.sub(sqrtPriceLower);
let product = liquidity.mul(diff);
if (product.gt(U128_MAX)) {
return {
type: "ExceedsMax",
error: new Error("MultiplicationShiftRightOverflow"),
};
}
let result = fromX64(product);
return {
type: "Valid",
value: round ? result.ceil() : result.floor(),
};
}
/**
* Helpers
*/
function getDescription(
feeRate: number,
protocolRate: number,
liquidity: LiquiditySetup,
tickSpacing: number,
currTick: CurrTickSetup,
tradeAmount: Decimal,
exactInput: boolean,
aToB: boolean,
) {
let feeRateText = getFeeRateText(feeRate, protocolRate);
let tradeInfoText = getTokenDirectionText(tradeAmount, exactInput, aToB);
let poolInfoText = poolSetupText(liquidity, tickSpacing);
let curTickText = getCurrTickText(currTick);
return `${poolInfoText}${tradeInfoText}${curTickText}${feeRateText}`;
}
function getTokenDirectionText(
tradeAmount: Decimal,
exactInput: boolean,
aToB: boolean,
) {
let tradeAmountString = tradeAmount.toString();
if (exactInput && aToB) {
return `swap exactly ${tradeAmountString} tokenA to tokenB`;
}
if (!exactInput && aToB) {
return `swap tokenA to exactly ${tradeAmountString} tokenB`;
}
if (exactInput && !aToB) {
return `swap exactly ${tradeAmountString} tokenB to tokenA`;
}
// (!exactInput && !aToB)
return `swap tokenB to exactly ${tradeAmountString} tokenA`;
}
function getCurrTickText(currTickSetup: CurrTickSetup) {
switch (currTickSetup) {
case CurrTickSetup.NearMax:
return " at near max tick";
case CurrTickSetup.NearMin:
return " at near min tick";
case CurrTickSetup.At1:
return " at tick 0 (p = 1)";
case CurrTickSetup.At10:
return " at tick 223027";
case CurrTickSetup.AtNeg10:
return " at tick -223027";
}
}
function getFeeRateText(feeRate: number, protocolRate: number) {
let feeRatePercentage = new Decimal(feeRate).div(10000).toFixed(2);
return ` with ${feeRatePercentage}%/${protocolRate} fee`;
}
function poolSetupText(liquiditySetup: LiquiditySetup, tickSpacing: number) {
return `In a ts_${tickSpacing} pool with ${getLiquiditySetupText(
liquiditySetup,
)} liquidity, `;
}
function getLiquiditySetupText(setup: LiquiditySetup) {
switch (setup) {
case LiquiditySetup.MaxLiquidity:
return "2^110";
case LiquiditySetup.ThirdQuartile:
return "2^64";
case LiquiditySetup.FirstQuartile:
return "2^32";
case LiquiditySetup.Zero:
return "0";
default:
return "unknown";
}
}
function getLiquidityValue(setup: LiquiditySetup) {
switch (setup) {
case LiquiditySetup.MaxLiquidity:
return liquidityValues[0];
case LiquiditySetup.ThirdQuartile:
return liquidityValues[1];
case LiquiditySetup.FirstQuartile:
return liquidityValues[2];
case LiquiditySetup.Zero:
return liquidityValues[3];
default:
return new Decimal(-1);
}
}
function toX64(num: Decimal) {
return num.mul(new Decimal(2).pow(64));
}
function fromX64(num: Decimal) {
return num.div(new Decimal(2).pow(64));
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function writeJson(pathToFile: string, data: any): void {
const pathName = path.join(__dirname, "../", pathToFile);
const stringifiedData = JSON.stringify(data, null, 2);
// eslint-disable-next-line no-console
console.log(`Writing to file - ${pathName}`);
writeFileSync(pathName, stringifiedData);
}
function toDecimal(bn: BN) {
return new Decimal(bn.toString());
}
function toBN(decimal: Decimal) {
return new BN(decimal.toFixed(0, 1));
}
function sqrtPriceX64ToTickIndex(sqrtPriceX64: BN): number {
return PriceMath.sqrtPriceX64ToTickIndex(sqrtPriceX64);
}
function tickIndexToSqrtPriceX64(tickIndex: number): BN {
return PriceMath.tickIndexToSqrtPriceX64(tickIndex);
}
function panic() {
console.error("PANIC!");
process.exit(1);
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/tests/mod.rs
|
#[cfg(test)]
mod swap_integration_tests;
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/state/config.rs
|
use anchor_lang::prelude::*;
use crate::{errors::ErrorCode, math::MAX_PROTOCOL_FEE_RATE};
#[account]
pub struct WhirlpoolsConfig {
pub fee_authority: Pubkey,
pub collect_protocol_fees_authority: Pubkey,
pub reward_emissions_super_authority: Pubkey,
pub default_protocol_fee_rate: u16,
}
impl WhirlpoolsConfig {
pub const LEN: usize = 8 + 96 + 4;
pub fn update_fee_authority(&mut self, fee_authority: Pubkey) {
self.fee_authority = fee_authority;
}
pub fn update_collect_protocol_fees_authority(
&mut self,
collect_protocol_fees_authority: Pubkey,
) {
self.collect_protocol_fees_authority = collect_protocol_fees_authority;
}
pub fn initialize(
&mut self,
fee_authority: Pubkey,
collect_protocol_fees_authority: Pubkey,
reward_emissions_super_authority: Pubkey,
default_protocol_fee_rate: u16,
) -> Result<()> {
self.fee_authority = fee_authority;
self.collect_protocol_fees_authority = collect_protocol_fees_authority;
self.reward_emissions_super_authority = reward_emissions_super_authority;
self.update_default_protocol_fee_rate(default_protocol_fee_rate)?;
Ok(())
}
pub fn update_reward_emissions_super_authority(
&mut self,
reward_emissions_super_authority: Pubkey,
) {
self.reward_emissions_super_authority = reward_emissions_super_authority;
}
pub fn update_default_protocol_fee_rate(
&mut self,
default_protocol_fee_rate: u16,
) -> Result<()> {
if default_protocol_fee_rate > MAX_PROTOCOL_FEE_RATE {
return Err(ErrorCode::ProtocolFeeRateMaxExceeded.into());
}
self.default_protocol_fee_rate = default_protocol_fee_rate;
Ok(())
}
}
#[cfg(test)]
mod data_layout_tests {
use anchor_lang::Discriminator;
use super::*;
#[test]
fn test_whirlpools_config_data_layout() {
let config_fee_authority = Pubkey::new_unique();
let config_collect_protocol_fees_authority = Pubkey::new_unique();
let config_reward_emissions_super_authority = Pubkey::new_unique();
let config_default_protocol_fee_rate = 0xffeeu16;
let config_reserved = [0u8; 2];
let mut config_data = [0u8; WhirlpoolsConfig::LEN];
let mut offset = 0;
config_data[offset..offset + 8].copy_from_slice(&WhirlpoolsConfig::discriminator());
offset += 8;
config_data[offset..offset + 32].copy_from_slice(&config_fee_authority.to_bytes());
offset += 32;
config_data[offset..offset + 32]
.copy_from_slice(&config_collect_protocol_fees_authority.to_bytes());
offset += 32;
config_data[offset..offset + 32]
.copy_from_slice(&config_reward_emissions_super_authority.to_bytes());
offset += 32;
config_data[offset..offset + 2]
.copy_from_slice(&config_default_protocol_fee_rate.to_le_bytes());
offset += 2;
config_data[offset..offset + config_reserved.len()].copy_from_slice(&config_reserved);
offset += config_reserved.len();
assert_eq!(offset, WhirlpoolsConfig::LEN);
// deserialize
let deserialized = WhirlpoolsConfig::try_deserialize(&mut config_data.as_ref()).unwrap();
assert_eq!(config_fee_authority, deserialized.fee_authority);
assert_eq!(
config_collect_protocol_fees_authority,
deserialized.collect_protocol_fees_authority
);
assert_eq!(
config_reward_emissions_super_authority,
deserialized.reward_emissions_super_authority
);
assert_eq!(
config_default_protocol_fee_rate,
deserialized.default_protocol_fee_rate
);
// serialize
let mut serialized = Vec::new();
deserialized.try_serialize(&mut serialized).unwrap();
serialized.extend_from_slice(&config_reserved);
assert_eq!(serialized.as_slice(), config_data.as_ref());
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/state/token_badge.rs
|
use anchor_lang::prelude::*;
#[account]
#[derive(Default)]
pub struct TokenBadge {
pub whirlpools_config: Pubkey, // 32
pub token_mint: Pubkey, // 32
// 128 RESERVE
}
impl TokenBadge {
pub const LEN: usize = 8 + 32 + 32 + 128;
pub fn initialize(&mut self, whirlpools_config: Pubkey, token_mint: Pubkey) -> Result<()> {
self.whirlpools_config = whirlpools_config;
self.token_mint = token_mint;
Ok(())
}
}
#[cfg(test)]
mod token_badge_initialize_tests {
use super::*;
use std::str::FromStr;
#[test]
fn test_default() {
let token_badge = TokenBadge {
..Default::default()
};
assert_eq!(token_badge.whirlpools_config, Pubkey::default());
assert_eq!(token_badge.token_mint, Pubkey::default());
}
#[test]
fn test_initialize() {
let mut token_badge = TokenBadge {
..Default::default()
};
let whirlpools_config =
Pubkey::from_str("2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ").unwrap();
let token_mint = Pubkey::from_str("orcaEKTdK7LKz57vaAYr9QeNsVEPfiu6QeMU1kektZE").unwrap();
let result = token_badge.initialize(whirlpools_config, token_mint);
assert!(result.is_ok());
assert_eq!(whirlpools_config, token_badge.whirlpools_config);
assert_eq!(token_mint, token_badge.token_mint);
}
}
#[cfg(test)]
mod data_layout_tests {
use anchor_lang::Discriminator;
use super::*;
#[test]
fn test_token_badge_data_layout() {
let token_badge_whirlpools_config = Pubkey::new_unique();
let token_badge_token_mint = Pubkey::new_unique();
let token_badge_reserved = [0u8; 128];
// manually build the expected data layout
let mut token_badge_data = [0u8; TokenBadge::LEN];
let mut offset = 0;
token_badge_data[offset..offset + 8].copy_from_slice(&TokenBadge::discriminator());
offset += 8;
token_badge_data[offset..offset + 32]
.copy_from_slice(&token_badge_whirlpools_config.to_bytes());
offset += 32;
token_badge_data[offset..offset + 32].copy_from_slice(&token_badge_token_mint.to_bytes());
offset += 32;
token_badge_data[offset..offset + token_badge_reserved.len()]
.copy_from_slice(&token_badge_reserved);
offset += token_badge_reserved.len();
assert_eq!(offset, TokenBadge::LEN);
// deserialize
let deserialized = TokenBadge::try_deserialize(&mut token_badge_data.as_ref()).unwrap();
assert_eq!(
token_badge_whirlpools_config,
deserialized.whirlpools_config
);
assert_eq!(token_badge_token_mint, deserialized.token_mint);
// serialize
let mut serialized = Vec::new();
deserialized.try_serialize(&mut serialized).unwrap();
serialized.extend_from_slice(&token_badge_reserved);
assert_eq!(serialized.as_slice(), token_badge_data.as_ref());
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/state/whirlpool.rs
|
use crate::{
errors::ErrorCode,
math::{
tick_index_from_sqrt_price, MAX_FEE_RATE, MAX_PROTOCOL_FEE_RATE, MAX_SQRT_PRICE_X64,
MIN_SQRT_PRICE_X64,
},
};
use anchor_lang::prelude::*;
use super::WhirlpoolsConfig;
#[account]
#[derive(Default)]
pub struct Whirlpool {
pub whirlpools_config: Pubkey, // 32
pub whirlpool_bump: [u8; 1], // 1
pub tick_spacing: u16, // 2
pub tick_spacing_seed: [u8; 2], // 2
// Stored as hundredths of a basis point
// u16::MAX corresponds to ~6.5%
pub fee_rate: u16, // 2
// Portion of fee rate taken stored as basis points
pub protocol_fee_rate: u16, // 2
// Maximum amount that can be held by Solana account
pub liquidity: u128, // 16
// MAX/MIN at Q32.64, but using Q64.64 for rounder bytes
// Q64.64
pub sqrt_price: u128, // 16
pub tick_current_index: i32, // 4
pub protocol_fee_owed_a: u64, // 8
pub protocol_fee_owed_b: u64, // 8
pub token_mint_a: Pubkey, // 32
pub token_vault_a: Pubkey, // 32
// Q64.64
pub fee_growth_global_a: u128, // 16
pub token_mint_b: Pubkey, // 32
pub token_vault_b: Pubkey, // 32
// Q64.64
pub fee_growth_global_b: u128, // 16
pub reward_last_updated_timestamp: u64, // 8
pub reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS], // 384
}
// Number of rewards supported by Whirlpools
pub const NUM_REWARDS: usize = 3;
impl Whirlpool {
pub const LEN: usize = 8 + 261 + 384;
pub fn seeds(&self) -> [&[u8]; 6] {
[
&b"whirlpool"[..],
self.whirlpools_config.as_ref(),
self.token_mint_a.as_ref(),
self.token_mint_b.as_ref(),
self.tick_spacing_seed.as_ref(),
self.whirlpool_bump.as_ref(),
]
}
pub fn input_token_mint(&self, a_to_b: bool) -> Pubkey {
if a_to_b {
self.token_mint_a
} else {
self.token_mint_b
}
}
pub fn input_token_vault(&self, a_to_b: bool) -> Pubkey {
if a_to_b {
self.token_vault_a
} else {
self.token_vault_b
}
}
pub fn output_token_mint(&self, a_to_b: bool) -> Pubkey {
if a_to_b {
self.token_mint_b
} else {
self.token_mint_a
}
}
pub fn output_token_vault(&self, a_to_b: bool) -> Pubkey {
if a_to_b {
self.token_vault_b
} else {
self.token_vault_a
}
}
#[allow(clippy::too_many_arguments)]
pub fn initialize(
&mut self,
whirlpools_config: &Account<WhirlpoolsConfig>,
bump: u8,
tick_spacing: u16,
sqrt_price: u128,
default_fee_rate: u16,
token_mint_a: Pubkey,
token_vault_a: Pubkey,
token_mint_b: Pubkey,
token_vault_b: Pubkey,
) -> Result<()> {
if token_mint_a.ge(&token_mint_b) {
return Err(ErrorCode::InvalidTokenMintOrder.into());
}
if !(MIN_SQRT_PRICE_X64..=MAX_SQRT_PRICE_X64).contains(&sqrt_price) {
return Err(ErrorCode::SqrtPriceOutOfBounds.into());
}
self.whirlpools_config = whirlpools_config.key();
self.whirlpool_bump = [bump];
self.tick_spacing = tick_spacing;
self.tick_spacing_seed = self.tick_spacing.to_le_bytes();
self.update_fee_rate(default_fee_rate)?;
self.update_protocol_fee_rate(whirlpools_config.default_protocol_fee_rate)?;
self.liquidity = 0;
self.sqrt_price = sqrt_price;
self.tick_current_index = tick_index_from_sqrt_price(&sqrt_price);
self.protocol_fee_owed_a = 0;
self.protocol_fee_owed_b = 0;
self.token_mint_a = token_mint_a;
self.token_vault_a = token_vault_a;
self.fee_growth_global_a = 0;
self.token_mint_b = token_mint_b;
self.token_vault_b = token_vault_b;
self.fee_growth_global_b = 0;
self.reward_infos =
[WhirlpoolRewardInfo::new(whirlpools_config.reward_emissions_super_authority);
NUM_REWARDS];
Ok(())
}
/// Update all reward values for the Whirlpool.
///
/// # Parameters
/// - `reward_infos` - An array of all updated whirlpool rewards
/// - `reward_last_updated_timestamp` - The timestamp when the rewards were last updated
pub fn update_rewards(
&mut self,
reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
reward_last_updated_timestamp: u64,
) {
self.reward_last_updated_timestamp = reward_last_updated_timestamp;
self.reward_infos = reward_infos;
}
pub fn update_rewards_and_liquidity(
&mut self,
reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
liquidity: u128,
reward_last_updated_timestamp: u64,
) {
self.update_rewards(reward_infos, reward_last_updated_timestamp);
self.liquidity = liquidity;
}
/// Update the reward authority at the specified Whirlpool reward index.
pub fn update_reward_authority(&mut self, index: usize, authority: Pubkey) -> Result<()> {
if index >= NUM_REWARDS {
return Err(ErrorCode::InvalidRewardIndex.into());
}
self.reward_infos[index].authority = authority;
Ok(())
}
pub fn update_emissions(
&mut self,
index: usize,
reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
timestamp: u64,
emissions_per_second_x64: u128,
) -> Result<()> {
if index >= NUM_REWARDS {
return Err(ErrorCode::InvalidRewardIndex.into());
}
self.update_rewards(reward_infos, timestamp);
self.reward_infos[index].emissions_per_second_x64 = emissions_per_second_x64;
Ok(())
}
pub fn initialize_reward(&mut self, index: usize, mint: Pubkey, vault: Pubkey) -> Result<()> {
if index >= NUM_REWARDS {
return Err(ErrorCode::InvalidRewardIndex.into());
}
let lowest_index = match self.reward_infos.iter().position(|r| !r.initialized()) {
Some(lowest_index) => lowest_index,
None => return Err(ErrorCode::InvalidRewardIndex.into()),
};
if lowest_index != index {
return Err(ErrorCode::InvalidRewardIndex.into());
}
self.reward_infos[index].mint = mint;
self.reward_infos[index].vault = vault;
Ok(())
}
#[allow(clippy::too_many_arguments)]
pub fn update_after_swap(
&mut self,
liquidity: u128,
tick_index: i32,
sqrt_price: u128,
fee_growth_global: u128,
reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
protocol_fee: u64,
is_token_fee_in_a: bool,
reward_last_updated_timestamp: u64,
) {
self.tick_current_index = tick_index;
self.sqrt_price = sqrt_price;
self.liquidity = liquidity;
self.reward_infos = reward_infos;
self.reward_last_updated_timestamp = reward_last_updated_timestamp;
if is_token_fee_in_a {
// Add fees taken via a
self.fee_growth_global_a = fee_growth_global;
self.protocol_fee_owed_a += protocol_fee;
} else {
// Add fees taken via b
self.fee_growth_global_b = fee_growth_global;
self.protocol_fee_owed_b += protocol_fee;
}
}
pub fn update_fee_rate(&mut self, fee_rate: u16) -> Result<()> {
if fee_rate > MAX_FEE_RATE {
return Err(ErrorCode::FeeRateMaxExceeded.into());
}
self.fee_rate = fee_rate;
Ok(())
}
pub fn update_protocol_fee_rate(&mut self, protocol_fee_rate: u16) -> Result<()> {
if protocol_fee_rate > MAX_PROTOCOL_FEE_RATE {
return Err(ErrorCode::ProtocolFeeRateMaxExceeded.into());
}
self.protocol_fee_rate = protocol_fee_rate;
Ok(())
}
pub fn reset_protocol_fees_owed(&mut self) {
self.protocol_fee_owed_a = 0;
self.protocol_fee_owed_b = 0;
}
}
/// Stores the state relevant for tracking liquidity mining rewards at the `Whirlpool` level.
/// These values are used in conjunction with `PositionRewardInfo`, `Tick.reward_growths_outside`,
/// and `Whirlpool.reward_last_updated_timestamp` to determine how many rewards are earned by open
/// positions.
#[derive(Copy, Clone, AnchorSerialize, AnchorDeserialize, Default, Debug, PartialEq)]
pub struct WhirlpoolRewardInfo {
/// Reward token mint.
pub mint: Pubkey,
/// Reward vault token account.
pub vault: Pubkey,
/// Authority account that has permission to initialize the reward and set emissions.
pub authority: Pubkey,
/// Q64.64 number that indicates how many tokens per second are earned per unit of liquidity.
pub emissions_per_second_x64: u128,
/// Q64.64 number that tracks the total tokens earned per unit of liquidity since the reward
/// emissions were turned on.
pub growth_global_x64: u128,
}
impl WhirlpoolRewardInfo {
/// Creates a new `WhirlpoolRewardInfo` with the authority set
pub fn new(authority: Pubkey) -> Self {
Self {
authority,
..Default::default()
}
}
/// Returns true if this reward is initialized.
/// Once initialized, a reward cannot transition back to uninitialized.
pub fn initialized(&self) -> bool {
self.mint.ne(&Pubkey::default())
}
/// Maps all reward data to only the reward growth accumulators
pub fn to_reward_growths(
reward_infos: &[WhirlpoolRewardInfo; NUM_REWARDS],
) -> [u128; NUM_REWARDS] {
let mut reward_growths = [0u128; NUM_REWARDS];
for i in 0..NUM_REWARDS {
reward_growths[i] = reward_infos[i].growth_global_x64;
}
reward_growths
}
}
#[derive(AnchorSerialize, AnchorDeserialize, Clone, Default, Copy)]
pub struct WhirlpoolBumps {
pub whirlpool_bump: u8,
}
#[test]
fn test_whirlpool_reward_info_not_initialized() {
let reward_info = WhirlpoolRewardInfo::default();
assert!(!reward_info.initialized());
}
#[test]
fn test_whirlpool_reward_info_initialized() {
let reward_info = &mut WhirlpoolRewardInfo::default();
reward_info.mint = Pubkey::new_unique();
assert!(reward_info.initialized());
}
#[cfg(test)]
pub mod whirlpool_builder {
use super::{Whirlpool, WhirlpoolRewardInfo, NUM_REWARDS};
#[derive(Default)]
pub struct WhirlpoolBuilder {
liquidity: u128,
tick_spacing: u16,
tick_current_index: i32,
sqrt_price: u128,
fee_rate: u16,
protocol_fee_rate: u16,
fee_growth_global_a: u128,
fee_growth_global_b: u128,
reward_last_updated_timestamp: u64,
reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
}
impl WhirlpoolBuilder {
pub fn new() -> Self {
Self {
reward_infos: [WhirlpoolRewardInfo::default(); NUM_REWARDS],
..Default::default()
}
}
pub fn liquidity(mut self, liquidity: u128) -> Self {
self.liquidity = liquidity;
self
}
pub fn reward_last_updated_timestamp(mut self, reward_last_updated_timestamp: u64) -> Self {
self.reward_last_updated_timestamp = reward_last_updated_timestamp;
self
}
pub fn reward_info(mut self, index: usize, reward_info: WhirlpoolRewardInfo) -> Self {
self.reward_infos[index] = reward_info;
self
}
pub fn reward_infos(mut self, reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS]) -> Self {
self.reward_infos = reward_infos;
self
}
pub fn tick_spacing(mut self, tick_spacing: u16) -> Self {
self.tick_spacing = tick_spacing;
self
}
pub fn tick_current_index(mut self, tick_current_index: i32) -> Self {
self.tick_current_index = tick_current_index;
self
}
pub fn sqrt_price(mut self, sqrt_price: u128) -> Self {
self.sqrt_price = sqrt_price;
self
}
pub fn fee_growth_global_a(mut self, fee_growth_global_a: u128) -> Self {
self.fee_growth_global_a = fee_growth_global_a;
self
}
pub fn fee_growth_global_b(mut self, fee_growth_global_b: u128) -> Self {
self.fee_growth_global_b = fee_growth_global_b;
self
}
pub fn fee_rate(mut self, fee_rate: u16) -> Self {
self.fee_rate = fee_rate;
self
}
pub fn protocol_fee_rate(mut self, protocol_fee_rate: u16) -> Self {
self.protocol_fee_rate = protocol_fee_rate;
self
}
pub fn build(self) -> Whirlpool {
Whirlpool {
liquidity: self.liquidity,
reward_last_updated_timestamp: self.reward_last_updated_timestamp,
reward_infos: self.reward_infos,
tick_current_index: self.tick_current_index,
sqrt_price: self.sqrt_price,
tick_spacing: self.tick_spacing,
fee_growth_global_a: self.fee_growth_global_a,
fee_growth_global_b: self.fee_growth_global_b,
fee_rate: self.fee_rate,
protocol_fee_rate: self.protocol_fee_rate,
..Default::default()
}
}
}
}
#[cfg(test)]
mod data_layout_tests {
use anchor_lang::Discriminator;
use super::*;
#[test]
fn test_whirlpool_data_layout() {
let whirlpool_whirlpools_config = Pubkey::new_unique();
let whirlpool_bump = 0x12u8;
let whirlpool_tick_spacing = 0x1234u16;
let whirlpool_tick_spacing_seed = [0x56u8, 0x78u8];
let whirlpool_fee_rate = 0x9abcu16;
let whirlpool_protocol_fee_rate = 0xdef0u16;
let whirlpool_liquidity = 0x11002233445566778899aabbccddeeffu128;
let whirlpool_sqrt_price = 0x11220033445566778899aabbccddeeffu128;
let whirlpool_tick_current_index = 0x12345678i32;
let whirlpool_protocol_fee_owed_a = 0x1122334455667788u64;
let whirlpool_protocol_fee_owed_b = 0x99aabbccddeeff00u64;
let whirlpool_token_mint_a = Pubkey::new_unique();
let whirlpool_token_vault_a = Pubkey::new_unique();
let whirlpool_fee_growth_global_a = 0x11223300445566778899aabbccddeeffu128;
let whirlpool_token_mint_b = Pubkey::new_unique();
let whirlpool_token_vault_b = Pubkey::new_unique();
let whirlpool_fee_growth_global_b = 0x11223344005566778899aabbccddeeffu128;
let whirlpool_reward_last_updated_timestamp = 0x1234567890abcdefu64;
let reward_info_mint = Pubkey::new_unique();
let reward_info_vault = Pubkey::new_unique();
let reward_info_authority = Pubkey::new_unique();
let reward_info_emissions_per_second_x64 = 0x1122334455667788u128;
let reward_info_growth_global_x64 = 0x99aabbccddeeff00u128;
// manually build the expected data layout
let mut reward_info_data = [0u8; 128];
let mut offset = 0;
reward_info_data[offset..offset + 32].copy_from_slice(&reward_info_mint.to_bytes());
offset += 32;
reward_info_data[offset..offset + 32].copy_from_slice(&reward_info_vault.to_bytes());
offset += 32;
reward_info_data[offset..offset + 32].copy_from_slice(&reward_info_authority.to_bytes());
offset += 32;
reward_info_data[offset..offset + 16]
.copy_from_slice(&reward_info_emissions_per_second_x64.to_le_bytes());
offset += 16;
reward_info_data[offset..offset + 16]
.copy_from_slice(&reward_info_growth_global_x64.to_le_bytes());
offset += 16;
assert_eq!(offset, reward_info_data.len());
let mut whirlpool_data = [0u8; Whirlpool::LEN];
let mut offset = 0;
whirlpool_data[offset..offset + 8].copy_from_slice(&Whirlpool::discriminator());
offset += 8;
whirlpool_data[offset..offset + 32]
.copy_from_slice(&whirlpool_whirlpools_config.to_bytes());
offset += 32;
whirlpool_data[offset..offset + 1].copy_from_slice(&whirlpool_bump.to_le_bytes());
offset += 1;
whirlpool_data[offset..offset + 2].copy_from_slice(&whirlpool_tick_spacing.to_le_bytes());
offset += 2;
whirlpool_data[offset..offset + 2].copy_from_slice(&whirlpool_tick_spacing_seed);
offset += 2;
whirlpool_data[offset..offset + 2].copy_from_slice(&whirlpool_fee_rate.to_le_bytes());
offset += 2;
whirlpool_data[offset..offset + 2]
.copy_from_slice(&whirlpool_protocol_fee_rate.to_le_bytes());
offset += 2;
whirlpool_data[offset..offset + 16].copy_from_slice(&whirlpool_liquidity.to_le_bytes());
offset += 16;
whirlpool_data[offset..offset + 16].copy_from_slice(&whirlpool_sqrt_price.to_le_bytes());
offset += 16;
whirlpool_data[offset..offset + 4]
.copy_from_slice(&whirlpool_tick_current_index.to_le_bytes());
offset += 4;
whirlpool_data[offset..offset + 8]
.copy_from_slice(&whirlpool_protocol_fee_owed_a.to_le_bytes());
offset += 8;
whirlpool_data[offset..offset + 8]
.copy_from_slice(&whirlpool_protocol_fee_owed_b.to_le_bytes());
offset += 8;
whirlpool_data[offset..offset + 32].copy_from_slice(&whirlpool_token_mint_a.to_bytes());
offset += 32;
whirlpool_data[offset..offset + 32].copy_from_slice(&whirlpool_token_vault_a.to_bytes());
offset += 32;
whirlpool_data[offset..offset + 16]
.copy_from_slice(&whirlpool_fee_growth_global_a.to_le_bytes());
offset += 16;
whirlpool_data[offset..offset + 32].copy_from_slice(&whirlpool_token_mint_b.to_bytes());
offset += 32;
whirlpool_data[offset..offset + 32].copy_from_slice(&whirlpool_token_vault_b.to_bytes());
offset += 32;
whirlpool_data[offset..offset + 16]
.copy_from_slice(&whirlpool_fee_growth_global_b.to_le_bytes());
offset += 16;
whirlpool_data[offset..offset + 8]
.copy_from_slice(&whirlpool_reward_last_updated_timestamp.to_le_bytes());
offset += 8;
for _ in 0..NUM_REWARDS {
whirlpool_data[offset..offset + reward_info_data.len()]
.copy_from_slice(&reward_info_data);
offset += reward_info_data.len();
}
assert_eq!(offset, whirlpool_data.len());
// deserialize
let deserialized = Whirlpool::try_deserialize(&mut whirlpool_data.as_ref()).unwrap();
assert_eq!(deserialized.whirlpools_config, whirlpool_whirlpools_config);
assert_eq!(deserialized.whirlpool_bump, [whirlpool_bump]);
assert_eq!(deserialized.tick_spacing, whirlpool_tick_spacing);
assert_eq!(deserialized.tick_spacing_seed, whirlpool_tick_spacing_seed);
assert_eq!(deserialized.fee_rate, whirlpool_fee_rate);
assert_eq!(deserialized.protocol_fee_rate, whirlpool_protocol_fee_rate);
assert_eq!(deserialized.liquidity, whirlpool_liquidity);
assert_eq!(deserialized.sqrt_price, whirlpool_sqrt_price);
assert_eq!(
deserialized.tick_current_index,
whirlpool_tick_current_index
);
assert_eq!(
deserialized.protocol_fee_owed_a,
whirlpool_protocol_fee_owed_a
);
assert_eq!(
deserialized.protocol_fee_owed_b,
whirlpool_protocol_fee_owed_b
);
assert_eq!(deserialized.token_mint_a, whirlpool_token_mint_a);
assert_eq!(deserialized.token_vault_a, whirlpool_token_vault_a);
assert_eq!(
deserialized.fee_growth_global_a,
whirlpool_fee_growth_global_a
);
assert_eq!(deserialized.token_mint_b, whirlpool_token_mint_b);
assert_eq!(deserialized.token_vault_b, whirlpool_token_vault_b);
assert_eq!(
deserialized.fee_growth_global_b,
whirlpool_fee_growth_global_b
);
assert_eq!(
deserialized.reward_last_updated_timestamp,
whirlpool_reward_last_updated_timestamp
);
for i in 0..NUM_REWARDS {
assert_eq!(deserialized.reward_infos[i].mint, reward_info_mint);
assert_eq!(deserialized.reward_infos[i].vault, reward_info_vault);
assert_eq!(
deserialized.reward_infos[i].authority,
reward_info_authority
);
assert_eq!(
deserialized.reward_infos[i].emissions_per_second_x64,
reward_info_emissions_per_second_x64
);
assert_eq!(
deserialized.reward_infos[i].growth_global_x64,
reward_info_growth_global_x64
);
}
// serialize
let mut serialized = Vec::new();
deserialized.try_serialize(&mut serialized).unwrap();
assert_eq!(serialized.as_slice(), whirlpool_data.as_ref());
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/state/mod.rs
|
pub mod config;
pub mod config_extension;
pub mod fee_tier;
pub mod position;
pub mod position_bundle;
pub mod tick;
pub mod token_badge;
pub mod whirlpool;
pub use self::whirlpool::*;
pub use config::*;
pub use config_extension::*;
pub use fee_tier::*;
pub use position::*;
pub use position_bundle::*;
pub use tick::*;
pub use token_badge::*;
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/state/config_extension.rs
|
use anchor_lang::prelude::*;
#[account]
pub struct WhirlpoolsConfigExtension {
pub whirlpools_config: Pubkey, // 32
pub config_extension_authority: Pubkey, // 32
pub token_badge_authority: Pubkey, // 32
// 512 RESERVE
}
impl WhirlpoolsConfigExtension {
pub const LEN: usize = 8 + 32 + 32 + 32 + 512;
pub fn initialize(
&mut self,
whirlpools_config: Pubkey,
default_authority: Pubkey,
) -> Result<()> {
self.whirlpools_config = whirlpools_config;
self.config_extension_authority = default_authority;
self.token_badge_authority = default_authority;
Ok(())
}
pub fn update_config_extension_authority(&mut self, config_extension_authority: Pubkey) {
self.config_extension_authority = config_extension_authority;
}
pub fn update_token_badge_authority(&mut self, token_badge_authority: Pubkey) {
self.token_badge_authority = token_badge_authority;
}
}
#[cfg(test)]
mod whirlpools_config_extension_initialize_tests {
use super::*;
use std::str::FromStr;
#[test]
fn test_initialize() {
let mut config_extension = WhirlpoolsConfigExtension {
whirlpools_config: Pubkey::default(),
config_extension_authority: Pubkey::default(),
token_badge_authority: Pubkey::default(),
};
let whirlpools_config =
Pubkey::from_str("2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ").unwrap();
let default_authority =
Pubkey::from_str("orcaEKTdK7LKz57vaAYr9QeNsVEPfiu6QeMU1kektZE").unwrap();
let result = config_extension.initialize(whirlpools_config, default_authority);
assert!(result.is_ok());
assert_eq!(whirlpools_config, config_extension.whirlpools_config);
assert_eq!(
default_authority,
config_extension.config_extension_authority
);
assert_eq!(default_authority, config_extension.token_badge_authority);
}
}
#[cfg(test)]
mod whirlpools_config_extension_update_tests {
use super::*;
use std::str::FromStr;
#[test]
fn test_update_config_extension_authority() {
let mut config_extension = WhirlpoolsConfigExtension {
whirlpools_config: Pubkey::default(),
config_extension_authority: Pubkey::default(),
token_badge_authority: Pubkey::default(),
};
let config_extension_authority =
Pubkey::from_str("orcaEKTdK7LKz57vaAYr9QeNsVEPfiu6QeMU1kektZE").unwrap();
config_extension.update_config_extension_authority(config_extension_authority);
assert_eq!(
config_extension_authority,
config_extension.config_extension_authority
);
assert_eq!(Pubkey::default(), config_extension.token_badge_authority);
}
#[test]
fn test_update_token_badge_authority() {
let mut config_extension = WhirlpoolsConfigExtension {
whirlpools_config: Pubkey::default(),
config_extension_authority: Pubkey::default(),
token_badge_authority: Pubkey::default(),
};
let token_badge_authority =
Pubkey::from_str("orcaEKTdK7LKz57vaAYr9QeNsVEPfiu6QeMU1kektZE").unwrap();
config_extension.update_token_badge_authority(token_badge_authority);
assert_eq!(
token_badge_authority,
config_extension.token_badge_authority
);
assert_eq!(
Pubkey::default(),
config_extension.config_extension_authority
);
}
}
#[cfg(test)]
mod data_layout_tests {
use anchor_lang::Discriminator;
use super::*;
#[test]
fn test_whirlpools_config_extension_data_layout() {
let config_extension_whirlpools_config = Pubkey::new_unique();
let config_extension_config_extension_authority = Pubkey::new_unique();
let config_extension_token_badge_authority = Pubkey::new_unique();
let config_extension_reserved = [0u8; 512];
let mut config_extension_data = [0u8; WhirlpoolsConfigExtension::LEN];
let mut offset = 0;
config_extension_data[offset..offset + 8]
.copy_from_slice(&WhirlpoolsConfigExtension::discriminator());
offset += 8;
config_extension_data[offset..offset + 32]
.copy_from_slice(&config_extension_whirlpools_config.to_bytes());
offset += 32;
config_extension_data[offset..offset + 32]
.copy_from_slice(&config_extension_config_extension_authority.to_bytes());
offset += 32;
config_extension_data[offset..offset + 32]
.copy_from_slice(&config_extension_token_badge_authority.to_bytes());
offset += 32;
config_extension_data[offset..offset + config_extension_reserved.len()]
.copy_from_slice(&config_extension_reserved);
offset += config_extension_reserved.len();
assert_eq!(offset, WhirlpoolsConfigExtension::LEN);
// deserialize
let deserialized =
WhirlpoolsConfigExtension::try_deserialize(&mut config_extension_data.as_ref())
.unwrap();
assert_eq!(
config_extension_whirlpools_config,
deserialized.whirlpools_config
);
assert_eq!(
config_extension_config_extension_authority,
deserialized.config_extension_authority
);
assert_eq!(
config_extension_token_badge_authority,
deserialized.token_badge_authority
);
// serialize
let mut serialized = Vec::new();
deserialized.try_serialize(&mut serialized).unwrap();
serialized.extend_from_slice(&config_extension_reserved);
assert_eq!(serialized.as_slice(), config_extension_data.as_ref());
}
}
| 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.