degenbot.curve.strategies ========================= .. py:module:: degenbot.curve.strategies .. autoapi-nested-parse:: Resolved calculation strategies for a Curve pool instance. The pure dy math now lives in the Rust core (``degenbot-curve-math``); the Python companion only carries the resolved enum discriminants (``swap_style``, ``d_variant`` / ``y_variant`` / ``yd_variant``, lending + metapool rate styles) so it can pass them to the Rust handle / builders. The former Python ``DyCalculator`` classes (``degenbot.curve.calculators``) were retired once the swap path became Rust-owned — nothing in the runtime constructs or consumes a Python calculator anymore. Module Contents --------------- .. py:class:: PoolStrategies Resolved calculation strategies for a Curve pool instance. Set at construction time by the builder from the pool address. The pool class is address-agnostic — it only reads these strategy values and passes them to the Rust core. The Rust core derives its math axes from the same enum discriminants, so no Python calculator is auto-constructed here. .. py:attribute:: d_variant :type: degenbot.curve.types.DVariant .. py:attribute:: y_variant :type: degenbot.curve.types.YVariant .. py:attribute:: yd_variant :type: degenbot.curve.types.YDVariant .. py:attribute:: swap_style :type: degenbot.curve.types.SwapStyle .. py:attribute:: metapool_rate_style :type: degenbot.curve.types.MetapoolRateStyle .. py:attribute:: metapool_underlying_style :type: degenbot.curve.types.MetapoolUnderlyingStyle .. py:attribute:: lending_rate_style :type: degenbot.curve.types.LendingRateStyle