degenbot.uniswap.math ===================== .. py:module:: degenbot.uniswap.math .. autoapi-nested-parse:: Stable companion home for concentrated-liquidity math functions. Re-exports the Rust-backed math from the ``degenbot._ffi.concentrated_liquidity_math`` submodule with un-prefixed names. Importers should use:: from degenbot.uniswap.math import muldiv, compute_swap_step_v3 rather than reaching into ``degenbot._ffi`` directly — this path is stable across future Rust reshuffles, and lets the Rust crate structure (``degenbot-concentrated-liquidity-math``) show through to Python. The functions are thin PyO3 wrappers over the pure-Rust ``degenbot-concentrated-liquidity-math`` core crate. The CL math is shared across Uniswap V3 and V4, so this companion lives at ``degenbot.uniswap.math`` (variant-neutral), shared by the V3 and V4 families.