repo_id
stringclasses 563
values | file_path
stringlengths 40
166
| content
stringlengths 1
2.94M
| __index_level_0__
int64 0
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
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/state/fee_tier.rs
|
use crate::state::WhirlpoolsConfig;
use crate::{errors::ErrorCode, math::MAX_FEE_RATE};
use anchor_lang::prelude::*;
#[account]
pub struct FeeTier {
pub whirlpools_config: Pubkey,
pub tick_spacing: u16,
pub default_fee_rate: u16,
}
impl FeeTier {
pub const LEN: usize = 8 + 32 + 4;
pub fn initialize(
&mut self,
whirlpools_config: &Account<WhirlpoolsConfig>,
tick_spacing: u16,
default_fee_rate: u16,
) -> Result<()> {
self.whirlpools_config = whirlpools_config.key();
self.tick_spacing = tick_spacing;
self.update_default_fee_rate(default_fee_rate)?;
Ok(())
}
pub fn update_default_fee_rate(&mut self, default_fee_rate: u16) -> Result<()> {
if default_fee_rate > MAX_FEE_RATE {
return Err(ErrorCode::FeeRateMaxExceeded.into());
}
self.default_fee_rate = default_fee_rate;
Ok(())
}
}
#[cfg(test)]
mod data_layout_tests {
use anchor_lang::Discriminator;
use super::*;
#[test]
fn test_fee_tier_data_layout() {
let fee_tier_whirlpools_config = Pubkey::new_unique();
let fee_tier_tick_spacing = 0xffu16;
let fee_tier_default_fee_rate = 0x22u16;
let mut fee_tier_data = [0u8; FeeTier::LEN];
let mut offset = 0;
fee_tier_data[offset..offset + 8].copy_from_slice(&FeeTier::discriminator());
offset += 8;
fee_tier_data[offset..offset + 32].copy_from_slice(&fee_tier_whirlpools_config.to_bytes());
offset += 32;
fee_tier_data[offset..offset + 2].copy_from_slice(&fee_tier_tick_spacing.to_le_bytes());
offset += 2;
fee_tier_data[offset..offset + 2].copy_from_slice(&fee_tier_default_fee_rate.to_le_bytes());
offset += 2;
assert_eq!(offset, FeeTier::LEN);
// deserialize
let deserialized = FeeTier::try_deserialize(&mut fee_tier_data.as_ref()).unwrap();
assert_eq!(fee_tier_whirlpools_config, deserialized.whirlpools_config);
assert_eq!(fee_tier_tick_spacing, deserialized.tick_spacing);
assert_eq!(fee_tier_default_fee_rate, deserialized.default_fee_rate);
// serialize
let mut serialized = Vec::new();
deserialized.try_serialize(&mut serialized).unwrap();
assert_eq!(serialized.as_slice(), fee_tier_data.as_ref());
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/state/position_bundle.rs
|
use crate::errors::ErrorCode;
use anchor_lang::prelude::*;
pub const POSITION_BITMAP_USIZE: usize = 32;
pub const POSITION_BUNDLE_SIZE: u16 = 8 * POSITION_BITMAP_USIZE as u16;
#[account]
#[derive(Default)]
pub struct PositionBundle {
pub position_bundle_mint: Pubkey, // 32
pub position_bitmap: [u8; POSITION_BITMAP_USIZE], // 32
// 64 RESERVE
}
impl PositionBundle {
pub const LEN: usize = 8 + 32 + 32 + 64;
pub fn initialize(&mut self, position_bundle_mint: Pubkey) -> Result<()> {
self.position_bundle_mint = position_bundle_mint;
// position_bitmap is initialized using Default trait
Ok(())
}
pub fn is_deletable(&self) -> bool {
for bitmap in self.position_bitmap.iter() {
if *bitmap != 0 {
return false;
}
}
true
}
pub fn open_bundled_position(&mut self, bundle_index: u16) -> Result<()> {
self.update_bitmap(bundle_index, true)
}
pub fn close_bundled_position(&mut self, bundle_index: u16) -> Result<()> {
self.update_bitmap(bundle_index, false)
}
fn update_bitmap(&mut self, bundle_index: u16, open: bool) -> Result<()> {
if !PositionBundle::is_valid_bundle_index(bundle_index) {
return Err(ErrorCode::InvalidBundleIndex.into());
}
let bitmap_index = bundle_index / 8;
let bitmap_offset = bundle_index % 8;
let bitmap = self.position_bitmap[bitmap_index as usize];
let mask = 1 << bitmap_offset;
let bit = bitmap & mask;
let opened = bit != 0;
if open && opened {
// UNREACHABLE
// Anchor should reject with AccountDiscriminatorAlreadySet
return Err(ErrorCode::BundledPositionAlreadyOpened.into());
}
if !open && !opened {
// UNREACHABLE
// Anchor should reject with AccountNotInitialized
return Err(ErrorCode::BundledPositionAlreadyClosed.into());
}
let updated_bitmap = bitmap ^ mask;
self.position_bitmap[bitmap_index as usize] = updated_bitmap;
Ok(())
}
fn is_valid_bundle_index(bundle_index: u16) -> bool {
bundle_index < POSITION_BUNDLE_SIZE
}
}
#[cfg(test)]
mod position_bundle_initialize_tests {
use super::*;
use std::str::FromStr;
#[test]
fn test_default() {
let position_bundle = PositionBundle {
..Default::default()
};
assert_eq!(position_bundle.position_bundle_mint, Pubkey::default());
for bitmap in position_bundle.position_bitmap.iter() {
assert_eq!(*bitmap, 0);
}
}
#[test]
fn test_initialize() {
let mut position_bundle = PositionBundle {
..Default::default()
};
let position_bundle_mint =
Pubkey::from_str("orcaEKTdK7LKz57vaAYr9QeNsVEPfiu6QeMU1kektZE").unwrap();
let result = position_bundle.initialize(position_bundle_mint);
assert!(result.is_ok());
assert_eq!(position_bundle.position_bundle_mint, position_bundle_mint);
for bitmap in position_bundle.position_bitmap.iter() {
assert_eq!(*bitmap, 0);
}
}
}
#[cfg(test)]
mod position_bundle_is_deletable_tests {
use super::*;
#[test]
fn test_default_is_deletable() {
let position_bundle = PositionBundle {
..Default::default()
};
assert!(position_bundle.is_deletable());
}
#[test]
fn test_each_bit_detectable() {
let mut position_bundle = PositionBundle {
..Default::default()
};
for bundle_index in 0..POSITION_BUNDLE_SIZE {
let index = bundle_index / 8;
let offset = bundle_index % 8;
position_bundle.position_bitmap[index as usize] = 1 << offset;
assert!(!position_bundle.is_deletable());
position_bundle.position_bitmap[index as usize] = 0;
assert!(position_bundle.is_deletable());
}
}
}
#[cfg(test)]
mod position_bundle_open_and_close_tests {
use super::*;
#[test]
fn test_open_and_close_zero() {
let mut position_bundle = PositionBundle {
..Default::default()
};
let r1 = position_bundle.open_bundled_position(0);
assert!(r1.is_ok());
assert_eq!(position_bundle.position_bitmap[0], 1);
let r2 = position_bundle.close_bundled_position(0);
assert!(r2.is_ok());
assert_eq!(position_bundle.position_bitmap[0], 0);
}
#[test]
fn test_open_and_close_middle() {
let mut position_bundle = PositionBundle {
..Default::default()
};
let r1 = position_bundle.open_bundled_position(130);
assert!(r1.is_ok());
assert_eq!(position_bundle.position_bitmap[16], 4);
let r2 = position_bundle.close_bundled_position(130);
assert!(r2.is_ok());
assert_eq!(position_bundle.position_bitmap[16], 0);
}
#[test]
fn test_open_and_close_max() {
let mut position_bundle = PositionBundle {
..Default::default()
};
let r1 = position_bundle.open_bundled_position(POSITION_BUNDLE_SIZE - 1);
assert!(r1.is_ok());
assert_eq!(
position_bundle.position_bitmap[POSITION_BITMAP_USIZE - 1],
128
);
let r2 = position_bundle.close_bundled_position(POSITION_BUNDLE_SIZE - 1);
assert!(r2.is_ok());
assert_eq!(
position_bundle.position_bitmap[POSITION_BITMAP_USIZE - 1],
0
);
}
#[test]
fn test_double_open_should_be_failed() {
let mut position_bundle = PositionBundle {
..Default::default()
};
let r1 = position_bundle.open_bundled_position(0);
assert!(r1.is_ok());
let r2 = position_bundle.open_bundled_position(0);
assert!(r2.is_err());
}
#[test]
fn test_double_close_should_be_failed() {
let mut position_bundle = PositionBundle {
..Default::default()
};
let r1 = position_bundle.open_bundled_position(0);
assert!(r1.is_ok());
let r2 = position_bundle.close_bundled_position(0);
assert!(r2.is_ok());
let r3 = position_bundle.close_bundled_position(0);
assert!(r3.is_err());
}
#[test]
fn test_all_open_and_all_close() {
let mut position_bundle = PositionBundle {
..Default::default()
};
for bundle_index in 0..POSITION_BUNDLE_SIZE {
let r = position_bundle.open_bundled_position(bundle_index);
assert!(r.is_ok());
}
for bitmap in position_bundle.position_bitmap.iter() {
assert_eq!(*bitmap, 255);
}
for bundle_index in 0..POSITION_BUNDLE_SIZE {
let r = position_bundle.close_bundled_position(bundle_index);
assert!(r.is_ok());
}
for bitmap in position_bundle.position_bitmap.iter() {
assert_eq!(*bitmap, 0);
}
}
#[test]
fn test_open_bundle_index_out_of_bounds() {
let mut position_bundle = PositionBundle {
..Default::default()
};
for bundle_index in POSITION_BUNDLE_SIZE..u16::MAX {
let r = position_bundle.open_bundled_position(bundle_index);
assert!(r.is_err());
}
}
#[test]
fn test_close_bundle_index_out_of_bounds() {
let mut position_bundle = PositionBundle {
..Default::default()
};
for bundle_index in POSITION_BUNDLE_SIZE..u16::MAX {
let r = position_bundle.close_bundled_position(bundle_index);
assert!(r.is_err());
}
}
}
#[cfg(test)]
mod data_layout_tests {
use anchor_lang::Discriminator;
use super::*;
#[test]
fn test_position_bundle_data_layout() {
let position_bundle_position_bundle_mint = Pubkey::new_unique();
let position_bundle_position_bitmap = [0xFFu8; POSITION_BITMAP_USIZE];
let position_bundle_reserved = [0u8; 64];
let mut position_bundle_data = [0u8; PositionBundle::LEN];
let mut offset = 0;
position_bundle_data[offset..offset + 8].copy_from_slice(&PositionBundle::discriminator());
offset += 8;
position_bundle_data[offset..offset + 32]
.copy_from_slice(&position_bundle_position_bundle_mint.to_bytes());
offset += 32;
position_bundle_data[offset..offset + POSITION_BITMAP_USIZE]
.copy_from_slice(&position_bundle_position_bitmap);
offset += POSITION_BITMAP_USIZE;
position_bundle_data[offset..offset + position_bundle_reserved.len()]
.copy_from_slice(&position_bundle_reserved);
offset += position_bundle_reserved.len();
assert_eq!(offset, PositionBundle::LEN);
// deserialize
let deserialized =
PositionBundle::try_deserialize(&mut position_bundle_data.as_ref()).unwrap();
assert_eq!(
position_bundle_position_bundle_mint,
deserialized.position_bundle_mint
);
assert_eq!(
position_bundle_position_bitmap,
deserialized.position_bitmap
);
// serialize
let mut serialized = Vec::new();
deserialized.try_serialize(&mut serialized).unwrap();
serialized.extend_from_slice(&position_bundle_reserved);
assert_eq!(serialized.as_slice(), position_bundle_data.as_ref());
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/state/position.rs
|
use anchor_lang::prelude::*;
use crate::{errors::ErrorCode, math::FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD, state::NUM_REWARDS};
use super::{Tick, Whirlpool};
#[derive(AnchorSerialize, AnchorDeserialize, Clone, Default, Copy)]
pub struct OpenPositionBumps {
pub position_bump: u8,
}
#[derive(AnchorSerialize, AnchorDeserialize, Clone, Default, Copy)]
pub struct OpenPositionWithMetadataBumps {
pub position_bump: u8,
pub metadata_bump: u8,
}
#[account]
#[derive(Default)]
pub struct Position {
pub whirlpool: Pubkey, // 32
pub position_mint: Pubkey, // 32
pub liquidity: u128, // 16
pub tick_lower_index: i32, // 4
pub tick_upper_index: i32, // 4
// Q64.64
pub fee_growth_checkpoint_a: u128, // 16
pub fee_owed_a: u64, // 8
// Q64.64
pub fee_growth_checkpoint_b: u128, // 16
pub fee_owed_b: u64, // 8
pub reward_infos: [PositionRewardInfo; NUM_REWARDS], // 72
}
impl Position {
pub const LEN: usize = 8 + 136 + 72;
pub fn is_position_empty(position: &Position) -> bool {
let fees_not_owed = position.fee_owed_a == 0 && position.fee_owed_b == 0;
let mut rewards_not_owed = true;
for i in 0..NUM_REWARDS {
rewards_not_owed = rewards_not_owed && position.reward_infos[i].amount_owed == 0
}
position.liquidity == 0 && fees_not_owed && rewards_not_owed
}
pub fn update(&mut self, update: &PositionUpdate) {
self.liquidity = update.liquidity;
self.fee_growth_checkpoint_a = update.fee_growth_checkpoint_a;
self.fee_growth_checkpoint_b = update.fee_growth_checkpoint_b;
self.fee_owed_a = update.fee_owed_a;
self.fee_owed_b = update.fee_owed_b;
self.reward_infos = update.reward_infos;
}
pub fn open_position(
&mut self,
whirlpool: &Account<Whirlpool>,
position_mint: Pubkey,
tick_lower_index: i32,
tick_upper_index: i32,
) -> Result<()> {
if !Tick::check_is_usable_tick(tick_lower_index, whirlpool.tick_spacing)
|| !Tick::check_is_usable_tick(tick_upper_index, whirlpool.tick_spacing)
|| tick_lower_index >= tick_upper_index
{
return Err(ErrorCode::InvalidTickIndex.into());
}
// On tick spacing >= 2^15, should only be able to open full range positions
if whirlpool.tick_spacing >= FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD {
let (full_range_lower_index, full_range_upper_index) =
Tick::full_range_indexes(whirlpool.tick_spacing);
if tick_lower_index != full_range_lower_index
|| tick_upper_index != full_range_upper_index
{
return Err(ErrorCode::FullRangeOnlyPool.into());
}
}
self.whirlpool = whirlpool.key();
self.position_mint = position_mint;
self.tick_lower_index = tick_lower_index;
self.tick_upper_index = tick_upper_index;
Ok(())
}
pub fn reset_fees_owed(&mut self) {
self.fee_owed_a = 0;
self.fee_owed_b = 0;
}
pub fn update_reward_owed(&mut self, index: usize, amount_owed: u64) {
self.reward_infos[index].amount_owed = amount_owed;
}
}
#[derive(Copy, Clone, AnchorSerialize, AnchorDeserialize, Default, Debug, PartialEq)]
pub struct PositionRewardInfo {
// Q64.64
pub growth_inside_checkpoint: u128,
pub amount_owed: u64,
}
#[derive(Default, Debug, PartialEq)]
pub struct PositionUpdate {
pub liquidity: u128,
pub fee_growth_checkpoint_a: u128,
pub fee_owed_a: u64,
pub fee_growth_checkpoint_b: u128,
pub fee_owed_b: u64,
pub reward_infos: [PositionRewardInfo; NUM_REWARDS],
}
#[cfg(test)]
mod is_position_empty_tests {
use super::*;
use crate::constants::test_constants::*;
pub fn build_test_position(
liquidity: u128,
fee_owed_a: u64,
fee_owed_b: u64,
reward_owed_0: u64,
reward_owed_1: u64,
reward_owed_2: u64,
) -> Position {
Position {
whirlpool: test_program_id(),
position_mint: test_program_id(),
liquidity,
tick_lower_index: 0,
tick_upper_index: 0,
fee_growth_checkpoint_a: 0,
fee_owed_a,
fee_growth_checkpoint_b: 0,
fee_owed_b,
reward_infos: [
PositionRewardInfo {
growth_inside_checkpoint: 0,
amount_owed: reward_owed_0,
},
PositionRewardInfo {
growth_inside_checkpoint: 0,
amount_owed: reward_owed_1,
},
PositionRewardInfo {
growth_inside_checkpoint: 0,
amount_owed: reward_owed_2,
},
],
}
}
#[test]
fn test_position_empty() {
let pos = build_test_position(0, 0, 0, 0, 0, 0);
assert!(Position::is_position_empty(&pos));
}
#[test]
fn test_liquidity_non_zero() {
let pos = build_test_position(100, 0, 0, 0, 0, 0);
assert!(!Position::is_position_empty(&pos));
}
#[test]
fn test_fee_a_non_zero() {
let pos = build_test_position(0, 100, 0, 0, 0, 0);
assert!(!Position::is_position_empty(&pos));
}
#[test]
fn test_fee_b_non_zero() {
let pos = build_test_position(0, 0, 100, 0, 0, 0);
assert!(!Position::is_position_empty(&pos));
}
#[test]
fn test_reward_0_non_zero() {
let pos = build_test_position(0, 0, 0, 100, 0, 0);
assert!(!Position::is_position_empty(&pos));
}
#[test]
fn test_reward_1_non_zero() {
let pos = build_test_position(0, 0, 0, 0, 100, 0);
assert!(!Position::is_position_empty(&pos));
}
#[test]
fn test_reward_2_non_zero() {
let pos = build_test_position(0, 0, 0, 0, 0, 100);
assert!(!Position::is_position_empty(&pos));
}
}
#[cfg(test)]
pub mod position_builder {
use anchor_lang::prelude::Pubkey;
use super::{Position, PositionRewardInfo};
use crate::state::NUM_REWARDS;
#[derive(Default)]
pub struct PositionBuilder {
liquidity: u128,
tick_lower_index: i32,
tick_upper_index: i32,
// Q64.64
fee_growth_checkpoint_a: u128,
fee_owed_a: u64,
// Q64.64
fee_growth_checkpoint_b: u128,
fee_owed_b: u64,
// Size should equal state::NUM_REWARDS
reward_infos: [PositionRewardInfo; NUM_REWARDS],
}
impl PositionBuilder {
pub fn new(tick_lower_index: i32, tick_upper_index: i32) -> Self {
Self {
tick_lower_index,
tick_upper_index,
reward_infos: [PositionRewardInfo::default(); NUM_REWARDS],
..Default::default()
}
}
pub fn liquidity(mut self, liquidity: u128) -> Self {
self.liquidity = liquidity;
self
}
pub fn fee_growth_checkpoint_a(mut self, fee_growth_checkpoint_a: u128) -> Self {
self.fee_growth_checkpoint_a = fee_growth_checkpoint_a;
self
}
pub fn fee_growth_checkpoint_b(mut self, fee_growth_checkpoint_b: u128) -> Self {
self.fee_growth_checkpoint_b = fee_growth_checkpoint_b;
self
}
pub fn fee_owed_a(mut self, fee_owed_a: u64) -> Self {
self.fee_owed_a = fee_owed_a;
self
}
pub fn fee_owed_b(mut self, fee_owed_b: u64) -> Self {
self.fee_owed_b = fee_owed_b;
self
}
pub fn reward_info(mut self, index: usize, reward_info: PositionRewardInfo) -> Self {
self.reward_infos[index] = reward_info;
self
}
pub fn reward_infos(mut self, reward_infos: [PositionRewardInfo; NUM_REWARDS]) -> Self {
self.reward_infos = reward_infos;
self
}
pub fn build(self) -> Position {
Position {
whirlpool: Pubkey::new_unique(),
position_mint: Pubkey::new_unique(),
liquidity: self.liquidity,
fee_growth_checkpoint_a: self.fee_growth_checkpoint_a,
fee_growth_checkpoint_b: self.fee_growth_checkpoint_b,
fee_owed_a: self.fee_owed_a,
fee_owed_b: self.fee_owed_b,
reward_infos: self.reward_infos,
tick_lower_index: self.tick_lower_index,
tick_upper_index: self.tick_upper_index,
}
}
}
}
#[cfg(test)]
mod data_layout_tests {
use anchor_lang::Discriminator;
use super::*;
#[test]
fn test_position_data_layout() {
let position_whirlpool = Pubkey::new_unique();
let position_position_mint = Pubkey::new_unique();
let position_liquidity = 0x11223344556677889900aabbccddeeffu128;
let position_tick_lower_index = 0x11002233i32;
let position_tick_upper_index = 0x22003344i32;
let position_fee_growth_checkpoint_a = 0x11002233445566778899aabbccddeeffu128;
let position_fee_owed_a = 0x11ff223344556677u64;
let position_fee_growth_checkpoint_b = 0x11220033445566778899aabbccddeeffu128;
let position_fee_owed_b = 0x1122ff3344556677u64;
let position_reward_info_growth_inside_checkpoint = 0x112233445566778899ffaabbccddee00u128;
let position_reward_info_amount_owed = 0x1122334455667788u64;
// manually build the expected data layout
let mut position_reward_data = [0u8; 24];
let mut offset = 0;
position_reward_data[offset..offset + 16]
.copy_from_slice(&position_reward_info_growth_inside_checkpoint.to_le_bytes());
offset += 16;
position_reward_data[offset..offset + 8]
.copy_from_slice(&position_reward_info_amount_owed.to_le_bytes());
let mut position_data = [0u8; Position::LEN];
let mut offset = 0;
position_data[offset..offset + 8].copy_from_slice(&Position::discriminator());
offset += 8;
position_data[offset..offset + 32].copy_from_slice(&position_whirlpool.to_bytes());
offset += 32;
position_data[offset..offset + 32].copy_from_slice(&position_position_mint.to_bytes());
offset += 32;
position_data[offset..offset + 16].copy_from_slice(&position_liquidity.to_le_bytes());
offset += 16;
position_data[offset..offset + 4].copy_from_slice(&position_tick_lower_index.to_le_bytes());
offset += 4;
position_data[offset..offset + 4].copy_from_slice(&position_tick_upper_index.to_le_bytes());
offset += 4;
position_data[offset..offset + 16]
.copy_from_slice(&position_fee_growth_checkpoint_a.to_le_bytes());
offset += 16;
position_data[offset..offset + 8].copy_from_slice(&position_fee_owed_a.to_le_bytes());
offset += 8;
position_data[offset..offset + 16]
.copy_from_slice(&position_fee_growth_checkpoint_b.to_le_bytes());
offset += 16;
position_data[offset..offset + 8].copy_from_slice(&position_fee_owed_b.to_le_bytes());
offset += 8;
for _ in 0..NUM_REWARDS {
position_data[offset..offset + position_reward_data.len()]
.copy_from_slice(&position_reward_data);
offset += position_reward_data.len();
}
assert_eq!(offset, Position::LEN);
// deserialize
let deserialized = Position::try_deserialize(&mut position_data.as_ref()).unwrap();
assert_eq!(position_whirlpool, deserialized.whirlpool);
assert_eq!(position_position_mint, deserialized.position_mint);
assert_eq!(position_liquidity, deserialized.liquidity);
assert_eq!(position_tick_lower_index, deserialized.tick_lower_index);
assert_eq!(position_tick_upper_index, deserialized.tick_upper_index);
assert_eq!(
position_fee_growth_checkpoint_a,
deserialized.fee_growth_checkpoint_a
);
assert_eq!(position_fee_owed_a, deserialized.fee_owed_a);
assert_eq!(
position_fee_growth_checkpoint_b,
deserialized.fee_growth_checkpoint_b
);
assert_eq!(position_fee_owed_b, deserialized.fee_owed_b);
for i in 0..NUM_REWARDS {
assert_eq!(
position_reward_info_growth_inside_checkpoint,
deserialized.reward_infos[i].growth_inside_checkpoint
);
assert_eq!(
position_reward_info_amount_owed,
deserialized.reward_infos[i].amount_owed
);
}
// serialize
let mut serialized = Vec::new();
deserialized.try_serialize(&mut serialized).unwrap();
assert_eq!(serialized.as_slice(), position_data.as_ref());
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/state/tick.rs
|
use crate::errors::ErrorCode;
use crate::state::NUM_REWARDS;
use anchor_lang::prelude::*;
use super::Whirlpool;
// Max & min tick index based on sqrt(1.0001) & max.min price of 2^64
pub const MAX_TICK_INDEX: i32 = 443636;
pub const MIN_TICK_INDEX: i32 = -443636;
// We have two consts because most of our code uses it as a i32. However,
// for us to use it in tick array declarations, anchor requires it to be a usize.
pub const TICK_ARRAY_SIZE: i32 = 88;
pub const TICK_ARRAY_SIZE_USIZE: usize = 88;
#[zero_copy(unsafe)]
#[repr(C, packed)]
#[derive(Default, Debug, PartialEq)]
pub struct Tick {
// Total 137 bytes
pub initialized: bool, // 1
pub liquidity_net: i128, // 16
pub liquidity_gross: u128, // 16
// Q64.64
pub fee_growth_outside_a: u128, // 16
// Q64.64
pub fee_growth_outside_b: u128, // 16
// Array of Q64.64
pub reward_growths_outside: [u128; NUM_REWARDS], // 48 = 16 * 3
}
impl Tick {
pub const LEN: usize = 113;
/// Apply an update for this tick
///
/// # Parameters
/// - `update` - An update object to update the values in this tick
pub fn update(&mut self, update: &TickUpdate) {
self.initialized = update.initialized;
self.liquidity_net = update.liquidity_net;
self.liquidity_gross = update.liquidity_gross;
self.fee_growth_outside_a = update.fee_growth_outside_a;
self.fee_growth_outside_b = update.fee_growth_outside_b;
self.reward_growths_outside = update.reward_growths_outside;
}
/// Check that the tick index is within the supported range of this contract
///
/// # Parameters
/// - `tick_index` - A i32 integer representing the tick index
///
/// # Returns
/// - `true`: The tick index is not within the range supported by this contract
/// - `false`: The tick index is within the range supported by this contract
pub fn check_is_out_of_bounds(tick_index: i32) -> bool {
!(MIN_TICK_INDEX..=MAX_TICK_INDEX).contains(&tick_index)
}
/// Check that the tick index is a valid start tick for a tick array in this whirlpool
/// A valid start-tick-index is a multiple of tick_spacing & number of ticks in a tick-array.
///
/// # Parameters
/// - `tick_index` - A i32 integer representing the tick index
/// - `tick_spacing` - A u8 integer of the tick spacing for this whirlpool
///
/// # Returns
/// - `true`: The tick index is a valid start-tick-index for this whirlpool
/// - `false`: The tick index is not a valid start-tick-index for this whirlpool
/// or the tick index not within the range supported by this contract
pub fn check_is_valid_start_tick(tick_index: i32, tick_spacing: u16) -> bool {
let ticks_in_array = TICK_ARRAY_SIZE * tick_spacing as i32;
if Tick::check_is_out_of_bounds(tick_index) {
// Left-edge tick-array can have a start-tick-index smaller than the min tick index
if tick_index > MIN_TICK_INDEX {
return false;
}
let min_array_start_index =
MIN_TICK_INDEX - (MIN_TICK_INDEX % ticks_in_array + ticks_in_array);
return tick_index == min_array_start_index;
}
tick_index % ticks_in_array == 0
}
/// Check that the tick index is within bounds and is a usable tick index for the given tick spacing.
///
/// # Parameters
/// - `tick_index` - A i32 integer representing the tick index
/// - `tick_spacing` - A u8 integer of the tick spacing for this whirlpool
///
/// # Returns
/// - `true`: The tick index is within max/min index bounds for this protocol and is a usable tick-index given the tick-spacing
/// - `false`: The tick index is out of bounds or is not a usable tick for this tick-spacing
pub fn check_is_usable_tick(tick_index: i32, tick_spacing: u16) -> bool {
if Tick::check_is_out_of_bounds(tick_index) {
return false;
}
tick_index % tick_spacing as i32 == 0
}
pub fn full_range_indexes(tick_spacing: u16) -> (i32, i32) {
let lower_index = MIN_TICK_INDEX / tick_spacing as i32 * tick_spacing as i32;
let upper_index = MAX_TICK_INDEX / tick_spacing as i32 * tick_spacing as i32;
(lower_index, upper_index)
}
/// Bound a tick-index value to the max & min index value for this protocol
///
/// # Parameters
/// - `tick_index` - A i32 integer representing the tick index
///
/// # Returns
/// - `i32` The input tick index value but bounded by the max/min value of this protocol.
pub fn bound_tick_index(tick_index: i32) -> i32 {
tick_index.clamp(MIN_TICK_INDEX, MAX_TICK_INDEX)
}
}
#[derive(Default, Debug, PartialEq)]
pub struct TickUpdate {
pub initialized: bool,
pub liquidity_net: i128,
pub liquidity_gross: u128,
pub fee_growth_outside_a: u128,
pub fee_growth_outside_b: u128,
pub reward_growths_outside: [u128; NUM_REWARDS],
}
impl TickUpdate {
pub fn from(tick: &Tick) -> TickUpdate {
TickUpdate {
initialized: tick.initialized,
liquidity_net: tick.liquidity_net,
liquidity_gross: tick.liquidity_gross,
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,
}
}
}
pub trait TickArrayType {
fn start_tick_index(&self) -> i32;
fn get_next_init_tick_index(
&self,
tick_index: i32,
tick_spacing: u16,
a_to_b: bool,
) -> Result<Option<i32>>;
fn get_tick(&self, tick_index: i32, tick_spacing: u16) -> Result<&Tick>;
fn update_tick(
&mut self,
tick_index: i32,
tick_spacing: u16,
update: &TickUpdate,
) -> Result<()>;
/// Checks that this array holds the next tick index for the current tick index, given the pool's tick spacing & search direction.
///
/// unshifted checks on [start, start + TICK_ARRAY_SIZE * tick_spacing)
/// shifted checks on [start - tick_spacing, start + (TICK_ARRAY_SIZE - 1) * tick_spacing) (adjusting range by -tick_spacing)
///
/// shifted == !a_to_b
///
/// For a_to_b swaps, price moves left. All searchable ticks in this tick-array's range will end up in this tick's usable ticks.
/// The search range is therefore the range of the tick-array.
///
/// For b_to_a swaps, this tick-array's left-most ticks can be the 'next' usable tick-index of the previous tick-array.
/// The right-most ticks also points towards the next tick-array. The search range is therefore shifted by 1 tick-spacing.
fn in_search_range(&self, tick_index: i32, tick_spacing: u16, shifted: bool) -> bool {
let mut lower = self.start_tick_index();
let mut upper = self.start_tick_index() + TICK_ARRAY_SIZE * tick_spacing as i32;
if shifted {
lower -= tick_spacing as i32;
upper -= tick_spacing as i32;
}
tick_index >= lower && tick_index < upper
}
fn check_in_array_bounds(&self, tick_index: i32, tick_spacing: u16) -> bool {
self.in_search_range(tick_index, tick_spacing, false)
}
fn is_min_tick_array(&self) -> bool {
self.start_tick_index() <= MIN_TICK_INDEX
}
fn is_max_tick_array(&self, tick_spacing: u16) -> bool {
self.start_tick_index() + TICK_ARRAY_SIZE * (tick_spacing as i32) > MAX_TICK_INDEX
}
fn tick_offset(&self, tick_index: i32, tick_spacing: u16) -> Result<isize> {
if tick_spacing == 0 {
return Err(ErrorCode::InvalidTickSpacing.into());
}
Ok(get_offset(
tick_index,
self.start_tick_index(),
tick_spacing,
))
}
}
fn get_offset(tick_index: i32, start_tick_index: i32, tick_spacing: u16) -> isize {
// TODO: replace with i32.div_floor once not experimental
let lhs = tick_index - start_tick_index;
let rhs = tick_spacing as i32;
let d = lhs / rhs;
let r = lhs % rhs;
let o = if (r > 0 && rhs < 0) || (r < 0 && rhs > 0) {
d - 1
} else {
d
};
o as isize
}
#[account(zero_copy(unsafe))]
#[repr(C, packed)]
pub struct TickArray {
pub start_tick_index: i32,
pub ticks: [Tick; TICK_ARRAY_SIZE_USIZE],
pub whirlpool: Pubkey,
}
impl Default for TickArray {
#[inline]
fn default() -> TickArray {
TickArray {
whirlpool: Pubkey::default(),
ticks: [Tick::default(); TICK_ARRAY_SIZE_USIZE],
start_tick_index: 0,
}
}
}
impl TickArray {
pub const LEN: usize = 8 + 36 + (Tick::LEN * TICK_ARRAY_SIZE_USIZE);
/// Initialize the TickArray object
///
/// # Parameters
/// - `whirlpool` - the tick index the desired Tick object is stored in
/// - `start_tick_index` - A u8 integer of the tick spacing for this whirlpool
///
/// # Errors
/// - `InvalidStartTick`: - The provided start-tick-index is not an initializable tick index in this Whirlpool w/ this tick-spacing.
pub fn initialize(
&mut self,
whirlpool: &Account<Whirlpool>,
start_tick_index: i32,
) -> Result<()> {
if !Tick::check_is_valid_start_tick(start_tick_index, whirlpool.tick_spacing) {
return Err(ErrorCode::InvalidStartTick.into());
}
self.whirlpool = whirlpool.key();
self.start_tick_index = start_tick_index;
Ok(())
}
}
impl TickArrayType for TickArray {
fn start_tick_index(&self) -> i32 {
self.start_tick_index
}
/// Search for the next initialized tick in this array.
///
/// # Parameters
/// - `tick_index` - A i32 integer representing the tick index to start searching for
/// - `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.
///
/// # Returns
/// - `Some(i32)`: The next initialized tick index of this array
/// - `None`: An initialized tick index was not found in this array
/// - `InvalidTickArraySequence` - error if `tick_index` is not a valid search tick for the array
/// - `InvalidTickSpacing` - error if the provided tick spacing is 0
fn get_next_init_tick_index(
&self,
tick_index: i32,
tick_spacing: u16,
a_to_b: bool,
) -> Result<Option<i32>> {
if !self.in_search_range(tick_index, tick_spacing, !a_to_b) {
return Err(ErrorCode::InvalidTickArraySequence.into());
}
let mut curr_offset = match self.tick_offset(tick_index, tick_spacing) {
Ok(value) => value as i32,
Err(e) => return Err(e),
};
// For a_to_b searches, the search moves to the left. The next possible init-tick can be the 1st tick in the current offset
// For b_to_a searches, the search moves to the right. The next possible init-tick cannot be within the current offset
if !a_to_b {
curr_offset += 1;
}
while (0..TICK_ARRAY_SIZE).contains(&curr_offset) {
let curr_tick = self.ticks[curr_offset as usize];
if curr_tick.initialized {
return Ok(Some(
(curr_offset * tick_spacing as i32) + self.start_tick_index,
));
}
curr_offset = if a_to_b {
curr_offset - 1
} else {
curr_offset + 1
};
}
Ok(None)
}
/// Get the Tick object at the given tick-index & tick-spacing
///
/// # Parameters
/// - `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
/// - `TickNotFound`: - The provided tick-index is not an initializable tick index in this Whirlpool w/ this tick-spacing.
fn get_tick(&self, tick_index: i32, tick_spacing: u16) -> Result<&Tick> {
if !self.check_in_array_bounds(tick_index, tick_spacing)
|| !Tick::check_is_usable_tick(tick_index, tick_spacing)
{
return Err(ErrorCode::TickNotFound.into());
}
let offset = self.tick_offset(tick_index, tick_spacing)?;
if offset < 0 {
return Err(ErrorCode::TickNotFound.into());
}
Ok(&self.ticks[offset as usize])
}
/// Updates the Tick object at the given tick-index & tick-spacing
///
/// # Parameters
/// - `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
/// - `TickNotFound`: - The provided tick-index is not an initializable tick index in this Whirlpool w/ this tick-spacing.
fn update_tick(
&mut self,
tick_index: i32,
tick_spacing: u16,
update: &TickUpdate,
) -> Result<()> {
if !self.check_in_array_bounds(tick_index, tick_spacing)
|| !Tick::check_is_usable_tick(tick_index, tick_spacing)
{
return Err(ErrorCode::TickNotFound.into());
}
let offset = self.tick_offset(tick_index, tick_spacing)?;
if offset < 0 {
return Err(ErrorCode::TickNotFound.into());
}
self.ticks.get_mut(offset as usize).unwrap().update(update);
Ok(())
}
}
pub(crate) struct ZeroedTickArray {
pub start_tick_index: i32,
zeroed_tick: Tick,
}
impl ZeroedTickArray {
pub fn new(start_tick_index: i32) -> Self {
ZeroedTickArray {
start_tick_index,
zeroed_tick: Tick::default(),
}
}
}
impl TickArrayType for ZeroedTickArray {
fn start_tick_index(&self) -> i32 {
self.start_tick_index
}
fn get_next_init_tick_index(
&self,
tick_index: i32,
tick_spacing: u16,
a_to_b: bool,
) -> Result<Option<i32>> {
if !self.in_search_range(tick_index, tick_spacing, !a_to_b) {
return Err(ErrorCode::InvalidTickArraySequence.into());
}
self.tick_offset(tick_index, tick_spacing)?;
// no initialized tick
Ok(None)
}
fn get_tick(&self, tick_index: i32, tick_spacing: u16) -> Result<&Tick> {
if !self.check_in_array_bounds(tick_index, tick_spacing)
|| !Tick::check_is_usable_tick(tick_index, tick_spacing)
{
return Err(ErrorCode::TickNotFound.into());
}
let offset = self.tick_offset(tick_index, tick_spacing)?;
if offset < 0 {
return Err(ErrorCode::TickNotFound.into());
}
// always return the zeroed tick
Ok(&self.zeroed_tick)
}
fn update_tick(
&mut self,
_tick_index: i32,
_tick_spacing: u16,
_update: &TickUpdate,
) -> Result<()> {
panic!("ZeroedTickArray must not be updated");
}
}
#[cfg(test)]
pub mod tick_builder {
use super::Tick;
use crate::state::NUM_REWARDS;
#[derive(Default)]
pub struct TickBuilder {
initialized: bool,
liquidity_net: i128,
liquidity_gross: u128,
fee_growth_outside_a: u128,
fee_growth_outside_b: u128,
reward_growths_outside: [u128; NUM_REWARDS],
}
impl TickBuilder {
pub fn initialized(mut self, initialized: bool) -> Self {
self.initialized = initialized;
self
}
pub fn liquidity_net(mut self, liquidity_net: i128) -> Self {
self.liquidity_net = liquidity_net;
self
}
pub fn liquidity_gross(mut self, liquidity_gross: u128) -> Self {
self.liquidity_gross = liquidity_gross;
self
}
pub fn fee_growth_outside_a(mut self, fee_growth_outside_a: u128) -> Self {
self.fee_growth_outside_a = fee_growth_outside_a;
self
}
pub fn fee_growth_outside_b(mut self, fee_growth_outside_b: u128) -> Self {
self.fee_growth_outside_b = fee_growth_outside_b;
self
}
pub fn reward_growths_outside(
mut self,
reward_growths_outside: [u128; NUM_REWARDS],
) -> Self {
self.reward_growths_outside = reward_growths_outside;
self
}
pub fn build(self) -> Tick {
Tick {
initialized: self.initialized,
liquidity_net: self.liquidity_net,
liquidity_gross: self.liquidity_gross,
fee_growth_outside_a: self.fee_growth_outside_a,
fee_growth_outside_b: self.fee_growth_outside_b,
reward_growths_outside: self.reward_growths_outside,
}
}
}
}
#[cfg(test)]
mod fuzz_tests {
use super::*;
use proptest::prelude::*;
proptest! {
#[test]
fn test_get_search_and_offset(
tick_index in 2 * MIN_TICK_INDEX..2 * MAX_TICK_INDEX,
start_tick_index in 2 * MIN_TICK_INDEX..2 * MAX_TICK_INDEX,
tick_spacing in 1u16..u16::MAX,
a_to_b in proptest::bool::ANY,
) {
let array = TickArray {
start_tick_index,
..TickArray::default()
};
let in_search = array.in_search_range(tick_index, tick_spacing, !a_to_b);
let mut lower_bound = start_tick_index;
let mut upper_bound = start_tick_index + TICK_ARRAY_SIZE * tick_spacing as i32;
let mut offset_lower = 0;
let mut offset_upper = TICK_ARRAY_SIZE as isize;
// If we are doing b_to_a, we shift the index bounds by -tick_spacing
// and the offset bounds by -1
if !a_to_b {
lower_bound -= tick_spacing as i32;
upper_bound -= tick_spacing as i32;
offset_lower = -1;
offset_upper -= 1;
}
// in_bounds should be identical to search
let in_bounds = tick_index >= lower_bound && tick_index < upper_bound;
assert!(in_bounds == in_search);
if in_search {
let offset = get_offset(tick_index, start_tick_index, tick_spacing);
assert!(offset >= offset_lower && offset < offset_upper)
}
}
#[test]
fn test_get_offset(
tick_index in 2 * MIN_TICK_INDEX..2 * MAX_TICK_INDEX,
start_tick_index in 2 * MIN_TICK_INDEX..2 * MAX_TICK_INDEX,
tick_spacing in 1u16..u16::MAX,
) {
let offset = get_offset(tick_index, start_tick_index, tick_spacing);
let rounded = start_tick_index >= tick_index;
let raw = (tick_index - start_tick_index) / tick_spacing as i32;
let d = raw as isize;
if !rounded {
assert_eq!(offset, d);
} else {
assert!(offset == d || offset == (raw - 1) as isize);
}
}
}
}
#[cfg(test)]
mod check_is_valid_start_tick_tests {
use super::*;
const TS_8: u16 = 8;
const TS_128: u16 = 128;
#[test]
fn test_start_tick_is_zero() {
assert!(Tick::check_is_valid_start_tick(0, TS_8));
}
#[test]
fn test_start_tick_is_valid_ts8() {
assert!(Tick::check_is_valid_start_tick(704, TS_8));
}
#[test]
fn test_start_tick_is_valid_ts128() {
assert!(Tick::check_is_valid_start_tick(337920, TS_128));
}
#[test]
fn test_start_tick_is_valid_negative_ts8() {
assert!(Tick::check_is_valid_start_tick(-704, TS_8));
}
#[test]
fn test_start_tick_is_valid_negative_ts128() {
assert!(Tick::check_is_valid_start_tick(-337920, TS_128));
}
#[test]
fn test_start_tick_is_not_valid_ts8() {
assert!(!Tick::check_is_valid_start_tick(2353573, TS_8));
}
#[test]
fn test_start_tick_is_not_valid_ts128() {
assert!(!Tick::check_is_valid_start_tick(-2353573, TS_128));
}
#[test]
fn test_min_tick_array_start_tick_is_valid_ts8() {
let expected_array_index: i32 = (MIN_TICK_INDEX / TICK_ARRAY_SIZE / TS_8 as i32) - 1;
let expected_start_index_for_last_array: i32 =
expected_array_index * TICK_ARRAY_SIZE * TS_8 as i32;
assert!(Tick::check_is_valid_start_tick(
expected_start_index_for_last_array,
TS_8
))
}
#[test]
fn test_min_tick_array_sub_1_start_tick_is_invalid_ts8() {
let expected_array_index: i32 = (MIN_TICK_INDEX / TICK_ARRAY_SIZE / TS_8 as i32) - 2;
let expected_start_index_for_last_array: i32 =
expected_array_index * TICK_ARRAY_SIZE * TS_8 as i32;
assert!(!Tick::check_is_valid_start_tick(
expected_start_index_for_last_array,
TS_8
))
}
#[test]
fn test_min_tick_array_start_tick_is_valid_ts128() {
let expected_array_index: i32 = (MIN_TICK_INDEX / TICK_ARRAY_SIZE / TS_128 as i32) - 1;
let expected_start_index_for_last_array: i32 =
expected_array_index * TICK_ARRAY_SIZE * TS_128 as i32;
assert!(Tick::check_is_valid_start_tick(
expected_start_index_for_last_array,
TS_128
))
}
#[test]
fn test_min_tick_array_sub_1_start_tick_is_invalid_ts128() {
let expected_array_index: i32 = (MIN_TICK_INDEX / TICK_ARRAY_SIZE / TS_128 as i32) - 2;
let expected_start_index_for_last_array: i32 =
expected_array_index * TICK_ARRAY_SIZE * TS_128 as i32;
assert!(!Tick::check_is_valid_start_tick(
expected_start_index_for_last_array,
TS_128
))
}
}
#[cfg(test)]
mod check_is_out_of_bounds_tests {
use super::*;
#[test]
fn test_min_tick_index() {
assert!(!Tick::check_is_out_of_bounds(MIN_TICK_INDEX));
}
#[test]
fn test_max_tick_index() {
assert!(!Tick::check_is_out_of_bounds(MAX_TICK_INDEX));
}
#[test]
fn test_min_tick_index_sub_1() {
assert!(Tick::check_is_out_of_bounds(MIN_TICK_INDEX - 1));
}
#[test]
fn test_max_tick_index_add_1() {
assert!(Tick::check_is_out_of_bounds(MAX_TICK_INDEX + 1));
}
}
#[cfg(test)]
mod full_range_indexes_tests {
use crate::math::FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD;
use super::*;
#[test]
fn test_min_tick_spacing() {
assert_eq!(
Tick::full_range_indexes(1),
(MIN_TICK_INDEX, MAX_TICK_INDEX)
);
}
#[test]
fn test_standard_tick_spacing() {
assert_eq!(Tick::full_range_indexes(128), (-443520, 443520));
}
#[test]
fn test_full_range_only_tick_spacing() {
assert_eq!(
Tick::full_range_indexes(FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD),
(-425984, 425984)
);
}
#[test]
fn test_max_tick_spacing() {
assert_eq!(Tick::full_range_indexes(u16::MAX), (-393210, 393210));
}
}
#[cfg(test)]
mod array_update_tests {
use super::*;
#[test]
fn update_applies_successfully() {
let mut array = TickArray::default();
let tick_index = 8;
let original = Tick {
initialized: true,
liquidity_net: 2525252i128,
liquidity_gross: 2525252u128,
fee_growth_outside_a: 28728282u128,
fee_growth_outside_b: 22528728282u128,
reward_growths_outside: [124272242u128, 1271221u128, 966958u128],
};
array.ticks[1] = original;
let update = TickUpdate {
initialized: true,
liquidity_net: 24128472184712i128,
liquidity_gross: 353873892732u128,
fee_growth_outside_a: 3928372892u128,
fee_growth_outside_b: 12242u128,
reward_growths_outside: [53264u128, 539282u128, 98744u128],
};
let tick_spacing = 8;
array
.update_tick(tick_index, tick_spacing, &update)
.unwrap();
let expected = Tick {
initialized: true,
liquidity_net: 24128472184712i128,
liquidity_gross: 353873892732u128,
fee_growth_outside_a: 3928372892u128,
fee_growth_outside_b: 12242u128,
reward_growths_outside: [53264u128, 539282u128, 98744u128],
};
let result = array.get_tick(tick_index, tick_spacing).unwrap();
assert_eq!(*result, expected);
}
}
#[cfg(test)]
mod data_layout_tests {
use super::*;
#[test]
fn test_tick_array_data_layout() {
let tick_array_start_tick_index = 0x70e0d0c0i32;
let tick_array_whirlpool = Pubkey::new_unique();
let tick_initialized = true;
let tick_liquidity_net = 0x11002233445566778899aabbccddeeffi128;
let tick_liquidity_gross = 0xff00eeddccbbaa998877665544332211u128;
let tick_fee_growth_outside_a = 0x11220033445566778899aabbccddeeffu128;
let tick_fee_growth_outside_b = 0xffee00ddccbbaa998877665544332211u128;
let tick_reward_growths_outside = [
0x11223300445566778899aabbccddeeffu128,
0x11223344005566778899aabbccddeeffu128,
0x11223344550066778899aabbccddeeffu128,
];
// manually build the expected Tick data layout
let mut tick_data = [0u8; Tick::LEN];
let mut offset = 0;
tick_data[offset] = tick_initialized as u8;
offset += 1;
tick_data[offset..offset + 16].copy_from_slice(&tick_liquidity_net.to_le_bytes());
offset += 16;
tick_data[offset..offset + 16].copy_from_slice(&tick_liquidity_gross.to_le_bytes());
offset += 16;
tick_data[offset..offset + 16].copy_from_slice(&tick_fee_growth_outside_a.to_le_bytes());
offset += 16;
tick_data[offset..offset + 16].copy_from_slice(&tick_fee_growth_outside_b.to_le_bytes());
offset += 16;
for i in 0..NUM_REWARDS {
tick_data[offset..offset + 16]
.copy_from_slice(&tick_reward_growths_outside[i].to_le_bytes());
offset += 16;
}
// manually build the expected TickArray data layout
// note: no discriminator
let mut tick_array_data = [0u8; TickArray::LEN - 8];
let mut offset = 0;
tick_array_data[offset..offset + 4]
.copy_from_slice(&tick_array_start_tick_index.to_le_bytes());
offset += 4;
for _ in 0..TICK_ARRAY_SIZE_USIZE {
tick_array_data[offset..offset + Tick::LEN].copy_from_slice(&tick_data);
offset += Tick::LEN;
}
tick_array_data[offset..offset + 32].copy_from_slice(&tick_array_whirlpool.to_bytes());
offset += 32;
assert_eq!(offset, tick_array_data.len());
assert_eq!(tick_array_data.len(), core::mem::size_of::<TickArray>());
// cast from bytes to TickArray (re-interpret)
let tick_array: &TickArray = bytemuck::from_bytes(&tick_array_data);
// check that the data layout matches the expected layout
let read_start_tick_index = tick_array.start_tick_index;
assert_eq!(read_start_tick_index, tick_array_start_tick_index);
for i in 0..TICK_ARRAY_SIZE_USIZE {
let read_tick = tick_array.ticks[i];
let read_initialized = read_tick.initialized;
assert_eq!(read_initialized, tick_initialized);
let read_liquidity_net = read_tick.liquidity_net;
assert_eq!(read_liquidity_net, tick_liquidity_net);
let read_liquidity_gross = read_tick.liquidity_gross;
assert_eq!(read_liquidity_gross, tick_liquidity_gross);
let read_fee_growth_outside_a = read_tick.fee_growth_outside_a;
assert_eq!(read_fee_growth_outside_a, tick_fee_growth_outside_a);
let read_fee_growth_outside_b = read_tick.fee_growth_outside_b;
assert_eq!(read_fee_growth_outside_b, tick_fee_growth_outside_b);
let read_reward_growths_outside = read_tick.reward_growths_outside;
assert_eq!(read_reward_growths_outside, tick_reward_growths_outside);
}
let read_whirlpool = tick_array.whirlpool;
assert_eq!(read_whirlpool, tick_array_whirlpool);
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/math/swap_math.rs
|
use std::convert::TryInto;
use crate::errors::ErrorCode;
use crate::math::*;
pub const NO_EXPLICIT_SQRT_PRICE_LIMIT: u128 = 0u128;
#[derive(PartialEq, Debug)]
pub struct SwapStepComputation {
pub amount_in: u64,
pub amount_out: u64,
pub next_price: u128,
pub fee_amount: u64,
}
pub fn compute_swap(
amount_remaining: u64,
fee_rate: u16,
liquidity: u128,
sqrt_price_current: u128,
sqrt_price_target: u128,
amount_specified_is_input: bool,
a_to_b: bool,
) -> Result<SwapStepComputation, ErrorCode> {
// Since SplashPool (aka FullRange only pool) has only 2 initialized ticks at both ends,
// the possibility of exceeding u64 when calculating "delta amount" is higher than concentrated pools.
// This problem occurs with ExactIn.
// The reason is that in ExactOut, "fixed delta" never exceeds the amount of tokens present in the pool and is clearly within the u64 range.
// On the other hand, for ExactIn, "fixed delta" may exceed u64 because it calculates the amount of tokens needed to move the price to the end.
// However, the primary purpose of initial calculation of "fixed delta" is to determine whether or not the iteration is "max swap" or not.
// So the info that “the amount of tokens required exceeds the u64 range” is sufficient to determine that the iteration is NOT "max swap".
//
// delta <= u64::MAX: AmountDeltaU64::Valid
// delta > u64::MAX: AmountDeltaU64::ExceedsMax
let initial_amount_fixed_delta = try_get_amount_fixed_delta(
sqrt_price_current,
sqrt_price_target,
liquidity,
amount_specified_is_input,
a_to_b,
)?;
let mut amount_calc = amount_remaining;
if amount_specified_is_input {
amount_calc = checked_mul_div(
amount_remaining as u128,
FEE_RATE_MUL_VALUE - fee_rate as u128,
FEE_RATE_MUL_VALUE,
)?
.try_into()?;
}
let next_sqrt_price = if initial_amount_fixed_delta.lte(amount_calc) {
sqrt_price_target
} else {
get_next_sqrt_price(
sqrt_price_current,
liquidity,
amount_calc,
amount_specified_is_input,
a_to_b,
)?
};
let is_max_swap = next_sqrt_price == sqrt_price_target;
let amount_unfixed_delta = get_amount_unfixed_delta(
sqrt_price_current,
next_sqrt_price,
liquidity,
amount_specified_is_input,
a_to_b,
)?;
// If the swap is not at the max, we need to readjust the amount of the fixed token we are using
let amount_fixed_delta = if !is_max_swap || initial_amount_fixed_delta.exceeds_max() {
// next_sqrt_price is calculated by get_next_sqrt_price and the result will be in the u64 range.
get_amount_fixed_delta(
sqrt_price_current,
next_sqrt_price,
liquidity,
amount_specified_is_input,
a_to_b,
)?
} else {
// the result will be in the u64 range.
initial_amount_fixed_delta.value()
};
let (amount_in, mut amount_out) = if amount_specified_is_input {
(amount_fixed_delta, amount_unfixed_delta)
} else {
(amount_unfixed_delta, amount_fixed_delta)
};
// Cap output amount if using output
if !amount_specified_is_input && amount_out > amount_remaining {
amount_out = amount_remaining;
}
let fee_amount = if amount_specified_is_input && !is_max_swap {
amount_remaining - amount_in
} else {
checked_mul_div_round_up(
amount_in as u128,
fee_rate as u128,
FEE_RATE_MUL_VALUE - fee_rate as u128,
)?
.try_into()?
};
Ok(SwapStepComputation {
amount_in,
amount_out,
next_price: next_sqrt_price,
fee_amount,
})
}
fn get_amount_fixed_delta(
sqrt_price_current: u128,
sqrt_price_target: u128,
liquidity: u128,
amount_specified_is_input: bool,
a_to_b: bool,
) -> Result<u64, ErrorCode> {
if a_to_b == amount_specified_is_input {
get_amount_delta_a(
sqrt_price_current,
sqrt_price_target,
liquidity,
amount_specified_is_input,
)
} else {
get_amount_delta_b(
sqrt_price_current,
sqrt_price_target,
liquidity,
amount_specified_is_input,
)
}
}
fn try_get_amount_fixed_delta(
sqrt_price_current: u128,
sqrt_price_target: u128,
liquidity: u128,
amount_specified_is_input: bool,
a_to_b: bool,
) -> Result<AmountDeltaU64, ErrorCode> {
if a_to_b == amount_specified_is_input {
try_get_amount_delta_a(
sqrt_price_current,
sqrt_price_target,
liquidity,
amount_specified_is_input,
)
} else {
try_get_amount_delta_b(
sqrt_price_current,
sqrt_price_target,
liquidity,
amount_specified_is_input,
)
}
}
fn get_amount_unfixed_delta(
sqrt_price_current: u128,
sqrt_price_target: u128,
liquidity: u128,
amount_specified_is_input: bool,
a_to_b: bool,
) -> Result<u64, ErrorCode> {
if a_to_b == amount_specified_is_input {
get_amount_delta_b(
sqrt_price_current,
sqrt_price_target,
liquidity,
!amount_specified_is_input,
)
} else {
get_amount_delta_a(
sqrt_price_current,
sqrt_price_target,
liquidity,
!amount_specified_is_input,
)
}
}
#[cfg(test)]
mod fuzz_tests {
use super::*;
use proptest::prelude::*;
proptest! {
#[test]
fn test_compute_swap(
amount in 1..u64::MAX,
liquidity in 1..u32::MAX as u128,
fee_rate in 1..u16::MAX,
price_0 in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64,
price_1 in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64,
amount_specified_is_input in proptest::bool::ANY,
) {
prop_assume!(price_0 != price_1);
// Rather than use logic to correctly input the prices, we just use the distribution to determine direction
let a_to_b = price_0 >= price_1;
let swap_computation = compute_swap(
amount,
fee_rate,
liquidity,
price_0,
price_1,
amount_specified_is_input,
a_to_b,
).ok().unwrap();
let amount_in = swap_computation.amount_in;
let amount_out = swap_computation.amount_out;
let next_price = swap_computation.next_price;
let fee_amount = swap_computation.fee_amount;
// Amount_in can not exceed maximum amount
assert!(amount_in <= u64::MAX - fee_amount);
// Amounts calculated are less than amount specified
let amount_used = if amount_specified_is_input {
amount_in + fee_amount
} else {
amount_out
};
if next_price != price_1 {
assert!(amount_used == amount);
} else {
assert!(amount_used <= amount);
}
let (price_lower, price_upper) = increasing_price_order(price_0, price_1);
assert!(next_price >= price_lower);
assert!(next_price <= price_upper);
}
#[test]
fn test_compute_swap_inversion(
amount in 1..u64::MAX,
liquidity in 1..u32::MAX as u128,
fee_rate in 1..u16::MAX,
price_0 in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64,
price_1 in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64,
amount_specified_is_input in proptest::bool::ANY,
) {
prop_assume!(price_0 != price_1);
// Rather than use logic to correctly input the prices, we just use the distribution to determine direction
let a_to_b = price_0 >= price_1;
let swap_computation = compute_swap(
amount,
fee_rate,
liquidity,
price_0,
price_1,
amount_specified_is_input,
a_to_b,
).ok().unwrap();
let amount_in = swap_computation.amount_in;
let amount_out = swap_computation.amount_out;
let next_price = swap_computation.next_price;
let fee_amount = swap_computation.fee_amount;
let inverted_amount = if amount_specified_is_input {
amount_out
} else {
amount_in + fee_amount
};
if inverted_amount != 0 {
let inverted = compute_swap(
inverted_amount,
fee_rate,
liquidity,
price_0,
price_1,
!amount_specified_is_input,
a_to_b,
).ok().unwrap();
// A to B = price decreasing
// Case 1
// Normal: is_input, a_to_b
// Input is fixed, consume all input to produce amount_out
// amount_in = fixed, ceil
// amount_out = unfixed, floor
// Inverted: !is_input, a_to_b
// amount_in = unfixed, ceil
// amount_out = fixed, floor
// Amount = amount_out, inverted.amount_in and fee <= original input and fee, inverted.amount_out ~~ amount_out, inverted.next_price >= original.next_price
// Case 2
// Normal: !is_input, a_to_b
// Find amount required to get amount_out
// amount_in = unfixed, ceil
// amount_out = fixed, floor
// Inverted: is_input, a_to_b
// amount_in = fixed, ceil
// amount_out = unfixed, floor
// Get max amount_out for input, inverted.amount_in + fee ~~ original input and fee, inverted.amount_out >= amount_out, inverted.next_price <= original.next_price
// Price increasing
// Case 3
// Normal: is_input, !a_to_b
// Input is fixed, consume all input to produce amount_out
// amount_in = fixed, ceil
// amount_out = unfixed, floor
// Inverted: !is_input, !a_to_b
// Amount = amount_out, inverted.amount_in and fee <= original input and fee, inverted.amount_out ~~ amount_out, inverted.next_price <= original.next_price
// Case 4
// Normal: !is_input, !a_to_b
// Find amount required to get amount_out
// amount_in = fixed, floor
// amount_out = unfixed, ceil
// Inverted: is_input, !a_to_b
// Get max amount_out for input, inverted.amount_in + fee ~~ original input and fee, inverted.amount_out >= amount_out
// Since inverted.amount_out >= amount_out and amount in is the same, more of token a is being removed, so
// inverted.next_price >= original.next_price
// Next sqrt price goes from round up to round down
// assert!(inverted.next_price + 1 >= next_price);
if inverted.next_price != price_1 {
if amount_specified_is_input {
// If a_to_b, then goes round up => round down,
assert!(inverted.amount_in <= amount_in);
assert!(inverted.fee_amount <= fee_amount);
} else {
assert!(inverted.amount_in >= amount_in);
assert!(inverted.fee_amount >= fee_amount);
}
assert!(inverted.amount_out >= amount_out);
if a_to_b == amount_specified_is_input {
// Next sqrt price goes from round up to round down
assert!(inverted.next_price >= next_price);
} else {
// Next sqrt price goes from round down to round up
assert!(inverted.next_price <= next_price);
}
// Ratio calculations
// let ratio_in = (u128::from(inverted.amount_in) << 64) / u128::from(amount_in);
// let ratio_out = (u128::from(inverted.amount_out) << 64) / u128::from(amount_out);
// println!("RATIO IN/OUT WHEN INVERTED {} \t| {} ", ratio_in, ratio_out);
// if ratio_out > (2 << 64) || ratio_in < (1 << 63) {
// if ratio_out > (2 << 64) {
// println!("OUT > {}", ratio_out / (1 << 64));
// }
// if ratio_in < (1 << 63) {
// println!("IN < 1/{}", (1 << 64) / ratio_in);
// }
// println!("liq {} | fee {} | price_0 {} | price_1 {} | a_to_b {}", liquidity, fee_rate, price_0, price_1, a_to_b);
// println!("Amount {} | is_input {}", amount, amount_specified_is_input);
// println!("Inverted Amount {} | is_input {}", inverted_amount, !amount_specified_is_input);
// println!("{:?}", swap_computation);
// println!("{:?}", inverted);
// }
}
}
}
}
}
#[cfg(test)]
mod unit_tests {
use super::*;
mod test_swap {
// Doesn't cross any additional ticks
mod no_cross {
use super::*;
#[test]
fn swap_a_to_b_input() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_input_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_output() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_output_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_input() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_input_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_output() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_output_partial() {
validate_tick_whirlpool();
}
}
// Crosses single initialized tick
mod single_tick {
use super::*;
#[test]
fn swap_a_to_b_input() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_input_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_output() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_output_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_input() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_input_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_output() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_output_partial() {
validate_tick_whirlpool();
}
}
// Crosses multiple initialized ticks
mod multi_tick {
use super::*;
#[test]
fn swap_a_to_b_input() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_input_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_output() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_output_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_input() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_input_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_output() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_output_partial() {
validate_tick_whirlpool();
}
}
// Crosses a multiple ticks with a zone of 0 liquidity
mod discontiguous_multi_tick {
use super::*;
#[test]
fn swap_a_to_b_input() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_input_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_output() {
validate_tick_whirlpool();
}
#[test]
fn swap_a_to_b_output_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_input() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_input_partial() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_output() {
validate_tick_whirlpool();
}
#[test]
fn swap_b_to_a_output_partial() {
validate_tick_whirlpool();
}
}
mod protocol_rate {
use super::*;
#[test]
fn protocol_rate() {
validate_tick_whirlpool();
}
#[test]
fn protocol_rate_zero() {
validate_tick_whirlpool();
}
}
fn validate_tick_whirlpool() {
// Validate tick values
// Fee, reward growths
//
// Validate whirlpool values
// liquidity, tick, sqrt_price, fee_growth, reward, protocol fee, token amounts
}
}
mod test_compute_swap {
const TWO_PCT: u16 = 20000;
use std::convert::TryInto;
use super::*;
use crate::math::bit_math::Q64_RESOLUTION;
#[test]
fn swap_a_to_b_input() {
// Example calculation
let amount = 100u128;
let init_liq = 1296;
let init_price = 9;
let price_limit = 4;
// Calculate fee given fee percentage
let fee_amount = div_round_up(amount * u128::from(TWO_PCT), 1_000_000)
.ok()
.unwrap();
// Calculate initial a and b given L and sqrt(P)
let init_b = init_liq * init_price;
let init_a = init_liq / init_price;
// Calculate amount_in given fee_percentage
let amount_in = amount - fee_amount;
// Swapping a to b =>
let new_a = init_a + amount_in;
// Calculate next price
let next_price = div_round_up(init_liq << Q64_RESOLUTION, new_a)
.ok()
.unwrap();
// b - new_b
let amount_out = init_b - div_round_up(init_liq * init_liq, new_a).ok().unwrap();
test_swap(
100,
TWO_PCT, // 2 % fee
init_liq, // sqrt(ab)
// Current
// b = 1296 * 9 => 11664
// a = 1296 / 9 => 144
init_price << Q64_RESOLUTION, // sqrt (b/a)
// New
// a = 144 + 98 => 242 => 1296 / sqrt(P) = 242 => sqrt(P) = 1296 /242
// next b = 1296 * 1296 / 242 => 6940
price_limit << Q64_RESOLUTION,
true,
true,
SwapStepComputation {
amount_in: amount_in.try_into().unwrap(),
amount_out: amount_out.try_into().unwrap(),
next_price,
fee_amount: fee_amount.try_into().unwrap(),
},
);
}
#[test]
fn swap_a_to_b_input_zero() {
test_swap(
0,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
4 << Q64_RESOLUTION,
true,
false,
SwapStepComputation {
amount_in: 0,
amount_out: 0,
next_price: 9 << Q64_RESOLUTION,
fee_amount: 0,
},
);
}
#[test]
fn swap_a_to_b_input_zero_liq() {
test_swap(
100,
TWO_PCT,
0,
9 << Q64_RESOLUTION,
4 << Q64_RESOLUTION,
true,
false,
SwapStepComputation {
amount_in: 0,
amount_out: 0,
next_price: 4 << Q64_RESOLUTION,
fee_amount: 0,
},
);
}
#[test]
fn swap_a_to_b_input_max() {
test_swap(
1000,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
4 << Q64_RESOLUTION,
true,
true,
SwapStepComputation {
amount_in: 180,
amount_out: 6480,
next_price: 4 << Q64_RESOLUTION,
fee_amount: 4,
},
);
}
#[test]
fn swap_a_to_b_input_max_1pct_fee() {
test_swap(
1000,
TWO_PCT / 2,
1296,
9 << Q64_RESOLUTION,
4 << Q64_RESOLUTION,
true,
true,
SwapStepComputation {
amount_in: 180,
amount_out: 6480,
next_price: 4 << Q64_RESOLUTION,
fee_amount: 2,
},
);
}
#[test]
fn swap_a_to_b_output() {
test_swap(
4723,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
4 << Q64_RESOLUTION,
false,
true,
SwapStepComputation {
amount_in: 98,
amount_out: 4723,
next_price: 98795409425631171116,
fee_amount: 2,
},
);
}
#[test]
fn swap_a_to_b_output_max() {
test_swap(
10000,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
4 << Q64_RESOLUTION,
false,
true,
SwapStepComputation {
amount_in: 180,
amount_out: 6480,
next_price: 4 << Q64_RESOLUTION,
fee_amount: 4,
},
);
}
#[test]
fn swap_a_to_b_output_zero() {
test_swap(
0,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
4 << Q64_RESOLUTION,
false,
true,
SwapStepComputation {
amount_in: 0,
amount_out: 0,
next_price: 9 << Q64_RESOLUTION,
fee_amount: 0,
},
);
}
#[test]
fn swap_a_to_b_output_zero_liq() {
test_swap(
100,
TWO_PCT,
0,
9 << Q64_RESOLUTION,
4 << Q64_RESOLUTION,
false,
true,
SwapStepComputation {
amount_in: 0,
amount_out: 0,
next_price: 4 << Q64_RESOLUTION,
fee_amount: 0,
},
);
}
#[test]
fn swap_b_to_a_input() {
test_swap(
2000,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
16 << Q64_RESOLUTION,
true,
false,
SwapStepComputation {
amount_in: 1960,
amount_out: 20,
next_price: 193918550355107200012,
fee_amount: 40,
},
);
}
#[test]
fn swap_b_to_a_input_max() {
test_swap(
20000,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
16 << Q64_RESOLUTION,
true,
false,
SwapStepComputation {
amount_in: 9072,
amount_out: 63,
next_price: 16 << Q64_RESOLUTION,
fee_amount: 186,
},
);
}
#[test]
fn swap_b_to_a_input_zero() {
test_swap(
0,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
16 << Q64_RESOLUTION,
true,
false,
SwapStepComputation {
amount_in: 0,
amount_out: 0,
next_price: 9 << Q64_RESOLUTION,
fee_amount: 0,
},
);
}
#[test]
fn swap_b_to_a_input_zero_liq() {
test_swap(
100,
TWO_PCT,
0,
9 << Q64_RESOLUTION,
16 << Q64_RESOLUTION,
true,
false,
SwapStepComputation {
amount_in: 0,
amount_out: 0,
next_price: 16 << Q64_RESOLUTION,
fee_amount: 0,
},
);
}
#[test]
fn swap_b_to_a_output() {
test_swap(
20,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
16 << Q64_RESOLUTION,
false,
false,
SwapStepComputation {
amount_in: 1882,
amount_out: 20,
next_price: 192798228383286926568,
fee_amount: 39,
},
);
}
#[test]
fn swap_b_to_a_output_max() {
test_swap(
80,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
16 << Q64_RESOLUTION,
false,
false,
SwapStepComputation {
amount_in: 9072,
amount_out: 63,
next_price: 16 << Q64_RESOLUTION,
fee_amount: 186,
},
);
}
#[test]
fn swap_b_to_a_output_zero() {
test_swap(
0,
TWO_PCT,
1296,
9 << Q64_RESOLUTION,
16 << Q64_RESOLUTION,
false,
false,
SwapStepComputation {
amount_in: 0,
amount_out: 0,
next_price: 9 << Q64_RESOLUTION,
fee_amount: 0,
},
);
}
#[test]
fn swap_b_to_a_output_zero_liq() {
test_swap(
100,
TWO_PCT,
0,
9 << Q64_RESOLUTION,
16 << Q64_RESOLUTION,
false,
false,
SwapStepComputation {
amount_in: 0,
amount_out: 0,
next_price: 16 << Q64_RESOLUTION,
fee_amount: 0,
},
);
}
}
#[allow(clippy::too_many_arguments)]
fn test_swap(
amount_remaining: u64,
fee_rate: u16,
liquidity: u128,
sqrt_price_current: u128,
sqrt_price_target_limit: u128,
amount_specified_is_input: bool,
a_to_b: bool,
expected: SwapStepComputation,
) {
let swap_computation = compute_swap(
amount_remaining,
fee_rate,
liquidity,
sqrt_price_current,
sqrt_price_target_limit,
amount_specified_is_input,
a_to_b,
);
assert_eq!(swap_computation.ok().unwrap(), expected);
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/math/tick_math.rs
|
use crate::math::u256_math::*;
use std::convert::TryInto;
// Max/Min sqrt_price derived from max/min tick-index
pub const MAX_SQRT_PRICE_X64: u128 = 79226673515401279992447579055;
pub const MIN_SQRT_PRICE_X64: u128 = 4295048016;
const LOG_B_2_X32: i128 = 59543866431248i128;
const BIT_PRECISION: u32 = 14;
const LOG_B_P_ERR_MARGIN_LOWER_X64: i128 = 184467440737095516i128; // 0.01
const LOG_B_P_ERR_MARGIN_UPPER_X64: i128 = 15793534762490258745i128; // 2^-precision / log_2_b + 0.01
pub const FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD: u16 = 32768; // 2^15
/// Derive the sqrt-price from a tick index. The precision of this method is only guarranted
/// if tick is within the bounds of {max, min} tick-index.
///
/// # Parameters
/// - `tick` - A i32 integer representing the tick integer
///
/// # Returns
/// - `Ok`: A u128 Q32.64 representing the sqrt_price
pub fn sqrt_price_from_tick_index(tick: i32) -> u128 {
if tick >= 0 {
get_sqrt_price_positive_tick(tick)
} else {
get_sqrt_price_negative_tick(tick)
}
}
/// Derive the tick-index from a sqrt-price. The precision of this method is only guarranted
/// if sqrt-price is within the bounds of {max, min} sqrt-price.
///
/// # Parameters
/// - `sqrt_price_x64` - A u128 Q64.64 integer representing the sqrt-price
///
/// # Returns
/// - An i32 representing the tick_index of the provided sqrt-price
pub fn tick_index_from_sqrt_price(sqrt_price_x64: &u128) -> i32 {
// Determine log_b(sqrt_ratio). First by calculating integer portion (msb)
let msb: u32 = 128 - sqrt_price_x64.leading_zeros() - 1;
let log2p_integer_x32 = (msb as i128 - 64) << 32;
// get fractional value (r/2^msb), msb always > 128
// We begin the iteration from bit 63 (0.5 in Q64.64)
let mut bit: i128 = 0x8000_0000_0000_0000i128;
let mut precision = 0;
let mut log2p_fraction_x64 = 0;
// Log2 iterative approximation for the fractional part
// Go through each 2^(j) bit where j < 64 in a Q64.64 number
// Append current bit value to fraction result if r^2 Q2.126 is more than 2
let mut r = if msb >= 64 {
sqrt_price_x64 >> (msb - 63)
} else {
sqrt_price_x64 << (63 - msb)
};
while bit > 0 && precision < BIT_PRECISION {
r *= r;
let is_r_more_than_two = r >> 127_u32;
r >>= 63 + is_r_more_than_two;
log2p_fraction_x64 += bit * is_r_more_than_two as i128;
bit >>= 1;
precision += 1;
}
let log2p_fraction_x32 = log2p_fraction_x64 >> 32;
let log2p_x32 = log2p_integer_x32 + log2p_fraction_x32;
// Transform from base 2 to base b
let logbp_x64 = log2p_x32 * LOG_B_2_X32;
// Derive tick_low & high estimate. Adjust with the possibility of under-estimating by 2^precision_bits/log_2(b) + 0.01 error margin.
let tick_low: i32 = ((logbp_x64 - LOG_B_P_ERR_MARGIN_LOWER_X64) >> 64)
.try_into()
.unwrap();
let tick_high: i32 = ((logbp_x64 + LOG_B_P_ERR_MARGIN_UPPER_X64) >> 64)
.try_into()
.unwrap();
if tick_low == tick_high {
tick_low
} else {
// If our estimation for tick_high returns a lower sqrt_price than the input
// then the actual tick_high has to be higher than tick_high.
// Otherwise, the actual value is between tick_low & tick_high, so a floor value
// (tick_low) is returned
let actual_tick_high_sqrt_price_x64: u128 = sqrt_price_from_tick_index(tick_high);
if actual_tick_high_sqrt_price_x64 <= *sqrt_price_x64 {
tick_high
} else {
tick_low
}
}
}
fn mul_shift_96(n0: u128, n1: u128) -> u128 {
mul_u256(n0, n1).shift_right(96).try_into_u128().unwrap()
}
// Performs the exponential conversion with Q64.64 precision
fn get_sqrt_price_positive_tick(tick: i32) -> u128 {
let mut ratio: u128 = if tick & 1 != 0 {
79232123823359799118286999567
} else {
79228162514264337593543950336
};
if tick & 2 != 0 {
ratio = mul_shift_96(ratio, 79236085330515764027303304731);
}
if tick & 4 != 0 {
ratio = mul_shift_96(ratio, 79244008939048815603706035061);
}
if tick & 8 != 0 {
ratio = mul_shift_96(ratio, 79259858533276714757314932305);
}
if tick & 16 != 0 {
ratio = mul_shift_96(ratio, 79291567232598584799939703904);
}
if tick & 32 != 0 {
ratio = mul_shift_96(ratio, 79355022692464371645785046466);
}
if tick & 64 != 0 {
ratio = mul_shift_96(ratio, 79482085999252804386437311141);
}
if tick & 128 != 0 {
ratio = mul_shift_96(ratio, 79736823300114093921829183326);
}
if tick & 256 != 0 {
ratio = mul_shift_96(ratio, 80248749790819932309965073892);
}
if tick & 512 != 0 {
ratio = mul_shift_96(ratio, 81282483887344747381513967011);
}
if tick & 1024 != 0 {
ratio = mul_shift_96(ratio, 83390072131320151908154831281);
}
if tick & 2048 != 0 {
ratio = mul_shift_96(ratio, 87770609709833776024991924138);
}
if tick & 4096 != 0 {
ratio = mul_shift_96(ratio, 97234110755111693312479820773);
}
if tick & 8192 != 0 {
ratio = mul_shift_96(ratio, 119332217159966728226237229890);
}
if tick & 16384 != 0 {
ratio = mul_shift_96(ratio, 179736315981702064433883588727);
}
if tick & 32768 != 0 {
ratio = mul_shift_96(ratio, 407748233172238350107850275304);
}
if tick & 65536 != 0 {
ratio = mul_shift_96(ratio, 2098478828474011932436660412517);
}
if tick & 131072 != 0 {
ratio = mul_shift_96(ratio, 55581415166113811149459800483533);
}
if tick & 262144 != 0 {
ratio = mul_shift_96(ratio, 38992368544603139932233054999993551);
}
ratio >> 32
}
fn get_sqrt_price_negative_tick(tick: i32) -> u128 {
let abs_tick = tick.abs();
let mut ratio: u128 = if abs_tick & 1 != 0 {
18445821805675392311
} else {
18446744073709551616
};
if abs_tick & 2 != 0 {
ratio = (ratio * 18444899583751176498) >> 64
}
if abs_tick & 4 != 0 {
ratio = (ratio * 18443055278223354162) >> 64
}
if abs_tick & 8 != 0 {
ratio = (ratio * 18439367220385604838) >> 64
}
if abs_tick & 16 != 0 {
ratio = (ratio * 18431993317065449817) >> 64
}
if abs_tick & 32 != 0 {
ratio = (ratio * 18417254355718160513) >> 64
}
if abs_tick & 64 != 0 {
ratio = (ratio * 18387811781193591352) >> 64
}
if abs_tick & 128 != 0 {
ratio = (ratio * 18329067761203520168) >> 64
}
if abs_tick & 256 != 0 {
ratio = (ratio * 18212142134806087854) >> 64
}
if abs_tick & 512 != 0 {
ratio = (ratio * 17980523815641551639) >> 64
}
if abs_tick & 1024 != 0 {
ratio = (ratio * 17526086738831147013) >> 64
}
if abs_tick & 2048 != 0 {
ratio = (ratio * 16651378430235024244) >> 64
}
if abs_tick & 4096 != 0 {
ratio = (ratio * 15030750278693429944) >> 64
}
if abs_tick & 8192 != 0 {
ratio = (ratio * 12247334978882834399) >> 64
}
if abs_tick & 16384 != 0 {
ratio = (ratio * 8131365268884726200) >> 64
}
if abs_tick & 32768 != 0 {
ratio = (ratio * 3584323654723342297) >> 64
}
if abs_tick & 65536 != 0 {
ratio = (ratio * 696457651847595233) >> 64
}
if abs_tick & 131072 != 0 {
ratio = (ratio * 26294789957452057) >> 64
}
if abs_tick & 262144 != 0 {
ratio = (ratio * 37481735321082) >> 64
}
ratio
}
#[cfg(test)]
mod fuzz_tests {
use super::*;
use crate::{
math::U256,
state::{MAX_TICK_INDEX, MIN_TICK_INDEX},
};
use proptest::prelude::*;
fn within_price_approximation(lower: u128, upper: u128) -> bool {
let precision = 96;
// We increase the resolution of upper to find ratio_x96
let x = U256::from(upper) << precision;
let y = U256::from(lower);
// (1.0001 ^ 0.5) << 96 (precision)
let sqrt_10001_x96 = 79232123823359799118286999567u128;
// This ratio should be as close to sqrt_10001_x96 as possible
let ratio_x96 = x.div_mod(y).0.as_u128();
// Find absolute error in ratio in x96
let error = if sqrt_10001_x96 > ratio_x96 {
sqrt_10001_x96 - ratio_x96
} else {
ratio_x96 - sqrt_10001_x96
};
// Calculate number of error bits
let error_bits = 128 - error.leading_zeros();
precision - error_bits >= 32
}
proptest! {
#[test]
fn test_tick_index_to_sqrt_price (
tick in MIN_TICK_INDEX..MAX_TICK_INDEX,
) {
let sqrt_price = sqrt_price_from_tick_index(tick);
// Check bounds
assert!(sqrt_price >= MIN_SQRT_PRICE_X64);
assert!(sqrt_price <= MAX_SQRT_PRICE_X64);
// Check the inverted tick has unique price and within bounds
let minus_tick_price = sqrt_price_from_tick_index(tick - 1);
let plus_tick_price = sqrt_price_from_tick_index(tick + 1);
assert!(minus_tick_price < sqrt_price && sqrt_price < plus_tick_price);
// Check that sqrt_price_from_tick_index(tick + 1) approximates sqrt(1.0001) * sqrt_price_from_tick_index(tick)
assert!(within_price_approximation(minus_tick_price, sqrt_price));
assert!(within_price_approximation(sqrt_price, plus_tick_price));
}
#[test]
fn test_tick_index_from_sqrt_price (
sqrt_price in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64
) {
let tick = tick_index_from_sqrt_price(&sqrt_price);
// Check bounds
assert!(tick >= MIN_TICK_INDEX);
assert!(tick < MAX_TICK_INDEX);
// Check the inverted price from the calculated tick is within tick boundaries
assert!(sqrt_price >= sqrt_price_from_tick_index(tick) && sqrt_price < sqrt_price_from_tick_index(tick + 1))
}
#[test]
// Verify that both conversion functions are symmetrical.
fn test_tick_index_and_sqrt_price_symmetry (
tick in MIN_TICK_INDEX..MAX_TICK_INDEX
) {
let sqrt_price_x64 = sqrt_price_from_tick_index(tick);
let resolved_tick = tick_index_from_sqrt_price(&sqrt_price_x64);
assert!(resolved_tick == tick);
}
#[test]
fn test_sqrt_price_from_tick_index_is_sequence (
tick in MIN_TICK_INDEX-1..MAX_TICK_INDEX
) {
let sqrt_price_x64 = sqrt_price_from_tick_index(tick);
let last_sqrt_price_x64 = sqrt_price_from_tick_index(tick-1);
assert!(last_sqrt_price_x64 < sqrt_price_x64);
}
#[test]
fn test_tick_index_from_sqrt_price_is_sequence (
sqrt_price in (MIN_SQRT_PRICE_X64 + 10)..MAX_SQRT_PRICE_X64
) {
let tick = tick_index_from_sqrt_price(&sqrt_price);
let last_tick = tick_index_from_sqrt_price(&(sqrt_price - 10));
assert!(last_tick <= tick);
}
}
}
#[cfg(test)]
mod test_tick_index_from_sqrt_price {
use super::*;
use crate::state::{MAX_TICK_INDEX, MIN_TICK_INDEX};
#[test]
fn test_sqrt_price_from_tick_index_at_max() {
let r = tick_index_from_sqrt_price(&MAX_SQRT_PRICE_X64);
assert_eq!(&r, &MAX_TICK_INDEX);
}
#[test]
fn test_sqrt_price_from_tick_index_at_min() {
let r = tick_index_from_sqrt_price(&MIN_SQRT_PRICE_X64);
assert_eq!(&r, &MIN_TICK_INDEX);
}
#[test]
fn test_sqrt_price_from_tick_index_at_max_add_one() {
let sqrt_price_x64_max_add_one = MAX_SQRT_PRICE_X64 + 1;
let tick_from_max_add_one = tick_index_from_sqrt_price(&sqrt_price_x64_max_add_one);
let sqrt_price_x64_max = MAX_SQRT_PRICE_X64 + 1;
let tick_from_max = tick_index_from_sqrt_price(&sqrt_price_x64_max);
// We don't care about accuracy over the limit. We just care about it's equality properties.
assert!(tick_from_max_add_one >= tick_from_max);
}
#[test]
fn test_sqrt_price_from_tick_index_at_min_add_one() {
let sqrt_price_x64 = MIN_SQRT_PRICE_X64 + 1;
let r = tick_index_from_sqrt_price(&sqrt_price_x64);
assert_eq!(&r, &(MIN_TICK_INDEX));
}
#[test]
fn test_sqrt_price_from_tick_index_at_max_sub_one() {
let sqrt_price_x64 = MAX_SQRT_PRICE_X64 - 1;
let r = tick_index_from_sqrt_price(&sqrt_price_x64);
assert_eq!(&r, &(MAX_TICK_INDEX - 1));
}
#[test]
fn test_sqrt_price_from_tick_index_at_min_sub_one() {
let sqrt_price_x64_min_sub_one = MIN_SQRT_PRICE_X64 - 1;
let tick_from_min_sub_one = tick_index_from_sqrt_price(&sqrt_price_x64_min_sub_one);
let sqrt_price_x64_min = MIN_SQRT_PRICE_X64 + 1;
let tick_from_min = tick_index_from_sqrt_price(&sqrt_price_x64_min);
// We don't care about accuracy over the limit. We just care about it's equality properties.
assert!(tick_from_min_sub_one < tick_from_min);
}
#[test]
fn test_sqrt_price_from_tick_index_at_one() {
let sqrt_price_x64: u128 = u64::MAX as u128 + 1;
let r = tick_index_from_sqrt_price(&sqrt_price_x64);
assert_eq!(r, 0);
}
#[test]
fn test_sqrt_price_from_tick_index_at_one_add_one() {
let sqrt_price_x64: u128 = u64::MAX as u128 + 2;
let r = tick_index_from_sqrt_price(&sqrt_price_x64);
assert_eq!(r, 0);
}
#[test]
fn test_sqrt_price_from_tick_index_at_one_sub_one() {
let sqrt_price_x64: u128 = u64::MAX.into();
let r = tick_index_from_sqrt_price(&sqrt_price_x64);
assert_eq!(r, -1);
}
}
#[cfg(test)]
mod sqrt_price_from_tick_index_tests {
use super::*;
use crate::state::{MAX_TICK_INDEX, MIN_TICK_INDEX};
#[test]
#[should_panic(expected = "NumberDownCastError")]
// There should never be a use-case where we call this method with an out of bound index
fn test_tick_exceed_max() {
let sqrt_price_from_max_tick_add_one = sqrt_price_from_tick_index(MAX_TICK_INDEX + 1);
let sqrt_price_from_max_tick = sqrt_price_from_tick_index(MAX_TICK_INDEX);
assert!(sqrt_price_from_max_tick_add_one > sqrt_price_from_max_tick);
}
#[test]
fn test_tick_below_min() {
let sqrt_price_from_min_tick_sub_one = sqrt_price_from_tick_index(MIN_TICK_INDEX - 1);
let sqrt_price_from_min_tick = sqrt_price_from_tick_index(MIN_TICK_INDEX);
assert!(sqrt_price_from_min_tick_sub_one < sqrt_price_from_min_tick);
}
#[test]
fn test_tick_at_max() {
let max_tick = MAX_TICK_INDEX;
let r = sqrt_price_from_tick_index(max_tick);
assert_eq!(r, MAX_SQRT_PRICE_X64);
}
#[test]
fn test_tick_at_min() {
let min_tick = MIN_TICK_INDEX;
let r = sqrt_price_from_tick_index(min_tick);
assert_eq!(r, MIN_SQRT_PRICE_X64);
}
#[test]
fn test_exact_bit_values() {
let conditions = &[
(
0i32,
18446744073709551616u128,
18446744073709551616u128,
"0x0",
),
(
1i32,
18447666387855959850u128,
18445821805675392311u128,
"0x1",
),
(
2i32,
18448588748116922571u128,
18444899583751176498u128,
"0x2",
),
(
4i32,
18450433606991734263u128,
18443055278223354162u128,
"0x4",
),
(
8i32,
18454123878217468680u128,
18439367220385604838u128,
"0x8",
),
(
16i32,
18461506635090006701u128,
18431993317065449817u128,
"0x10",
),
(
32i32,
18476281010653910144u128,
18417254355718160513u128,
"0x20",
),
(
64i32,
18505865242158250041u128,
18387811781193591352u128,
"0x40",
),
(
128i32,
18565175891880433522u128,
18329067761203520168u128,
"0x80",
),
(
256i32,
18684368066214940582u128,
18212142134806087854u128,
"0x100",
),
(
512i32,
18925053041275764671u128,
17980523815641551639u128,
"0x200",
),
(
1024i32,
19415764168677886926u128,
17526086738831147013u128,
"0x400",
),
(
2048i32,
20435687552633177494u128,
16651378430235024244u128,
"0x800",
),
(
4096i32,
22639080592224303007u128,
15030750278693429944u128,
"0x1000",
),
(
8192i32,
27784196929998399742u128,
12247334978882834399u128,
"0x2000",
),
(
16384i32,
41848122137994986128u128,
8131365268884726200u128,
"0x4000",
),
(
32768i32,
94936283578220370716u128,
3584323654723342297u128,
"0x8000",
),
(
65536i32,
488590176327622479860u128,
696457651847595233u128,
"0x10000",
),
(
131072i32,
12941056668319229769860u128,
26294789957452057u128,
"0x20000",
),
(
262144i32,
9078618265828848800676189u128,
37481735321082u128,
"0x40000",
),
];
for (p_tick, expected, neg_expected, desc) in conditions {
let p_result = sqrt_price_from_tick_index(*p_tick);
let n_tick = -p_tick;
let n_result = sqrt_price_from_tick_index(n_tick);
assert_eq!(
p_result, *expected,
"Assert positive tick equals expected value on binary fraction bit = {} ",
desc
);
assert_eq!(
n_result, *neg_expected,
"Assert negative tick equals expected value on binary fraction bit = {} ",
desc
);
}
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/math/token_math.rs
|
use crate::errors::ErrorCode;
use crate::math::{Q64_MASK, Q64_RESOLUTION};
use super::{
div_round_up_if, div_round_up_if_u256, mul_u256, U256Muldiv, MAX_SQRT_PRICE_X64,
MIN_SQRT_PRICE_X64,
};
// Fee rate is represented as hundredths of a basis point.
// Fee amount = total_amount * fee_rate / 1_000_000.
// Max fee rate supported is 3%.
pub const MAX_FEE_RATE: u16 = 30_000;
// Assuming that FEE_RATE is represented as hundredths of a basis point
// We want FEE_RATE_MUL_VALUE = 1/FEE_RATE_UNIT, so 1e6
pub const FEE_RATE_MUL_VALUE: u128 = 1_000_000;
// Protocol fee rate is represented as a basis point.
// Protocol fee amount = fee_amount * protocol_fee_rate / 10_000.
// Max protocol fee rate supported is 25% of the fee rate.
pub const MAX_PROTOCOL_FEE_RATE: u16 = 2_500;
// Assuming that PROTOCOL_FEE_RATE is represented as a basis point
// We want PROTOCOL_FEE_RATE_MUL_VALUE = 1/PROTOCOL_FEE_UNIT, so 1e4
pub const PROTOCOL_FEE_RATE_MUL_VALUE: u128 = 10_000;
#[derive(Debug)]
pub enum AmountDeltaU64 {
Valid(u64),
ExceedsMax(ErrorCode),
}
impl AmountDeltaU64 {
pub fn lte(&self, other: u64) -> bool {
match self {
AmountDeltaU64::Valid(value) => *value <= other,
AmountDeltaU64::ExceedsMax(_) => false,
}
}
pub fn exceeds_max(&self) -> bool {
match self {
AmountDeltaU64::Valid(_) => false,
AmountDeltaU64::ExceedsMax(_) => true,
}
}
pub fn value(self) -> u64 {
match self {
AmountDeltaU64::Valid(value) => value,
// This should never happen
AmountDeltaU64::ExceedsMax(_) => panic!("Called unwrap on AmountDeltaU64::ExceedsMax"),
}
}
}
//
// Get change in token_a corresponding to a change in price
//
// 6.16
// Δt_a = Δ(1 / sqrt_price) * liquidity
// Replace delta
// Δt_a = (1 / sqrt_price_upper - 1 / sqrt_price_lower) * liquidity
// Common denominator to simplify
// Δt_a = ((sqrt_price_lower - sqrt_price_upper) / (sqrt_price_upper * sqrt_price_lower)) * liquidity
// Δt_a = (liquidity * (sqrt_price_lower - sqrt_price_upper)) / (sqrt_price_upper * sqrt_price_lower)
pub fn get_amount_delta_a(
sqrt_price_0: u128,
sqrt_price_1: u128,
liquidity: u128,
round_up: bool,
) -> Result<u64, ErrorCode> {
match try_get_amount_delta_a(sqrt_price_0, sqrt_price_1, liquidity, round_up) {
Ok(AmountDeltaU64::Valid(value)) => Ok(value),
Ok(AmountDeltaU64::ExceedsMax(error)) => Err(error),
Err(error) => Err(error),
}
}
pub fn try_get_amount_delta_a(
sqrt_price_0: u128,
sqrt_price_1: u128,
liquidity: u128,
round_up: bool,
) -> Result<AmountDeltaU64, ErrorCode> {
let (sqrt_price_lower, sqrt_price_upper) = increasing_price_order(sqrt_price_0, sqrt_price_1);
let sqrt_price_diff = sqrt_price_upper - sqrt_price_lower;
let numerator = mul_u256(liquidity, sqrt_price_diff)
.checked_shift_word_left()
.ok_or(ErrorCode::MultiplicationOverflow)?;
let denominator = mul_u256(sqrt_price_upper, sqrt_price_lower);
let (quotient, remainder) = numerator.div(denominator, round_up);
let result = if round_up && !remainder.is_zero() {
quotient.add(U256Muldiv::new(0, 1)).try_into_u128()
} else {
quotient.try_into_u128()
};
match result {
Ok(result) => {
if result > u64::MAX as u128 {
return Ok(AmountDeltaU64::ExceedsMax(ErrorCode::TokenMaxExceeded));
}
Ok(AmountDeltaU64::Valid(result as u64))
}
Err(err) => Ok(AmountDeltaU64::ExceedsMax(err)),
}
}
//
// Get change in token_b corresponding to a change in price
//
// 6.14
// Δt_b = Δ(sqrt_price) * liquidity
// Replace delta
// Δt_b = (sqrt_price_upper - sqrt_price_lower) * liquidity
pub fn get_amount_delta_b(
sqrt_price_0: u128,
sqrt_price_1: u128,
liquidity: u128,
round_up: bool,
) -> Result<u64, ErrorCode> {
match try_get_amount_delta_b(sqrt_price_0, sqrt_price_1, liquidity, round_up) {
Ok(AmountDeltaU64::Valid(value)) => Ok(value),
Ok(AmountDeltaU64::ExceedsMax(error)) => Err(error),
Err(error) => Err(error),
}
}
pub fn try_get_amount_delta_b(
sqrt_price_0: u128,
sqrt_price_1: u128,
liquidity: u128,
round_up: bool,
) -> Result<AmountDeltaU64, ErrorCode> {
let (sqrt_price_lower, sqrt_price_upper) = increasing_price_order(sqrt_price_0, sqrt_price_1);
// customized checked_mul_shift_right_round_up_if
let n0 = liquidity;
let n1 = sqrt_price_upper - sqrt_price_lower;
if n0 == 0 || n1 == 0 {
return Ok(AmountDeltaU64::Valid(0));
}
if let Some(p) = n0.checked_mul(n1) {
let result = (p >> Q64_RESOLUTION) as u64;
let should_round = round_up && (p & Q64_MASK > 0);
if should_round && result == u64::MAX {
return Ok(AmountDeltaU64::ExceedsMax(
ErrorCode::MultiplicationOverflow,
));
}
Ok(AmountDeltaU64::Valid(if should_round {
result + 1
} else {
result
}))
} else {
Ok(AmountDeltaU64::ExceedsMax(
ErrorCode::MultiplicationShiftRightOverflow,
))
}
}
pub fn increasing_price_order(sqrt_price_0: u128, sqrt_price_1: u128) -> (u128, u128) {
if sqrt_price_0 > sqrt_price_1 {
(sqrt_price_1, sqrt_price_0)
} else {
(sqrt_price_0, sqrt_price_1)
}
}
//
// Get change in price corresponding to a change in token_a supply
//
// 6.15
// Δ(1 / sqrt_price) = Δt_a / liquidity
//
// Replace delta
// 1 / sqrt_price_new - 1 / sqrt_price = amount / liquidity
//
// Move sqrt price to other side
// 1 / sqrt_price_new = (amount / liquidity) + (1 / sqrt_price)
//
// Common denominator for right side
// 1 / sqrt_price_new = (sqrt_price * amount + liquidity) / (sqrt_price * liquidity)
//
// Invert fractions
// sqrt_price_new = (sqrt_price * liquidity) / (liquidity + amount * sqrt_price)
pub fn get_next_sqrt_price_from_a_round_up(
sqrt_price: u128,
liquidity: u128,
amount: u64,
amount_specified_is_input: bool,
) -> Result<u128, ErrorCode> {
if amount == 0 {
return Ok(sqrt_price);
}
let product = mul_u256(sqrt_price, amount as u128);
let numerator = mul_u256(liquidity, sqrt_price)
.checked_shift_word_left()
.ok_or(ErrorCode::MultiplicationOverflow)?;
// In this scenario the denominator will end up being < 0
let liquidity_shift_left = U256Muldiv::new(0, liquidity).shift_word_left();
if !amount_specified_is_input && liquidity_shift_left.lte(product) {
return Err(ErrorCode::DivideByZero);
}
let denominator = if amount_specified_is_input {
liquidity_shift_left.add(product)
} else {
liquidity_shift_left.sub(product)
};
let price = div_round_up_if_u256(numerator, denominator, true)?;
if price < MIN_SQRT_PRICE_X64 {
return Err(ErrorCode::TokenMinSubceeded);
} else if price > MAX_SQRT_PRICE_X64 {
return Err(ErrorCode::TokenMaxExceeded);
}
Ok(price)
}
//
// Get change in price corresponding to a change in token_b supply
//
// 6.13
// Δ(sqrt_price) = Δt_b / liquidity
pub fn get_next_sqrt_price_from_b_round_down(
sqrt_price: u128,
liquidity: u128,
amount: u64,
amount_specified_is_input: bool,
) -> Result<u128, ErrorCode> {
// We always want square root price to be rounded down, which means
// Case 3. If we are fixing input (adding B), we are increasing price, we want delta to be floor(delta)
// sqrt_price + floor(delta) < sqrt_price + delta
//
// Case 4. If we are fixing output (removing B), we are decreasing price, we want delta to be ceil(delta)
// sqrt_price - ceil(delta) < sqrt_price - delta
// Q64.0 << 64 => Q64.64
let amount_x64 = (amount as u128) << Q64_RESOLUTION;
// Q64.64 / Q64.0 => Q64.64
let delta = div_round_up_if(amount_x64, liquidity, !amount_specified_is_input)?;
// Q64(32).64 +/- Q64.64
if amount_specified_is_input {
// We are adding token b to supply, causing price to increase
sqrt_price
.checked_add(delta)
.ok_or(ErrorCode::SqrtPriceOutOfBounds)
} else {
// We are removing token b from supply,. causing price to decrease
sqrt_price
.checked_sub(delta)
.ok_or(ErrorCode::SqrtPriceOutOfBounds)
}
}
pub fn get_next_sqrt_price(
sqrt_price: u128,
liquidity: u128,
amount: u64,
amount_specified_is_input: bool,
a_to_b: bool,
) -> Result<u128, ErrorCode> {
if amount_specified_is_input == a_to_b {
// We are fixing A
// Case 1. amount_specified_is_input = true, a_to_b = true
// We are exchanging A to B with at most _amount_ of A (input)
//
// Case 2. amount_specified_is_input = false, a_to_b = false
// We are exchanging B to A wanting to guarantee at least _amount_ of A (output)
//
// In either case we want the sqrt_price to be rounded up.
//
// Eq 1. sqrt_price = sqrt( b / a )
//
// Case 1. amount_specified_is_input = true, a_to_b = true
// We are adding token A to the supply, causing price to decrease (Eq 1.)
// Since we are fixing input, we can not exceed the amount that is being provided by the user.
// Because a higher price is inversely correlated with an increased supply of A,
// a higher price means we are adding less A. Thus when performing math, we wish to round the
// price up, since that means that we are guaranteed to not exceed the fixed amount of A provided.
//
// Case 2. amount_specified_is_input = false, a_to_b = false
// We are removing token A from the supply, causing price to increase (Eq 1.)
// Since we are fixing output, we want to guarantee that the user is provided at least _amount_ of A
// Because a higher price is correlated with a decreased supply of A,
// a higher price means we are removing more A to give to the user. Thus when performing math, we wish
// to round the price up, since that means we guarantee that user receives at least _amount_ of A
get_next_sqrt_price_from_a_round_up(
sqrt_price,
liquidity,
amount,
amount_specified_is_input,
)
} else {
// We are fixing B
// Case 3. amount_specified_is_input = true, a_to_b = false
// We are exchanging B to A using at most _amount_ of B (input)
//
// Case 4. amount_specified_is_input = false, a_to_b = true
// We are exchanging A to B wanting to guarantee at least _amount_ of B (output)
//
// In either case we want the sqrt_price to be rounded down.
//
// Eq 1. sqrt_price = sqrt( b / a )
//
// Case 3. amount_specified_is_input = true, a_to_b = false
// We are adding token B to the supply, causing price to increase (Eq 1.)
// Since we are fixing input, we can not exceed the amount that is being provided by the user.
// Because a lower price is inversely correlated with an increased supply of B,
// a lower price means that we are adding less B. Thus when performing math, we wish to round the
// price down, since that means that we are guaranteed to not exceed the fixed amount of B provided.
//
// Case 4. amount_specified_is_input = false, a_to_b = true
// We are removing token B from the supply, causing price to decrease (Eq 1.)
// Since we are fixing output, we want to guarantee that the user is provided at least _amount_ of B
// Because a lower price is correlated with a decreased supply of B,
// a lower price means we are removing more B to give to the user. Thus when performing math, we
// wish to round the price down, since that means we guarantee that the user receives at least _amount_ of B
get_next_sqrt_price_from_b_round_down(
sqrt_price,
liquidity,
amount,
amount_specified_is_input,
)
}
}
#[cfg(test)]
mod fuzz_tests {
use super::*;
use crate::math::{bit_math::*, tick_math::*, U256};
use proptest::prelude::*;
// Cases where the math overflows or errors
//
// get_next_sqrt_price_from_a_round_up
// sqrt_price_new = (sqrt_price * liquidity) / (liquidity + amount * sqrt_price)
//
// If amount_specified_is_input == false
// DivideByZero: (liquidity / liquidity - amount * sqrt_price)
// liquidity <= sqrt_price * amount, divide by zero error
// TokenMax/MinExceed
// (sqrt_price * liquidity) / (liquidity + amount * sqrt_price) > 2^32 - 1
//
// get_next_sqrt_price_from_b_round_down
// SqrtPriceOutOfBounds
// sqrt_price - (amount / liquidity) < 0
//
// get_amount_delta_b
// TokenMaxExceeded
// (price_1 - price_0) * liquidity > 2^64
proptest! {
#[test]
fn test_get_next_sqrt_price_from_a_round_up (
sqrt_price in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64,
liquidity in 1..u128::MAX,
amount in 0..u64::MAX,
) {
prop_assume!(sqrt_price != 0);
// Case 1. amount_specified_is_input = true, a_to_b = true
// We are adding token A to the supply, causing price to decrease (Eq 1.)
// Since we are fixing input, we can not exceed the amount that is being provided by the user.
// Because a higher price is inversely correlated with an increased supply of A,
// a higher price means we are adding less A. Thus when performing math, we wish to round the
// price up, since that means that we are guaranteed to not exceed the fixed amount of A provided
let case_1_price = get_next_sqrt_price_from_a_round_up(sqrt_price, liquidity, amount, true);
if liquidity.leading_zeros() + sqrt_price.leading_zeros() < Q64_RESOLUTION.into() {
assert!(case_1_price.is_err());
} else {
assert!(amount >= get_amount_delta_a(sqrt_price, case_1_price.unwrap(), liquidity, true).unwrap());
// Case 2. amount_specified_is_input = false, a_to_b = false
// We are removing token A from the supply, causing price to increase (Eq 1.)
// Since we are fixing output, we want to guarantee that the user is provided at least _amount_ of A
// Because a higher price is correlated with a decreased supply of A,
// a higher price means we are removing more A to give to the user. Thus when performing math, we wish
// to round the price up, since that means we guarantee that user receives at least _amount_ of A
let case_2_price = get_next_sqrt_price_from_a_round_up(sqrt_price, liquidity, amount, false);
// We need to expand into U256 space here in order to support large enough values
// Q64 << 64 => Q64.64
let liquidity_x64 = U256::from(liquidity) << Q64_RESOLUTION;
// Q64.64 * Q64 => Q128.64
let product = U256::from(sqrt_price) * U256::from(amount);
if liquidity_x64 <= product {
assert!(case_2_price.is_err());
} else {
assert!(amount <= get_amount_delta_a(sqrt_price, case_2_price.unwrap(), liquidity, false).unwrap());
assert!(case_2_price.unwrap() >= sqrt_price);
}
if amount == 0 {
assert!(case_1_price.unwrap() == case_2_price.unwrap());
}
}
}
#[test]
fn test_get_next_sqrt_price_from_b_round_down (
sqrt_price in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64,
liquidity in 1..u128::MAX,
amount in 0..u64::MAX,
) {
prop_assume!(sqrt_price != 0);
// Case 3. amount_specified_is_input = true, a_to_b = false
// We are adding token B to the supply, causing price to increase (Eq 1.)
// Since we are fixing input, we can not exceed the amount that is being provided by the user.
// Because a lower price is inversely correlated with an increased supply of B,
// a lower price means that we are adding less B. Thus when performing math, we wish to round the
// price down, since that means that we are guaranteed to not exceed the fixed amount of B provided.
let case_3_price = get_next_sqrt_price_from_b_round_down(sqrt_price, liquidity, amount, true).unwrap();
assert!(case_3_price >= sqrt_price);
assert!(amount >= get_amount_delta_b(sqrt_price, case_3_price, liquidity, true).unwrap());
// Case 4. amount_specified_is_input = false, a_to_b = true
// We are removing token B from the supply, causing price to decrease (Eq 1.)
// Since we are fixing output, we want to guarantee that the user is provided at least _amount_ of B
// Because a lower price is correlated with a decreased supply of B,
// a lower price means we are removing more B to give to the user. Thus when performing math, we
// wish to round the price down, since that means we guarantee that the user receives at least _amount_ of B
let case_4_price = get_next_sqrt_price_from_b_round_down(sqrt_price, liquidity, amount, false);
// Q64.0 << 64 => Q64.64
let amount_x64 = u128::from(amount) << Q64_RESOLUTION;
let delta = div_round_up(amount_x64, liquidity).unwrap();
if sqrt_price < delta {
// In Case 4, error if sqrt_price < delta
assert!(case_4_price.is_err());
} else {
let calc_delta = get_amount_delta_b(sqrt_price, case_4_price.unwrap(), liquidity, false);
if calc_delta.is_ok() {
assert!(amount <= calc_delta.unwrap());
}
// In Case 4, price is decreasing
assert!(case_4_price.unwrap() <= sqrt_price);
}
if amount == 0 {
assert!(case_3_price == case_4_price.unwrap());
}
}
#[test]
fn test_get_amount_delta_a(
sqrt_price_0 in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64,
sqrt_price_1 in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64,
liquidity in 0..u128::MAX,
) {
let (sqrt_price_lower, sqrt_price_upper) = increasing_price_order(sqrt_price_0, sqrt_price_1);
let rounded = get_amount_delta_a(sqrt_price_0, sqrt_price_1, liquidity, true);
if liquidity.leading_zeros() + (sqrt_price_upper - sqrt_price_lower).leading_zeros() < Q64_RESOLUTION.into() {
assert!(rounded.is_err())
} else {
let unrounded = get_amount_delta_a(sqrt_price_0, sqrt_price_1, liquidity, false).unwrap();
// Price difference symmetry
assert_eq!(rounded.unwrap(), get_amount_delta_a(sqrt_price_1, sqrt_price_0, liquidity, true).unwrap());
assert_eq!(unrounded, get_amount_delta_a(sqrt_price_1, sqrt_price_0, liquidity, false).unwrap());
// Rounded should always be larger
assert!(unrounded <= rounded.unwrap());
// Diff should be no more than 1
assert!(rounded.unwrap() - unrounded <= 1);
}
}
#[test]
fn test_get_amount_delta_b(
sqrt_price_0 in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64,
sqrt_price_1 in MIN_SQRT_PRICE_X64..MAX_SQRT_PRICE_X64,
liquidity in 0..u128::MAX,
) {
let (price_lower, price_upper) = increasing_price_order(sqrt_price_0, sqrt_price_1);
// We need 256 here since we may end up above u128 bits
let n_0 = U256::from(liquidity); // Q64.0, not using 64 MSB
let n_1 = U256::from(price_upper - price_lower); // Q32.64 - Q32.64 => Q32.64
// Shift by 64 in order to remove fractional bits
let m = n_0 * n_1; // Q64.0 * Q32.64 => Q96.64
let delta = m >> Q64_RESOLUTION; // Q96.64 >> 64 => Q96.0
let has_mod = m % TO_Q64 > U256::zero();
let round_up_delta = if has_mod { delta + U256::from(1) } else { delta };
let rounded = get_amount_delta_b(sqrt_price_0, sqrt_price_1, liquidity, true);
let unrounded = get_amount_delta_b(sqrt_price_0, sqrt_price_1, liquidity, false);
let u64_max_in_u256 = U256::from(u64::MAX);
if delta > u64_max_in_u256 {
assert!(rounded.is_err());
assert!(unrounded.is_err());
} else if round_up_delta > u64_max_in_u256 {
assert!(rounded.is_err());
// Price symmmetry
assert_eq!(unrounded.unwrap(), get_amount_delta_b(sqrt_price_1, sqrt_price_0, liquidity, false).unwrap());
} else {
// Price difference symmetry
assert_eq!(rounded.unwrap(), get_amount_delta_b(sqrt_price_1, sqrt_price_0, liquidity, true).unwrap());
assert_eq!(unrounded.unwrap(), get_amount_delta_b(sqrt_price_1, sqrt_price_0, liquidity, false).unwrap());
// Rounded should always be larger
assert!(unrounded.unwrap() <= rounded.unwrap());
// Diff should be no more than 1
assert!(rounded.unwrap() - unrounded.unwrap() <= 1);
}
}
}
}
#[cfg(test)]
mod test_get_amount_delta {
// Δt_a = ((liquidity * (sqrt_price_lower - sqrt_price_upper)) / sqrt_price_upper) / sqrt_price_lower
use super::get_amount_delta_a;
use super::get_amount_delta_b;
#[test]
fn test_get_amount_delta_ok() {
// A
assert_eq!(get_amount_delta_a(4 << 64, 2 << 64, 4, true).unwrap(), 1);
assert_eq!(get_amount_delta_a(4 << 64, 2 << 64, 4, false).unwrap(), 1);
// B
assert_eq!(get_amount_delta_b(4 << 64, 2 << 64, 4, true).unwrap(), 8);
assert_eq!(get_amount_delta_b(4 << 64, 2 << 64, 4, false).unwrap(), 8);
}
#[test]
fn test_get_amount_delta_price_diff_zero_ok() {
// A
assert_eq!(get_amount_delta_a(4 << 64, 4 << 64, 4, true).unwrap(), 0);
assert_eq!(get_amount_delta_a(4 << 64, 4 << 64, 4, false).unwrap(), 0);
// B
assert_eq!(get_amount_delta_b(4 << 64, 4 << 64, 4, true).unwrap(), 0);
assert_eq!(get_amount_delta_b(4 << 64, 4 << 64, 4, false).unwrap(), 0);
}
#[test]
fn test_get_amount_delta_a_overflow() {
assert!(get_amount_delta_a(1 << 64, 2 << 64, u128::MAX, true).is_err());
assert!(get_amount_delta_a(1 << 64, 2 << 64, (u64::MAX as u128) << (1 + 1), true).is_err());
assert!(get_amount_delta_a(1 << 64, 2 << 64, (u64::MAX as u128) << 1, true).is_ok());
assert!(get_amount_delta_a(1 << 64, 2 << 64, u64::MAX as u128, true).is_ok());
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/math/mod.rs
|
pub mod bit_math;
pub mod bn;
pub mod liquidity_math;
pub mod swap_math;
pub mod tick_math;
pub mod token_math;
pub mod u256_math;
pub use bit_math::*;
pub use bn::*;
pub use liquidity_math::*;
pub use swap_math::*;
pub use tick_math::*;
pub use token_math::*;
pub use u256_math::*;
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/math/bit_math.rs
|
use crate::errors::ErrorCode;
use super::U256Muldiv;
pub const Q64_RESOLUTION: u8 = 64;
pub const Q64_MASK: u128 = 0xFFFF_FFFF_FFFF_FFFF;
pub const TO_Q64: u128 = 1u128 << Q64_RESOLUTION;
pub fn checked_mul_div(n0: u128, n1: u128, d: u128) -> Result<u128, ErrorCode> {
checked_mul_div_round_up_if(n0, n1, d, false)
}
pub fn checked_mul_div_round_up(n0: u128, n1: u128, d: u128) -> Result<u128, ErrorCode> {
checked_mul_div_round_up_if(n0, n1, d, true)
}
pub fn checked_mul_div_round_up_if(
n0: u128,
n1: u128,
d: u128,
round_up: bool,
) -> Result<u128, ErrorCode> {
if d == 0 {
return Err(ErrorCode::DivideByZero);
}
let p = n0.checked_mul(n1).ok_or(ErrorCode::MulDivOverflow)?;
let n = p / d;
Ok(if round_up && p % d > 0 { n + 1 } else { n })
}
pub fn checked_mul_shift_right(n0: u128, n1: u128) -> Result<u64, ErrorCode> {
checked_mul_shift_right_round_up_if(n0, n1, false)
}
/// Multiplies an integer u128 and a Q64.64 fixed point number.
/// Returns a product represented as a u64 integer.
pub fn checked_mul_shift_right_round_up_if(
n0: u128,
n1: u128,
round_up: bool,
) -> Result<u64, ErrorCode> {
// customized this function is used in try_get_amount_delta_b (token_math.rs)
if n0 == 0 || n1 == 0 {
return Ok(0);
}
let p = n0
.checked_mul(n1)
.ok_or(ErrorCode::MultiplicationShiftRightOverflow)?;
let result = (p >> Q64_RESOLUTION) as u64;
let should_round = round_up && (p & Q64_MASK > 0);
if should_round && result == u64::MAX {
return Err(ErrorCode::MultiplicationOverflow);
}
Ok(if should_round { result + 1 } else { result })
}
pub fn div_round_up(n: u128, d: u128) -> Result<u128, ErrorCode> {
div_round_up_if(n, d, true)
}
pub fn div_round_up_if(n: u128, d: u128, round_up: bool) -> Result<u128, ErrorCode> {
if d == 0 {
return Err(ErrorCode::DivideByZero);
}
let q = n / d;
Ok(if round_up && n % d > 0 { q + 1 } else { q })
}
pub fn div_round_up_if_u256(
n: U256Muldiv,
d: U256Muldiv,
round_up: bool,
) -> Result<u128, ErrorCode> {
let (quotient, remainder) = n.div(d, round_up);
let result = if round_up && !remainder.is_zero() {
quotient.add(U256Muldiv::new(0, 1))
} else {
quotient
};
result.try_into_u128()
}
#[cfg(test)]
mod fuzz_tests {
use crate::math::U256;
use super::*;
use proptest::prelude::*;
proptest! {
#[test]
fn test_div_round_up_if(
n in 0..u128::MAX,
d in 0..u128::MAX,
) {
let rounded = div_round_up(n, d);
if d == 0 {
assert!(rounded.is_err());
} else {
let unrounded = n / d;
let div_unrounded = div_round_up_if(n, d, false).unwrap();
let diff = rounded.unwrap() - unrounded;
assert!(unrounded == div_unrounded);
assert!(diff <= 1);
assert!((diff == 1) == (n % d > 0));
}
}
#[test]
fn test_div_round_up_if_u256(
n_hi in 0..u128::MAX,
n_lo in 0..u128::MAX,
d_hi in 0..u128::MAX,
d_lo in 0..u128::MAX,
) {
let dividend = U256Muldiv::new(n_hi, n_lo);
let divisor = U256Muldiv::new(d_hi, d_lo);
let rounded = div_round_up_if_u256(dividend, divisor, true);
let (quotient, _) = dividend.div(divisor, true);
if quotient.try_into_u128().is_err() {
assert!(rounded.is_err());
} else {
let other_dividend = (U256::from(n_hi) << 128) + U256::from(n_lo);
let other_divisor = (U256::from(d_hi) << 128) + U256::from(d_lo);
let other_quotient = other_dividend / other_divisor;
let other_remainder = other_dividend % other_divisor;
let unrounded = div_round_up_if_u256(dividend, divisor, false);
assert!(unrounded.unwrap() == other_quotient.try_into_u128().unwrap());
let diff = rounded.unwrap() - unrounded.unwrap();
assert!(diff <= 1);
assert!((diff == 1) == (other_remainder > U256::zero()));
}
}
#[test]
fn test_checked_mul_div_round_up_if(n0 in 0..u128::MAX, n1 in 0..u128::MAX, d in 0..u128::MAX) {
let result = checked_mul_div_round_up_if(n0, n1, d, true);
if d == 0 || n0.checked_mul(n1).is_none() {
assert!(result.is_err());
} else {
let other_n0 = U256::from(n0);
let other_n1 = U256::from(n1);
let other_p = other_n0 * other_n1;
let other_d = U256::from(d);
let other_result = other_p / other_d;
let unrounded = checked_mul_div_round_up_if(n0, n1, d, false).unwrap();
assert!(U256::from(unrounded) == other_result);
let diff = U256::from(result.unwrap()) - other_result;
assert!(diff <= U256::from(1));
assert!((diff == U256::from(1)) == (other_p % other_d > U256::from(0)));
}
}
#[test]
fn test_mul_shift_right_round_up_if(n0 in 0..u128::MAX, n1 in 0..u128::MAX) {
let result = checked_mul_shift_right_round_up_if(n0, n1, true);
if n0.checked_mul(n1).is_none() {
assert!(result.is_err());
} else {
let p = (U256::from(n0) * U256::from(n1)).try_into_u128().unwrap();
let i = (p >> 64) as u64;
assert!(i == checked_mul_shift_right_round_up_if(n0, n1, false).unwrap());
if i == u64::MAX && (p & Q64_MASK > 0) {
assert!(result.is_err());
} else {
let diff = result.unwrap() - i;
assert!(diff <= 1);
assert!((diff == 1) == (p % (u64::MAX as u128) > 0));
}
}
}
}
}
#[cfg(test)]
mod test_bit_math {
// We arbitrarily select integers a, b, d < 2^128 - 1, such that 2^128 - 1 < (a * b / d) < 2^128
// For simplicity we fix d = 2 and the target to be 2^128 - 0.5
// We then solve for a * b = 2^129 - 1
const MAX_FLOOR: (u128, u128, u128) = (11053036065049294753459639, 61572651155449, 2);
mod test_mul_div {
use crate::math::checked_mul_div;
use super::MAX_FLOOR;
#[test]
fn test_mul_div_ok() {
assert_eq!(checked_mul_div(150, 30, 3).unwrap(), 1500);
assert_eq!(checked_mul_div(15, 0, 10).unwrap(), 0);
}
#[test]
fn test_mul_div_shift_ok() {
assert_eq!(checked_mul_div(u128::MAX, 1, 2).unwrap(), u128::MAX >> 1);
assert_eq!(checked_mul_div(u128::MAX, 1, 4).unwrap(), u128::MAX >> 2);
assert_eq!(checked_mul_div(u128::MAX, 1, 8).unwrap(), u128::MAX >> 3);
assert_eq!(checked_mul_div(u128::MAX, 1, 16).unwrap(), u128::MAX >> 4);
assert_eq!(checked_mul_div(u128::MAX, 1, 32).unwrap(), u128::MAX >> 5);
assert_eq!(checked_mul_div(u128::MAX, 1, 64).unwrap(), u128::MAX >> 6);
}
#[test]
fn test_mul_div_large_ok() {
assert_eq!(
checked_mul_div(u128::MAX, 1, u128::from(u64::MAX) + 1).unwrap(),
u64::MAX.into()
);
assert_eq!(checked_mul_div(u128::MAX - 1, 1, u128::MAX).unwrap(), 0);
}
#[test]
fn test_mul_div_overflows() {
assert!(checked_mul_div(u128::MAX, 2, u128::MAX).is_err());
assert!(checked_mul_div(u128::MAX, u128::MAX, u128::MAX).is_err());
assert!(checked_mul_div(u128::MAX, u128::MAX - 1, u128::MAX).is_err());
assert!(checked_mul_div(u128::MAX, 2, 1).is_err());
assert!(checked_mul_div(MAX_FLOOR.0, MAX_FLOOR.1, MAX_FLOOR.2).is_err());
}
#[test]
fn test_mul_div_does_not_round() {
assert_eq!(checked_mul_div(3, 7, 10).unwrap(), 2);
assert_eq!(
checked_mul_div(u128::MAX, 1, 7).unwrap(),
48611766702991209066196372490252601636
);
}
}
mod test_mul_div_round_up {
use crate::math::checked_mul_div_round_up;
use super::MAX_FLOOR;
#[test]
fn test_mul_div_ok() {
assert_eq!(checked_mul_div_round_up(0, 4, 4).unwrap(), 0);
assert_eq!(checked_mul_div_round_up(2, 4, 4).unwrap(), 2);
assert_eq!(checked_mul_div_round_up(3, 7, 21).unwrap(), 1);
}
#[test]
fn test_mul_div_rounding_up_rounds_up() {
assert_eq!(checked_mul_div_round_up(3, 7, 10).unwrap(), 3);
assert_eq!(
checked_mul_div_round_up(u128::MAX, 1, 7).unwrap(),
48611766702991209066196372490252601637
);
assert_eq!(
checked_mul_div_round_up(u128::MAX - 1, 1, u128::MAX).unwrap(),
1
);
}
#[test]
#[should_panic]
fn test_mul_div_rounding_upfloor_max_panics() {
assert_eq!(
checked_mul_div_round_up(MAX_FLOOR.0, MAX_FLOOR.1, MAX_FLOOR.2).unwrap(),
u128::MAX
);
}
#[test]
fn test_mul_div_overflow_panics() {
assert!(checked_mul_div_round_up(u128::MAX, u128::MAX, 1u128).is_err());
}
}
mod test_div_round_up {
use crate::math::div_round_up;
#[test]
fn test_mul_div_ok() {
assert_eq!(div_round_up(0, 21).unwrap(), 0);
assert_eq!(div_round_up(21, 21).unwrap(), 1);
assert_eq!(div_round_up(8, 4).unwrap(), 2);
}
#[test]
fn test_mul_div_rounding_up_rounds_up() {
assert_eq!(div_round_up(21, 10).unwrap(), 3);
assert_eq!(
div_round_up(u128::MAX, 7).unwrap(),
48611766702991209066196372490252601637
);
assert_eq!(div_round_up(u128::MAX - 1, u128::MAX).unwrap(), 1);
}
}
mod test_mult_shift_right_round_up {
use crate::math::checked_mul_shift_right_round_up_if;
#[test]
fn test_mul_shift_right_ok() {
assert_eq!(
checked_mul_shift_right_round_up_if(u64::MAX as u128, 1, false).unwrap(),
0
);
assert_eq!(
checked_mul_shift_right_round_up_if(u64::MAX as u128, 1, true).unwrap(),
1
);
assert_eq!(
checked_mul_shift_right_round_up_if(u64::MAX as u128 + 1, 1, false).unwrap(),
1
);
assert_eq!(
checked_mul_shift_right_round_up_if(u64::MAX as u128 + 1, 1, true).unwrap(),
1
);
assert_eq!(
checked_mul_shift_right_round_up_if(u32::MAX as u128, u32::MAX as u128, false)
.unwrap(),
0
);
assert_eq!(
checked_mul_shift_right_round_up_if(u32::MAX as u128, u32::MAX as u128, true)
.unwrap(),
1
);
assert_eq!(
checked_mul_shift_right_round_up_if(
u32::MAX as u128 + 1,
u32::MAX as u128 + 2,
false
)
.unwrap(),
1
);
assert_eq!(
checked_mul_shift_right_round_up_if(
u32::MAX as u128 + 1,
u32::MAX as u128 + 2,
true
)
.unwrap(),
2
);
}
#[test]
fn test_mul_shift_right_u64_max() {
assert!(checked_mul_shift_right_round_up_if(u128::MAX, 1, true).is_err());
assert_eq!(
checked_mul_shift_right_round_up_if(u128::MAX, 1, false).unwrap(),
u64::MAX
);
}
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/math/bn.rs
|
#![allow(clippy::assign_op_pattern)]
#![allow(clippy::ptr_offset_with_cast)]
#![allow(clippy::manual_range_contains)]
/// The following code is referenced from drift-labs:
/// https://github.com/drift-labs/protocol-v1/blob/3da78f1f03b66a273fc50818323ac62874abd1d8/programs/clearing_house/src/math/bn.rs
///
/// Based on parity's uint crate
/// https://github.com/paritytech/parity-common/tree/master/uint
///
/// Note: We cannot use U256 from primitive-types (default u256 from parity's uint) because we need to extend the U256 struct to
/// support the Borsh serial/deserialize traits.
///
/// The reason why this custom U256 impl does not directly impl TryInto traits is because of this:
/// https://stackoverflow.com/questions/37347311/how-is-there-a-conflicting-implementation-of-from-when-using-a-generic-type
///
/// As a result, we have to define our own custom Into methods
///
/// U256 reference:
/// https://crates.parity.io/sp_core/struct.U256.html
///
use borsh09::{BorshDeserialize, BorshSerialize};
use std::borrow::BorrowMut;
use std::convert::TryInto;
use std::io::{Error, ErrorKind, Write};
use std::mem::size_of;
use uint::construct_uint;
use crate::errors::ErrorCode;
macro_rules! impl_borsh_serialize_for_bn {
($type: ident) => {
impl BorshSerialize for $type {
#[inline]
fn serialize<W: Write>(&self, writer: &mut W) -> std::io::Result<()> {
let bytes = self.to_le_bytes();
writer.write_all(&bytes)
}
}
};
}
macro_rules! impl_borsh_deserialize_for_bn {
($type: ident) => {
impl BorshDeserialize for $type {
#[inline]
fn deserialize(buf: &mut &[u8]) -> std::io::Result<Self> {
if buf.len() < size_of::<$type>() {
return Err(Error::new(
ErrorKind::InvalidInput,
"Unexpected length of input",
));
}
let res = $type::from_le_bytes(buf[..size_of::<$type>()].try_into().unwrap());
*buf = &buf[size_of::<$type>()..];
Ok(res)
}
}
};
}
construct_uint! {
// U256 of [u64; 4]
pub struct U256(4);
}
impl U256 {
pub fn try_into_u64(self) -> Result<u64, ErrorCode> {
self.try_into().map_err(|_| ErrorCode::NumberCastError)
}
pub fn try_into_u128(self) -> Result<u128, ErrorCode> {
self.try_into().map_err(|_| ErrorCode::NumberCastError)
}
pub fn from_le_bytes(bytes: [u8; 32]) -> Self {
U256::from_little_endian(&bytes)
}
pub fn to_le_bytes(self) -> [u8; 32] {
let mut buf: Vec<u8> = Vec::with_capacity(size_of::<Self>());
self.to_little_endian(buf.borrow_mut());
let mut bytes: [u8; 32] = [0u8; 32];
bytes.copy_from_slice(buf.as_slice());
bytes
}
}
impl_borsh_deserialize_for_bn!(U256);
impl_borsh_serialize_for_bn!(U256);
#[cfg(test)]
mod test_u256 {
use super::*;
#[test]
fn test_into_u128_ok() {
let a = U256::from(2653u128);
let b = U256::from(1232u128);
let sum = a + b;
let d: u128 = sum.try_into_u128().unwrap();
assert_eq!(d, 3885u128);
}
#[test]
fn test_into_u128_error() {
let a = U256::from(u128::MAX);
let b = U256::from(u128::MAX);
let sum = a + b;
let c: Result<u128, ErrorCode> = sum.try_into_u128();
assert!(c.is_err());
}
#[test]
fn test_as_u128_ok() {
let a = U256::from(2653u128);
let b = U256::from(1232u128);
let sum = a + b;
let d: u128 = sum.as_u128();
assert_eq!(d, 3885u128);
}
#[test]
#[should_panic(expected = "Integer overflow when casting to u128")]
fn test_as_u128_panic() {
let a = U256::from(u128::MAX);
let b = U256::from(u128::MAX);
let sum = a + b;
let _: u128 = sum.as_u128();
}
#[test]
fn test_into_u64_ok() {
let a = U256::from(2653u64);
let b = U256::from(1232u64);
let sum = a + b;
let d: u64 = sum.try_into_u64().unwrap();
assert_eq!(d, 3885u64);
}
#[test]
fn test_into_u64_error() {
let a = U256::from(u64::MAX);
let b = U256::from(u64::MAX);
let sum = a + b;
let c: Result<u64, ErrorCode> = sum.try_into_u64();
assert!(c.is_err());
}
#[test]
fn test_as_u64_ok() {
let a = U256::from(2653u64);
let b = U256::from(1232u64);
let sum = a + b;
let d: u64 = sum.as_u64();
assert_eq!(d, 3885u64);
}
#[test]
#[should_panic(expected = "Integer overflow when casting to u64")]
fn test_as_u64_panic() {
let a = U256::from(u64::MAX);
let b = U256::from(u64::MAX);
let sum = a + b;
let _: u64 = sum.as_u64(); // panic overflow
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/math/u256_math.rs
|
use std::{
cmp::Ordering,
fmt::{Display, Formatter, Result as FmtResult},
str::from_utf8_unchecked,
};
use crate::errors::ErrorCode;
const NUM_WORDS: usize = 4;
#[derive(Copy, Clone, Debug)]
pub struct U256Muldiv {
pub items: [u64; NUM_WORDS],
}
impl U256Muldiv {
pub fn new(h: u128, l: u128) -> Self {
U256Muldiv {
items: [l.lo(), l.hi(), h.lo(), h.hi()],
}
}
fn copy(&self) -> Self {
let mut items: [u64; NUM_WORDS] = [0; NUM_WORDS];
items.copy_from_slice(&self.items);
U256Muldiv { items }
}
fn update_word(&mut self, index: usize, value: u64) {
self.items[index] = value;
}
fn num_words(&self) -> usize {
for i in (0..self.items.len()).rev() {
if self.items[i] != 0 {
return i + 1;
}
}
0
}
pub fn get_word(&self, index: usize) -> u64 {
self.items[index]
}
pub fn get_word_u128(&self, index: usize) -> u128 {
self.items[index] as u128
}
// Logical-left shift, does not trigger overflow
pub fn shift_word_left(&self) -> Self {
let mut result = U256Muldiv::new(0, 0);
for i in (0..NUM_WORDS - 1).rev() {
result.items[i + 1] = self.items[i];
}
result
}
pub fn checked_shift_word_left(&self) -> Option<Self> {
let last_element = self.items.last();
match last_element {
None => Some(self.shift_word_left()),
Some(element) => {
if *element > 0 {
None
} else {
Some(self.shift_word_left())
}
}
}
}
// Logical-left shift, does not trigger overflow
pub fn shift_left(&self, mut shift_amount: u32) -> Self {
// Return 0 if shift is greater than number of bits
if shift_amount >= U64_RESOLUTION * (NUM_WORDS as u32) {
return U256Muldiv::new(0, 0);
}
let mut result = self.copy();
while shift_amount >= U64_RESOLUTION {
result = result.shift_word_left();
shift_amount -= U64_RESOLUTION;
}
if shift_amount == 0 {
return result;
}
for i in (1..NUM_WORDS).rev() {
result.items[i] = result.items[i] << shift_amount
| result.items[i - 1] >> (U64_RESOLUTION - shift_amount);
}
result.items[0] <<= shift_amount;
result
}
// Logical-right shift, does not trigger overflow
pub fn shift_word_right(&self) -> Self {
let mut result = U256Muldiv::new(0, 0);
for i in 0..NUM_WORDS - 1 {
result.items[i] = self.items[i + 1]
}
result
}
// Logical-right shift, does not trigger overflow
pub fn shift_right(&self, mut shift_amount: u32) -> Self {
// Return 0 if shift is greater than number of bits
if shift_amount >= U64_RESOLUTION * (NUM_WORDS as u32) {
return U256Muldiv::new(0, 0);
}
let mut result = self.copy();
while shift_amount >= U64_RESOLUTION {
result = result.shift_word_right();
shift_amount -= U64_RESOLUTION;
}
if shift_amount == 0 {
return result;
}
for i in 0..NUM_WORDS - 1 {
result.items[i] = result.items[i] >> shift_amount
| result.items[i + 1] << (U64_RESOLUTION - shift_amount);
}
result.items[3] >>= shift_amount;
result
}
#[allow(clippy::should_implement_trait)]
pub fn eq(&self, other: U256Muldiv) -> bool {
for i in 0..self.items.len() {
if self.items[i] != other.items[i] {
return false;
}
}
true
}
pub fn lt(&self, other: U256Muldiv) -> bool {
for i in (0..self.items.len()).rev() {
match self.items[i].cmp(&other.items[i]) {
Ordering::Less => return true,
Ordering::Greater => return false,
Ordering::Equal => {}
}
}
false
}
pub fn gt(&self, other: U256Muldiv) -> bool {
for i in (0..self.items.len()).rev() {
match self.items[i].cmp(&other.items[i]) {
Ordering::Less => return false,
Ordering::Greater => return true,
Ordering::Equal => {}
}
}
false
}
pub fn lte(&self, other: U256Muldiv) -> bool {
for i in (0..self.items.len()).rev() {
match self.items[i].cmp(&other.items[i]) {
Ordering::Less => return true,
Ordering::Greater => return false,
Ordering::Equal => {}
}
}
true
}
pub fn gte(&self, other: U256Muldiv) -> bool {
for i in (0..self.items.len()).rev() {
match self.items[i].cmp(&other.items[i]) {
Ordering::Less => return false,
Ordering::Greater => return true,
Ordering::Equal => {}
}
}
true
}
pub fn try_into_u128(&self) -> Result<u128, ErrorCode> {
if self.num_words() > 2 {
return Err(ErrorCode::NumberDownCastError);
}
Ok((self.items[1] as u128) << U64_RESOLUTION | (self.items[0] as u128))
}
pub fn is_zero(self) -> bool {
for i in 0..NUM_WORDS {
if self.items[i] != 0 {
return false;
}
}
true
}
// Input:
// m = U256::MAX + 1 (which is the amount used for overflow)
// n = input value
// Output:
// r = smallest positive additive inverse of n mod m
//
// We wish to find r, s.t., r + n ≡ 0 mod m;
// We generally wish to find this r since r ≡ -n mod m
// and can make operations with n with large number of bits
// fit into u256 space without overflow
pub fn get_add_inverse(&self) -> Self {
// Additive inverse of 0 is 0
if self.eq(U256Muldiv::new(0, 0)) {
return U256Muldiv::new(0, 0);
}
// To ensure we don't overflow, we begin with max and do a subtraction
U256Muldiv::new(u128::MAX, u128::MAX)
.sub(*self)
.add(U256Muldiv::new(0, 1))
}
// Result overflows if the result is greater than 2^256-1
pub fn add(&self, other: U256Muldiv) -> Self {
let mut result = U256Muldiv::new(0, 0);
let mut carry = 0;
for i in 0..NUM_WORDS {
let x = self.get_word_u128(i);
let y = other.get_word_u128(i);
let t = x + y + carry;
result.update_word(i, t.lo());
carry = t.hi_u128();
}
result
}
// Result underflows if the result is greater than 2^256-1
pub fn sub(&self, other: U256Muldiv) -> Self {
let mut result = U256Muldiv::new(0, 0);
let mut carry = 0;
for i in 0..NUM_WORDS {
let x = self.get_word(i);
let y = other.get_word(i);
let (t0, overflowing0) = x.overflowing_sub(y);
let (t1, overflowing1) = t0.overflowing_sub(carry);
result.update_word(i, t1);
carry = if overflowing0 || overflowing1 { 1 } else { 0 };
}
result
}
// Result overflows if great than 2^256-1
pub fn mul(&self, other: U256Muldiv) -> Self {
let mut result = U256Muldiv::new(0, 0);
let m = self.num_words();
let n = other.num_words();
for j in 0..n {
let mut k = 0;
for i in 0..m {
let x = self.get_word_u128(i);
let y = other.get_word_u128(j);
if i + j < NUM_WORDS {
let z = result.get_word_u128(i + j);
let t = x.wrapping_mul(y).wrapping_add(z).wrapping_add(k);
result.update_word(i + j, t.lo());
k = t.hi_u128();
}
}
// Don't update the carry word
if j + m < NUM_WORDS {
result.update_word(j + m, k as u64);
}
}
result
}
// Result returns 0 if divide by zero
pub fn div(&self, mut divisor: U256Muldiv, return_remainder: bool) -> (Self, Self) {
let mut dividend = self.copy();
let mut quotient = U256Muldiv::new(0, 0);
let num_dividend_words = dividend.num_words();
let num_divisor_words = divisor.num_words();
if num_divisor_words == 0 {
panic!("divide by zero");
}
// Case 0. If either the dividend or divisor is 0, return 0
if num_dividend_words == 0 {
return (U256Muldiv::new(0, 0), U256Muldiv::new(0, 0));
}
// Case 1. Dividend is smaller than divisor, quotient = 0, remainder = dividend
if num_dividend_words < num_divisor_words {
if return_remainder {
return (U256Muldiv::new(0, 0), dividend);
} else {
return (U256Muldiv::new(0, 0), U256Muldiv::new(0, 0));
}
}
// Case 2. Dividend is smaller than u128, divisor <= dividend, perform math in u128 space
if num_dividend_words < 3 {
let dividend = dividend.try_into_u128().unwrap();
let divisor = divisor.try_into_u128().unwrap();
let quotient = dividend / divisor;
if return_remainder {
let remainder = dividend % divisor;
return (U256Muldiv::new(0, quotient), U256Muldiv::new(0, remainder));
} else {
return (U256Muldiv::new(0, quotient), U256Muldiv::new(0, 0));
}
}
// Case 3. Divisor is single-word, we must isolate this case for correctness
if num_divisor_words == 1 {
let mut k = 0;
for j in (0..num_dividend_words).rev() {
let d1 = hi_lo(k.lo(), dividend.get_word(j));
let d2 = divisor.get_word_u128(0);
let q = d1 / d2;
k = d1 - d2 * q;
quotient.update_word(j, q.lo());
}
if return_remainder {
return (quotient, U256Muldiv::new(0, k));
} else {
return (quotient, U256Muldiv::new(0, 0));
}
}
// Normalize the division by shifting left
let s = divisor.get_word(num_divisor_words - 1).leading_zeros();
let b = dividend.get_word(num_dividend_words - 1).leading_zeros();
// Conditional carry space for normalized division
let mut dividend_carry_space: u64 = 0;
if num_dividend_words == NUM_WORDS && b < s {
dividend_carry_space = dividend.items[num_dividend_words - 1] >> (U64_RESOLUTION - s);
}
dividend = dividend.shift_left(s);
divisor = divisor.shift_left(s);
for j in (0..num_dividend_words - num_divisor_words + 1).rev() {
let result = div_loop(
j,
num_divisor_words,
dividend,
&mut dividend_carry_space,
divisor,
quotient,
);
quotient = result.0;
dividend = result.1;
}
if return_remainder {
dividend = dividend.shift_right(s);
(quotient, dividend)
} else {
(quotient, U256Muldiv::new(0, 0))
}
}
}
impl Display for U256Muldiv {
fn fmt(&self, f: &mut Formatter) -> FmtResult {
let mut buf = [0_u8; NUM_WORDS * 20];
let mut i = buf.len() - 1;
let ten = U256Muldiv::new(0, 10);
let mut current = *self;
loop {
let (quotient, remainder) = current.div(ten, true);
let digit = remainder.get_word(0) as u8;
buf[i] = digit + b'0';
current = quotient;
if current.is_zero() {
break;
}
i -= 1;
}
let s = unsafe { from_utf8_unchecked(&buf[i..]) };
f.write_str(s)
}
}
const U64_MAX: u128 = u64::MAX as u128;
const U64_RESOLUTION: u32 = 64;
pub trait LoHi {
fn lo(self) -> u64;
fn hi(self) -> u64;
fn lo_u128(self) -> u128;
fn hi_u128(self) -> u128;
}
impl LoHi for u128 {
fn lo(self) -> u64 {
(self & U64_MAX) as u64
}
fn lo_u128(self) -> u128 {
self & U64_MAX
}
fn hi(self) -> u64 {
(self >> U64_RESOLUTION) as u64
}
fn hi_u128(self) -> u128 {
self >> U64_RESOLUTION
}
}
pub fn hi_lo(hi: u64, lo: u64) -> u128 {
(hi as u128) << U64_RESOLUTION | (lo as u128)
}
pub fn mul_u256(v: u128, n: u128) -> U256Muldiv {
// do 128 bits multiply
// nh nl
// * vh vl
// ----------
// a0 = vl * nl
// a1 = vl * nh
// b0 = vh * nl
// b1 = + vh * nh
// -------------------
// c1h c1l c0h c0l
//
// "a0" is optimized away, result is stored directly in c0. "b1" is
// optimized away, result is stored directly in c1.
//
let mut c0 = v.lo_u128() * n.lo_u128();
let a1 = v.lo_u128() * n.hi_u128();
let b0 = v.hi_u128() * n.lo_u128();
// add the high word of a0 to the low words of a1 and b0 using c1 as
// scrach space to capture the carry. the low word of the result becomes
// the final high word of c0
let mut c1 = c0.hi_u128() + a1.lo_u128() + b0.lo_u128();
c0 = hi_lo(c1.lo(), c0.lo());
// add the carry from the result above (found in the high word of c1) and
// the high words of a1 and b0 to b1, the result is c1.
c1 = v.hi_u128() * n.hi_u128() + c1.hi_u128() + a1.hi_u128() + b0.hi_u128();
U256Muldiv::new(c1, c0)
}
fn div_loop(
index: usize,
num_divisor_words: usize,
mut dividend: U256Muldiv,
dividend_carry_space: &mut u64,
divisor: U256Muldiv,
mut quotient: U256Muldiv,
) -> (U256Muldiv, U256Muldiv) {
let use_carry = (index + num_divisor_words) == NUM_WORDS;
let div_hi = if use_carry {
*dividend_carry_space
} else {
dividend.get_word(index + num_divisor_words)
};
let d0 = hi_lo(div_hi, dividend.get_word(index + num_divisor_words - 1));
let d1 = divisor.get_word_u128(num_divisor_words - 1);
let mut qhat = d0 / d1;
let mut rhat = d0 - d1 * qhat;
let d0_2 = dividend.get_word(index + num_divisor_words - 2);
let d1_2 = divisor.get_word_u128(num_divisor_words - 2);
let mut cmp1 = hi_lo(rhat.lo(), d0_2);
let mut cmp2 = qhat.wrapping_mul(d1_2);
while qhat.hi() != 0 || cmp2 > cmp1 {
qhat -= 1;
rhat += d1;
if rhat.hi() != 0 {
break;
}
cmp1 = hi_lo(rhat.lo(), cmp1.lo());
cmp2 -= d1_2;
}
let mut k = 0;
let mut t;
for i in 0..num_divisor_words {
let p = qhat * (divisor.get_word_u128(i));
t = (dividend.get_word_u128(index + i))
.wrapping_sub(k)
.wrapping_sub(p.lo_u128());
dividend.update_word(index + i, t.lo());
k = ((p >> U64_RESOLUTION) as u64).wrapping_sub((t >> U64_RESOLUTION) as u64) as u128;
}
let d_head = if use_carry {
*dividend_carry_space as u128
} else {
dividend.get_word_u128(index + num_divisor_words)
};
t = d_head.wrapping_sub(k);
if use_carry {
*dividend_carry_space = t.lo();
} else {
dividend.update_word(index + num_divisor_words, t.lo());
}
if k > d_head {
qhat -= 1;
k = 0;
for i in 0..num_divisor_words {
t = dividend
.get_word_u128(index + i)
.wrapping_add(divisor.get_word_u128(i))
.wrapping_add(k);
dividend.update_word(index + i, t.lo());
k = t >> U64_RESOLUTION;
}
let new_carry = dividend
.get_word_u128(index + num_divisor_words)
.wrapping_add(k)
.lo();
if use_carry {
*dividend_carry_space = new_carry
} else {
dividend.update_word(
index + num_divisor_words,
dividend
.get_word_u128(index + num_divisor_words)
.wrapping_add(k)
.lo(),
);
}
}
quotient.update_word(index, qhat.lo());
(quotient, dividend)
}
#[cfg(test)]
mod fuzz_tests {
use proptest::prelude::*;
use crate::math::{mul_u256, U256Muldiv, U256};
fn assert_equality(n0: U256Muldiv, n1: U256) {
assert_eq!(n0.get_word(0), n1.0[0], "failed: 0");
assert_eq!(n0.get_word(1), n1.0[1], "failed: 1");
assert_eq!(n0.get_word(2), n1.0[2], "failed: 2");
assert_eq!(n0.get_word(3), n1.0[3], "failed: 3");
}
proptest! {
#[test]
fn test_lt(n0_lo in 0..u128::MAX, n0_hi in 0..u128::MAX, n1_lo in 0..u128::MAX, n1_hi in 0..u128::MAX) {
let n0 = U256Muldiv::new(n0_hi, n0_lo);
let n1 = U256Muldiv::new(n1_hi, n1_lo);
let result = n0.lt(n1);
let other_n0 = (U256::from(n0_hi) << 128) + U256::from(n0_lo);
let other_n1 = (U256::from(n1_hi) << 128) + U256::from(n1_lo);
let other_result = other_n0 < other_n1;
assert_eq!(result, other_result);
}
#[test]
fn test_gt(n0_lo in 0..u128::MAX, n0_hi in 0..u128::MAX, n1_lo in 0..u128::MAX, n1_hi in 0..u128::MAX) {
let n0 = U256Muldiv::new(n0_hi, n0_lo);
let n1 = U256Muldiv::new(n1_hi, n1_lo);
let result = n0.gt(n1);
let other_n0 = (U256::from(n0_hi) << 128) + U256::from(n0_lo);
let other_n1 = (U256::from(n1_hi) << 128) + U256::from(n1_lo);
let other_result = other_n0 > other_n1;
assert_eq!(result, other_result);
}
#[test]
fn test_lte(n0_lo in 0..u128::MAX, n0_hi in 0..u128::MAX, n1_lo in 0..u128::MAX, n1_hi in 0..u128::MAX) {
let n0 = U256Muldiv::new(n0_hi, n0_lo);
let n1 = U256Muldiv::new(n1_hi, n1_lo);
let result = n0.lte(n1);
let other_n0 = (U256::from(n0_hi) << 128) + U256::from(n0_lo);
let other_n1 = (U256::from(n1_hi) << 128) + U256::from(n1_lo);
let other_result = other_n0 <= other_n1;
assert_eq!(result, other_result);
}
#[test]
fn test_gte(n0_lo in 0..u128::MAX, n0_hi in 0..u128::MAX, n1_lo in 0..u128::MAX, n1_hi in 0..u128::MAX) {
let n0 = U256Muldiv::new(n0_hi, n0_lo);
let n1 = U256Muldiv::new(n1_hi, n1_lo);
let result = n0.gte(n1);
let other_n0 = (U256::from(n0_hi) << 128) + U256::from(n0_lo);
let other_n1 = (U256::from(n1_hi) << 128) + U256::from(n1_lo);
let other_result = other_n0 >= other_n1;
// Should always be >= to itself
assert!(n0.gte(n0));
// Should be equivalent to u256 operation
assert_eq!(result, other_result);
}
#[test]
fn test_eq(n0_lo in 0..u128::MAX, n0_hi in 0..u128::MAX, n1_lo in 0..u128::MAX, n1_hi in 0..u128::MAX) {
let n0 = U256Muldiv::new(n0_hi, n0_lo);
let n1 = U256Muldiv::new(n1_hi, n1_lo);
let result_self = n0.eq(n0);
let result = n0.eq(n1);
let result2 = n1.eq(n0);
let other_n0 = (U256::from(n0_hi) << 128) + U256::from(n0_lo);
let other_n1 = (U256::from(n1_hi) << 128) + U256::from(n1_lo);
let other_result = other_n0 == other_n1;
// Should always be = to itself
assert!(result_self);
// Should be equivalent to using u256 space
assert_eq!(result, other_result);
assert_eq!(result2, other_result);
// Property should be symmetric, n0.eq(n1) == n1.eq(n0)
assert_eq!(result, result2);
}
#[test]
fn test_div(dividend_hi in 0..u128::MAX, dividend_lo in 0..u128::MAX, divisor_hi in 0..u128::MAX, divisor_lo in 0..u128::MAX) {
let dividend = U256Muldiv::new(dividend_hi, dividend_lo);
let divisor = U256Muldiv::new(divisor_hi, divisor_lo);
let result = dividend.div(divisor, false).0;
let other_dividend = (U256::from(dividend_hi) << 128) + U256::from(dividend_lo);
let other_divisor = (U256::from(divisor_hi) << 128) + U256::from(divisor_lo);
let other_result = other_dividend / other_divisor;
assert_equality(result, other_result);
}
#[test]
fn test_add(n0_lo in 0..u128::MAX, n0_hi in 0..u128::MAX, n1_lo in 0..u128::MAX, n1_hi in 0..u128::MAX) {
let n0 = U256Muldiv::new(n0_hi, n0_lo);
let n1 = U256Muldiv::new(n1_hi, n1_lo);
let result = n0.add(n1);
let result2 = n1.add(n0);
let add_zero = n0.add(U256Muldiv::new(0, 0));
let other_n0 = (U256::from(n0_hi) << 128) + U256::from(n0_lo);
let other_n1 = (U256::from(n1_hi) << 128) + U256::from(n1_lo);
// Assert addition is symmetric
assert!(result.eq(result2));
// Adding 0 is no-op
assert!(n0.eq(add_zero));
match other_n0.checked_add(other_n1) {
Some(other_result) => {
// Assert results equal to addition in U256 space
assert_equality(result, other_result);
},
None => {
// U256 has overflowed, we allow overflow, so the overflow amount should be (n0 + n1) mod (U256::MAX + 1)
// Since we know that n0 + n1 >= U256::MAX + 1, their sum of additive inverses must be < U256::MAX + 1
// Thus we calculate neg_sum = -n0 + -n1 mod U256::MAX + 1
let add_inv_0 = n0.get_add_inverse();
let add_inv_1 = n1.get_add_inverse();
let neg_sum = add_inv_0.add(add_inv_1);
// We then invert the neg_sum to get the expected overflow which should be the equivalent of n0 + n1 mod U256::MAX
// without any overflowing operations
let overflow = neg_sum.get_add_inverse();
assert!(result.eq(overflow));
},
}
}
#[test]
fn test_overflow_equality(lo in 0..u128::MAX, hi in 0..u128::MAX) {
let n0 = U256Muldiv::new(hi, lo);
// Overflowing in either direction should be equivalent
let n1 = n0.add(U256Muldiv::new(u128::MAX, u128::MAX)).add(U256Muldiv::new(0, 1));
let n2 = n0.sub(U256Muldiv::new(u128::MAX, u128::MAX)).sub(U256Muldiv::new(0, 1));
assert!(n0.eq(n1));
assert!(n0.eq(n2));
}
#[test]
fn test_sub(n0_lo in 0..u128::MAX, n0_hi in 0..u128::MAX, n1_lo in 0..u128::MAX, n1_hi in 0..u128::MAX) {
let n0 = U256Muldiv::new(n0_hi, n0_lo);
let n1 = U256Muldiv::new(n1_hi, n1_lo);
let result = n0.sub(n1);
let result2 = n0.sub(U256Muldiv::new(0, 0));
let other_n0 = (U256::from(n0_hi) << 128) + U256::from(n0_lo);
let other_n1 = (U256::from(n1_hi) << 128) + U256::from(n1_lo);
// Subtracting zero is no-op
assert!(result2.eq(n0));
match n0.gt(n1) {
true => {
let other_result = other_n0 - other_n1;
assert_equality(result, other_result);
},
false => {
// n1 >= n0 so we know that n1 - n0 does not overflow
// n1 - n0 ≡ -(n0 - n1) mod U256::MAX + 1
let neg = n1.sub(n0);
let overflow = neg.get_add_inverse();
assert!(result.eq(overflow));
}
}
}
#[test]
fn test_fmt(n_lo in 0..u128::MAX, n_hi in 0..u128::MAX) {
let n = U256Muldiv::new(n_hi, n_lo);
let other_n = (U256::from(n_hi) << 128) + U256::from(n_lo);
assert_eq!(format!("{}", n), format!("{}", other_n));
}
#[test]
fn test_mul_u256(n0 in 0..u128::MAX, n1 in 0..u128::MAX) {
let result = mul_u256(n0, n1);
let other_result = U256::from(n0) * U256::from(n1);
assert_equality(result, other_result);
}
#[test]
fn test_get_add_inv(n_hi in 0..u128::MAX, n_lo in 0..u128::MAX) {
let n = U256Muldiv::new(n_hi, n_lo);
let inverse = n.get_add_inverse();
let result = n.add(inverse);
assert!(result.eq(U256Muldiv::new(0, 0)));
}
#[test]
fn test_shift_right(n_hi in 1..u128::MAX, n_lo in 0..u128::MAX, shift_amount in 1u32..128) {
let n = U256Muldiv::new(n_hi, n_lo);
let result = n.shift_right(shift_amount);
let other_n = (U256::from(n_hi) << 128) + U256::from(n_lo);
let other_result = other_n >> shift_amount;
assert_equality(result, other_result);
}
#[test]
fn test_shift_left(n_hi in 0u128..(u32::MAX as u128), n_lo in 0..u128::MAX, shift_amount in 1u32..96) {
let n = U256Muldiv::new(n_hi, n_lo);
let result = n.shift_left(shift_amount);
let other_n = (U256::from(n_hi) << 128) + U256::from(n_lo);
let other_result = other_n << shift_amount;
assert_equality(result, other_result);
}
#[test]
fn test_checked_shift_word_left(n_hi in 0u128..(u64::MAX as u128), n_lo in 0..u128::MAX) {
let n = U256Muldiv::new(n_hi, n_lo);
let result = n.checked_shift_word_left();
let other_n = (U256::from(n_hi) << 128) + U256::from(n_lo);
let other_result = other_n << 64;
let final_result = result.unwrap();
assert_equality(final_result, other_result);
}
#[test]
fn test_checked_shift_word_left_overflow(n_hi in u64::MAX as u128..u128::MAX, n_lo in 0..u128::MAX) {
let n = U256Muldiv::new(n_hi, n_lo);
let result = n.checked_shift_word_left();
assert!(result.is_none())
}
#[test]
fn test_mul(n0_hi in 0..u128::MAX, n0_lo in 0..u128::MAX, n1_hi in 0..u128::MAX, n1_lo in 0..u128::MAX) {
let n0 = U256Muldiv::new(n0_hi, n0_lo);
let n1 = U256Muldiv::new(n1_hi, n1_lo);
let result = n0.mul(n1);
let other_n0 = (U256::from(n0_hi) << 128) + U256::from(n0_lo);
let other_n1 = (U256::from(n1_hi) << 128) + U256::from(n1_lo);
match other_n0.checked_mul(other_n1) {
Some(other_result) => {
// Assert results equal to addition in U256 space
assert_equality(result, other_result);
},
None => {
// The intention here is to enforce that the total number of bits <= 256
// If either of the values are larger than 2 words, we use the additive inverse
// which is congruent to the negative value mod U256::MAX + 1
// We are guaranteed that at least one of the values is > 2 words since we have overflowed
let should_inv_n0 = n0.num_words() > 2;
let should_inv_n1 = n1.num_words() > 2;
let maybe_inv_n0 = if should_inv_n0 {
n0.get_add_inverse()
} else {
n0
};
let maybe_inv_n1 = if should_inv_n1 {
n1.get_add_inverse()
} else {
n1
};
let prod = maybe_inv_n0.mul(maybe_inv_n1);
let overflow = if should_inv_n0 == should_inv_n1 {
// If we have inverted both n0 and n1, the inversions cancel out
prod
} else {
// Otherwise, invert the product again
prod.get_add_inverse()
};
assert!(result.eq(overflow));
},
}
}
}
}
#[cfg(test)]
mod test_add {
use crate::math::U256Muldiv;
#[test]
fn test_add_overflow_0() {
let n0 = U256Muldiv::new(u128::MAX, u128::MAX);
let n1 = n0.copy();
let result = n0.add(n1);
assert!(result.eq(U256Muldiv::new(u128::MAX, u128::MAX - 1)));
}
#[test]
fn test_add_overflow_1() {
let n0 = U256Muldiv::new(u128::MAX, u128::MAX);
let n1 = U256Muldiv::new(0, 1);
let result = n0.add(n1);
assert!(result.eq(U256Muldiv::new(0, 0)));
}
}
#[cfg(test)]
mod test_sub {
use crate::math::U256Muldiv;
#[test]
fn test_sub_underflow_0() {
let n0 = U256Muldiv::new(u128::MAX, u128::MAX - 1);
let n1 = U256Muldiv::new(u128::MAX, u128::MAX);
let result = n0.sub(n1);
assert!(result.eq(U256Muldiv::new(u128::MAX, u128::MAX)));
}
#[test]
fn test_sub_underflow_1() {
let n0 = U256Muldiv::new(0, 0);
let n1 = U256Muldiv::new(0, 1);
let result = n0.sub(n1);
assert!(result.eq(U256Muldiv::new(u128::MAX, u128::MAX)));
}
}
#[cfg(test)]
mod test_div {
use crate::math::U256;
use super::U256Muldiv;
#[test]
fn test_div_0() {
let dividend = U256Muldiv::new(50 << 64, 100 << 64);
let divisor = U256Muldiv::new(0, 100 << 64);
let result = dividend.div(divisor, true);
let result2 = ((U256::from(50u128 << 64) << 128) + U256::from(100u128 << 64))
.div_mod(U256::from(100u128 << 64));
assert!(format!("{}", result.0) == format!("{}", result2.0));
assert!(format!("{}", result.1) == format!("{}", result2.1));
}
#[test]
fn test_div_1() {
let dividend = U256Muldiv::new(100, 100);
let divisor = U256Muldiv::new(0, 50 << 64);
let result = dividend.div(divisor, true);
let result2 =
((U256::from(100u128) << 128) + U256::from(100u128)).div_mod(U256::from(50u128 << 64));
assert!(format!("{}", result.0) == format!("{}", result2.0));
assert!(format!("{}", result.1) == format!("{}", result2.1));
}
#[test]
fn test_div_2() {
let dividend = U256Muldiv::new(50, 100 << 64);
let divisor = U256Muldiv::new(0, 100 << 64);
let result = dividend.div(divisor, true);
let result2 = ((U256::from(50u128) << 128) + U256::from(100u128 << 64))
.div_mod(U256::from(100u128 << 64));
assert!(format!("{}", result.0) == format!("{}", result2.0));
assert!(format!("{}", result.1) == format!("{}", result2.1));
}
#[test]
fn test_div_3() {
let dividend = U256Muldiv::new(50, 100 << 64);
let divisor = U256Muldiv::new(0, 66);
let result = dividend.div(divisor, true);
let result2 =
((U256::from(50) << 128) + U256::from(100u128 << 64)).div_mod(U256::from(66u128));
assert!(format!("{}", result.0) == format!("{}", result2.0));
assert!(format!("{}", result.1) == format!("{}", result2.1));
}
#[test]
fn test_div_4() {
let dividend = U256Muldiv::new(100 << 64, 0);
let divisor = U256Muldiv::new(1 << 63, u64::MAX as u128);
let result = dividend.div(divisor, true);
let result2 = (U256::from(100u128 << 64) << 128)
.div_mod((U256::from(1u128 << 63) << 128) + U256::from(u64::MAX));
assert!(format!("{}", result.0) == format!("{}", result2.0));
assert!(format!("{}", result.1) == format!("{}", result2.1));
}
#[test]
fn test_div_5() {
let dividend = U256Muldiv::new(100 << 64, 0);
let divisor = U256Muldiv::new(1 << 63, 0);
let result = dividend.div(divisor, true);
let result2 = (U256::from(100u128 << 64) << 128).div_mod(U256::from(1u128 << 63) << 128);
assert!(format!("{}", result.0) == format!("{}", result2.0));
assert!(format!("{}", result.1) == format!("{}", result2.1));
}
#[test]
fn test_div_6() {
let dividend = U256Muldiv::new(1 << 63, 0);
let divisor = U256Muldiv::new(1 << 63, 1);
let result = dividend.div(divisor, true);
let result2 =
(U256::from(1u128 << 63) << 128).div_mod((U256::from(1u128 << 63) << 128) + 1);
assert!(format!("{}", result.0) == format!("{}", result2.0));
assert!(format!("{}", result.1) == format!("{}", result2.1));
}
#[test]
#[should_panic(expected = "divide by zero")]
fn test_div_7() {
let dividend = U256Muldiv::new(1 << 63, 0);
let divisor = U256Muldiv::new(0, 0);
let _ = dividend.div(divisor, true);
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/math/liquidity_math.rs
|
use crate::errors::ErrorCode;
// Adds a signed liquidity delta to a given integer liquidity amount.
// Errors on overflow or underflow.
pub fn add_liquidity_delta(liquidity: u128, delta: i128) -> Result<u128, ErrorCode> {
if delta == 0 {
return Ok(liquidity);
}
if delta > 0 {
liquidity
.checked_add(delta as u128)
.ok_or(ErrorCode::LiquidityOverflow)
} else {
liquidity
.checked_sub(delta.unsigned_abs())
.ok_or(ErrorCode::LiquidityUnderflow)
}
}
// Converts an unsigned liquidity amount to a signed liquidity delta
pub fn convert_to_liquidity_delta(
liquidity_amount: u128,
positive: bool,
) -> Result<i128, ErrorCode> {
if liquidity_amount > i128::MAX as u128 {
// The liquidity_amount is converted to a liquidity_delta that is represented as an i128
// By doing this conversion we lose the most significant bit in the u128
// Here we enforce a max value of i128::MAX on the u128 to prevent loss of data.
return Err(ErrorCode::LiquidityTooHigh);
}
Ok(if positive {
liquidity_amount as i128
} else {
-(liquidity_amount as i128)
})
}
#[cfg(test)]
mod liquidity_math_tests {
use super::add_liquidity_delta;
use super::ErrorCode;
#[test]
fn test_valid_add_liquidity_delta() {
assert_eq!(add_liquidity_delta(100, 100).unwrap(), 200);
assert_eq!(add_liquidity_delta(100, 0).unwrap(), 100);
assert_eq!(add_liquidity_delta(100, -100).unwrap(), 0);
}
#[test]
fn test_invalid_add_liquidity_delta_overflow() {
let result = add_liquidity_delta(u128::MAX, 1);
assert_eq!(result.unwrap_err(), ErrorCode::LiquidityOverflow);
}
#[test]
fn test_invalid_add_liquidity_delta_underflow() {
let result = add_liquidity_delta(u128::MIN, -1);
assert_eq!(result.unwrap_err(), ErrorCode::LiquidityUnderflow);
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/manager/tick_manager.rs
|
use crate::{
errors::ErrorCode,
math::add_liquidity_delta,
state::{Tick, TickUpdate, WhirlpoolRewardInfo, NUM_REWARDS},
};
pub fn next_tick_cross_update(
tick: &Tick,
fee_growth_global_a: u128,
fee_growth_global_b: u128,
reward_infos: &[WhirlpoolRewardInfo; NUM_REWARDS],
) -> Result<TickUpdate, ErrorCode> {
let mut update = TickUpdate::from(tick);
update.fee_growth_outside_a = fee_growth_global_a.wrapping_sub(tick.fee_growth_outside_a);
update.fee_growth_outside_b = fee_growth_global_b.wrapping_sub(tick.fee_growth_outside_b);
for (i, reward_info) in reward_infos.iter().enumerate() {
if !reward_info.initialized() {
continue;
}
update.reward_growths_outside[i] = reward_info
.growth_global_x64
.wrapping_sub(tick.reward_growths_outside[i]);
}
Ok(update)
}
#[allow(clippy::too_many_arguments)]
pub fn next_tick_modify_liquidity_update(
tick: &Tick,
tick_index: i32,
tick_current_index: i32,
fee_growth_global_a: u128,
fee_growth_global_b: u128,
reward_infos: &[WhirlpoolRewardInfo; NUM_REWARDS],
liquidity_delta: i128,
is_upper_tick: bool,
) -> Result<TickUpdate, ErrorCode> {
// noop if there is no change in liquidity
if liquidity_delta == 0 {
return Ok(TickUpdate::from(tick));
}
let liquidity_gross = add_liquidity_delta(tick.liquidity_gross, liquidity_delta)?;
// Update to an uninitialized tick if remaining liquidity is being removed
if liquidity_gross == 0 {
return Ok(TickUpdate::default());
}
let (fee_growth_outside_a, fee_growth_outside_b, reward_growths_outside) =
if tick.liquidity_gross == 0 {
// By convention, assume all prior growth happened below the tick
if tick_current_index >= tick_index {
(
fee_growth_global_a,
fee_growth_global_b,
WhirlpoolRewardInfo::to_reward_growths(reward_infos),
)
} else {
(0, 0, [0; NUM_REWARDS])
}
} else {
(
tick.fee_growth_outside_a,
tick.fee_growth_outside_b,
tick.reward_growths_outside,
)
};
let liquidity_net = if is_upper_tick {
tick.liquidity_net
.checked_sub(liquidity_delta)
.ok_or(ErrorCode::LiquidityNetError)?
} else {
tick.liquidity_net
.checked_add(liquidity_delta)
.ok_or(ErrorCode::LiquidityNetError)?
};
Ok(TickUpdate {
initialized: true,
liquidity_net,
liquidity_gross,
fee_growth_outside_a,
fee_growth_outside_b,
reward_growths_outside,
})
}
// Calculates the fee growths inside of tick_lower and tick_upper based on their
// index relative to tick_current_index.
pub fn next_fee_growths_inside(
tick_current_index: i32,
tick_lower: &Tick,
tick_lower_index: i32,
tick_upper: &Tick,
tick_upper_index: i32,
fee_growth_global_a: u128,
fee_growth_global_b: u128,
) -> (u128, u128) {
// By convention, when initializing a tick, all fees have been earned below the tick.
let (fee_growth_below_a, fee_growth_below_b) = if !tick_lower.initialized {
(fee_growth_global_a, fee_growth_global_b)
} else if tick_current_index < tick_lower_index {
(
fee_growth_global_a.wrapping_sub(tick_lower.fee_growth_outside_a),
fee_growth_global_b.wrapping_sub(tick_lower.fee_growth_outside_b),
)
} else {
(
tick_lower.fee_growth_outside_a,
tick_lower.fee_growth_outside_b,
)
};
// By convention, when initializing a tick, no fees have been earned above the tick.
let (fee_growth_above_a, fee_growth_above_b) = if !tick_upper.initialized {
(0, 0)
} else if tick_current_index < tick_upper_index {
(
tick_upper.fee_growth_outside_a,
tick_upper.fee_growth_outside_b,
)
} else {
(
fee_growth_global_a.wrapping_sub(tick_upper.fee_growth_outside_a),
fee_growth_global_b.wrapping_sub(tick_upper.fee_growth_outside_b),
)
};
(
fee_growth_global_a
.wrapping_sub(fee_growth_below_a)
.wrapping_sub(fee_growth_above_a),
fee_growth_global_b
.wrapping_sub(fee_growth_below_b)
.wrapping_sub(fee_growth_above_b),
)
}
// Calculates the reward growths inside of tick_lower and tick_upper based on their positions
// relative to tick_current_index. An uninitialized reward will always have a reward growth of zero.
pub fn next_reward_growths_inside(
tick_current_index: i32,
tick_lower: &Tick,
tick_lower_index: i32,
tick_upper: &Tick,
tick_upper_index: i32,
reward_infos: &[WhirlpoolRewardInfo; NUM_REWARDS],
) -> [u128; NUM_REWARDS] {
let mut reward_growths_inside = [0; NUM_REWARDS];
for i in 0..NUM_REWARDS {
if !reward_infos[i].initialized() {
continue;
}
// By convention, assume all prior growth happened below the tick
let reward_growths_below = if !tick_lower.initialized {
reward_infos[i].growth_global_x64
} else if tick_current_index < tick_lower_index {
reward_infos[i]
.growth_global_x64
.wrapping_sub(tick_lower.reward_growths_outside[i])
} else {
tick_lower.reward_growths_outside[i]
};
// By convention, assume all prior growth happened below the tick, not above
let reward_growths_above = if !tick_upper.initialized {
0
} else if tick_current_index < tick_upper_index {
tick_upper.reward_growths_outside[i]
} else {
reward_infos[i]
.growth_global_x64
.wrapping_sub(tick_upper.reward_growths_outside[i])
};
reward_growths_inside[i] = reward_infos[i]
.growth_global_x64
.wrapping_sub(reward_growths_below)
.wrapping_sub(reward_growths_above);
}
reward_growths_inside
}
#[cfg(test)]
mod tick_manager_tests {
use anchor_lang::prelude::Pubkey;
use crate::{
errors::ErrorCode,
manager::tick_manager::{
next_fee_growths_inside, next_tick_cross_update, next_tick_modify_liquidity_update,
TickUpdate,
},
math::Q64_RESOLUTION,
state::{tick_builder::TickBuilder, Tick, WhirlpoolRewardInfo, NUM_REWARDS},
};
use super::next_reward_growths_inside;
fn create_test_whirlpool_reward_info(
emissions_per_second_x64: u128,
growth_global_x64: u128,
initialized: bool,
) -> WhirlpoolRewardInfo {
WhirlpoolRewardInfo {
mint: if initialized {
Pubkey::new_unique()
} else {
Pubkey::default()
},
emissions_per_second_x64,
growth_global_x64,
..Default::default()
}
}
#[test]
fn test_next_fee_growths_inside() {
struct Test<'a> {
name: &'a str,
tick_current_index: i32,
tick_lower: Tick,
tick_lower_index: i32,
tick_upper: Tick,
tick_upper_index: i32,
fee_growth_global_a: u128,
fee_growth_global_b: u128,
expected_fee_growths_inside: (u128, u128),
}
for test in [
Test {
name: "current tick index below ticks",
tick_current_index: -200,
tick_lower: Tick {
initialized: true,
fee_growth_outside_a: 2000,
fee_growth_outside_b: 1000,
..Default::default()
},
tick_lower_index: -100,
tick_upper: Tick {
initialized: true,
fee_growth_outside_a: 1000,
fee_growth_outside_b: 1000,
..Default::default()
},
tick_upper_index: 100,
fee_growth_global_a: 3000,
fee_growth_global_b: 3000,
expected_fee_growths_inside: (1000, 0),
},
Test {
name: "current tick index between ticks",
tick_current_index: -20,
tick_lower: Tick {
initialized: true,
fee_growth_outside_a: 2000,
fee_growth_outside_b: 1000,
..Default::default()
},
tick_lower_index: -20,
tick_upper: Tick {
initialized: true,
fee_growth_outside_a: 1500,
fee_growth_outside_b: 1000,
..Default::default()
},
tick_upper_index: 100,
fee_growth_global_a: 4000,
fee_growth_global_b: 3000,
expected_fee_growths_inside: (500, 1000),
},
Test {
name: "current tick index above ticks",
tick_current_index: 200,
tick_lower: Tick {
initialized: true,
fee_growth_outside_a: 2000,
fee_growth_outside_b: 1000,
..Default::default()
},
tick_lower_index: -100,
tick_upper: Tick {
initialized: true,
fee_growth_outside_a: 2500,
fee_growth_outside_b: 2000,
..Default::default()
},
tick_upper_index: 100,
fee_growth_global_a: 3000,
fee_growth_global_b: 3000,
expected_fee_growths_inside: (500, 1000),
},
] {
// System under test
let (fee_growth_inside_a, fee_growth_inside_b) = next_fee_growths_inside(
test.tick_current_index,
&test.tick_lower,
test.tick_lower_index,
&test.tick_upper,
test.tick_upper_index,
test.fee_growth_global_a,
test.fee_growth_global_b,
);
assert_eq!(
fee_growth_inside_a, test.expected_fee_growths_inside.0,
"{} - fee_growth_inside_a",
test.name
);
assert_eq!(
fee_growth_inside_b, test.expected_fee_growths_inside.1,
"{} - fee_growth_inside_b",
test.name
);
}
}
#[test]
fn test_next_reward_growths_inside() {
struct Test<'a> {
name: &'a str,
tick_current_index: i32,
tick_lower: Tick,
tick_lower_index: i32,
tick_upper: Tick,
tick_upper_index: i32,
reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
expected_reward_growths_inside: [u128; NUM_REWARDS],
}
for test in [
Test {
name: "current tick index below ticks zero rewards",
tick_lower: Tick {
initialized: true,
reward_growths_outside: [100, 666, 69420],
..Default::default()
},
tick_lower_index: -100,
tick_upper: Tick {
initialized: true,
reward_growths_outside: [100, 666, 69420],
..Default::default()
},
tick_upper_index: 100,
tick_current_index: -200,
reward_infos: [
create_test_whirlpool_reward_info(1, 500, true),
create_test_whirlpool_reward_info(1, 1000, true),
create_test_whirlpool_reward_info(1, 70000, true),
],
expected_reward_growths_inside: [0, 0, 0],
},
Test {
name: "current tick index between ticks",
tick_lower: Tick {
initialized: true,
reward_growths_outside: [200, 134, 480],
..Default::default()
},
tick_lower_index: -100,
tick_upper: Tick {
initialized: true,
reward_growths_outside: [100, 666, 69420],
..Default::default()
},
tick_upper_index: 100,
tick_current_index: 10,
reward_infos: [
create_test_whirlpool_reward_info(1, 1000, true),
create_test_whirlpool_reward_info(1, 2000, true),
create_test_whirlpool_reward_info(1, 80000, true),
],
expected_reward_growths_inside: [700, 1200, 10100],
},
Test {
name: "current tick index above ticks",
tick_lower: Tick {
reward_growths_outside: [200, 134, 480],
initialized: true,
..Default::default()
},
tick_lower_index: -100,
tick_upper: Tick {
initialized: true,
reward_growths_outside: [900, 1334, 10580],
..Default::default()
},
tick_upper_index: 100,
tick_current_index: 250,
reward_infos: [
create_test_whirlpool_reward_info(1, 1000, true),
create_test_whirlpool_reward_info(1, 2000, true),
create_test_whirlpool_reward_info(1, 80000, true),
],
expected_reward_growths_inside: [700, 1200, 10100],
},
Test {
name: "uninitialized rewards no-op",
tick_lower: Tick {
initialized: true,
reward_growths_outside: [200, 134, 480],
..Default::default()
},
tick_lower_index: -100,
tick_upper: Tick {
initialized: true,
reward_growths_outside: [900, 1334, 10580],
..Default::default()
},
tick_upper_index: 100,
tick_current_index: 250,
reward_infos: [
create_test_whirlpool_reward_info(1, 1000, true),
create_test_whirlpool_reward_info(1, 2000, false),
create_test_whirlpool_reward_info(1, 80000, false),
],
expected_reward_growths_inside: [700, 0, 0],
},
] {
// System under test
let results = next_reward_growths_inside(
test.tick_current_index,
&test.tick_lower,
test.tick_lower_index,
&test.tick_upper,
test.tick_upper_index,
&test.reward_infos,
);
for (i, result) in results.iter().enumerate() {
assert_eq!(
*result, test.expected_reward_growths_inside[i],
"[{}] {} - reward growth value not equal",
i, test.name
);
assert_eq!(
*result, test.expected_reward_growths_inside[i],
"[{}] {} - reward growth initialized flag not equal",
i, test.name
);
}
}
}
#[test]
fn test_next_tick_modify_liquidity_update() {
#[derive(Default)]
struct Test<'a> {
name: &'a str,
tick: Tick,
tick_index: i32,
tick_current_index: i32,
fee_growth_global_a: u128,
fee_growth_global_b: u128,
reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
liquidity_delta: i128,
is_upper_tick: bool,
expected_update: TickUpdate,
}
// Whirlpool rewards re-used in the tests
let reward_infos = [
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: 1 << Q64_RESOLUTION,
growth_global_x64: 100 << Q64_RESOLUTION,
..Default::default()
},
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: 1 << Q64_RESOLUTION,
growth_global_x64: 100 << Q64_RESOLUTION,
..Default::default()
},
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: 1 << Q64_RESOLUTION,
growth_global_x64: 100 << Q64_RESOLUTION,
..Default::default()
},
];
for test in [
Test {
name: "initialize lower tick with +liquidity, current < tick.index, growths not set",
tick: Tick::default(),
tick_index: 200,
tick_current_index: 100,
liquidity_delta: 42069,
is_upper_tick: false,
fee_growth_global_a: 100,
fee_growth_global_b: 100,
reward_infos,
expected_update: TickUpdate {
initialized: true,
liquidity_net: 42069,
liquidity_gross: 42069,
..Default::default()
},
},
Test {
name: "initialize lower tick with +liquidity, current >= tick.index, growths get set",
tick: Tick::default(),
tick_index: 200,
tick_current_index: 300,
liquidity_delta: 42069,
is_upper_tick: false,
fee_growth_global_a: 100,
fee_growth_global_b: 100,
reward_infos,
expected_update: TickUpdate {
initialized: true,
liquidity_net: 42069,
liquidity_gross: 42069,
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [
100 << Q64_RESOLUTION,
100 << Q64_RESOLUTION,
100 << Q64_RESOLUTION,
],
},
},
Test {
name: "lower tick +liquidity already initialized, growths not set",
tick: TickBuilder::default()
.initialized(true)
.liquidity_net(100)
.liquidity_gross(100)
.build(),
tick_index: 200,
tick_current_index: 100,
liquidity_delta: 42069,
is_upper_tick: false,
fee_growth_global_a: 100,
fee_growth_global_b: 100,
reward_infos,
expected_update: TickUpdate {
initialized: true,
liquidity_net: 42169,
liquidity_gross: 42169,
..Default::default()
},
},
Test {
name: "upper tick +liquidity already initialized, growths not set, liquidity net should be subtracted",
tick: TickBuilder::default()
.initialized(true)
.liquidity_net(100000)
.liquidity_gross(100000)
.build(),
tick_index: 200,
tick_current_index: 100,
liquidity_delta: 42069,
is_upper_tick: true,
expected_update: TickUpdate {
initialized: true,
liquidity_net:57931,
liquidity_gross: 142069,
..Default::default()
},
..Default::default()
},
Test {
name: "upper tick -liquidity, growths not set, uninitialize tick",
tick: TickBuilder::default()
.initialized(true)
.liquidity_net(-100000)
.liquidity_gross(100000)
.build(),
tick_index: 200,
tick_current_index: 100,
liquidity_delta: -100000,
is_upper_tick: true,
expected_update: TickUpdate {
initialized: false,
liquidity_net: 0,
liquidity_gross: 0,
..Default::default()
},
..Default::default()
},
Test {
name: "lower tick -liquidity, growths not set, initialized no change",
tick: TickBuilder::default()
.initialized(true)
.liquidity_net(100000)
.liquidity_gross(200000)
.build(),
tick_index: 200,
tick_current_index: 100,
liquidity_delta: -100000,
is_upper_tick: false,
expected_update: TickUpdate {
initialized: true,
liquidity_net: 0,
liquidity_gross: 100000,
..Default::default()
},
..Default::default()
},
Test {
name: "liquidity delta zero is no-op",
tick: TickBuilder::default()
.initialized(true)
.liquidity_net(100000)
.liquidity_gross(200000)
.build(),
tick_index: 200,
tick_current_index: 100,
liquidity_delta: 0,
is_upper_tick: false,
expected_update: TickUpdate {
initialized: true,
liquidity_net: 100000,
liquidity_gross: 200000,
..Default::default()
},
..Default::default()
},
Test {
name: "uninitialized rewards get set to zero values",
tick: TickBuilder::default()
.initialized(true)
.reward_growths_outside([100, 200, 50])
.build(),
tick_index: 200,
tick_current_index: 1000,
liquidity_delta: 42069,
is_upper_tick: false,
fee_growth_global_a: 100,
fee_growth_global_b: 100,
reward_infos: [
WhirlpoolRewardInfo{
..Default::default()
},
WhirlpoolRewardInfo{
mint: Pubkey::new_unique(),
emissions_per_second_x64: 1,
growth_global_x64: 250,
..Default::default()
},
WhirlpoolRewardInfo{
..Default::default()
}
],
expected_update: TickUpdate {
initialized: true,
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
liquidity_net: 42069,
liquidity_gross: 42069,
reward_growths_outside: [0, 250, 0]
},
}
] {
// System under test
let update = next_tick_modify_liquidity_update(
&test.tick,
test.tick_index,
test.tick_current_index,
test.fee_growth_global_a,
test.fee_growth_global_b,
&test.reward_infos,
test.liquidity_delta,
test.is_upper_tick,
)
.unwrap();
assert_eq!(
update.initialized, test.expected_update.initialized,
"{}: initialized invalid",
test.name
);
assert_eq!(
update.liquidity_net, test.expected_update.liquidity_net,
"{}: liquidity_net invalid",
test.name
);
assert_eq!(
update.liquidity_gross, test.expected_update.liquidity_gross,
"{}: liquidity_gross invalid",
test.name
);
assert_eq!(
update.fee_growth_outside_a, test.expected_update.fee_growth_outside_a,
"{}: fee_growth_outside_a invalid",
test.name
);
assert_eq!(
update.fee_growth_outside_b, test.expected_update.fee_growth_outside_b,
"{}: fee_growth_outside_b invalid",
test.name
);
assert_eq!(
update.reward_growths_outside, test.expected_update.reward_growths_outside,
"{}: reward_growths_outside invalid",
test.name
);
}
}
#[test]
fn test_next_tick_modify_liquidity_update_errors() {
struct Test<'a> {
name: &'a str,
tick: Tick,
tick_index: i32,
tick_current_index: i32,
liquidity_delta: i128,
is_upper_tick: bool,
expected_error: ErrorCode,
}
for test in [
Test {
name: "liquidity gross overflow",
tick: TickBuilder::default().liquidity_gross(u128::MAX).build(),
tick_index: 0,
tick_current_index: 10,
liquidity_delta: i128::MAX,
is_upper_tick: false,
expected_error: ErrorCode::LiquidityOverflow,
},
Test {
name: "liquidity gross underflow",
tick: Tick::default(),
tick_index: 0,
tick_current_index: 10,
liquidity_delta: -100,
is_upper_tick: false,
expected_error: ErrorCode::LiquidityUnderflow,
},
Test {
name: "liquidity net overflow from subtracting negative delta",
tick: TickBuilder::default()
.liquidity_gross(i128::MAX as u128)
.liquidity_net(i128::MAX)
.build(),
tick_index: 0,
tick_current_index: 10,
liquidity_delta: -(i128::MAX - 1),
is_upper_tick: true,
expected_error: ErrorCode::LiquidityNetError,
},
Test {
name: "liquidity net underflow",
tick: TickBuilder::default()
.liquidity_gross(10000)
.liquidity_net(i128::MAX)
.build(),
tick_index: 0,
tick_current_index: 10,
liquidity_delta: i128::MAX,
is_upper_tick: false,
expected_error: ErrorCode::LiquidityNetError,
},
] {
// System under test
let err = next_tick_modify_liquidity_update(
&test.tick,
test.tick_index,
test.tick_current_index,
0,
0,
&[WhirlpoolRewardInfo::default(); NUM_REWARDS],
test.liquidity_delta,
test.is_upper_tick,
)
.unwrap_err();
assert_eq!(err, test.expected_error, "{}", test.name);
}
}
#[test]
fn test_next_tick_cross_update() {
struct Test<'a> {
name: &'a str,
tick: Tick,
fee_growth_global_a: u128,
fee_growth_global_b: u128,
reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
expected_update: TickUpdate,
}
for test in [Test {
name: "growths set properly (inverted)",
tick: TickBuilder::default()
.fee_growth_outside_a(1000)
.fee_growth_outside_b(1000)
.reward_growths_outside([500, 250, 100])
.build(),
fee_growth_global_a: 2500,
fee_growth_global_b: 6750,
reward_infos: [
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: 1,
growth_global_x64: 1000,
..Default::default()
},
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: 1,
growth_global_x64: 1000,
..Default::default()
},
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: 1,
growth_global_x64: 1000,
..Default::default()
},
],
expected_update: TickUpdate {
fee_growth_outside_a: 1500,
fee_growth_outside_b: 5750,
reward_growths_outside: [500, 750, 900],
..Default::default()
},
}] {
// System under test
let update = next_tick_cross_update(
&test.tick,
test.fee_growth_global_a,
test.fee_growth_global_b,
&test.reward_infos,
)
.unwrap();
assert_eq!(
update.fee_growth_outside_a, test.expected_update.fee_growth_outside_a,
"{}: fee_growth_outside_a invalid",
test.name
);
assert_eq!(
update.fee_growth_outside_b, test.expected_update.fee_growth_outside_b,
"{}: fee_growth_outside_b invalid",
test.name
);
let reward_growths_outside = update.reward_growths_outside;
let expected_growths_outside = test.expected_update.reward_growths_outside;
for i in 0..NUM_REWARDS {
assert_eq!(
reward_growths_outside[i], expected_growths_outside[i],
"{}: reward_growth[{}] invalid",
test.name, i
);
}
}
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/manager/liquidity_manager.rs
|
use super::{
position_manager::next_position_modify_liquidity_update,
tick_manager::{
next_fee_growths_inside, next_reward_growths_inside, next_tick_modify_liquidity_update,
},
whirlpool_manager::{next_whirlpool_liquidity, next_whirlpool_reward_infos},
};
use crate::{
errors::ErrorCode,
math::{get_amount_delta_a, get_amount_delta_b, sqrt_price_from_tick_index},
state::*,
};
use anchor_lang::prelude::{AccountLoader, *};
#[derive(Debug)]
pub struct ModifyLiquidityUpdate {
pub whirlpool_liquidity: u128,
pub tick_lower_update: TickUpdate,
pub tick_upper_update: TickUpdate,
pub reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
pub position_update: PositionUpdate,
}
// Calculates state after modifying liquidity by the liquidity_delta for the given positon.
// Fee and reward growths will also be calculated by this function.
// To trigger only calculation of fee and reward growths, use calculate_fee_and_reward_growths.
pub fn calculate_modify_liquidity<'info>(
whirlpool: &Whirlpool,
position: &Position,
tick_array_lower: &AccountLoader<'info, TickArray>,
tick_array_upper: &AccountLoader<'info, TickArray>,
liquidity_delta: i128,
timestamp: u64,
) -> Result<ModifyLiquidityUpdate> {
let tick_array_lower = tick_array_lower.load()?;
let tick_lower =
tick_array_lower.get_tick(position.tick_lower_index, whirlpool.tick_spacing)?;
let tick_array_upper = tick_array_upper.load()?;
let tick_upper =
tick_array_upper.get_tick(position.tick_upper_index, whirlpool.tick_spacing)?;
_calculate_modify_liquidity(
whirlpool,
position,
tick_lower,
tick_upper,
position.tick_lower_index,
position.tick_upper_index,
liquidity_delta,
timestamp,
)
}
pub fn calculate_fee_and_reward_growths<'info>(
whirlpool: &Whirlpool,
position: &Position,
tick_array_lower: &AccountLoader<'info, TickArray>,
tick_array_upper: &AccountLoader<'info, TickArray>,
timestamp: u64,
) -> Result<(PositionUpdate, [WhirlpoolRewardInfo; NUM_REWARDS])> {
let tick_array_lower = tick_array_lower.load()?;
let tick_lower =
tick_array_lower.get_tick(position.tick_lower_index, whirlpool.tick_spacing)?;
let tick_array_upper = tick_array_upper.load()?;
let tick_upper =
tick_array_upper.get_tick(position.tick_upper_index, whirlpool.tick_spacing)?;
// Pass in a liquidity_delta value of 0 to trigger only calculations for fee and reward growths.
// Calculating fees and rewards for positions with zero liquidity will result in an error.
let update = _calculate_modify_liquidity(
whirlpool,
position,
tick_lower,
tick_upper,
position.tick_lower_index,
position.tick_upper_index,
0,
timestamp,
)?;
Ok((update.position_update, update.reward_infos))
}
// Calculates the state changes after modifying liquidity of a whirlpool position.
#[allow(clippy::too_many_arguments)]
fn _calculate_modify_liquidity(
whirlpool: &Whirlpool,
position: &Position,
tick_lower: &Tick,
tick_upper: &Tick,
tick_lower_index: i32,
tick_upper_index: i32,
liquidity_delta: i128,
timestamp: u64,
) -> Result<ModifyLiquidityUpdate> {
// Disallow only updating position fee and reward growth when position has zero liquidity
if liquidity_delta == 0 && position.liquidity == 0 {
return Err(ErrorCode::LiquidityZero.into());
}
let next_reward_infos = next_whirlpool_reward_infos(whirlpool, timestamp)?;
let next_global_liquidity = next_whirlpool_liquidity(
whirlpool,
position.tick_upper_index,
position.tick_lower_index,
liquidity_delta,
)?;
let tick_lower_update = next_tick_modify_liquidity_update(
tick_lower,
tick_lower_index,
whirlpool.tick_current_index,
whirlpool.fee_growth_global_a,
whirlpool.fee_growth_global_b,
&next_reward_infos,
liquidity_delta,
false,
)?;
let tick_upper_update = next_tick_modify_liquidity_update(
tick_upper,
tick_upper_index,
whirlpool.tick_current_index,
whirlpool.fee_growth_global_a,
whirlpool.fee_growth_global_b,
&next_reward_infos,
liquidity_delta,
true,
)?;
let (fee_growth_inside_a, fee_growth_inside_b) = next_fee_growths_inside(
whirlpool.tick_current_index,
tick_lower,
tick_lower_index,
tick_upper,
tick_upper_index,
whirlpool.fee_growth_global_a,
whirlpool.fee_growth_global_b,
);
let reward_growths_inside = next_reward_growths_inside(
whirlpool.tick_current_index,
tick_lower,
tick_lower_index,
tick_upper,
tick_upper_index,
&next_reward_infos,
);
let position_update = next_position_modify_liquidity_update(
position,
liquidity_delta,
fee_growth_inside_a,
fee_growth_inside_b,
&reward_growths_inside,
)?;
Ok(ModifyLiquidityUpdate {
whirlpool_liquidity: next_global_liquidity,
reward_infos: next_reward_infos,
position_update,
tick_lower_update,
tick_upper_update,
})
}
pub fn calculate_liquidity_token_deltas(
current_tick_index: i32,
sqrt_price: u128,
position: &Position,
liquidity_delta: i128,
) -> Result<(u64, u64)> {
if liquidity_delta == 0 {
return Err(ErrorCode::LiquidityZero.into());
}
let mut delta_a: u64 = 0;
let mut delta_b: u64 = 0;
let liquidity: u128 = liquidity_delta.unsigned_abs();
let round_up = liquidity_delta > 0;
let lower_price = sqrt_price_from_tick_index(position.tick_lower_index);
let upper_price = sqrt_price_from_tick_index(position.tick_upper_index);
if current_tick_index < position.tick_lower_index {
// current tick below position
delta_a = get_amount_delta_a(lower_price, upper_price, liquidity, round_up)?;
} else if current_tick_index < position.tick_upper_index {
// current tick inside position
delta_a = get_amount_delta_a(sqrt_price, upper_price, liquidity, round_up)?;
delta_b = get_amount_delta_b(lower_price, sqrt_price, liquidity, round_up)?;
} else {
// current tick above position
delta_b = get_amount_delta_b(lower_price, upper_price, liquidity, round_up)?;
}
Ok((delta_a, delta_b))
}
pub fn sync_modify_liquidity_values<'info>(
whirlpool: &mut Whirlpool,
position: &mut Position,
tick_array_lower: &AccountLoader<'info, TickArray>,
tick_array_upper: &AccountLoader<'info, TickArray>,
modify_liquidity_update: ModifyLiquidityUpdate,
reward_last_updated_timestamp: u64,
) -> Result<()> {
position.update(&modify_liquidity_update.position_update);
tick_array_lower.load_mut()?.update_tick(
position.tick_lower_index,
whirlpool.tick_spacing,
&modify_liquidity_update.tick_lower_update,
)?;
tick_array_upper.load_mut()?.update_tick(
position.tick_upper_index,
whirlpool.tick_spacing,
&modify_liquidity_update.tick_upper_update,
)?;
whirlpool.update_rewards_and_liquidity(
modify_liquidity_update.reward_infos,
modify_liquidity_update.whirlpool_liquidity,
reward_last_updated_timestamp,
);
Ok(())
}
#[cfg(test)]
mod calculate_modify_liquidity_unit_tests {
// Test position start => end state transitions after applying possible liquidity_delta values.
// x => position has no liquidity
// o => position has non-zero liquidity
// x => tick is not initialized
// o => tick is initialized
// ox_position indicates position with liquidity has zero liquidity after modifying liquidity
// xo_lower indicates lower tick was initialized after modifying liquidity
// Position with zero liquidity remains in zero liquidity state
// Only possible with negative and zero liquidity delta values which all result in errors
// Current tick index location relative to position does not matter
mod xx_position {
use crate::{manager::liquidity_manager::_calculate_modify_liquidity, util::*};
// Zero liquidity delta on position with zero liquidity is not allowed
#[test]
#[should_panic(expected = "LiquidityZero")]
fn zero_delta_on_empty_position_not_allowed() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: 0,
fee_growth_global_b: 0,
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
_calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
100,
)
.unwrap();
}
// Removing liquidity from position with zero liquidity results in error
// LiquidityUnderflow from lower tick (xx_oo)
#[test]
#[should_panic(expected = "LiquidityUnderflow")]
fn neg_delta_lower_tick_liquidity_underflow() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: 0,
fee_growth_global_b: 0,
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
_calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-10,
100,
)
.unwrap();
}
// Removing liquidity from position with zero liquidity results in error
// LiquidityUnderflow from upper tick (oo_xx)
#[test]
#[should_panic(expected = "LiquidityUnderflow")]
fn neg_delta_upper_tick_liquidity_underflow() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: 0,
fee_growth_global_b: 0,
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
_calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-10,
100,
)
.unwrap();
}
// Removing liquidity from position with zero liquidity results in error
// LiquidityUnderflow from updating position (oo_oo - not ticks)
#[test]
#[should_panic(expected = "LiquidityUnderflow")]
fn neg_delta_position_liquidity_underflow() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: 0,
fee_growth_global_b: 0,
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
_calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-10,
100,
)
.unwrap();
}
}
// Position with zero liquidity transitions to positive liquidity
// Only possible with positive liquidity delta values
mod xo_position {
// Current tick below position
// Whirlpool virtual liquidity does not change
mod current_tick_below {
use crate::{
manager::liquidity_manager::_calculate_modify_liquidity, state::*, util::*,
};
// Position liquidity increase, checkpoint zero values
// Lower tick initialized, liquidity increase, checkpoint zero values
// Upper tick initialized, liquidity increase, checkpoint zero values
#[test]
fn pos_delta_current_tick_below_xo_lower_xo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: -10,
..Default::default()
},
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
..Default::default()
},
},
);
}
// Position liquidity increase, checkpoint zero values
// Lower tick initialized, liquidity increase, checkpoint zero values
// Upper tick already initialized, liquidity increase
#[test]
fn pos_delta_current_tick_below_xo_lower_oo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: -20,
..Default::default()
},
},
);
}
// Position liquidity increase, checkpoint underflowed values
// Lower tick initialized, liquidity increase, checkpoint zero values
// Upper tick already initialized, has non-zero checkpoint values
// Simulates two left tick crossings in order to reach underflow edge case
#[test]
fn pos_delta_current_tick_below_xo_lower_oo_upper_underflow() {
// Underflow occurs when the lower tick is newly initialized and the upper tick
// is already initialized with non-zero growth checkpoints.
// The upper tick only has non-zero checkpoints when it was either 1) initialized
// when current tick is above or 2) when it was crossed after some global fee growth
// occurred.
// This test simulates two tick crossings from right to left before adding liquidity
// to the position.
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(10),
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
test.increment_whirlpool_reward_growths_by_time(100);
test.cross_tick(TickLabel::Upper, Direction::Left);
// Check crossing an upper tick with liquidity added new whirlpool liquidity
assert_eq!(test.whirlpool.liquidity, 110);
// 1 = 0 + (100/100)
assert_whirlpool_reward_growths(&test.whirlpool.reward_infos, to_x64(1));
test.increment_whirlpool_fee_growths(to_x64(10), to_x64(10));
test.increment_whirlpool_reward_growths_by_time(100);
test.cross_tick(TickLabel::Lower, Direction::Left);
// Lower tick has 0 net liquidity, so crossing does not affect whirlpool liquidity
assert_eq!(test.whirlpool.liquidity, 110);
// 1.909 = 1 + (100/110)
assert_whirlpool_reward_growths(&test.whirlpool.reward_infos, 35216511413445507630);
// Create position which initializes the lower tick
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
300,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
// Current tick below position, so does not add to whirlpool liquidity
whirlpool_liquidity: 110,
// 2.8181 = 1.909 + 0.909
whirlpool_reward_growths: create_reward_growths(51986278753181463644),
position_update: PositionUpdate {
liquidity: 10,
// Wrapped underflow -10 = 20 - (20 - 0) - (10)
fee_growth_checkpoint_a: 340282366920938463278907166694672695296,
// Wrapped underflow -10
fee_growth_checkpoint_b: 340282366920938463278907166694672695296,
reward_infos: create_position_reward_infos(
340282366920938463444927863358058659840,
0,
),
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: -20,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(10),
reward_growths_outside: create_reward_growths(to_x64(1)),
},
},
);
}
// Position liquidity increase, checkpoint zero values
// Lower tick already initialized, liquidity increase
// Upper tick already initialized, liquidity increase, checkpoint zero values
#[test]
fn pos_delta_current_tick_below_oo_lower_xo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: 20,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: -10,
..Default::default()
},
},
);
}
// Position liquidity increase, checkpoint zero values
// Lower tick already initialized, liquidity increase
// Upper tick already initialized, liquidity increase
#[test]
fn pos_delta_current_tick_below_oo_lower_oo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: 20,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: -20,
..Default::default()
},
},
);
}
}
// Current tick inside position
// Whirlpool virtual liquidity increases
mod current_tick_inside {
use crate::{
manager::liquidity_manager::_calculate_modify_liquidity, state::*, util::*,
};
// Position liquidity increase, checkpoint zero values
// Lower tick initialized, liquidity increase, checkpoint current values
// Upper tick initialized, liquidity increase, checkpoint zero values
#[test]
fn pos_delta_current_tick_inside_xo_lower_xo_upper() {
// Both ticks are uninitialized. This is the first position to use this tick range
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: 0,
fee_growth_global_b: 0,
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 110,
whirlpool_reward_growths: create_reward_growths(to_x64(1)),
position_update: PositionUpdate {
liquidity: 10,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
reward_growths_outside: create_reward_growths(to_x64(1)),
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: -10,
..Default::default()
},
},
);
}
// Position liquidity increase, checkpoint zero values
// Lower tick initialized, liquidity increase, checkpoint current values
// Upper already initialized, liquidity increase
#[test]
fn pos_delta_current_tick_inside_xo_lower_oo_upper() {
// This is the first position to use this tick range
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 110,
whirlpool_reward_growths: create_reward_growths(to_x64(1)),
position_update: PositionUpdate {
liquidity: 10,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(to_x64(1)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: -20,
..Default::default()
},
},
);
}
// Position liquidity increase, checkpoint underflowed values
// Lower tick initialized, liquidity increase, checkpoint current values
// Upper already initialized, liquidity increase
// Simulates one left tick crossings in order to reach underflow edge case
#[test]
fn pos_delta_current_tick_inside_xo_lower_oo_upper_underflow() {
// Underflow occurs when the lower tick is newly initialized and the upper tick
// is already initialized with non-zero growth checkpoints.
// The upper tick only has non-zero checkpoints when it was either 1) initialized
// when current tick is above or 2) when it was crossed after some global fee growth
// occurred.
// This test simulates one tick crossing from left to right before adding liquidity
// to the position.
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(10),
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
test.increment_whirlpool_reward_growths_by_time(100);
test.cross_tick(TickLabel::Upper, Direction::Left);
// Check crossing an upper tick with liquidity added new whirlpool liquidity
assert_eq!(test.whirlpool.liquidity, 110);
// 1 = 0 + (100/100)
assert_whirlpool_reward_growths(&test.whirlpool.reward_infos, to_x64(1));
// Create position which initializes the lower tick
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
200,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
// Current tick inside position, so whirlpool liquidity increases
whirlpool_liquidity: 120,
// 1.909 = 1 + 0.909
whirlpool_reward_growths: create_reward_growths(35216511413445507630),
position_update: PositionUpdate {
liquidity: 10,
// Wrapped underflow -10
fee_growth_checkpoint_a: 340282366920938463278907166694672695296,
// Wrapped underflow -10
fee_growth_checkpoint_b: 340282366920938463278907166694672695296,
reward_infos: create_position_reward_infos(
340282366920938463444927863358058659840,
0,
),
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(10),
// 1.909
reward_growths_outside: create_reward_growths(35216511413445507630),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: -20,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(10),
reward_growths_outside: create_reward_growths(to_x64(1)),
},
},
);
}
// Position liquidity increase, checkpoint current inside growth values
// Lower tick already initialized, liquidity increase
// Upper tick initialized, liquidity increase, checkpoint zero values
#[test]
fn pos_delta_current_tick_inside_oo_lower_xo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 110,
whirlpool_reward_growths: create_reward_growths(to_x64(1)),
position_update: PositionUpdate {
liquidity: 10,
fee_growth_checkpoint_a: to_x64(10),
fee_growth_checkpoint_b: to_x64(20),
reward_infos: create_position_reward_infos(to_x64(1), 0),
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: 20,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: -10,
..Default::default()
},
},
);
}
// Position liquidity increase, checkpoint current inside growth values
// Lower tick already initialized, liquidity increase
// Upper tick already initialized, liquidity increase
#[test]
fn pos_delta_current_tick_inside_oo_lower_oo_upper() {
// Ticks already initialized with liquidity from other position
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 110,
whirlpool_reward_growths: create_reward_growths(to_x64(1)),
position_update: PositionUpdate {
liquidity: 10,
fee_growth_checkpoint_a: to_x64(10),
fee_growth_checkpoint_b: to_x64(20),
reward_infos: create_position_reward_infos(to_x64(1), 0),
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: 20,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: -20,
..Default::default()
},
},
);
}
}
// Current tick above position
// Whirlpool virtual liquidity does not change
mod current_tick_above {
use crate::{
manager::liquidity_manager::_calculate_modify_liquidity, state::*, util::*,
};
// Position liquidity increase, checkpoint zero values
// Lower tick initialized, liquidity increase, checkpoint current values
// Upper tick initialized, liquidity increase, checkpoint current values
#[test]
fn pos_delta_current_tick_above_xo_lower_xo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(to_x64(3)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: -10,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(to_x64(3)),
},
},
);
}
// Position liquidity increase, checkpoint underflowed values
// Lower tick initialized, liquidity increase, checkpoint current values
// Upper tick already initialized, liquidity increase
#[test]
fn pos_delta_current_tick_above_xo_lower_oo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
// Wrapped underflow -10
fee_growth_checkpoint_a: 340282366920938463278907166694672695296,
// Wrapped underflow -20
fee_growth_checkpoint_b: 340282366920938463094439725957577179136,
reward_infos: create_position_reward_infos(
340282366920938463408034375210639556608,
0,
),
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(to_x64(3)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: -20,
..Default::default()
},
},
);
}
// Adds liquidity to a new position where the checkpoints underflow.
// Simulates the whirlpool current tick moving below the upper tick, accruing fees
// and rewards, and then moving back above the tick. The calculated owed token amounts
// are verified to be correct with underflowed checkpoints.
#[test]
fn pos_delta_current_tick_above_xo_lower_oo_upper_underflow_owed_amounts_ok() {
// l < u < c, t = 0 to 100
// global fee growth a: 10, fee growth b: 10, rewards: 1
// create new position with 10 liquidity
// lower tick initialized now - checkpoint current growths
// upper tick already initialized with zero value checkpoints
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(10),
reward_infos: create_whirlpool_reward_infos(to_x64(1), 0),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(1)),
position_update: PositionUpdate {
liquidity: 10,
// Wrapped underflow -10
fee_growth_checkpoint_a: 340282366920938463278907166694672695296,
// Wrapped underflow -10
fee_growth_checkpoint_b: 340282366920938463278907166694672695296,
reward_infos: create_position_reward_infos(
340282366920938463444927863358058659840,
0,
),
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(10),
reward_growths_outside: create_reward_growths(to_x64(1)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: -20,
..Default::default()
},
},
);
test.apply_update(&update, 100);
// l < c < u, t = 100 to 200
// simulate crossing upper tick from right to left (price decrease)
// global fee growth a: 20, fee growth b: 20
// upper tick checkpoints are inverted
// -120, 0, 120
test.increment_whirlpool_fee_growths(to_x64(10), to_x64(10));
test.increment_whirlpool_reward_growths_by_time(100);
test.cross_tick(TickLabel::Upper, Direction::Left);
assert_whirlpool_reward_growths(&test.whirlpool.reward_infos, to_x64(2));
assert_eq!(
test.tick_upper,
Tick {
initialized: true,
liquidity_net: -20,
liquidity_gross: 20,
// 20 = 20 - 0
fee_growth_outside_a: to_x64(20),
// 20 = 20 - 0
fee_growth_outside_b: to_x64(20),
// 2 = (1 + (100/100)) - 0
reward_growths_outside: create_reward_growths(to_x64(2)),
}
);
// l < u < c, t = 200 to 300
// simulate crossing upper tick from left to right (price increase)
// global fee growth a: 35, fee growth b: 35
// upper tick checkpoints are inverted
test.increment_whirlpool_fee_growths(to_x64(15), to_x64(15));
test.increment_whirlpool_reward_growths_by_time(100);
// 2.83 = 2 + 100/120
assert_whirlpool_reward_growths(&test.whirlpool.reward_infos, 52265774875510396245);
test.cross_tick(TickLabel::Upper, Direction::Right);
assert_eq!(
test.tick_upper,
Tick {
initialized: true,
liquidity_net: -20,
liquidity_gross: 20,
// 15 = 35 - 20
fee_growth_outside_a: to_x64(15),
// 15 = 35 - 20
fee_growth_outside_b: to_x64(15),
// 0.83 = 2.83 - 2
reward_growths_outside: create_reward_growths(15372286728091293013),
}
);
// t = 300 to 400, recalculate position fees/rewards
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
400,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
// 3.83 = 2.83 + 100/100
whirlpool_reward_growths: create_reward_growths(70712518949219947861),
position_update: PositionUpdate {
liquidity: 10,
fee_growth_checkpoint_a: to_x64(5),
fee_owed_a: 150,
fee_growth_checkpoint_b: to_x64(5),
fee_owed_b: 150,
reward_infos: create_position_reward_infos(
340282366920938463460300150086149952853,
// 8 = 0.83 * 10
8,
),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(10),
reward_growths_outside: create_reward_growths(to_x64(1)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -20,
liquidity_gross: 20,
// 15
fee_growth_outside_a: to_x64(15),
// 15
fee_growth_outside_b: to_x64(15),
// 0.83
reward_growths_outside: create_reward_growths(15372286728091293013),
},
},
);
}
// Position liquidity increase, checkpoint current values
// Lower tick already initialized, liquidity increase
// Upper tick initialized, liquidity increase, checkpoint current values
#[test]
fn pos_delta_current_tick_above_oo_lower_xo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
fee_growth_checkpoint_a: to_x64(10),
fee_growth_checkpoint_b: to_x64(20),
reward_infos: create_position_reward_infos(to_x64(3), 0),
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: 20,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: -10,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(to_x64(3)),
},
},
);
}
// Position liquidity increase, checkpoint zero values
// Lower tick already initialized, liquidity increase
// Upper tick already initialized, liquidity increase
#[test]
fn pos_delta_current_tick_above_oo_lower_oo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: 20,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: -20,
..Default::default()
},
},
);
}
// Use non-zero checkpoints for already initialized ticks
// Position liquidity increase, checkpoint current fee growth inside values
// Lower tick already initialized, liquidity increase
// Upper tick already initialized, liquidity increase
#[test]
fn pos_delta_current_tick_above_oo_lower_oo_upper_non_zero_checkpoints() {
// Test fixture is set up to simulate whirlpool at state T1.
// T0 - current tick inside position, global fees at 10, rewards at 1.
// - Some other position already exists using these tick bounds.
// - Price gets pushed above upper tick.
// T1 - current tick above position, global fees at 20, rewards at 2.
// - Deposit liquidity into new position.
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 0,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(20),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
test.whirlpool.reward_last_updated_timestamp = 200;
test.tick_lower.fee_growth_outside_a = to_x64(10);
test.tick_lower.fee_growth_outside_b = to_x64(10);
test.tick_lower.reward_growths_outside = create_reward_growths(to_x64(1));
test.tick_upper.fee_growth_outside_a = to_x64(20);
test.tick_upper.fee_growth_outside_b = to_x64(20);
test.tick_upper.reward_growths_outside = create_reward_growths(to_x64(2));
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
300,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
fee_growth_checkpoint_a: to_x64(10),
fee_growth_checkpoint_b: to_x64(10),
reward_infos: create_position_reward_infos(to_x64(1), 0),
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: 20,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(10),
reward_growths_outside: create_reward_growths(to_x64(1)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 20,
liquidity_net: -20,
fee_growth_outside_a: to_x64(20),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(to_x64(2)),
},
},
);
}
}
}
// Position with positive liquidity transitions to zero liquidity
// Only possible with negative liquidity delta values
mod ox_position {
mod current_tick_below {
use crate::{
manager::liquidity_manager::_calculate_modify_liquidity, state::*, util::*,
};
#[test]
fn neg_delta_current_tick_below_ox_lower_ox_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate::default(),
tick_lower_update: TickUpdate::default(),
tick_upper_update: TickUpdate::default(),
},
);
}
#[test]
fn neg_delta_current_tick_below_oo_lower_oo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 20,
tick_upper_liquidity_gross: 20,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate::default(),
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 10,
liquidity_gross: 10,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -10,
liquidity_gross: 10,
..Default::default()
},
},
);
}
#[test]
fn neg_delta_current_tick_below_oo_lower_oo_upper_non_zero_checkpoints() {
// Test fixture is set up to simulate whirlpool at state T2.
// T0 - current tick above position, global fees at 100, rewards at 10.
// - Deposit liquidity into new position.
// T1 - current tick inside position, global fees at 150, rewards at 20.
// T2 - current tick below position, global fees at 200, rewards at 30.
// - Remove all liquidity.
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 1000,
position_liquidity: 10,
tick_lower_liquidity_gross: 20,
tick_upper_liquidity_gross: 20,
fee_growth_global_a: to_x64(200),
fee_growth_global_b: to_x64(200),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(30)),
});
// Time starts at 30_000. Increments of 10_000 seconds with 1000 whirlpool liquidity
// equate to increments of 10 global rewards.
test.whirlpool.reward_last_updated_timestamp = 30_000;
test.tick_lower.reward_growths_outside = create_reward_growths(to_x64(30));
test.tick_lower.fee_growth_outside_a = to_x64(100);
test.tick_lower.fee_growth_outside_b = to_x64(100);
test.tick_upper.reward_growths_outside = create_reward_growths(to_x64(10));
test.tick_upper.fee_growth_outside_a = to_x64(50);
test.tick_upper.fee_growth_outside_b = to_x64(50);
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-10,
40_000,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 1000,
// 40 = 30 + (10000 / 1000)
whirlpool_reward_growths: create_reward_growths(737869762948382064640),
position_update: PositionUpdate {
liquidity: 0,
fee_growth_checkpoint_a: to_x64(50),
fee_owed_a: 500,
fee_growth_checkpoint_b: to_x64(50),
fee_owed_b: 500,
reward_infos: create_position_reward_infos(to_x64(20), 200),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 10,
liquidity_gross: 10,
fee_growth_outside_a: to_x64(100),
fee_growth_outside_b: to_x64(100),
reward_growths_outside: create_reward_growths(to_x64(30)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -10,
liquidity_gross: 10,
fee_growth_outside_a: to_x64(50),
fee_growth_outside_b: to_x64(50),
reward_growths_outside: create_reward_growths(to_x64(10)),
},
},
);
}
}
mod current_tick_inside {
use crate::{
manager::liquidity_manager::_calculate_modify_liquidity, state::*, util::*,
};
#[test]
fn neg_delta_current_tick_inside_ox_lower_ox_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 90,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 0,
fee_growth_checkpoint_a: to_x64(10),
fee_owed_a: 100,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 200,
reward_infos: create_position_reward_infos(to_x64(3), 30),
},
tick_lower_update: TickUpdate::default(),
tick_upper_update: TickUpdate::default(),
},
);
}
#[test]
fn neg_delta_current_tick_inside_oo_lower_oo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 20,
tick_upper_liquidity_gross: 20,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 90,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 0,
fee_growth_checkpoint_a: to_x64(10),
fee_owed_a: 100,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 200,
reward_infos: create_position_reward_infos(to_x64(3), 30),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 10,
liquidity_gross: 10,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -10,
liquidity_gross: 10,
..Default::default()
},
},
);
}
}
mod current_tick_above {
use crate::{
manager::liquidity_manager::_calculate_modify_liquidity, state::*, util::*,
};
#[test]
fn neg_delta_current_tick_above_ox_lower_ox_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate::default(),
tick_lower_update: TickUpdate::default(),
tick_upper_update: TickUpdate::default(),
},
);
}
#[test]
fn neg_delta_current_tick_above_oo_lower_oo_upper() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 20,
tick_upper_liquidity_gross: 20,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate::default(),
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 10,
liquidity_gross: 10,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -10,
liquidity_gross: 10,
..Default::default()
},
},
);
}
}
}
// Position with positive liquidity remains in positive liquidity state
// Only possible with lower and upper ticks that are already initialized (oo, oo)
mod oo_position {
use crate::{manager::liquidity_manager::_calculate_modify_liquidity, state::*, util::*};
// Liquidity + tick states remain the same
// Only fee + reward growth changes
#[test]
fn zero_delta_current_tick_below() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 10,
liquidity_gross: 10,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -10,
liquidity_gross: 10,
..Default::default()
},
},
);
}
#[test]
fn zero_delta_current_tick_inside() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
fee_growth_checkpoint_a: to_x64(10),
fee_owed_a: 100,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 200,
reward_infos: create_position_reward_infos(to_x64(3), 30),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 10,
liquidity_gross: 10,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -10,
liquidity_gross: 10,
..Default::default()
},
},
);
}
#[test]
fn zero_delta_current_tick_above() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 10,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 10,
liquidity_gross: 10,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -10,
liquidity_gross: 10,
..Default::default()
},
},
);
}
// Position liquidity increases
#[test]
fn pos_delta_current_tick_below() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 20,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 20,
liquidity_gross: 20,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -20,
liquidity_gross: 20,
..Default::default()
},
},
);
}
#[test]
fn pos_delta_current_tick_inside() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 110,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 20,
fee_growth_checkpoint_a: to_x64(10),
fee_owed_a: 100,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 200,
reward_infos: create_position_reward_infos(to_x64(3), 30),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 20,
liquidity_gross: 20,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -20,
liquidity_gross: 20,
..Default::default()
},
},
);
}
#[test]
fn pos_delta_current_tick_above() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
10,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 20,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 20,
liquidity_gross: 20,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -20,
liquidity_gross: 20,
..Default::default()
},
},
);
}
// Position liquidity decreases by partial amount
#[test]
fn neg_delta_current_tick_below() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-5,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 5,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 5,
liquidity_gross: 5,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -5,
liquidity_gross: 5,
..Default::default()
},
},
);
}
#[test]
fn neg_delta_current_tick_inside() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-5,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 95,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 5,
fee_growth_checkpoint_a: to_x64(10),
fee_owed_a: 100,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 200,
reward_infos: create_position_reward_infos(to_x64(3), 30),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 5,
liquidity_gross: 5,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -5,
liquidity_gross: 5,
..Default::default()
},
},
);
}
#[test]
fn neg_delta_current_tick_above() {
let test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 100,
position_liquidity: 10,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(10),
fee_growth_global_b: to_x64(20),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(2)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-5,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 100,
whirlpool_reward_growths: create_reward_growths(to_x64(3)),
position_update: PositionUpdate {
liquidity: 5,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 5,
liquidity_gross: 5,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -5,
liquidity_gross: 5,
..Default::default()
},
},
);
}
}
mod fees_and_rewards {
use crate::{manager::liquidity_manager::_calculate_modify_liquidity, state::*, util::*};
// Add liquidity to new position, accrue fees and rewards, remove all liquidity.
// This test checks that accrued fees and rewards are properly accounted even when all
// liquidity has been removed from a position and the ticks are still initialized.
#[test]
fn accrued_tokens_ok_closed_position_ticks_remain_initialized() {
// Whirlpool with 1000 liquidity, fees (a: 100, b: 200) and reward (20)
// Lower Tick with 10 liquidity, existing fee checkpoints (a: 10, b: 20) and reward (2)
// Upper Tick with 10 liquidity, existing fee checkpoints (a: 1, b: 2) and reward (1)
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 1000,
position_liquidity: 0,
tick_lower_liquidity_gross: 10,
tick_upper_liquidity_gross: 10,
fee_growth_global_a: to_x64(100),
fee_growth_global_b: to_x64(200),
reward_infos: create_whirlpool_reward_infos(to_x64(1), to_x64(20)),
});
test.tick_lower.fee_growth_outside_a = to_x64(10);
test.tick_lower.fee_growth_outside_b = to_x64(20);
test.tick_lower.reward_growths_outside = create_reward_growths(to_x64(2));
test.tick_upper.fee_growth_outside_a = to_x64(1);
test.tick_upper.fee_growth_outside_b = to_x64(2);
test.tick_upper.reward_growths_outside = create_reward_growths(to_x64(1));
// Add 100 liquidity
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
100,
100,
)
.unwrap();
// 20.1 = 20 + (100 / 1000)
assert_whirlpool_reward_growths(&update.reward_infos, 370779555881561987481);
assert_eq!(
update.position_update,
PositionUpdate {
liquidity: 100,
fee_growth_checkpoint_a: to_x64(89), // 100 - 10 - 1
fee_growth_checkpoint_b: to_x64(178), // 200 - 20 - 2
reward_infos: create_position_reward_infos(315439323660433332633, 0),
..Default::default()
}
);
test.apply_update(&update, 100);
// Add 50 more liquidity
test.increment_whirlpool_fee_growths(to_x64(10), to_x64(20));
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
50,
200,
)
.unwrap();
// 20.19090 = 20.1 + (100 / 1100)
assert_whirlpool_reward_growths(&update.reward_infos, 372456532615535583082);
assert_eq!(
update.position_update,
PositionUpdate {
liquidity: 150,
fee_growth_checkpoint_a: to_x64(99), // 110 - 10 - 1
fee_owed_a: 1000,
fee_growth_checkpoint_b: to_x64(198), // 220 - 20 - 2
fee_owed_b: 2000,
reward_infos: create_position_reward_infos(317116300394406928234, 9),
}
);
test.apply_update(&update, 200);
// Remove all 150 liquidity
test.increment_whirlpool_fee_growths(to_x64(10), to_x64(20));
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
-150,
300,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 1000,
// 20.277865 = 20.19090 + (100 / 1150)
whirlpool_reward_growths: create_reward_growths(374060597317597283222),
position_update: PositionUpdate {
liquidity: 0,
fee_growth_checkpoint_a: to_x64(109), // 120 - 10 - 1
fee_owed_a: 2500,
fee_growth_checkpoint_b: to_x64(218), // 240 - 20 - 2
fee_owed_b: 5000,
reward_infos: create_position_reward_infos(318720365096468628374, 22),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: 10,
fee_growth_outside_a: to_x64(10),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(to_x64(2)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_gross: 10,
liquidity_net: -10,
fee_growth_outside_a: to_x64(1),
fee_growth_outside_b: to_x64(2),
reward_growths_outside: create_reward_growths(to_x64(1)),
},
},
);
}
// Test overflow accounting of global fee and reward accumulators
mod global_accumulators_overflow {
use crate::{
manager::liquidity_manager::_calculate_modify_liquidity, state::*, util::*,
};
// t1 |---c1---l----------------u--------| open position (checkpoint)
// t2 |--------l-------c2-------u--------| cross right, accrue tokens
// t3 |---c3---l----------------u--------| cross left, overflow
#[test]
fn overflow_below_checkpoint_below() {
// t1 - open position (checkpoint)
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 10000,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: u128::MAX - to_x64(100),
fee_growth_global_b: u128::MAX - to_x64(100),
// rewards start at MAX - 5
reward_infos: create_whirlpool_reward_infos(to_x64(100), u128::MAX - to_x64(5)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
1000,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 100, rewards at -4
whirlpool_reward_growths: create_reward_growths(u128::MAX - to_x64(4)),
position_update: PositionUpdate {
liquidity: 1000,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
..Default::default()
},
},
);
assert_eq!(test.whirlpool.fee_growth_global_a, u128::MAX - to_x64(100));
assert_eq!(test.whirlpool.fee_growth_global_b, u128::MAX - to_x64(100));
test.apply_update(&update, 100);
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -80
test.increment_whirlpool_reward_growths_by_time(100);
// time: 200, rewards at MAX - 3
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
u128::MAX - to_x64(3),
);
// t2 - cross right, accrue tokens in position
test.cross_tick(TickLabel::Lower, Direction::Right);
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -60
test.increment_whirlpool_reward_growths_by_time(100); // 300
// time: 300, rewards at -2.0909
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
340282366920938463424804142550375512621,
);
// t3 - cross left, overflow
test.cross_tick(TickLabel::Lower, Direction::Left);
test.increment_whirlpool_fee_growths(to_x64(70), to_x64(70)); // fees overflow to 10
// Calculate fees and rewards
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
600,
)
.unwrap();
test.apply_update(&update, 600);
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 600, rewards at 0.909 = -2.0909 + 3
whirlpool_reward_growths: create_reward_growths(16769767339735956013),
position_update: PositionUpdate {
liquidity: 1000,
fee_growth_checkpoint_a: to_x64(20),
fee_owed_a: 20000,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 20000,
reward_infos: create_position_reward_infos(16769767339735956014, 909),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: to_x64(20),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(16769767339735956014), // 0.9090909
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
..Default::default()
},
},
);
// 10
assert_eq!(test.whirlpool.fee_growth_global_a, 184467440737095516159);
assert_eq!(test.whirlpool.fee_growth_global_b, 184467440737095516159);
}
// t1 |--------l-------c1-------u--------| open position (checkpoint)
// t2 |--------l-------c2-------u--------| accrue tokens, cross left
// t3 |---c3---l----------------u--------| overflow
#[test]
fn overflow_below_checkpoint_inside() {
// t1 - open position (checkpoint)
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 10000,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: u128::MAX - to_x64(100),
fee_growth_global_b: u128::MAX - to_x64(100),
// rewards start at MAX - 5
reward_infos: create_whirlpool_reward_infos(to_x64(100), u128::MAX - to_x64(5)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
1000,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 11000,
// time: 100, rewards at MAX - 4
whirlpool_reward_growths: create_reward_growths(u128::MAX - to_x64(4)),
position_update: PositionUpdate {
liquidity: 1000,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(u128::MAX - to_x64(4)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
..Default::default()
},
},
);
assert_eq!(test.whirlpool.fee_growth_global_a, u128::MAX - to_x64(100));
assert_eq!(test.whirlpool.fee_growth_global_b, u128::MAX - to_x64(100));
test.apply_update(&update, 100);
// t2 - accrue tokens, cross left
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -80
test.increment_whirlpool_reward_growths_by_time(100);
// time: 200, rewards at MAX - 3.0909
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
340282366920938463406357398476665961005,
);
test.cross_tick(TickLabel::Lower, Direction::Left);
// t3 - overflow
test.increment_whirlpool_fee_growths(to_x64(90), to_x64(90)); // fees overflow to 10
test.increment_whirlpool_reward_growths_by_time(400); // 600
// Calculate fees and rewards
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
600,
)
.unwrap();
test.apply_update(&update, 600);
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 600, rewards at 0.909 = -3.0909 + 4
whirlpool_reward_growths: create_reward_growths(16769767339735956013),
position_update: PositionUpdate {
liquidity: 1000,
fee_growth_checkpoint_a: to_x64(20),
fee_owed_a: 20000,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 20000,
reward_infos: create_position_reward_infos(16769767339735956014, 909),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: to_x64(20),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(16769767339735956014), // 0.9090909
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
..Default::default()
},
},
);
// 10
assert_eq!(test.whirlpool.fee_growth_global_a, 184467440737095516159);
assert_eq!(test.whirlpool.fee_growth_global_b, 184467440737095516159);
}
// t1 |--------l----------------u---c1---| open position (checkpoint), cross left
// t2 |--------l-------c2-------u--------| accrue tokens, cross left
// t3 |---c3---l----------------u--------| overflow
#[test]
fn overflow_below_checkpoint_above() {
// t1 - open position (checkpoint)
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 10000,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: u128::MAX - to_x64(100),
fee_growth_global_b: u128::MAX - to_x64(100),
// rewards start at MAX - 5
reward_infos: create_whirlpool_reward_infos(to_x64(100), u128::MAX - to_x64(5)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
1000,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 100, rewards at MAX - 4
whirlpool_reward_growths: create_reward_growths(u128::MAX - to_x64(4)),
position_update: PositionUpdate {
liquidity: 1000,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(u128::MAX - to_x64(4)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(u128::MAX - to_x64(4)),
},
},
);
assert_eq!(test.whirlpool.fee_growth_global_a, u128::MAX - to_x64(100));
assert_eq!(test.whirlpool.fee_growth_global_b, u128::MAX - to_x64(100));
test.apply_update(&update, 100);
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -80
test.increment_whirlpool_reward_growths_by_time(100);
// time: 200, rewards at MAX - 3
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
u128::MAX - to_x64(3),
);
test.cross_tick(TickLabel::Upper, Direction::Left);
// t2 - accrue tokens, cross left
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -60
test.increment_whirlpool_reward_growths_by_time(100);
// time: 300, rewards at MAX - 2.0909
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
340282366920938463424804142550375512621,
);
test.cross_tick(TickLabel::Lower, Direction::Left);
// t3 - overflow
test.increment_whirlpool_fee_growths(to_x64(70), to_x64(70)); // fees overflow to 10
test.increment_whirlpool_reward_growths_by_time(300); // 600
// Calculate fees and rewards
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
600,
)
.unwrap();
test.apply_update(&update, 600);
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 600, rewards at 0.909 = -3.0909 + 4
whirlpool_reward_growths: create_reward_growths(16769767339735956013),
position_update: PositionUpdate {
liquidity: 1000,
fee_growth_checkpoint_a: to_x64(20),
fee_owed_a: 20000,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 20000,
reward_infos: create_position_reward_infos(16769767339735956014, 909),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: to_x64(40),
fee_growth_outside_b: to_x64(40),
reward_growths_outside: create_reward_growths(35216511413445507630), // 1.9090909
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
fee_growth_outside_a: to_x64(20),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(to_x64(1)), // 1
},
},
);
// 10
assert_eq!(test.whirlpool.fee_growth_global_a, 184467440737095516159);
assert_eq!(test.whirlpool.fee_growth_global_b, 184467440737095516159);
}
// t1 |---c1---l----------------u--------| open position (checkpoint), cross right
// t2 |--------l-------c2-------u--------| accrue tokens, overflow
#[test]
fn overflow_inside_checkpoint_below() {
// t1 - open position (checkpoint)
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 10000,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: u128::MAX - to_x64(100),
fee_growth_global_b: u128::MAX - to_x64(100),
// rewards start at MAX - 5
reward_infos: create_whirlpool_reward_infos(to_x64(100), u128::MAX - to_x64(5)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
1000,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 100, rewards at MAX - 4
whirlpool_reward_growths: create_reward_growths(u128::MAX - to_x64(4)),
position_update: PositionUpdate {
liquidity: 1000,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
..Default::default()
},
},
);
assert_eq!(test.whirlpool.fee_growth_global_a, u128::MAX - to_x64(100));
assert_eq!(test.whirlpool.fee_growth_global_b, u128::MAX - to_x64(100));
test.apply_update(&update, 100);
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -80
test.increment_whirlpool_reward_growths_by_time(100);
// time: 200, rewards at MAX - 3
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
u128::MAX - to_x64(3),
);
test.cross_tick(TickLabel::Lower, Direction::Right);
// t2 - accrue tokens, overflow
test.increment_whirlpool_fee_growths(to_x64(90), to_x64(90)); // fees overflow to 10
// Calculate fees and rewards
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
600,
)
.unwrap();
test.apply_update(&update, 600);
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 11000,
// time: 600, rewards at 0.6363 = -3 + (400 * 100 / 11000)
whirlpool_reward_growths: create_reward_growths(11738837137815169209),
position_update: PositionUpdate {
liquidity: 1000,
fee_growth_checkpoint_a: to_x64(90),
fee_owed_a: 90000,
fee_growth_checkpoint_b: to_x64(90),
fee_owed_b: 90000,
reward_infos: create_position_reward_infos(67079069358943824058, 3636),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(80),
fee_growth_outside_b: u128::MAX - to_x64(80),
reward_growths_outside: create_reward_growths(u128::MAX - to_x64(3)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
..Default::default()
},
},
);
// 10
assert_eq!(test.whirlpool.fee_growth_global_a, 184467440737095516159);
assert_eq!(test.whirlpool.fee_growth_global_b, 184467440737095516159);
}
// t1 |--------l-------c1-------u--------| open position (checkpoint)
// t2 |--------l-------c2-------u--------| accrue tokens, overflow
#[test]
fn overflow_inside_checkpoint_inside() {
// t1 - open position (checkpoint)
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 9000,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: u128::MAX - to_x64(100),
fee_growth_global_b: u128::MAX - to_x64(100),
// rewards start at MAX - 5
reward_infos: create_whirlpool_reward_infos(to_x64(100), u128::MAX - to_x64(5)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
1000,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 100, rewards at -3.888 = -5 + (100 * 100 / 9000)
whirlpool_reward_growths: create_reward_growths(
340282366920938463391637269367342177392,
),
position_update: PositionUpdate {
liquidity: 1000,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(
340282366920938463391637269367342177392,
),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
..Default::default()
},
},
);
assert_eq!(test.whirlpool.fee_growth_global_a, u128::MAX - to_x64(100));
assert_eq!(test.whirlpool.fee_growth_global_b, u128::MAX - to_x64(100));
test.apply_update(&update, 100);
// t2 - accrue tokens, overflow
test.increment_whirlpool_fee_growths(to_x64(110), to_x64(110)); // fees overflow to 10
// Calculate fees and rewards
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
600,
)
.unwrap();
test.apply_update(&update, 600);
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 600, rewards at 1.111 = -3.888 + (500 * 100 / 10000)
whirlpool_reward_growths: create_reward_growths(20496382304121724016),
position_update: PositionUpdate {
liquidity: 1000,
fee_growth_checkpoint_a: to_x64(110),
fee_owed_a: 110000,
fee_growth_checkpoint_b: to_x64(110),
fee_owed_b: 110000,
reward_infos: create_position_reward_infos(to_x64(5), 5000),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(
340282366920938463391637269367342177392,
),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
..Default::default()
},
},
);
// 10
assert_eq!(test.whirlpool.fee_growth_global_a, 184467440737095516159);
assert_eq!(test.whirlpool.fee_growth_global_b, 184467440737095516159);
}
// t1 |--------l----------------u---c1---| open position (checkpoint), cross left
// t2 |--------l-------c2-------u--------| accrue tokens, overflow
#[test]
fn overflow_inside_checkpoint_above() {
// t1 - open position (checkpoint)
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 9000,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: u128::MAX - to_x64(100),
fee_growth_global_b: u128::MAX - to_x64(100),
// rewards start at MAX - 5
reward_infos: create_whirlpool_reward_infos(to_x64(100), u128::MAX - to_x64(5)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
1000,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 9000,
// time: 100, rewards at -3.888 = -5 + (100 * 100 / 9000)
whirlpool_reward_growths: create_reward_growths(
340282366920938463391637269367342177392,
),
position_update: PositionUpdate {
liquidity: 1000,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(
340282366920938463391637269367342177392,
),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(
340282366920938463391637269367342177392,
),
},
},
);
assert_eq!(test.whirlpool.fee_growth_global_a, u128::MAX - to_x64(100));
assert_eq!(test.whirlpool.fee_growth_global_b, u128::MAX - to_x64(100));
test.apply_update(&update, 100);
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -80
test.increment_whirlpool_reward_growths_by_time(100);
// -2.777 = -3.888 + (100 * 100 / 9000)
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
340282366920938463412133651671463901409,
);
test.cross_tick(TickLabel::Upper, Direction::Left);
// t2 - accrue tokens, overflow
test.increment_whirlpool_fee_growths(to_x64(90), to_x64(90)); // fees overflow to 10
// Calculate fees and rewards
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
600,
)
.unwrap();
test.apply_update(&update, 600);
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 600, rewards at 1.222 = -2.777 + (400 * 100 / 10000)
whirlpool_reward_growths: create_reward_growths(22546020534533896417),
position_update: PositionUpdate {
liquidity: 1000,
fee_growth_checkpoint_a: to_x64(90),
fee_owed_a: 90000,
fee_growth_checkpoint_b: to_x64(90),
fee_owed_b: 90000,
reward_infos: create_position_reward_infos(to_x64(4), 4000),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(
340282366920938463391637269367342177392,
),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
fee_growth_outside_a: to_x64(20),
fee_growth_outside_b: to_x64(20),
reward_growths_outside: create_reward_growths(20496382304121724017),
},
},
);
// 10
assert_eq!(test.whirlpool.fee_growth_global_a, 184467440737095516159);
assert_eq!(test.whirlpool.fee_growth_global_b, 184467440737095516159);
}
// t1 |---c1---l----------------u--------| open position (checkpoint), cross right
// t2 |--------l-------c2-------u--------| accrue tokens, cross right
// t3 |--------l----------------u---c3---| overflow
#[test]
fn overflow_above_checkpoint_below() {
// t1 - open position (checkpoint)
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Below,
whirlpool_liquidity: 10000,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: u128::MAX - to_x64(100),
fee_growth_global_b: u128::MAX - to_x64(100),
// rewards start at MAX - 5
reward_infos: create_whirlpool_reward_infos(to_x64(100), u128::MAX - to_x64(5)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
1000,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 100, rewards at -4
whirlpool_reward_growths: create_reward_growths(u128::MAX - to_x64(4)),
position_update: PositionUpdate {
liquidity: 1000,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
..Default::default()
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
..Default::default()
},
},
);
assert_eq!(test.whirlpool.fee_growth_global_a, u128::MAX - to_x64(100));
assert_eq!(test.whirlpool.fee_growth_global_b, u128::MAX - to_x64(100));
test.apply_update(&update, 100);
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -80
test.increment_whirlpool_reward_growths_by_time(100);
// time: 200, rewards at -3
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
u128::MAX - to_x64(3),
);
test.cross_tick(TickLabel::Lower, Direction::Right);
// // t2 - accrue tokens, cross right
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -60
test.increment_whirlpool_reward_growths_by_time(100);
// time: 300, rewards at -2.0909 =
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
340282366920938463424804142550375512621,
);
test.cross_tick(TickLabel::Upper, Direction::Right);
// t3 - overflow
test.increment_whirlpool_fee_growths(to_x64(70), to_x64(70)); // fees overflow to 10
// Calculate fees and rewards
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
600,
)
.unwrap();
test.apply_update(&update, 600);
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 600, rewards at 0.909 = -2.0909 + 3
whirlpool_reward_growths: create_reward_growths(16769767339735956013),
position_update: PositionUpdate {
liquidity: 1000,
// 20 = 10 - (-80) - (10 - (-60))
fee_growth_checkpoint_a: to_x64(20),
fee_owed_a: 20000,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 20000,
// 0.909 = 0.909 - (-3) - (0.909 - -2.0909)
reward_infos: create_position_reward_infos(16769767339735956014, 909),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(80),
fee_growth_outside_b: u128::MAX - to_x64(80),
reward_growths_outside: create_reward_growths(u128::MAX - to_x64(3)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(60),
fee_growth_outside_b: u128::MAX - to_x64(60),
reward_growths_outside: create_reward_growths(
340282366920938463424804142550375512621,
),
},
},
);
// 10
assert_eq!(test.whirlpool.fee_growth_global_a, 184467440737095516159);
assert_eq!(test.whirlpool.fee_growth_global_b, 184467440737095516159);
}
// t1 |--------l-------c1-------u--------| open position (checkpoint)
// t2 |--------l-------c2-------u--------| accrue tokens, cross right
// t3 |--------l----------------u---c3---| overflow
#[test]
fn overflow_above_checkpoint_inside() {
// t1 - open position (checkpoint)
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Inside,
whirlpool_liquidity: 10000,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: u128::MAX - to_x64(100),
fee_growth_global_b: u128::MAX - to_x64(100),
// rewards start at MAX - 5
reward_infos: create_whirlpool_reward_infos(to_x64(100), u128::MAX - to_x64(5)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
1000,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 11000,
// time: 100, rewards at -4
whirlpool_reward_growths: create_reward_growths(u128::MAX - to_x64(4)),
position_update: PositionUpdate {
liquidity: 1000,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(u128::MAX - to_x64(4)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
..Default::default()
},
},
);
assert_eq!(test.whirlpool.fee_growth_global_a, u128::MAX - to_x64(100));
assert_eq!(test.whirlpool.fee_growth_global_b, u128::MAX - to_x64(100));
test.apply_update(&update, 100);
// t2 -accrue tokens, cross right
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -80
test.increment_whirlpool_reward_growths_by_time(100);
// time: 200, rewards at MAX - 3.0909
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
340282366920938463406357398476665961005,
);
test.cross_tick(TickLabel::Upper, Direction::Right);
// t3 - overflow
test.increment_whirlpool_fee_growths(to_x64(90), to_x64(90)); // fees overflow to 10
// Calculate fees and rewards
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
600,
)
.unwrap();
test.apply_update(&update, 600);
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 600, rewards at 0.909 = -3.0909 + 4
whirlpool_reward_growths: create_reward_growths(16769767339735956013),
position_update: PositionUpdate {
liquidity: 1000,
fee_growth_checkpoint_a: to_x64(20),
fee_owed_a: 20000,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 20000,
reward_infos: create_position_reward_infos(16769767339735956014, 909),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(u128::MAX - to_x64(4)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(80),
fee_growth_outside_b: u128::MAX - to_x64(80),
reward_growths_outside: create_reward_growths(
340282366920938463406357398476665961005,
),
},
},
);
// 10
assert_eq!(test.whirlpool.fee_growth_global_a, 184467440737095516159);
assert_eq!(test.whirlpool.fee_growth_global_b, 184467440737095516159);
}
// t1 |--------l----------------u---c1---| open position (checkpoint), cross left
// t2 |--------l-------c2-------u--------| accrue tokens, cross right
// t3 |--------l----------------u---c3---| overflow
#[test]
fn overflow_above_checkpoint_above() {
// t1 - open position (checkpoint)
let mut test = LiquidityTestFixture::new(LiquidityTestFixtureInfo {
curr_index_loc: CurrIndex::Above,
whirlpool_liquidity: 10000,
position_liquidity: 0,
tick_lower_liquidity_gross: 0,
tick_upper_liquidity_gross: 0,
fee_growth_global_a: u128::MAX - to_x64(100),
fee_growth_global_b: u128::MAX - to_x64(100),
// rewards start at MAX - 5
reward_infos: create_whirlpool_reward_infos(to_x64(100), u128::MAX - to_x64(5)),
});
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
1000,
100,
)
.unwrap();
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 100, rewards at -4
whirlpool_reward_growths: create_reward_growths(u128::MAX - to_x64(4)),
position_update: PositionUpdate {
liquidity: 1000,
..Default::default()
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(u128::MAX - to_x64(4)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(u128::MAX - to_x64(4)),
},
},
);
assert_eq!(test.whirlpool.fee_growth_global_a, u128::MAX - to_x64(100));
assert_eq!(test.whirlpool.fee_growth_global_b, u128::MAX - to_x64(100));
test.apply_update(&update, 100);
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -80
test.increment_whirlpool_reward_growths_by_time(100);
// time: 200, rewards at MAX - 3
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
u128::MAX - to_x64(3),
);
test.cross_tick(TickLabel::Upper, Direction::Left);
// t2 - accrue tokens, cross right
test.increment_whirlpool_fee_growths(to_x64(20), to_x64(20)); // fees at -60
test.increment_whirlpool_reward_growths_by_time(100);
// time: 300, rewards at MAX - 2.0909
assert_whirlpool_reward_growths(
&test.whirlpool.reward_infos,
340282366920938463424804142550375512621,
);
test.cross_tick(TickLabel::Upper, Direction::Right);
// t3 - overflow
test.increment_whirlpool_fee_growths(to_x64(70), to_x64(70)); // fees overflow to 10
// Calculate fees and rewards
let update = _calculate_modify_liquidity(
&test.whirlpool,
&test.position,
&test.tick_lower,
&test.tick_upper,
test.position.tick_lower_index,
test.position.tick_upper_index,
0,
600,
)
.unwrap();
test.apply_update(&update, 600);
assert_modify_liquidity(
&update,
&ModifyLiquidityExpectation {
whirlpool_liquidity: 10000,
// time: 600, rewards at 0.909 = -2.0909 + 3
whirlpool_reward_growths: create_reward_growths(16769767339735956013),
position_update: PositionUpdate {
liquidity: 1000,
// 20 = 10 - (-100) - (10 - (-80))
fee_growth_checkpoint_a: to_x64(20),
fee_owed_a: 20000,
fee_growth_checkpoint_b: to_x64(20),
fee_owed_b: 20000,
// 0.909 = 0.909 - (-4) - (0.909 - (-3.0909))
reward_infos: create_position_reward_infos(16769767339735956014, 909),
},
tick_lower_update: TickUpdate {
initialized: true,
liquidity_net: 1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(100),
fee_growth_outside_b: u128::MAX - to_x64(100),
reward_growths_outside: create_reward_growths(u128::MAX - to_x64(4)),
},
tick_upper_update: TickUpdate {
initialized: true,
liquidity_net: -1000,
liquidity_gross: 1000,
fee_growth_outside_a: u128::MAX - to_x64(80),
fee_growth_outside_b: u128::MAX - to_x64(80),
reward_growths_outside: create_reward_growths(
340282366920938463406357398476665961005,
),
},
},
);
// 10
assert_eq!(test.whirlpool.fee_growth_global_a, 184467440737095516159);
assert_eq!(test.whirlpool.fee_growth_global_b, 184467440737095516159);
}
}
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/manager/mod.rs
|
pub mod liquidity_manager;
pub mod position_manager;
pub mod swap_manager;
pub mod tick_manager;
pub mod whirlpool_manager;
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/manager/whirlpool_manager.rs
|
use crate::errors::ErrorCode;
use crate::math::{add_liquidity_delta, checked_mul_div};
use crate::state::*;
// Calculates the next global reward growth variables based on the given timestamp.
// The provided timestamp must be greater than or equal to the last updated timestamp.
pub fn next_whirlpool_reward_infos(
whirlpool: &Whirlpool,
next_timestamp: u64,
) -> Result<[WhirlpoolRewardInfo; NUM_REWARDS], ErrorCode> {
let curr_timestamp = whirlpool.reward_last_updated_timestamp;
if next_timestamp < curr_timestamp {
return Err(ErrorCode::InvalidTimestamp);
}
// No-op if no liquidity or no change in timestamp
if whirlpool.liquidity == 0 || next_timestamp == curr_timestamp {
return Ok(whirlpool.reward_infos);
}
// Calculate new global reward growth
let mut next_reward_infos = whirlpool.reward_infos;
let time_delta = u128::from(next_timestamp - curr_timestamp);
for reward_info in next_reward_infos.iter_mut() {
if !reward_info.initialized() {
continue;
}
// Calculate the new reward growth delta.
// If the calculation overflows, set the delta value to zero.
// This will halt reward distributions for this reward.
let reward_growth_delta = checked_mul_div(
time_delta,
reward_info.emissions_per_second_x64,
whirlpool.liquidity,
)
.unwrap_or(0);
// Add the reward growth delta to the global reward growth.
let curr_growth_global = reward_info.growth_global_x64;
reward_info.growth_global_x64 = curr_growth_global.wrapping_add(reward_growth_delta);
}
Ok(next_reward_infos)
}
// Calculates the next global liquidity for a whirlpool depending on its position relative
// to the lower and upper tick indexes and the liquidity_delta.
pub fn next_whirlpool_liquidity(
whirlpool: &Whirlpool,
tick_upper_index: i32,
tick_lower_index: i32,
liquidity_delta: i128,
) -> Result<u128, ErrorCode> {
if whirlpool.tick_current_index < tick_upper_index
&& whirlpool.tick_current_index >= tick_lower_index
{
add_liquidity_delta(whirlpool.liquidity, liquidity_delta)
} else {
Ok(whirlpool.liquidity)
}
}
#[cfg(test)]
mod whirlpool_manager_tests {
use anchor_lang::prelude::Pubkey;
use crate::manager::whirlpool_manager::next_whirlpool_reward_infos;
use crate::math::Q64_RESOLUTION;
use crate::state::whirlpool::WhirlpoolRewardInfo;
use crate::state::whirlpool::NUM_REWARDS;
use crate::state::whirlpool_builder::WhirlpoolBuilder;
use crate::state::Whirlpool;
// Initializes a whirlpool for testing with all the rewards initialized
fn init_test_whirlpool(liquidity: u128, reward_last_updated_timestamp: u64) -> Whirlpool {
WhirlpoolBuilder::new()
.liquidity(liquidity)
.reward_last_updated_timestamp(reward_last_updated_timestamp) // Jan 1 2021 EST
.reward_infos([
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: 10 << Q64_RESOLUTION,
growth_global_x64: 100 << Q64_RESOLUTION,
..Default::default()
},
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: 0b11 << (Q64_RESOLUTION - 1), // 1.5
growth_global_x64: 200 << Q64_RESOLUTION,
..Default::default()
},
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: 1 << (Q64_RESOLUTION - 1), // 0.5
growth_global_x64: 300 << Q64_RESOLUTION,
..Default::default()
},
])
.build()
}
#[test]
fn test_next_whirlpool_reward_infos_zero_liquidity_no_op() {
let whirlpool = init_test_whirlpool(0, 1577854800);
let result = next_whirlpool_reward_infos(&whirlpool, 1577855800);
assert_eq!(
WhirlpoolRewardInfo::to_reward_growths(&result.unwrap()),
[
100 << Q64_RESOLUTION,
200 << Q64_RESOLUTION,
300 << Q64_RESOLUTION
]
);
}
#[test]
fn test_next_whirlpool_reward_infos_same_timestamp_no_op() {
let whirlpool = init_test_whirlpool(100, 1577854800);
let result = next_whirlpool_reward_infos(&whirlpool, 1577854800);
assert_eq!(
WhirlpoolRewardInfo::to_reward_growths(&result.unwrap()),
[
100 << Q64_RESOLUTION,
200 << Q64_RESOLUTION,
300 << Q64_RESOLUTION
]
);
}
#[test]
#[should_panic(expected = "InvalidTimestamp")]
fn test_next_whirlpool_reward_infos_invalid_timestamp() {
let whirlpool = &WhirlpoolBuilder::new()
.liquidity(100)
.reward_last_updated_timestamp(1577854800) // Jan 1 2020 EST
.build();
// New timestamp is earlier than the last updated timestamp
next_whirlpool_reward_infos(whirlpool, 1577768400).unwrap(); // Dec 31 2019 EST
}
#[test]
fn test_next_whirlpool_reward_infos_no_initialized_rewards() {
let whirlpool = &WhirlpoolBuilder::new()
.liquidity(100)
.reward_last_updated_timestamp(1577854800) // Jan 1 2021 EST
.build();
let new_timestamp = 1577854800 + 300;
let result = next_whirlpool_reward_infos(whirlpool, new_timestamp).unwrap();
assert_eq!(WhirlpoolRewardInfo::to_reward_growths(&result), [0, 0, 0]);
}
#[test]
fn test_next_whirlpool_reward_infos_some_initialized_rewards() {
let whirlpool = &WhirlpoolBuilder::new()
.liquidity(100)
.reward_last_updated_timestamp(1577854800) // Jan 1 2021 EST
.reward_info(
0,
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: 1 << Q64_RESOLUTION,
..Default::default()
},
)
.build();
let new_timestamp = 1577854800 + 300;
let result = next_whirlpool_reward_infos(whirlpool, new_timestamp).unwrap();
assert_eq!(result[0].growth_global_x64, 3 << Q64_RESOLUTION);
for i in 1..NUM_REWARDS {
assert_eq!(whirlpool.reward_infos[i].growth_global_x64, 0);
}
}
#[test]
fn test_next_whirlpool_reward_infos_delta_zero_on_overflow() {
let whirlpool = &WhirlpoolBuilder::new()
.liquidity(100)
.reward_last_updated_timestamp(0)
.reward_info(
0,
WhirlpoolRewardInfo {
mint: Pubkey::new_unique(),
emissions_per_second_x64: u128::MAX,
growth_global_x64: 100,
..Default::default()
},
)
.build();
let new_timestamp = i64::MAX as u64;
let result = next_whirlpool_reward_infos(whirlpool, new_timestamp).unwrap();
assert_eq!(result[0].growth_global_x64, 100);
}
#[test]
fn test_next_whirlpool_reward_infos_all_initialized_rewards() {
let whirlpool = init_test_whirlpool(100, 1577854800);
let new_timestamp = 1577854800 + 300;
let result = next_whirlpool_reward_infos(&whirlpool, new_timestamp).unwrap();
assert_eq!(result[0].growth_global_x64, 130 << Q64_RESOLUTION);
assert_eq!(
result[1].growth_global_x64,
0b110011001 << (Q64_RESOLUTION - 1) // 204.5
);
assert_eq!(
result[2].growth_global_x64,
0b1001011011 << (Q64_RESOLUTION - 1) // 301.5
);
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/manager/position_manager.rs
|
use crate::{
errors::ErrorCode,
math::{add_liquidity_delta, checked_mul_shift_right},
state::{Position, PositionUpdate, NUM_REWARDS},
};
pub fn next_position_modify_liquidity_update(
position: &Position,
liquidity_delta: i128,
fee_growth_inside_a: u128,
fee_growth_inside_b: u128,
reward_growths_inside: &[u128; NUM_REWARDS],
) -> Result<PositionUpdate, ErrorCode> {
let mut update = PositionUpdate::default();
// Calculate fee deltas.
// If fee deltas overflow, default to a zero value. This means the position loses
// all fees earned since the last time the position was modified or fees collected.
let growth_delta_a = fee_growth_inside_a.wrapping_sub(position.fee_growth_checkpoint_a);
let fee_delta_a = checked_mul_shift_right(position.liquidity, growth_delta_a).unwrap_or(0);
let growth_delta_b = fee_growth_inside_b.wrapping_sub(position.fee_growth_checkpoint_b);
let fee_delta_b = checked_mul_shift_right(position.liquidity, growth_delta_b).unwrap_or(0);
update.fee_growth_checkpoint_a = fee_growth_inside_a;
update.fee_growth_checkpoint_b = fee_growth_inside_b;
// Overflows allowed. Must collect fees owed before overflow.
update.fee_owed_a = position.fee_owed_a.wrapping_add(fee_delta_a);
update.fee_owed_b = position.fee_owed_b.wrapping_add(fee_delta_b);
for (i, update) in update.reward_infos.iter_mut().enumerate() {
let reward_growth_inside = reward_growths_inside[i];
let curr_reward_info = position.reward_infos[i];
// Calculate reward delta.
// If reward delta overflows, default to a zero value. This means the position loses all
// rewards earned since the last time the position was modified or rewards were collected.
let reward_growth_delta =
reward_growth_inside.wrapping_sub(curr_reward_info.growth_inside_checkpoint);
let amount_owed_delta =
checked_mul_shift_right(position.liquidity, reward_growth_delta).unwrap_or(0);
update.growth_inside_checkpoint = reward_growth_inside;
// Overflows allowed. Must collect rewards owed before overflow.
update.amount_owed = curr_reward_info.amount_owed.wrapping_add(amount_owed_delta);
}
update.liquidity = add_liquidity_delta(position.liquidity, liquidity_delta)?;
Ok(update)
}
#[cfg(test)]
mod position_manager_unit_tests {
use crate::{
math::{add_liquidity_delta, Q64_RESOLUTION},
state::{position_builder::PositionBuilder, Position, PositionRewardInfo, NUM_REWARDS},
};
use super::next_position_modify_liquidity_update;
#[test]
fn ok_positive_liquidity_delta_fee_growth() {
let position = PositionBuilder::new(-10, 10)
.liquidity(0)
.fee_owed_a(10)
.fee_owed_b(500)
.fee_growth_checkpoint_a(100 << Q64_RESOLUTION)
.fee_growth_checkpoint_b(100 << Q64_RESOLUTION)
.build();
let update = next_position_modify_liquidity_update(
&position,
1000,
1000 << Q64_RESOLUTION,
2000 << Q64_RESOLUTION,
&[0, 0, 0],
)
.unwrap();
assert_eq!(update.liquidity, 1000);
assert_eq!(update.fee_growth_checkpoint_a, 1000 << Q64_RESOLUTION);
assert_eq!(update.fee_growth_checkpoint_b, 2000 << Q64_RESOLUTION);
assert_eq!(update.fee_owed_a, 10);
assert_eq!(update.fee_owed_b, 500);
for i in 0..NUM_REWARDS {
assert_eq!(update.reward_infos[i].amount_owed, 0);
assert_eq!(update.reward_infos[i].growth_inside_checkpoint, 0);
}
}
#[test]
fn ok_negative_liquidity_delta_fee_growth() {
let position = PositionBuilder::new(-10, 10)
.liquidity(10000)
.fee_growth_checkpoint_a(100 << Q64_RESOLUTION)
.fee_growth_checkpoint_b(100 << Q64_RESOLUTION)
.build();
let update = next_position_modify_liquidity_update(
&position,
-5000,
120 << Q64_RESOLUTION,
250 << Q64_RESOLUTION,
&[0, 0, 0],
)
.unwrap();
assert_eq!(update.liquidity, 5000);
assert_eq!(update.fee_growth_checkpoint_a, 120 << Q64_RESOLUTION);
assert_eq!(update.fee_growth_checkpoint_b, 250 << Q64_RESOLUTION);
assert_eq!(update.fee_owed_a, 200_000);
assert_eq!(update.fee_owed_b, 1_500_000);
for i in 0..NUM_REWARDS {
assert_eq!(update.reward_infos[i].amount_owed, 0);
assert_eq!(update.reward_infos[i].growth_inside_checkpoint, 0);
}
}
#[test]
#[should_panic(expected = "LiquidityUnderflow")]
fn liquidity_underflow() {
let position = PositionBuilder::new(-10, 10).build();
next_position_modify_liquidity_update(&position, -100, 0, 0, &[0, 0, 0]).unwrap();
}
#[test]
#[should_panic(expected = "LiquidityOverflow")]
fn liquidity_overflow() {
let position = PositionBuilder::new(-10, 10).liquidity(u128::MAX).build();
next_position_modify_liquidity_update(&position, i128::MAX, 0, 0, &[0, 0, 0]).unwrap();
}
#[test]
fn fee_delta_overflow_defaults_zero() {
let position = PositionBuilder::new(-10, 10)
.liquidity(i64::MAX as u128)
.fee_owed_a(10)
.fee_owed_b(20)
.build();
let update = next_position_modify_liquidity_update(
&position,
i64::MAX as i128,
u128::MAX,
u128::MAX,
&[0, 0, 0],
)
.unwrap();
assert_eq!(update.fee_growth_checkpoint_a, u128::MAX);
assert_eq!(update.fee_growth_checkpoint_b, u128::MAX);
assert_eq!(update.fee_owed_a, 10);
assert_eq!(update.fee_owed_b, 20);
}
#[test]
fn ok_reward_growth() {
struct Test<'a> {
name: &'a str,
position: &'a Position,
liquidity_delta: i128,
reward_growths_inside: [u128; NUM_REWARDS],
expected_reward_infos: [PositionRewardInfo; NUM_REWARDS],
}
let position = &PositionBuilder::new(-10, 10)
.liquidity(2500)
.reward_infos([
PositionRewardInfo {
growth_inside_checkpoint: 100 << Q64_RESOLUTION,
amount_owed: 50,
},
PositionRewardInfo {
growth_inside_checkpoint: 250 << Q64_RESOLUTION,
amount_owed: 100,
},
PositionRewardInfo {
growth_inside_checkpoint: 10 << Q64_RESOLUTION,
amount_owed: 0,
},
])
.build();
for test in [
Test {
name: "all initialized reward growths update",
position,
liquidity_delta: 2500,
reward_growths_inside: [
200 << Q64_RESOLUTION,
500 << Q64_RESOLUTION,
1000 << Q64_RESOLUTION,
],
expected_reward_infos: [
PositionRewardInfo {
growth_inside_checkpoint: 200 << Q64_RESOLUTION,
amount_owed: 250_050,
},
PositionRewardInfo {
growth_inside_checkpoint: 500 << Q64_RESOLUTION,
amount_owed: 625_100,
},
PositionRewardInfo {
growth_inside_checkpoint: 1000 << Q64_RESOLUTION,
amount_owed: 2_475_000,
},
],
},
Test {
name: "reward delta overflow defaults to zero",
position: &PositionBuilder::new(-10, 10)
.liquidity(i64::MAX as u128)
.reward_infos([
PositionRewardInfo {
..Default::default()
},
PositionRewardInfo {
amount_owed: 100,
..Default::default()
},
PositionRewardInfo {
amount_owed: 200,
..Default::default()
},
])
.build(),
liquidity_delta: 2500,
reward_growths_inside: [u128::MAX, 500 << Q64_RESOLUTION, 1000 << Q64_RESOLUTION],
expected_reward_infos: [
PositionRewardInfo {
growth_inside_checkpoint: u128::MAX,
amount_owed: 0,
},
PositionRewardInfo {
growth_inside_checkpoint: 500 << Q64_RESOLUTION,
amount_owed: 100,
},
PositionRewardInfo {
growth_inside_checkpoint: 1000 << Q64_RESOLUTION,
amount_owed: 200,
},
],
},
] {
let update = next_position_modify_liquidity_update(
test.position,
test.liquidity_delta,
0,
0,
&test.reward_growths_inside,
)
.unwrap();
assert_eq!(
update.liquidity,
add_liquidity_delta(test.position.liquidity, test.liquidity_delta).unwrap(),
"{} - assert liquidity delta",
test.name,
);
for i in 0..NUM_REWARDS {
assert_eq!(
update.reward_infos[i].growth_inside_checkpoint,
test.expected_reward_infos[i].growth_inside_checkpoint,
"{} - assert growth_inside_checkpoint",
test.name,
);
assert_eq!(
update.reward_infos[i].amount_owed, test.expected_reward_infos[i].amount_owed,
"{} - assert amount_owed",
test.name
);
}
}
}
#[test]
fn reward_delta_overflow_defaults_zero() {
let position = PositionBuilder::new(-10, 10)
.liquidity(i64::MAX as u128)
.reward_infos([
PositionRewardInfo {
growth_inside_checkpoint: 100,
amount_owed: 1000,
},
PositionRewardInfo {
growth_inside_checkpoint: 100,
amount_owed: 1000,
},
PositionRewardInfo {
growth_inside_checkpoint: 100,
amount_owed: 1000,
},
])
.build();
let update = next_position_modify_liquidity_update(
&position,
i64::MAX as i128,
0,
0,
&[u128::MAX, u128::MAX, u128::MAX],
)
.unwrap();
assert_eq!(
update.reward_infos,
[
PositionRewardInfo {
growth_inside_checkpoint: u128::MAX,
amount_owed: 1000,
},
PositionRewardInfo {
growth_inside_checkpoint: u128::MAX,
amount_owed: 1000,
},
PositionRewardInfo {
growth_inside_checkpoint: u128::MAX,
amount_owed: 1000,
},
]
)
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src
|
solana_public_repos/orca-so/whirlpools/programs/whirlpool/src/manager/swap_manager.rs
|
use solana_program::msg;
use crate::{
errors::ErrorCode,
manager::{
tick_manager::next_tick_cross_update, whirlpool_manager::next_whirlpool_reward_infos,
},
math::*,
state::*,
util::SwapTickSequence,
};
use anchor_lang::prelude::*;
use std::convert::TryInto;
#[derive(Debug)]
pub struct PostSwapUpdate {
pub amount_a: u64,
pub amount_b: u64,
pub next_liquidity: u128,
pub next_tick_index: i32,
pub next_sqrt_price: u128,
pub next_fee_growth_global: u128,
pub next_reward_infos: [WhirlpoolRewardInfo; NUM_REWARDS],
pub next_protocol_fee: u64,
}
pub fn swap(
whirlpool: &Whirlpool,
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 adjusted_sqrt_price_limit = if sqrt_price_limit == NO_EXPLICIT_SQRT_PRICE_LIMIT {
if a_to_b {
MIN_SQRT_PRICE_X64
} else {
MAX_SQRT_PRICE_X64
}
} else {
sqrt_price_limit
};
if !(MIN_SQRT_PRICE_X64..=MAX_SQRT_PRICE_X64).contains(&adjusted_sqrt_price_limit) {
return Err(ErrorCode::SqrtPriceOutOfBounds.into());
}
if a_to_b && adjusted_sqrt_price_limit > whirlpool.sqrt_price
|| !a_to_b && adjusted_sqrt_price_limit < whirlpool.sqrt_price
{
return Err(ErrorCode::InvalidSqrtPriceLimitDirection.into());
}
if amount == 0 {
return Err(ErrorCode::ZeroTradableAmount.into());
}
let tick_spacing = whirlpool.tick_spacing;
let fee_rate = whirlpool.fee_rate;
let protocol_fee_rate = whirlpool.protocol_fee_rate;
let next_reward_infos = next_whirlpool_reward_infos(whirlpool, timestamp)?;
let mut amount_remaining: u64 = amount;
let mut amount_calculated: u64 = 0;
let mut curr_sqrt_price = whirlpool.sqrt_price;
let mut curr_tick_index = whirlpool.tick_current_index;
let mut curr_liquidity = whirlpool.liquidity;
let mut curr_protocol_fee: u64 = 0;
let mut curr_array_index: usize = 0;
let mut curr_fee_growth_global_input = if a_to_b {
whirlpool.fee_growth_global_a
} else {
whirlpool.fee_growth_global_b
};
while amount_remaining > 0 && adjusted_sqrt_price_limit != curr_sqrt_price {
let (next_array_index, next_tick_index) = swap_tick_sequence
.get_next_initialized_tick_index(
curr_tick_index,
tick_spacing,
a_to_b,
curr_array_index,
)?;
let (next_tick_sqrt_price, sqrt_price_target) =
get_next_sqrt_prices(next_tick_index, adjusted_sqrt_price_limit, a_to_b);
let swap_computation = compute_swap(
amount_remaining,
fee_rate,
curr_liquidity,
curr_sqrt_price,
sqrt_price_target,
amount_specified_is_input,
a_to_b,
)?;
if amount_specified_is_input {
amount_remaining = amount_remaining
.checked_sub(swap_computation.amount_in)
.ok_or(ErrorCode::AmountRemainingOverflow)?;
amount_remaining = amount_remaining
.checked_sub(swap_computation.fee_amount)
.ok_or(ErrorCode::AmountRemainingOverflow)?;
amount_calculated = amount_calculated
.checked_add(swap_computation.amount_out)
.ok_or(ErrorCode::AmountCalcOverflow)?;
} else {
amount_remaining = amount_remaining
.checked_sub(swap_computation.amount_out)
.ok_or(ErrorCode::AmountRemainingOverflow)?;
amount_calculated = amount_calculated
.checked_add(swap_computation.amount_in)
.ok_or(ErrorCode::AmountCalcOverflow)?;
amount_calculated = amount_calculated
.checked_add(swap_computation.fee_amount)
.ok_or(ErrorCode::AmountCalcOverflow)?;
}
let (next_protocol_fee, next_fee_growth_global_input) = calculate_fees(
swap_computation.fee_amount,
protocol_fee_rate,
curr_liquidity,
curr_protocol_fee,
curr_fee_growth_global_input,
);
curr_protocol_fee = next_protocol_fee;
curr_fee_growth_global_input = next_fee_growth_global_input;
if swap_computation.next_price == next_tick_sqrt_price {
let (next_tick, next_tick_initialized) = swap_tick_sequence
.get_tick(next_array_index, next_tick_index, tick_spacing)
.map_or_else(|_| (None, false), |tick| (Some(tick), tick.initialized));
if next_tick_initialized {
let (fee_growth_global_a, fee_growth_global_b) = if a_to_b {
(curr_fee_growth_global_input, whirlpool.fee_growth_global_b)
} else {
(whirlpool.fee_growth_global_a, curr_fee_growth_global_input)
};
let (update, next_liquidity) = calculate_update(
next_tick.unwrap(),
a_to_b,
curr_liquidity,
fee_growth_global_a,
fee_growth_global_b,
&next_reward_infos,
)?;
curr_liquidity = next_liquidity;
swap_tick_sequence.update_tick(
next_array_index,
next_tick_index,
tick_spacing,
&update,
)?;
}
let tick_offset = swap_tick_sequence.get_tick_offset(
next_array_index,
next_tick_index,
tick_spacing,
)?;
// Increment to the next tick array if either condition is true:
// - Price is moving left and the current tick is the start of the tick array
// - Price is moving right and the current tick is the end of the tick array
curr_array_index = if (a_to_b && tick_offset == 0)
|| (!a_to_b && tick_offset == TICK_ARRAY_SIZE as isize - 1)
{
next_array_index + 1
} else {
next_array_index
};
// The get_init_tick search is inclusive of the current index in an a_to_b trade.
// We therefore have to shift the index by 1 to advance to the next init tick to the left.
curr_tick_index = if a_to_b {
next_tick_index - 1
} else {
next_tick_index
};
} else if swap_computation.next_price != curr_sqrt_price {
curr_tick_index = tick_index_from_sqrt_price(&swap_computation.next_price);
}
curr_sqrt_price = swap_computation.next_price;
}
// Reject partial fills if no explicit sqrt price limit is set and trade is exact out mode
if amount_remaining > 0
&& !amount_specified_is_input
&& sqrt_price_limit == NO_EXPLICIT_SQRT_PRICE_LIMIT
{
return Err(ErrorCode::PartialFillError.into());
}
let (amount_a, amount_b) = if a_to_b == amount_specified_is_input {
(amount - amount_remaining, amount_calculated)
} else {
(amount_calculated, amount - amount_remaining)
};
let fee_growth = if a_to_b {
curr_fee_growth_global_input - whirlpool.fee_growth_global_a
} else {
curr_fee_growth_global_input - whirlpool.fee_growth_global_b
};
// Log delta in fee growth to track pool usage over time with off-chain analytics
msg!("fee_growth: {}", fee_growth);
Ok(PostSwapUpdate {
amount_a,
amount_b,
next_liquidity: curr_liquidity,
next_tick_index: curr_tick_index,
next_sqrt_price: curr_sqrt_price,
next_fee_growth_global: curr_fee_growth_global_input,
next_reward_infos,
next_protocol_fee: curr_protocol_fee,
})
}
fn calculate_fees(
fee_amount: u64,
protocol_fee_rate: u16,
curr_liquidity: u128,
curr_protocol_fee: u64,
curr_fee_growth_global_input: u128,
) -> (u64, u128) {
let mut next_protocol_fee = curr_protocol_fee;
let mut next_fee_growth_global_input = curr_fee_growth_global_input;
let mut global_fee = fee_amount;
if protocol_fee_rate > 0 {
let delta = calculate_protocol_fee(global_fee, protocol_fee_rate);
global_fee -= delta;
next_protocol_fee = next_protocol_fee.wrapping_add(delta);
}
if curr_liquidity > 0 {
next_fee_growth_global_input = next_fee_growth_global_input
.wrapping_add(((global_fee as u128) << Q64_RESOLUTION) / curr_liquidity);
}
(next_protocol_fee, next_fee_growth_global_input)
}
fn calculate_protocol_fee(global_fee: u64, protocol_fee_rate: u16) -> u64 {
((global_fee as u128) * (protocol_fee_rate as u128) / PROTOCOL_FEE_RATE_MUL_VALUE)
.try_into()
.unwrap()
}
fn calculate_update(
tick: &Tick,
a_to_b: bool,
liquidity: u128,
fee_growth_global_a: u128,
fee_growth_global_b: u128,
reward_infos: &[WhirlpoolRewardInfo; NUM_REWARDS],
) -> Result<(TickUpdate, u128)> {
// Use updated fee_growth for crossing tick
// Use -liquidity_net if going left, +liquidity_net going right
let signed_liquidity_net = if a_to_b {
-tick.liquidity_net
} else {
tick.liquidity_net
};
let update =
next_tick_cross_update(tick, fee_growth_global_a, fee_growth_global_b, reward_infos)?;
// Update the global liquidity to reflect the new current tick
let next_liquidity = add_liquidity_delta(liquidity, signed_liquidity_net)?;
Ok((update, next_liquidity))
}
fn get_next_sqrt_prices(
next_tick_index: i32,
sqrt_price_limit: u128,
a_to_b: bool,
) -> (u128, u128) {
let next_tick_price = sqrt_price_from_tick_index(next_tick_index);
let next_sqrt_price_limit = if a_to_b {
sqrt_price_limit.max(next_tick_price)
} else {
sqrt_price_limit.min(next_tick_price)
};
(next_tick_price, next_sqrt_price_limit)
}
#[cfg(test)]
mod swap_liquidity_tests {
use super::*;
use crate::util::{create_whirlpool_reward_infos, test_utils::swap_test_fixture::*};
#[test]
/// A rightward swap on a pool with zero liquidity across the range with initialized ticks.
/// |____c1___p1________|____p1___________|______________c2|
///
/// Expectation:
/// The swap will swap 0 assets but the next tick index will end at the end of tick-range.
fn zero_l_across_tick_range_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 0,
curr_tick_index: 255, // c1
start_tick_index: 0,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(1720),
amount_specified_is_input: false,
a_to_b: false,
array_1_ticks: &vec![TestTickInfo {
// p1
index: 448,
liquidity_net: 0,
..Default::default()
}],
array_2_ticks: Some(&vec![TestTickInfo {
// p1
index: 720,
liquidity_net: 0,
..Default::default()
}]),
array_3_ticks: Some(&vec![]),
reward_infos: create_whirlpool_reward_infos(100, 10),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 0,
traded_amount_b: 0,
end_tick_index: 1720,
end_liquidity: 0,
end_reward_growths: [10, 10, 10],
},
);
let tick_lower = tick_sequence.get_tick(0, 448, TS_8).unwrap();
assert_swap_tick_state(
tick_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
let tick_upper = tick_sequence.get_tick(1, 720, TS_8).unwrap();
assert_swap_tick_state(
tick_upper,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
}
#[test]
/// A leftward swap on a pool with zero liquidity across the range with initialized ticks.
/// |____c2___p1________|____p1___________|______________c1|
///
/// Expectation:
/// The swap will swap 0 assets but the next tick index will end at the end of tick-range.
fn zero_l_across_tick_range_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 0,
curr_tick_index: 1720, // c1
start_tick_index: 1408,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(100),
amount_specified_is_input: false,
a_to_b: true,
array_1_ticks: &vec![],
array_2_ticks: Some(&vec![TestTickInfo {
// p1
index: 720,
liquidity_net: 0,
..Default::default()
}]),
array_3_ticks: Some(&vec![TestTickInfo {
// p1
index: 448,
liquidity_net: 0,
..Default::default()
}]),
reward_infos: create_whirlpool_reward_infos(100, 10),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 0,
traded_amount_b: 0,
end_tick_index: 100,
end_liquidity: 0,
end_reward_growths: [10, 10, 10],
},
);
let lower_tick = tick_sequence.get_tick(1, 720, TS_8).unwrap();
assert_swap_tick_state(
lower_tick,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
let lower_tick = tick_sequence.get_tick(2, 448, TS_8).unwrap();
assert_swap_tick_state(
lower_tick,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
}
#[test]
/// A rightward swap on a pool with zero liquidity at the end of the tick-range.
/// |_____c1__p1________|_______________|_______________c2|
///
/// Expectation:
/// The swap will swap some assets up to the last initialized tick and
/// the next tick index will end at the end of tick-range.
fn zero_l_after_first_tick_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 100_000,
curr_tick_index: 255, // c1
start_tick_index: 0,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(1720),
amount_specified_is_input: false,
a_to_b: false,
array_1_ticks: &vec![TestTickInfo {
// p1
index: 448,
liquidity_net: -100_000,
..Default::default()
}],
array_2_ticks: Some(&vec![]),
array_3_ticks: Some(&vec![]),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 948,
traded_amount_b: 983,
end_tick_index: 1720,
end_liquidity: 0,
end_reward_growths: [10, 10, 10],
},
);
let tick = tick_sequence.get_tick(0, 448, TS_8).unwrap();
assert_swap_tick_state(
tick,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
}
#[test]
/// A leftward swap on a pool with zero liquidity at the end of the tick-range.
/// |c2_______p1________|_______________|_____c1_________|
///
/// Expectation:
/// The swap will swap some assets up to the last initialized tick and
/// the next tick index will end at the end of tick-range.
fn zero_l_after_first_tick_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 100_000,
curr_tick_index: 1720, // c1
start_tick_index: 1408,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(0),
amount_specified_is_input: false,
a_to_b: true,
array_1_ticks: &vec![],
array_2_ticks: Some(&vec![]),
array_3_ticks: Some(&vec![TestTickInfo {
// p1
index: 448,
liquidity_net: 100_000,
..Default::default()
}]),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 6026,
traded_amount_b: 6715,
end_tick_index: -1, // -1 a-to-b decrements by one when target price reached
end_liquidity: 0,
end_reward_growths: [10, 10, 10],
},
);
let tick = tick_sequence.get_tick(2, 448, TS_8).unwrap();
assert_swap_tick_state(
tick,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
}
#[test]
/// A rightward swap that traverses an empty gap with no liquidity.
/// |_______p1____c1___|____p1_______p2__|___c2__p2________|
///
/// Expectation:
/// The swap will swap some assets up to the end of p1, jump through the gap
/// and continue swapping assets in p2 until the expected trade amount is satisfied.
fn zero_l_between_init_ticks_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 100_000,
curr_tick_index: 500, // c1
start_tick_index: 0,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(1430),
amount_specified_is_input: false,
a_to_b: false,
array_1_ticks: &vec![TestTickInfo {
// p1
index: 448,
liquidity_net: 100_000,
..Default::default()
}],
array_2_ticks: Some(&vec![
TestTickInfo {
// p1
index: 768,
liquidity_net: -100_000,
..Default::default()
},
TestTickInfo {
// p2
index: 1120,
liquidity_net: 100_000,
..Default::default()
},
]),
array_3_ticks: Some(&vec![TestTickInfo {
// p2
index: 1536,
liquidity_net: -100_000,
..Default::default()
}]),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 2752,
traded_amount_b: 3036,
end_tick_index: 1430,
end_liquidity: 100000,
end_reward_growths: [10, 10, 10],
},
);
let p1_lower = tick_sequence.get_tick(0, 448, TS_8).unwrap();
let p1_upper = tick_sequence.get_tick(1, 768, TS_8).unwrap();
assert_swap_tick_state(p1_lower, &TickExpectation::default());
assert_swap_tick_state(
p1_upper,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
let p2_lower = tick_sequence.get_tick(1, 1120, TS_8).unwrap();
let p2_upper = tick_sequence.get_tick(2, 1536, TS_8).unwrap();
assert_swap_tick_state(
p2_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
assert_swap_tick_state(p2_upper, &TickExpectation::default());
}
#[test]
/// A leftward swap that traverses an empty gap with no liquidity.
/// |_______p1____c2___|____p1_______p2__|___c1__p2________|
///
/// Expectation:
/// The swap will swap some assets up to the end of p2, jump through the gap
/// and continue swapping assets in p1 until the expected trade amount is satisfied.
fn zero_l_between_init_ticks_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 100_000,
curr_tick_index: 1440, // c1
start_tick_index: 1408,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(500),
amount_specified_is_input: false,
a_to_b: true,
array_1_ticks: &vec![TestTickInfo {
// p2
index: 1448,
liquidity_net: -100_000,
..Default::default()
}],
array_2_ticks: Some(&vec![
TestTickInfo {
// p1
index: 720,
liquidity_net: -100_000,
..Default::default()
},
TestTickInfo {
// p2
index: 1120,
liquidity_net: 100_000,
..Default::default()
},
]),
array_3_ticks: Some(&vec![TestTickInfo {
// p1
index: 448,
liquidity_net: 100_000,
..Default::default()
}]),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 2568,
traded_amount_b: 2839,
end_tick_index: 500,
end_liquidity: 100000,
end_reward_growths: [10, 10, 10],
},
);
let p1_lower = tick_sequence.get_tick(2, 448, TS_8).unwrap();
let p1_upper = tick_sequence.get_tick(1, 720, TS_8).unwrap();
assert_swap_tick_state(p1_lower, &TickExpectation::default());
assert_swap_tick_state(
p1_upper,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
let p2_lower = tick_sequence.get_tick(1, 1120, TS_8).unwrap();
let p2_upper = tick_sequence.get_tick(0, 1448, TS_8).unwrap();
assert_swap_tick_state(
p2_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
assert_swap_tick_state(p2_upper, &TickExpectation::default());
}
#[test]
/// A swap that moves the price to the right to another initialized
/// tick within the same array.
/// |_c1__p1___p2____p2__c2__p1__|
///
/// Expectation:
/// The swap will traverse through all initialized ticks (some of p1, p2) and
/// exit until the expected trade amount is satisfied.
fn next_initialized_tick_in_same_array_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 100_000,
curr_tick_index: 5, // c1
start_tick_index: 0,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(400),
amount_specified_is_input: false,
a_to_b: false,
array_1_ticks: &vec![
TestTickInfo {
// p1
index: 8,
liquidity_net: 100_000,
..Default::default()
},
TestTickInfo {
// p2
index: 128,
liquidity_net: 200_000,
..Default::default()
},
TestTickInfo {
// p2
index: 320,
liquidity_net: -200_000,
..Default::default()
},
TestTickInfo {
// p1
index: 448,
liquidity_net: -100_000,
..Default::default()
},
],
fee_growth_global_a: 100,
fee_growth_global_b: 100,
reward_infos: create_whirlpool_reward_infos(100, 10),
..Default::default()
});
let mut tick_sequence =
SwapTickSequence::new(swap_test_info.tick_arrays[0].borrow_mut(), None, None);
let post_swap = swap_test_info.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 5791,
traded_amount_b: 5920,
end_tick_index: 400,
end_liquidity: 200000,
end_reward_growths: [10, 10, 10],
},
);
let p1_lower = tick_sequence.get_tick(0, 8, TS_8).unwrap();
let p1_upper = tick_sequence.get_tick(0, 448, TS_8).unwrap();
assert_swap_tick_state(
p1_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
assert_swap_tick_state(p1_upper, &TickExpectation::default());
let p2_lower = tick_sequence.get_tick(0, 128, TS_8).unwrap();
let p2_upper = tick_sequence.get_tick(0, 320, TS_8).unwrap();
assert_swap_tick_state(
p2_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
assert_swap_tick_state(
p2_upper,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
}
#[test]
/// A swap that moves the price to the left to another initialized
/// tick within the same array.
/// |_c2__p1___p2____p2__p1__c1_|
///
/// Expectation:
/// The swap will traverse through all initialized ticks (some of p1, p2) and
/// exit until the expected trade amount is satisfied.
fn next_initialized_tick_in_same_array_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 100_000,
curr_tick_index: 568, // c1
start_tick_index: 0,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(5),
amount_specified_is_input: false,
a_to_b: true,
array_1_ticks: &vec![
TestTickInfo {
// p1
index: 8,
liquidity_net: 100_000,
..Default::default()
},
TestTickInfo {
// p2
index: 128,
liquidity_net: 200_000,
..Default::default()
},
TestTickInfo {
// p2
index: 320,
liquidity_net: -200_000,
..Default::default()
},
TestTickInfo {
// p1
index: 448,
liquidity_net: -100_000,
..Default::default()
},
],
fee_growth_global_a: 100,
fee_growth_global_b: 100,
reward_infos: create_whirlpool_reward_infos(100, 10),
..Default::default()
});
let mut tick_sequence =
SwapTickSequence::new(swap_test_info.tick_arrays[0].borrow_mut(), None, None);
let post_swap = swap_test_info.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 6850,
traded_amount_b: 7021,
end_tick_index: 5,
end_liquidity: 100000,
end_reward_growths: [10, 10, 10],
},
);
let p1_lower = tick_sequence.get_tick(0, 8, TS_8).unwrap();
let p1_upper = tick_sequence.get_tick(0, 448, TS_8).unwrap();
assert_swap_tick_state(
p1_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
assert_swap_tick_state(
p1_upper,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
let p2_lower = tick_sequence.get_tick(0, 128, TS_8).unwrap();
let p2_upper = tick_sequence.get_tick(0, 320, TS_8).unwrap();
assert_swap_tick_state(
p2_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
assert_swap_tick_state(
p2_upper,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
}
#[test]
/// A swap that moves the price to the right from 1 tick-array to the next tick-array.
/// |____p1____c1____p2__|__p2__c2____p1______|
///
/// Expectation:
/// The swap loop will traverse across the two tick-arrays on each initialized-tick and
/// at the end of the first tick-array. It will complete the swap and the next tick index
/// is in tick-array 2.
fn next_initialized_tick_in_next_array_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 11_000_000,
curr_tick_index: 25000, // c1
start_tick_index: 22528,
trade_amount: 11_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(37000),
amount_specified_is_input: false,
a_to_b: false,
array_1_ticks: &vec![
TestTickInfo {
// p1
index: 23168,
liquidity_net: 5_000_000,
..Default::default()
},
TestTickInfo {
// p2
index: 28416,
liquidity_net: 6_000_000,
..Default::default()
},
],
array_2_ticks: Some(&vec![
TestTickInfo {
// p2
index: 33920,
liquidity_net: -6_000_000,
..Default::default()
},
TestTickInfo {
// p1
index: 37504,
liquidity_net: -5_000_000,
..Default::default()
},
]),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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()),
None,
);
let post_swap = swap_test_info.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 1770620,
traded_amount_b: 39429146,
end_tick_index: 37000,
end_liquidity: 11000000,
end_reward_growths: [10, 10, 10],
},
);
let p1_lower = tick_sequence.get_tick(0, 23168, TS_128).unwrap();
let p1_upper = tick_sequence.get_tick(1, 37504, TS_128).unwrap();
assert_swap_tick_state(p1_lower, &TickExpectation::default());
assert_swap_tick_state(p1_upper, &TickExpectation::default());
let p2_lower = tick_sequence.get_tick(0, 28416, TS_128).unwrap();
let p2_upper = tick_sequence.get_tick(1, 33920, TS_128).unwrap();
assert_swap_tick_state(
p2_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
assert_swap_tick_state(
p2_upper,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
}
#[test]
/// A swap that moves the price to the left from 1 tick-array to the next tick-array.
/// |____p1____c2____p2__|__p2__c1____p1______|
///
/// Expectation:
/// The swap loop will traverse across the two tick-arrays on each initialized-tick and
/// at the end of tick-array 2. It will complete the swap and the next tick index
/// is in tick-array 1.
fn next_initialized_tick_in_next_array_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 11_000_000,
curr_tick_index: 37000, // c1
start_tick_index: 29824,
trade_amount: 110_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(25000),
amount_specified_is_input: false,
a_to_b: true,
array_1_ticks: &vec![
TestTickInfo {
// p2
index: 30720,
liquidity_net: -6_000_000,
..Default::default()
},
TestTickInfo {
// p1
index: 37504,
liquidity_net: -5_000_000,
..Default::default()
},
],
array_2_ticks: Some(&vec![
TestTickInfo {
// p1
index: 23168,
liquidity_net: 5_000_000,
..Default::default()
},
TestTickInfo {
// p2
index: 28416,
liquidity_net: 6_000_000,
..Default::default()
},
]),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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()),
None,
);
let post_swap = swap_test_info.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 1579669,
traded_amount_b: 34593019,
end_tick_index: 25000,
end_liquidity: 11000000,
end_reward_growths: [10, 10, 10],
},
);
let p1_lower = tick_sequence.get_tick(1, 23168, TS_128).unwrap();
let p1_upper = tick_sequence.get_tick(0, 37504, TS_128).unwrap();
assert_swap_tick_state(p1_lower, &TickExpectation::default());
assert_swap_tick_state(p1_upper, &TickExpectation::default());
let p2_lower = tick_sequence.get_tick(1, 28416, TS_128).unwrap();
let p2_upper = tick_sequence.get_tick(0, 30720, TS_128).unwrap();
assert_swap_tick_state(
p2_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
assert_swap_tick_state(
p2_upper,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
}
#[test]
/// A swap that moves the price to the right, jumping a tick-array with 0
/// initialized tick in between.
/// |____p1____c1____p2__|_________________|__p2___c2__p1______|
///
/// Expectation:
/// The swap loop will traverse across the tick-range on each initialized-tick and
/// at the end of all traversed tick-arrays. It will complete the swap and the next tick index
/// is in tick-array 3.
fn next_initialized_tick_not_in_adjacent_array_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 11_000_000,
curr_tick_index: 30080, // c1
start_tick_index: 29824,
trade_amount: 10_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(57000),
amount_specified_is_input: false,
a_to_b: false,
array_1_ticks: &vec![
TestTickInfo {
// p1
index: 29952,
liquidity_net: 5_000_000,
..Default::default()
},
TestTickInfo {
// p2
index: 30336,
liquidity_net: 6_000_000,
..Default::default()
},
],
array_2_ticks: Some(&vec![]), // 41,088
array_3_ticks: Some(&vec![
// 52,352
TestTickInfo {
// p2
index: 56192,
liquidity_net: -6_000_000,
..Default::default()
},
TestTickInfo {
// p1
index: 57216,
liquidity_net: -5_000_000,
..Default::default()
},
]),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 2763589,
traded_amount_b: 212908090,
end_tick_index: 57000,
end_liquidity: 11000000,
end_reward_growths: [10, 10, 10],
},
);
let p1_lower = tick_sequence.get_tick(0, 29952, TS_128).unwrap();
let p1_upper = tick_sequence.get_tick(2, 57216, TS_128).unwrap();
assert_swap_tick_state(p1_lower, &TickExpectation::default());
assert_swap_tick_state(p1_upper, &TickExpectation::default());
let p2_lower = tick_sequence.get_tick(0, 30336, TS_128).unwrap();
let p2_upper = tick_sequence.get_tick(2, 56192, TS_128).unwrap();
assert_swap_tick_state(
p2_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
assert_swap_tick_state(
p2_upper,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
}
#[test]
/// A swap that moves the price to the left, jumping a tick-array with 0
/// initialized tick in between.
/// |____p1____c2____p2__|_________________|__p2___c1__p1______|
///
/// Expectation:
/// The swap loop will traverse across the tick-range on each initialized-tick and
/// at the end of all traversed tick-arrays. It will complete the swap and the next tick index
/// is in tick-array 1.
fn next_initialized_tick_not_in_adjacent_array_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 11_000_000,
curr_tick_index: 48896, // c1
start_tick_index: 48256,
trade_amount: 117_900_000,
sqrt_price_limit: sqrt_price_from_tick_index(0),
amount_specified_is_input: false,
a_to_b: true,
array_1_ticks: &vec![
TestTickInfo {
// p2
index: 48512,
liquidity_net: -6_000_000,
..Default::default()
},
TestTickInfo {
// p1
index: 49280,
liquidity_net: -5_000_000,
..Default::default()
},
],
array_2_ticks: Some(&vec![]),
array_3_ticks: Some(&vec![
TestTickInfo {
// p1
index: 29952,
liquidity_net: 5_000_000,
..Default::default()
},
TestTickInfo {
// p2
index: 30336,
liquidity_net: 6_000_000,
..Default::default()
},
]),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 2281190,
traded_amount_b: 117900000,
end_tick_index: 30041,
end_liquidity: 11000000,
end_reward_growths: [10, 10, 10],
},
);
let p1_lower = tick_sequence.get_tick(2, 29952, TS_128).unwrap();
let p1_upper = tick_sequence.get_tick(0, 49280, TS_128).unwrap();
assert_swap_tick_state(p1_lower, &TickExpectation::default());
assert_swap_tick_state(p1_upper, &TickExpectation::default());
let p2_lower = tick_sequence.get_tick(2, 30336, TS_128).unwrap();
let p2_upper = tick_sequence.get_tick(0, 48512, TS_128).unwrap();
assert_swap_tick_state(
p2_lower,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
assert_swap_tick_state(
p2_upper,
&TickExpectation {
fee_growth_outside_a: 100,
fee_growth_outside_b: 100,
reward_growths_outside: [10, 10, 10],
},
);
}
#[test]
/// A swap that moves across towards the right on all tick-arrays
/// with no initialized-ticks in the tick-range, but has the liquidity to support it
/// as long as sqrt_price or amount stops in the tick-range.
/// |c1_____________|_________________|________________c2|...limit
///
/// Expectation:
/// The swap loop will traverse across the tick-range on the last index of each tick-array.
/// It will complete the swap at the end of the tick-range.
fn no_initialized_tick_range_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 500_000,
curr_tick_index: -322176, // c1
start_tick_index: -322176,
trade_amount: 1_000_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(0),
amount_specified_is_input: false,
a_to_b: false,
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 1_000_000_000_000,
traded_amount_b: 1,
end_tick_index: -317663,
end_liquidity: 500000,
end_reward_growths: [10, 10, 10],
},
);
}
#[test]
/// A swap that moves across towards the right on all tick-arrays
/// with no initialized-ticks in the tick-range, but has the liquidity to support it.
/// |c1_____________|_________________|_________________|...limit
///
/// Expectation:
/// The swap loop will fail if the sqrt_price exceeds the last tick of the last array
#[should_panic(expected = "TickArraySequenceInvalidIndex")]
fn sqrt_price_exceeds_tick_range_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 500_000,
curr_tick_index: -322176, // c1
start_tick_index: -322176,
trade_amount: 100_000_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(0),
amount_specified_is_input: false,
a_to_b: false,
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 1_000_000_000_000,
traded_amount_b: 1,
end_tick_index: -317663,
end_liquidity: 500000,
end_reward_growths: [10, 10, 10],
},
);
}
#[test]
/// A swap that moves across towards the left on all tick-arrays
/// with no initialized-ticks in the tick-range, but has the liquidity to support it,
/// as long as sqrt_price or amount stops in the tick-range.
/// |limit, c2____________|_________________|____c1__________|
/// -326656 -315,392 -304,128 -292,864
///
/// Expectation:
/// The swap loop will traverse across the tick-range on the last index of each tick-array.
/// It will complete the swap at the start of the tick-range.
///
fn no_initialized_tick_range_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 11_000_000,
curr_tick_index: -302080, // c1
start_tick_index: -304128,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(-326656),
amount_specified_is_input: false,
a_to_b: true,
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 96362985379416,
traded_amount_b: 2,
end_tick_index: -326657, // -1 because swap crossed 340608 and is an initialized tick
end_liquidity: 11000000,
end_reward_growths: [10, 10, 10],
},
);
}
#[test]
/// A swap that moves across towards past the left on all tick-arrays
/// with no initialized-ticks in the tick-range, but has the liquidity to support it.
/// limit |____________|_________________|____c1__________|
/// -326656 -315,392 -304,128 -292,864
///
/// Expectation:
/// The swap loop will fail if the sqrt_price exceeds the last tick of the last array
#[should_panic(expected = "TickArraySequenceInvalidIndex")]
fn sqrt_price_exceeds_tick_range_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 11_000_000,
curr_tick_index: -302080, // c1
start_tick_index: -304128,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(-326657),
amount_specified_is_input: false,
a_to_b: true,
fee_growth_global_a: 100,
fee_growth_global_b: 100,
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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 96362985379416,
traded_amount_b: 2,
end_tick_index: -326657, // -1 because swap crossed 340608 and is an initialized tick
end_liquidity: 11000000,
end_reward_growths: [10, 10, 10],
},
);
}
#[test]
#[should_panic(expected = "MultiplicationShiftRightOverflow")]
/// A swap in a pool with maximum liquidity that reaches the maximum tick
/// |__p1_____c1______p1_c2|max
///
/// Expectation:
/// The swap will error on `TokenMaxExceeded` as it is not possible to increment more than the maximum token allowed.
fn max_l_at_max_tick_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: u64::MAX as u128,
curr_tick_index: 442500, // c1
start_tick_index: 442368,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(443636),
amount_specified_is_input: false,
a_to_b: false,
array_1_ticks: &vec![
TestTickInfo {
// p1
index: 442496,
liquidity_net: 500_000_000,
..Default::default()
},
TestTickInfo {
// p1
index: 443520,
liquidity_net: -500_000_000,
..Default::default()
},
],
array_2_ticks: None,
array_3_ticks: None,
..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.run(&mut tick_sequence, 100);
}
#[test]
/// A swap in a pool that reaches the minimum tick
/// l = 0
/// min|c2_p1_____c1___p1|
///
/// Expectation:
/// The swap will not trade anything and end of the min-tick-index.
fn min_l_at_min_sqrt_price_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 500_000_000,
curr_tick_index: -442500, // c1
start_tick_index: -451584,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(-443636),
amount_specified_is_input: false,
a_to_b: true,
array_1_ticks: &vec![
TestTickInfo {
// p1
index: -442496,
liquidity_net: -500_000_000,
..Default::default()
},
TestTickInfo {
// p1
index: -443520,
liquidity_net: 500_000_000,
..Default::default()
},
],
array_2_ticks: None,
array_3_ticks: None,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 106151097514387301,
traded_amount_b: 0,
end_tick_index: -443637,
end_liquidity: 0,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
/// The swap crosses the last tick of a tick array and then continues
/// into the next tick array.
///
/// |__________c1|t1|________c2____|_____________|
/// -33792 -22528 -11264
fn traversal_from_last_tick_in_array_to_next_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 7587362620357,
curr_tick_index: -22657, // c1
start_tick_index: -33792,
trade_amount: 10_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(-22300),
amount_specified_is_input: true,
a_to_b: false,
array_1_ticks: &vec![TestTickInfo {
// p1
index: -22656,
liquidity_net: 100,
..Default::default()
}],
array_2_ticks: Some(&vec![TestTickInfo {
// p1
index: -22400,
liquidity_net: -100,
..Default::default()
}]),
array_3_ticks: Some(&vec![]),
reward_infos: create_whirlpool_reward_infos(100, 10),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 95975095232,
traded_amount_b: 10000000000,
end_tick_index: -22576,
end_liquidity: 7587362620457,
end_reward_growths: [10, 10, 10],
},
);
}
#[test]
/// The swap crosses the first tick of the tick array and then continues
/// into the next tick array.
///
/// |__________|________c2____|t1|c1___________|
/// -33792 -22528 -11264
fn traversal_from_last_tick_in_array_to_next_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 7587362620357,
curr_tick_index: -11135, // c1
start_tick_index: -11264,
trade_amount: 100_000_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(-22300),
amount_specified_is_input: true,
a_to_b: true,
array_1_ticks: &vec![TestTickInfo {
// p1
index: -11264,
liquidity_net: 100,
..Default::default()
}],
array_2_ticks: Some(&vec![TestTickInfo {
// p1
index: -22400,
liquidity_net: -100,
..Default::default()
}]),
array_3_ticks: Some(&vec![]),
reward_infos: create_whirlpool_reward_infos(100, 10),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 9897370858896,
traded_amount_b: 1860048818693,
end_tick_index: -22300,
end_liquidity: 7587362620257,
end_reward_growths: [10, 10, 10],
},
);
}
#[test]
///
/// |_______c1___t1|__________t2|__________t3,c2|
/// -33792 -22528 -11264
fn traversal_to_last_tick_in_next_array_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 7587362620357,
curr_tick_index: -22784, // c1
start_tick_index: -33792,
trade_amount: 10_000_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(-2),
amount_specified_is_input: true,
a_to_b: false,
array_1_ticks: &vec![TestTickInfo {
index: -22784,
liquidity_net: 100,
..Default::default()
}],
array_2_ticks: Some(&vec![TestTickInfo {
index: -11392,
liquidity_net: 100,
..Default::default()
}]),
array_3_ticks: Some(&vec![TestTickInfo {
index: -256,
liquidity_net: -100,
..Default::default()
}]),
reward_infos: create_whirlpool_reward_infos(100, 10),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 16115482403568,
traded_amount_b: 5157940702072,
end_tick_index: -2,
end_liquidity: 7587362620357,
end_reward_growths: [10, 10, 10],
},
);
}
#[test]
///
/// |_______c1___t1|__________t2|__________t3,c2|
/// -33792 -22528 -11264
fn traversal_to_last_tick_in_last_array_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 7587362620357,
curr_tick_index: -22784, // c1
start_tick_index: -33792,
trade_amount: 10_000_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(-128),
amount_specified_is_input: true,
a_to_b: false,
array_1_ticks: &vec![TestTickInfo {
index: -22784,
liquidity_net: 100,
..Default::default()
}],
array_2_ticks: Some(&vec![TestTickInfo {
index: -11392,
liquidity_net: 100,
..Default::default()
}]),
array_3_ticks: Some(&vec![TestTickInfo {
index: -128,
liquidity_net: -100,
..Default::default()
}]),
reward_infos: create_whirlpool_reward_infos(100, 10),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 16067528741228,
traded_amount_b: 5110297712223,
end_tick_index: -128,
end_liquidity: 7587362620357,
end_reward_growths: [10, 10, 10],
},
);
}
#[test]
///
/// |t1c1__________|t2___________|_________t1c1|
/// -33792 -22528 -11264
fn traversal_to_last_tick_in_next_array_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 7587362620357,
curr_tick_index: -256, // c1
start_tick_index: -11264,
trade_amount: 100_000_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(-33791),
amount_specified_is_input: true,
a_to_b: true,
array_1_ticks: &vec![TestTickInfo {
index: -256,
liquidity_net: -100,
..Default::default()
}],
array_2_ticks: Some(&vec![TestTickInfo {
index: -22528,
liquidity_net: 100,
..Default::default()
}]),
array_3_ticks: Some(&vec![TestTickInfo {
index: -33792,
liquidity_net: 100,
..Default::default()
}]),
reward_infos: create_whirlpool_reward_infos(100, 10),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 33412493784228,
traded_amount_b: 6090103077425,
end_tick_index: -33791,
end_liquidity: 7587362620357,
end_reward_growths: [10, 10, 10],
},
);
}
#[test]
///
/// |t1c1__________|t2___________|_________t1c1|
/// -33792 -22528 -11264
fn traversal_to_last_tick_in_last_array_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 7587362620357,
curr_tick_index: -256, // c1
start_tick_index: -11264,
trade_amount: 100_000_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(-33792),
amount_specified_is_input: true,
a_to_b: true,
array_1_ticks: &vec![TestTickInfo {
index: -256,
liquidity_net: -100,
..Default::default()
}],
array_2_ticks: Some(&vec![]),
array_3_ticks: Some(&vec![TestTickInfo {
index: -33792,
liquidity_net: 100,
..Default::default()
}]),
reward_infos: create_whirlpool_reward_infos(100, 10),
fee_growth_global_a: 100,
fee_growth_global_b: 100,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 33414548612789,
traded_amount_b: 6090173110437,
end_tick_index: -33793,
end_liquidity: 7587362620357,
end_reward_growths: [10, 10, 10],
},
);
}
}
#[cfg(test)]
mod swap_sqrt_price_tests {
use super::*;
use crate::util::test_utils::swap_test_fixture::*;
#[test]
#[should_panic(expected = "SqrtPriceOutOfBounds")]
/// A swap with the price limit over the max price limit.
/// |__p1_____p1_____c1___max|...limit|
///
/// Expectation:
/// Fail on out of bounds sqrt-price-limit.
fn sqrt_price_limit_over_max_tick() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 500,
curr_tick_index: 442500, // c1
start_tick_index: 442368,
trade_amount: 100_000_000_000_000_000,
sqrt_price_limit: MAX_SQRT_PRICE_X64 + 1,
amount_specified_is_input: false,
a_to_b: false,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
/// An attempt to swap to the maximum tick without the last initializable tick
/// being initialized
/// |__p1_____p1_____c1___c2,max,limit|
///
/// Expectation:
/// Successfully swap to the maximum tick / maximum sqrt-price
fn sqrt_price_limit_at_max_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 10,
curr_tick_index: 443635, // c1
start_tick_index: 442368,
trade_amount: 100_000_000_000_000_000,
sqrt_price_limit: MAX_SQRT_PRICE_X64,
amount_specified_is_input: false,
a_to_b: false,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 0,
traded_amount_b: 2147283,
end_tick_index: 443636,
end_liquidity: 10,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
/// A rightward swap that is limited by the max price limit.
/// |____p1______c1______p1_c2,max,limit|
///
/// Expectation:
/// The swap will complete at the maximum tick index
fn sqrt_price_limit_at_max_with_last_init_tick_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 500,
curr_tick_index: 442500, // c1
start_tick_index: 442368,
trade_amount: 100_000_000_000_000_000,
sqrt_price_limit: MAX_SQRT_PRICE_X64, // c2, limit
amount_specified_is_input: false,
a_to_b: false,
array_1_ticks: &vec![
TestTickInfo {
// p1
index: 442496,
liquidity_net: 500,
..Default::default()
},
TestTickInfo {
// p2
index: 443520,
liquidity_net: -500,
..Default::default()
},
],
array_2_ticks: None,
array_3_ticks: None,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 0,
traded_amount_b: 106151097576,
end_tick_index: 443636,
end_liquidity: 0,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
#[should_panic(expected = "SqrtPriceOutOfBounds")]
/// A swap with the price limit under the min price limit.
/// |limit...|min____c2____c1____|
///
/// Expectation:
/// Fail on out of bounds sqrt-price-limit.
fn sqrt_price_limit_under_min_tick() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 500,
curr_tick_index: -443500, // c1
start_tick_index: -451584,
trade_amount: 100_000_000_000_000_000,
sqrt_price_limit: MIN_SQRT_PRICE_X64 - 1,
amount_specified_is_input: false,
a_to_b: true,
array_1_ticks: &vec![],
array_2_ticks: None,
array_3_ticks: None,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
/// A leftward swap into the min price with the price limit set at min price.
/// |limit,min,p1,c2______c1______|
///
/// Expectation:
/// The swap will succeed and exits at the minimum tick index
fn sqrt_price_limit_at_min_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 50_000_000,
curr_tick_index: -442620, // c1
start_tick_index: -451584,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(-443636), // c2, limit
amount_specified_is_input: false,
a_to_b: true,
array_1_ticks: &vec![
TestTickInfo {
// p1
index: -442624,
liquidity_net: -500_000_000,
..Default::default()
},
TestTickInfo {
// p1
index: -443520,
liquidity_net: 550_000_000,
..Default::default()
},
],
array_2_ticks: None,
array_3_ticks: None,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 102927825595253698,
traded_amount_b: 0,
end_tick_index: -443637,
end_liquidity: 0,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
/// A leftward swap with the sqrt-price limit lower than the swap-target.
/// |______limit____c2_____c1_|
///
/// Expectation:
/// The swap will succeed and exits when expected trade amount is swapped.
fn sqrt_price_limit_under_current_tick_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000_000_000,
curr_tick_index: -225365, // c1
start_tick_index: -225792,
trade_amount: 100,
sqrt_price_limit: sqrt_price_from_tick_index(-226000), // limit
amount_specified_is_input: false,
a_to_b: true,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 613293650976,
traded_amount_b: 100,
end_tick_index: -225397,
end_liquidity: 5_000_000_000,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
/// A leftward swap with the sqrt-price limit higher than the swap target.
/// |______c2____limit______c1_|
///
/// Expectation:
/// Swap will be stopped at the sqrt-price-limit
fn sqrt_price_limit_under_current_tick_stop_limit_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000_000_000,
curr_tick_index: -225365, // c1
start_tick_index: -225792,
trade_amount: 100,
sqrt_price_limit: sqrt_price_from_tick_index(-225380), // limit
amount_specified_is_input: false,
a_to_b: true,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 293539494127,
traded_amount_b: 47,
end_tick_index: -225380,
end_liquidity: 5_000_000_000,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
#[should_panic(expected = "InvalidSqrtPriceLimitDirection")]
/// A rightward swap with the sqrt-price below the current tick index.
/// |______limit____c1_____c2_|
///
/// Expectation:
/// Swap will fail because the sqrt-price limit is in the opposite direction.
fn sqrt_price_limit_under_current_tick_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000_000_000,
curr_tick_index: -225365, // c1
start_tick_index: -225792,
trade_amount: 100,
sqrt_price_limit: sqrt_price_from_tick_index(-225790), // limit
amount_specified_is_input: false,
a_to_b: false,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
/// A leftward swap with the sqrt-price limit at the current tick index.
/// |__c2____limit,c1_______|
///
/// Expectation:
/// Swap will not swap and exit on the price limit since it cannot proceed into the price limit.
fn sqrt_price_limit_at_current_tick_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000_000_000,
curr_tick_index: -225365, // c1
start_tick_index: -225792,
trade_amount: 100,
sqrt_price_limit: sqrt_price_from_tick_index(-225365), // limit
amount_specified_is_input: false,
a_to_b: true,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 0,
traded_amount_b: 0,
end_tick_index: -225365,
end_liquidity: 5_000_000_000,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
/// A rightward swap with the sqrt-price limit at the current tick index.
/// |____c1,limit__c2__|
///
/// Expectation:
/// Swap will not swap and exit on the price limit since it cannot proceed into the price limit.
fn sqrt_price_limit_at_current_tick_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000_000_000,
curr_tick_index: -225365, // c1
start_tick_index: -225792,
trade_amount: 100,
sqrt_price_limit: sqrt_price_from_tick_index(-225365), // limit
amount_specified_is_input: false,
a_to_b: false,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 0,
traded_amount_b: 0,
end_tick_index: -225365,
end_liquidity: 5_000_000_000,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
#[should_panic(expected = "InvalidSqrtPriceLimitDirection")]
/// A leftward swap with the sqrt-price limit higher than the current tick index.
/// |____c2___c1___limit__|
///
/// Expectation:
/// Swap will fail because price limit is in the wrong direction.
fn sqrt_price_limit_over_current_tick_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000_000,
curr_tick_index: 64900, // c1
start_tick_index: 64512,
trade_amount: 100_000,
sqrt_price_limit: sqrt_price_from_tick_index(65000), // limit
amount_specified_is_input: false,
a_to_b: true,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
/// A rightward swap with the sqrt-price limit higher than the current tick index.
/// |__c1_____c2___limit__|
///
/// Expectataion:
/// The swap will succeed and exits when expected trade amount is swapped.
fn sqrt_price_limit_over_current_tick_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000_000,
curr_tick_index: 64900, // c1
start_tick_index: 64512,
trade_amount: 100,
sqrt_price_limit: sqrt_price_from_tick_index(65388), // limit
amount_specified_is_input: false,
a_to_b: false,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 100,
traded_amount_b: 65865,
end_tick_index: 64910,
end_liquidity: 5_000_000,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
/// A rightward swap with the sqrt-price limit lower than the next tick index.
/// |____c1____limit__c2__|
///
/// Expectataion:
/// The swap will succeed and exits at the sqrt-price limit.
fn sqrt_price_limit_over_current_tick_stop_limit_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000_000,
curr_tick_index: 64900, // c1
start_tick_index: 64512,
trade_amount: 100,
sqrt_price_limit: sqrt_price_from_tick_index(64905), // limit
amount_specified_is_input: false,
a_to_b: false,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 48,
traded_amount_b: 32075,
end_tick_index: 64905,
end_liquidity: 5_000_000,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
#[should_panic(expected = "TickArraySequenceInvalidIndex")]
/// An attempt to swap walking over 3 tick arrays
/// |c1_____|_______|_______|c2 limit(0)
///
/// Expectation:
/// Swap will fail due to over run
fn sqrt_price_limit_0_b_to_a_map_to_max() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 0,
curr_tick_index: 1, // c1
start_tick_index: 0,
trade_amount: 1_000_000_000,
sqrt_price_limit: 0, // no explicit limit = over run = TickArraySequenceInvalidIndex
amount_specified_is_input: false, // exact out
a_to_b: false,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
#[should_panic(expected = "TickArraySequenceInvalidIndex")]
/// An attempt to swap walking over 3 tick arrays
/// limit(0) c2|_______|_______|_____c1|
///
/// Expectation:
/// Swap will fail due to over run
fn sqrt_price_limit_0_a_to_b_map_to_min() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 0,
curr_tick_index: 256,
start_tick_index: 0,
trade_amount: 1_000_000_000,
sqrt_price_limit: 0, // no explicit limit = over run = TickArraySequenceInvalidIndex
amount_specified_is_input: false, // exact out
a_to_b: true,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
#[should_panic(expected = "PartialFillError")]
/// An attempt to swap to the maximum tick implicitly without the last initializable tick
/// being initialized
/// |c1_______________c2,max,limit(0)|
///
/// Expectation:
/// Swap will fail due to partial fill.
fn sqrt_price_limit_0_b_to_a_exact_out() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 0,
curr_tick_index: 442369, // c1
start_tick_index: 442368,
trade_amount: 1_000_000_000,
sqrt_price_limit: 0, // no explicit limit
amount_specified_is_input: false, // exact out
a_to_b: false,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
#[should_panic(expected = "PartialFillError")]
/// An attempt to swap to the minimum tick implicitly without the last initializable tick
/// being initialized
/// |limit(0),min,c2____________c1|
///
/// Expectation:
/// Swap will fail due to partial fill.
fn sqrt_price_limit_0_a_to_b_exact_out() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 0,
curr_tick_index: -440321, // c1
start_tick_index: -451584,
trade_amount: 1_000_000_000,
sqrt_price_limit: 0, // no explicit limit
amount_specified_is_input: false, // exact out
a_to_b: true,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
/// An attempt to swap to the maximum tick explicitly without the last initializable tick
/// being initialized
/// |c1_______________c2,max,limit(MAX_SQRT_PRICE_X64)|
///
/// Expectation:
/// Swap will succeed with partial fill.
fn sqrt_price_limit_explicit_max_b_to_a_exact_out() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 0,
curr_tick_index: 442369, // c1
start_tick_index: 442368,
trade_amount: 1_000_000_000,
sqrt_price_limit: MAX_SQRT_PRICE_X64, // explicit limit
amount_specified_is_input: false, // exact out
a_to_b: false,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 0,
traded_amount_b: 0,
end_tick_index: 443636, // MAX
end_liquidity: 0,
end_reward_growths: [0, 0, 0],
},
);
}
#[test]
/// An attempt to swap to the minimum tick explicitly without the last initializable tick
/// being initialized
/// |limit(MIN_SQRT_PRICE_X64),min,c2____________c1|
///
/// Expectation:
/// Swap will succeed with partial fill.
fn sqrt_price_limit_explicit_min_a_to_b_exact_out() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 0,
curr_tick_index: -440321, // c1
start_tick_index: -451584,
trade_amount: 1_000_000_000,
sqrt_price_limit: MIN_SQRT_PRICE_X64, // explicit limit
amount_specified_is_input: false, // exact out
a_to_b: true,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 0,
traded_amount_b: 0,
end_tick_index: -443636 - 1, // MIN - 1 (shifted)
end_liquidity: 0,
end_reward_growths: [0, 0, 0],
},
);
}
#[test]
/// An attempt to swap to the maximum tick implicitly without the last initializable tick
/// being initialized
/// |c1_______________c2,max,limit(0)|
///
/// Expectation:
/// The swap will succeed and exits at the maximum tick index.
/// In exact in mode, partial fill may be allowed if other_amount_threshold is satisfied.
fn sqrt_price_limit_0_b_to_a_exact_in() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 0,
curr_tick_index: 442369, // c1
start_tick_index: 442368,
trade_amount: 1_000_000_000,
sqrt_price_limit: 0, // no explicit limit
amount_specified_is_input: true, // exact in
a_to_b: false,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 0,
traded_amount_b: 0,
end_tick_index: 443636, // MAX
end_liquidity: 0,
end_reward_growths: [0, 0, 0],
},
);
}
#[test]
/// An attempt to swap to the minimum tick implicitly without the last initializable tick
/// being initialized
/// |limit(0),min,c2____________c1|
///
/// Expectation:
/// The swap will succeed and exits at the minimum tick index.
/// In exact in mode, partial fill may be allowed if other_amount_threshold is satisfied.
fn sqrt_price_limit_0_a_to_b_exact_in() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 0,
curr_tick_index: -440321, // c1
start_tick_index: -451584,
trade_amount: 1_000_000_000,
sqrt_price_limit: 0, // no explicit limit
amount_specified_is_input: true, // exact in
a_to_b: true,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
let post_swap = swap_test_info.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 0,
traded_amount_b: 0,
end_tick_index: -443636 - 1, // MIN - 1 (shifted)
end_liquidity: 0,
end_reward_growths: [0, 0, 0],
},
);
}
}
#[cfg(test)]
mod swap_error_tests {
use super::*;
use crate::util::test_utils::swap_test_fixture::*;
#[test]
#[should_panic(expected = "TickArraySequenceInvalidIndex")]
/// A swap with a price limit outside of the tick-range and a large
/// enough expected trade amount to move the next tick-index out of the tick-range
/// limit,c2...|____________|_________________|____c1__________|
///
/// Expectation:
/// Fail on InvalidTickSequence as the tick-range is insufficent for the trade request.
fn insufficient_tick_array_range_test_a_to_b() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000,
curr_tick_index: 0, // c1
start_tick_index: 0,
trade_amount: 1_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(-5576), // limit
amount_specified_is_input: false,
a_to_b: true,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
#[should_panic(expected = "TickArraySequenceInvalidIndex")]
/// A swap with a price limit outside of the tick-range and a large
/// enough expected trade amount to move the next tick-index out of the tick-range
/// |__c1__________|_________________|______________|...limit,c2
///
/// Expectation:
/// Fail on InvalidTickSequence as the tick-range is insufficent for the trade request.
fn insufficient_tick_array_range_test_b_to_a() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000,
curr_tick_index: 0, // c1
start_tick_index: 0,
trade_amount: 1_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(5576), // limit
amount_specified_is_input: false,
a_to_b: false,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
/// A swap with the pool's current tick index at sqrt-price 0.
///
/// Expectation:
/// The swap should succeed without dividing by 0.
fn swap_starts_from_sqrt_price_0() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000_000_000,
curr_tick_index: 0, // c1
start_tick_index: 0,
trade_amount: 1_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(576), // limit
amount_specified_is_input: false,
a_to_b: false,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 1000000,
traded_amount_b: 1000201,
end_tick_index: 4,
end_liquidity: 5_000_000_000,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
/// A swap with the pool's next tick index at sqrt-price 0.
///
/// Expectation:
/// The swap should succeed without dividing by 0.
fn swap_ends_at_sqrt_price_0() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 119900,
curr_tick_index: 10, // c1
start_tick_index: 0,
trade_amount: 59,
sqrt_price_limit: sqrt_price_from_tick_index(-5), // limit
amount_specified_is_input: false,
a_to_b: true,
..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.run(&mut tick_sequence, 100);
assert_swap(
&post_swap,
&SwapTestExpectation {
traded_amount_a: 59,
traded_amount_b: 59,
end_tick_index: 0,
end_liquidity: 119900,
end_reward_growths: [0, 0, 0],
},
)
}
#[test]
#[should_panic(expected = "ZeroTradableAmount")]
/// A swap with zero tradable amount.
///
/// Expectation
/// The swap should go through without moving the price and swappping anything.
fn swap_zero_tokens() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_8,
liquidity: 5_000_000_000,
curr_tick_index: -225365, // c1
start_tick_index: -225792,
trade_amount: 0,
sqrt_price_limit: sqrt_price_from_tick_index(-225380), // limit
amount_specified_is_input: false,
a_to_b: true,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
#[should_panic(expected = "InvalidTimestamp")]
/// A swap with an invalid timestamp.
///
/// Expectation
/// The swap should fail due to the current timestamp being stale.
fn swap_invalid_timestamp() {
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: 500_000,
curr_tick_index: -322176,
start_tick_index: -322176,
trade_amount: 1_000_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(0),
amount_specified_is_input: false,
a_to_b: false,
reward_last_updated_timestamp: 1000,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
#[test]
#[should_panic(expected = "AmountCalcOverflow")]
// Swapping at high liquidity/price can lead to an amount calculated
// overflow u64
//
// Expectation
// The swap should fail to do amount calculated overflowing.
fn swap_does_not_overflow() {
// Use filled arrays to minimize the overflow from calculations, rather than accumulation
let array_1_ticks: Vec<TestTickInfo> = build_filled_tick_array(439296, TS_128);
let array_2_ticks: Vec<TestTickInfo> = build_filled_tick_array(439296 - 88 * 128, TS_128);
let array_3_ticks: Vec<TestTickInfo> =
build_filled_tick_array(439296 - 2 * 88 * 128, TS_128);
let swap_test_info = SwapTestFixture::new(SwapTestFixtureInfo {
tick_spacing: TS_128,
liquidity: (u32::MAX as u128) << 2,
curr_tick_index: MAX_TICK_INDEX - 1, // c1
start_tick_index: 439296,
trade_amount: 1_000_000_000_000,
sqrt_price_limit: sqrt_price_from_tick_index(0), // limit
amount_specified_is_input: true,
array_1_ticks: &array_1_ticks,
array_2_ticks: Some(&array_2_ticks),
array_3_ticks: Some(&array_3_ticks),
a_to_b: true,
..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()),
);
swap_test_info.run(&mut tick_sequence, 100);
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk/next/next.config.js
|
import NextBundleAnalyzer from "@next/bundle-analyzer";
import CopyWebpackPlugin from "copy-webpack-plugin";
const nextConfig = {
serverExternalPackages: ["@orca-so/whirlpools-core"],
webpack(config, { isServer }) {
config.experiments.asyncWebAssembly = true;
// Copy `orca_whirlpools_core_js_bindings_bg.wasm` file
// This is only needed because of the monorepo setup
// (local dependencies are symlinked and next doesn't like that)
config.plugins.push(
new CopyWebpackPlugin({
patterns: [
{
from: "../../../ts-sdk/core/dist/nodejs/orca_whirlpools_core_js_bindings_bg.wasm",
to: "./server/app",
},
],
}),
);
// The following supresses a warning about using top-level-await and is optional
if (!isServer) {
config.output.environment = {
...config.output.environment,
asyncFunction: true,
};
}
return config;
},
eslint: {
ignoreDuringBuilds: true,
},
reactStrictMode: true,
};
const withBundleAnalyzer = NextBundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});
export default withBundleAnalyzer(nextConfig);
| 0
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk/next/next-env.d.ts
|
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
| 0
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk/next/package.json
|
{
"name": "@orca-so/whirlpools-example-ts-next",
"version": "0.1.0",
"type": "module",
"scripts": {
"start": "next dev",
"build": "next build",
"clean": "rimraf .next"
},
"dependencies": {
"@orca-so/whirlpools": "*",
"@solana/web3.js": "^2.0.0",
"next": "^15.1.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@next/bundle-analyzer": "^15.1.0",
"@types/node": "^22.10.2",
"@types/react": "^18.3.13",
"copy-webpack-plugin": "^12.0.2",
"typescript": "^5.7.2"
}
}
| 0
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk/next/tsconfig.json
|
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"jsx": "preserve",
"plugins": [
{
"name": "next"
}
],
"noEmit": true,
"incremental": true
},
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
| 0
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk/next
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk/next/app/layout.tsx
|
import { ReactNode } from "react";
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}
| 0
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk/next
|
solana_public_repos/orca-so/whirlpools/examples/ts-sdk/next/app/page.tsx
|
"use client";
import { fetchPositionsForOwner, PositionOrBundle } from "@orca-so/whirlpools";
import { tickIndexToSqrtPrice } from "@orca-so/whirlpools-core";
import { useCallback, useMemo, useState } from "react";
import { createSolanaRpc, mainnet, address, devnet } from "@solana/web3.js";
export default function Page() {
const [positions, setPositions] = useState<PositionOrBundle[]>([]);
const [owner, setOwner] = useState<string>("");
const [tickIndex, setTickIndex] = useState<string>("");
const [sqrtPrice, setSqrtPrice] = useState<bigint>();
const rpc = useMemo(() => {
if (!process.env.NEXT_PUBLIC_RPC_URL) {
console.error("NEXT_PUBLIC_RPC_URL is not set");
return createSolanaRpc(devnet("https://api.devnet.solana.com"));
}
return createSolanaRpc(mainnet(process.env.NEXT_PUBLIC_RPC_URL));
}, [process.env.NEXT_PUBLIC_RPC_URL]);
const fetchPositions = useCallback(async () => {
const positions = await fetchPositionsForOwner(rpc, address(owner));
setPositions(positions);
}, [owner]);
const convertTickIndex = useCallback(() => {
const index = parseInt(tickIndex);
setSqrtPrice(tickIndexToSqrtPrice(index));
}, [tickIndex]);
return (
<div>
<p>
<input
type="number"
value={tickIndex}
onChange={(e) => setTickIndex(e.target.value)}
/>{" "}
<button onClick={() => convertTickIndex()}>Convert</button>{" "}
{sqrtPrice !== undefined && <>Sqrt Price: {sqrtPrice.toString()}</>}
</p>
<p>
<input
type="text"
value={owner}
onChange={(e) => setOwner(e.target.value)}
/>{" "}
<button onClick={() => fetchPositions()}>Fetch Positions</button>{" "}
{positions.length > 0 && <>{positions.length} positions found</>}
</p>
</div>
);
}
| 0
|
solana_public_repos/orca-so/whirlpools/examples/rust-sdk
|
solana_public_repos/orca-so/whirlpools/examples/rust-sdk/whirlpool_repositioning_bot/Cargo.toml
|
[package]
name = "whirlpool_repositioning_bot"
version = "0.1.0"
edition = "2021"
[dependencies]
clap = { version = "^4.5.21", features = ["derive"] }
colored = { version = "^2.0" }
orca_whirlpools = { path = '../../../rust-sdk/whirlpool' }
orca_whirlpools_client = { path = '../../../rust-sdk/client' }
orca_whirlpools_core = { path = '../../../rust-sdk/core' }
serde_json = { version = "^1.0" }
solana-client = { version = "^1.18" }
solana-sdk = { version = "^1.18" }
spl-token-2022 = { version = "^3.0" }
spl-associated-token-account = { version = "^3.0" }
tokio = { version = "^1.41.1" }
tokio-retry = { version = "^0.3.0" }
dotenv = { version = "^0.15.0"}
| 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.