//
// Copyright (c) Cryptic Dot
//
// Modification based on Orca Whirlpools (https://github.com/orca-so/whirlpools),
// originally licensed under the Apache License, Version 2.0, prior to February 26, 2025.
//
// Modifications licensed under FusionAMM SDK Source-Available License v1.0
// See the LICENSE file in the project root for license information.
//
use crate::;
/// Computes the limit order output amount by input amount.
/// ### Parameters
/// - `input_amount` - Input amount.
/// - `a_to_b_order` - The limit order direction.
/// - `sqrt_price` - Square root price
/// - `round_up` - Round up if true