Skip to content

update: configs - #6

Open
navi-dn wants to merge 1 commit into
mainfrom
upgrade/pyth-oracle-support
Open

update: configs#6
navi-dn wants to merge 1 commit into
mainfrom
upgrade/pyth-oracle-support

Conversation

@navi-dn

@navi-dn navi-dn commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Sync lending_core and oracle with mainnet production code

Brings the public repo up to the currently deployed mainnet packages.

Oracle — Pyth Core upgrade

Pyth is retiring the legacy Core infrastructure. On Sui the replacement is a separate package
lineage, so State and PriceInfoObject are new, incompatible types. Sui upgrade rules forbid
changing public signatures, so every function taking a legacy Pyth type is kept with its original
signature and now abort 0, with the replacement added alongside:

Module Deprecated (abort 0) Replacement
adaptor_pyth get_price_native, get_price_unsafe_native, get_price_to_target_decimal, get_price_unsafe_to_target_decimal, get_identifier_to_vector, get_price_info_object_id same names with _v2
oracle_pro update_single_price_v2, get_price_from_adaptor_v2 update_single_price_v3, get_price_from_adaptor_v3
oracle_dynamic_getter get_dynamic_single_price get_dynamic_single_price_v2
  • oracle_constants::version(): 3 → 4
  • Move.toml: added the pyth_pro_compatible dependency (rename-from = "pyth"). The legacy
    pyth dependency stays permanently — the retained stub signatures reference its types.

Lending core

  • constants::version(): 15 → 16
  • incentive: new admin_withdraw_incentive_bal (owner-gated)

Published packages

Package published-at version
lending_core 0x512f28261c1a293f49416d8885b8d5d32bde6dd68a99a0be36fe42b248e6833a 26
oracle 0x4837ae94425107554c8847721cf9954c1ad8e10520433b9e37dc11c507148bea 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant