def METHOD_NAME(amount: int, sqrt_price_a: Decimal, sqrt_price_b: Decimal) -> Decimal:
    # Swap if sqrt_price_a is greater than sqrt_price_b
    if sqrt_price_a > sqrt_price_b:
        sqrt_price_a, sqrt_price_b = sqrt_price_b, sqrt_price_a
    amount_big_dec = Decimal(amount)
    diff = sqrt_price_b - sqrt_price_a
    if diff == Decimal(0):
        raise Exception(f"liquidity1 diff is zero: sqrtPriceA {sqrt_price_a} sqrtPriceB {sqrt_price_b}")
    result = amount_big_dec / diff
    return round_sdk_prec_down(result)