You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+158-3Lines changed: 158 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,45 @@
23
23
24
24
## Projects
25
25
26
-
### CLMM Interface
26
+
### Latest Published At Table
27
27
28
-
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/clmmpool/README.md)
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 Stable Farming README document. [Stable Farming README Document](./sui/lp_burn/README.md)
29
61
30
62
### Stable Farming
31
63
32
-
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)
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)
33
65
34
66
### Token
35
67
@@ -43,6 +75,129 @@ The Cetus Limit Order seamlessly integrates all core functionalities of the Limi
43
75
44
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)
45
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:
This update introduces new methods for pool creation, with the primary change being mandatory full-range 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.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.
In these two methods, you can use the fix_amount_a parameter to control which coin amount remains fixed:
133
+
134
+
If `fix_amount_a` is true: The amount of coin_a will be fixed. You should provide the exact amount of coin_a you want to deposit, and the required amount of coin_b will be calculated automatically.
135
+
If `fix_amount_a` is false: The amount of coin_b will be fixed. You should provide the exact amount of coin_b you want to deposit, and the required amount of coin_a will be calculated automatically.
136
+
137
+
In some situations, coin issuers may want to reclaim the capability to create pools, so the protocol implements a `PoolCreationCap` mechanism for coin issuers. Here's how it works:
138
+
Prerequisites:
139
+
140
+
- You must hold the `TreasuryCap` of the coin
141
+
- The `TreasuryCap` must not be frozen
142
+
- Only one `PoolCreationCap` can be minted per coin
143
+
144
+
Steps to create a restricted pool:
145
+
146
+
1. Mint a `PoolCreationCap` using your coin's `TreasuryCap`
147
+
148
+
2. Register a pool by specifying: **Quote coin** and **Tick spacing**.
149
+
150
+
The protocol controls which quote coins and tick_spacing values are permitted for pool registration.
151
+
Currently, only pools with the SUI-200 can be registered.
0 commit comments