degenbot.curve.strategies¶

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¶

class degenbot.curve.strategies.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.

d_variant: degenbot.curve.types.DVariant¶
y_variant: degenbot.curve.types.YVariant¶
yd_variant: degenbot.curve.types.YDVariant¶
swap_style: degenbot.curve.types.SwapStyle¶
metapool_rate_style: degenbot.curve.types.MetapoolRateStyle¶
metapool_underlying_style: degenbot.curve.types.MetapoolUnderlyingStyle¶
lending_rate_style: degenbot.curve.types.LendingRateStyle¶