Documentation
    Preparing search index...

    Type Alias MarginPythMode

    MarginPythMode: "legacy" | "upgraded"

    Which Pyth deployment the margin entrypoints price against.

    Pyth's upgraded Core is a separately published package, so its PriceInfoObject is a distinct Move type. A compatible upgrade cannot change a public function's parameter types, so deepbook_margin exposes the upgraded surface as parallel modules (margin_manager_upgraded, pool_proxy_upgraded) and margin_liquidation as parallel entrypoints (liquidate_base_upgraded, liquidate_quote_upgraded), under the same function names. Callers switch module, not function name — which is all this setting does. Every SDK method keeps its name and signature either way.