Version Upgrade Guide

Cetus clmmpool contract may undertake version updates periodically. Old versions may be deprecated as it involves continually. For developers who have conducted their integration with Cetus, they can easily update their integration to the latest version following the instructions.

1. For SDK integrations

You can simply update the clmmpool and integrate published_at in cetus config.

  clmm_pool: {
    package_id: '...',
    published_at: '0x70968826ad1b4ba895753f634b0aea68d0672908ca1075a2abdf0fc9e0b2fc6a',
    config: {
      pools_id: '...',
      global_config_id: '...',
      global_vault_id: '...',
      admin_cap_id: '...',
      partners_id: '...'
    }
  },
  integrate: {
    package_id: '...',
    published_at: '0x6f5e582ede61fe5395b50c4a449ec11479a54d7ff8e0158247adfda60d98970b'
  },

2. For contract integrations

You can update the dependencies in your project's Move.toml

[package]
name= "cetus_example"
version = "0.0.1"

[dependencies]
CetusClmm = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", subdir = "sui/clmmpool", rev = "mainnet-v1.23.1" }

[address]
cetus_example = "0x0"
// don't need to define cetus_clmm duplicate

Last updated