├── .gitignore
├── README.md
└── sui
├── cetus_clmm
├── Move.lock
├── Move.toml
├── README.md
└── sources
│ ├── acl.move
│ ├── config.move
│ ├── factory.move
│ ├── math
│ ├── clmm_math.move
│ └── tick_math.move
│ ├── partner.move
│ ├── pool.move
│ ├── pool_creator.move
│ ├── position.move
│ ├── rewarder.move
│ ├── tick.move
│ └── utils.move
├── dca
├── .gitignore
├── Move.lock
├── Move.toml
├── README.md
├── dca.png
└── sources
│ ├── acl.move
│ ├── config.move
│ └── order.move
├── limit-order
├── .gitignore
├── Move.lock
├── Move.toml
├── README.md
└── sources
│ ├── acl.move
│ ├── config.move
│ └── order.move
├── lp_burn
├── Move.lock
├── Move.toml
├── README.md
└── sources
│ └── lp_burn.move
├── stable_farming
├── Move.lock
├── Move.toml
├── README.md
└── sources
│ ├── acl.move
│ ├── config.move
│ ├── pool.move
│ ├── rewarder.move
│ └── router.move
├── token
├── .gitignore
├── README.md
├── cetus
│ ├── Move.lock
│ ├── Move.toml
│ └── sources
│ │ └── cetus.move
├── dividends
│ ├── Move.lock
│ ├── Move.toml
│ ├── README.md
│ └── sources
│ │ ├── dividend.move
│ │ └── router.move
└── xcetus
│ ├── Move.lock
│ ├── Move.toml
│ ├── README.md
│ └── sources
│ ├── lock_coin.move
│ ├── locking.move
│ ├── router.move
│ └── xcetus.move
└── vaults
├── .gitignore
├── Move.lock
├── Move.toml
├── README.md
└── sources
├── acl.move
├── fetcher.move
├── router.move
└── vaults.move
/.gitignore:
--------------------------------------------------------------------------------
1 | sui/cetus_clmm/build
2 | sui/cetus_clmm/.idea/
3 | sui/lp_burn/build
4 | sui/stable_farming/build
5 | sui/.idea/
6 | .idea/
7 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Cetus clmm interface
2 |
3 |
4 | 
5 |
6 |
7 |
8 |
23 |
24 | ## Projects
25 |
26 | ### Latest Published At Table
27 |
28 | - **Mainnet**
29 |
30 | | Contract | Latest published at address |
31 | | -------------- | ------------------------------------------------------------------ |
32 | | cetusclmm | 0xc6faf3703b0e8ba9ed06b7851134bbbe7565eb35ff823fd78432baa4cbeaa12e |
33 | | lp_burn | 0xb6ec861eec8c550269dc29a1662008a816ac4756df723af5103075b665e32e65 |
34 | | dca | 0x587614620d0d30aed66d86ffd3ba385a661a86aa573a4d579017068f561c6d8f |
35 | | limitorder | 0x533fab9a116080e2cb1c87f1832c1bf4231ab4c32318ced041e75cc28604bba9 |
36 | | stable_farming | 0x7e4ca066f06a1132ab0499c8c0b87f847a0d90684afa902e52501a44dbd81992 |
37 | | xcetus | 0x9e69acc50ca03bc943c4f7c5304c2a6002d507b51c11913b247159c60422c606 |
38 | | dividends | 0xcec352932edc6663a118e8d64ed54da6b8107e8719603bf728f80717592cd9e8 |
39 | | vaults | 0x58e5de6e425397eeaf952d55c0f94637bee91b25d6138ce222f89cda0aefec03 |
40 |
41 | - **Testnet**
42 |
43 | | Contract | Latest published at address |
44 | | -------------- | ------------------------------------------------------------------ |
45 | | cetusclmm | 0xb2a1d27337788bda89d350703b8326952413bd94b35b9b573ac8401b9803d018 |
46 | | lp_burn | 0x9c751fccc633f3ebad2becbe7884e5f38b4e497127689be0d404b24f79d95d71 |
47 | | dca | 0xacd0ab94883a8785c5258388618b6252f0c2e9384b23f91fc23f6c8ef44d445c |
48 | | limitorder | 0xc65bc51d2bc2fdbce8c701f8d812da80fb37dba9cdf97ce38f60ab18c5202b17 |
49 | | stable_farming | 0x3c4582ee27a09f7e6c091022d0d279fdc8e54c1f782916bf135a71a8e8006aa5 |
50 | | xcetus | 0xdebaab6b851fd3414c0a62dbdf8eb752d6b0d31f5cfce5e38541bc6c6daa8966 |
51 | | dividends | 0x20d948d640edd0c749f533d41efc5f843f212d441220324ad7959c6e1d281828 |
52 | | vaults | 0x04df17a109336491867f04df40ca8a77277bc6e382139e88ae0d0d267ac07905 |
53 |
54 | ### Cetus CLMM
55 |
56 | The Cetus CLMM Interface provider all core features function interface of CLMM, allowing users to easily connect with CLMM by contract. For more detailed information, please refer to the CLMM README document. [CLMM README Document](./sui/cetus_clmm/README.md)
57 |
58 | ### LP Burn
59 |
60 | The Cetus LP Burn integrate all core lp burn interface of Stable Farming, For more detailed information, please refer to the LP Burn README document. [LP Burn README Document](./sui/lp_burn/README.md)
61 |
62 | ### Stable Farming
63 |
64 | The Cetus Stable Farming integrate all core features function interface of Stable Farming, For more detailed information, please refer to the Stable Farming README document. [Stable Farming README Document](./sui/stable_farming/README.md)
65 |
66 | ### Token
67 |
68 | The Cetus Token Interface integrates cetus, xcetus, dividends. For more detailed information, please refer to the Token README document. [Token README Document](./sui/token/README.md)
69 |
70 | ### Limit Order
71 |
72 | The Cetus Limit Order seamlessly integrates all core functionalities of the Limit Order interface. For more detailed information, please refer to the Limit Order README document. [Limit Order README Document](./sui/limitorder/README.md)
73 |
74 | ### DCA
75 |
76 | The Cetus DCA integrates all core functionalities of the DCA interface. For more detailed information, please refer to the DCA README document. [DCA README Document](./sui/dca/README.md)
77 |
78 | ### Vaults
79 |
80 | The Cetus vaults integrates all core functionalities of the vaults interface. For more detailed information, please refer to the Vaults README document. [Vaults README Document](./sui/vaults/README.md)
81 |
82 | ## How to migrate to the latest version?
83 |
84 | ### Why need to migrate?
85 |
86 | Cetus has already updated to the new CLMM contract and will disable the old version of the CLMM contract. The following contracts will need to be updated simultaneously:
87 | integrate, stable farming, vault, aggregator, lp burn.
88 |
89 | ### Clmm contract update details
90 |
91 | This update introduces new methods for pool creation, with the primary change being mandatory liquidity provision for new pools. To create a new pool, you can use either:
92 |
93 | - **pool_creator.create_pool_v2** on the cetus_clmm contract
94 | - **pool_creator_v2.create_pool_v2** on the integrate contract
95 |
96 | **Note**: The previous creation method `factory.create_pool` is permissioned, and `factory.create_pool_with_liquidity` is deprecated in this update. The `pool_creator.create_pool_v2_by_creation_cap` method is deprecated, please use `pool_creator.create_pool_v2_with_creation_cap`.
97 |
98 | ```rust
99 | // cetus_clmm.pool_creator.create_pool_v2
100 | public fun create_pool_v2