Default margin Pyth mode per network — the deployment each network's margin package can
actually be called against today.
Testnet is 'upgraded' and cannot go back. Its margin package (v16) carries the
upgraded modules with gate version 7 enabled, and its MarginRegistry was migrated onto
the feed ids upgraded Core carries. Because oracle::validate_feed_id checks both
readers against the configured id, that migration also retired legacy testnet margin —
legacy testnet Core holds only beta-id objects.
Mainnet is 'legacy': margin has not been upgraded there, and XBTC still has no
upgraded PriceInfoObject (the feed itself is served — only the on-chain object is
missing, and creating it is permissionless).
Flip a network here once its margin package is upgraded, its gate version is enabled,
and every coin it prices has a fresh priceInfoObjectIdUpgraded below. Consumers can
flip ahead of a release with new DeepBookClient({ marginPyth: 'upgraded', ... }).
Default margin Pyth mode per network — the deployment each network's margin package can actually be called against today.
Testnet is
'upgraded'and cannot go back. Its margin package (v16) carries the upgraded modules with gate version 7 enabled, and itsMarginRegistrywas migrated onto the feed ids upgraded Core carries. Becauseoracle::validate_feed_idchecks both readers against the configured id, that migration also retired legacy testnet margin — legacy testnet Core holds only beta-id objects.Mainnet is
'legacy': margin has not been upgraded there, and XBTC still has no upgradedPriceInfoObject(the feed itself is served — only the on-chain object is missing, and creating it is permissionless).Flip a network here once its margin package is upgraded, its gate version is enabled, and every coin it prices has a fresh
priceInfoObjectIdUpgradedbelow. Consumers can flip ahead of a release withnew DeepBookClient({ marginPyth: 'upgraded', ... }).