@cetusprotocol/aggregator-sdk 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,80 +0,0 @@
1
- # Cetus Aggregator V2 vs V3 Gas Efficiency Analysis
2
-
3
- **Generated**: 2025-07-17T12:03:34.151Z
4
-
5
- ## Executive Summary
6
-
7
- This analysis compares gas consumption between Cetus Aggregator V2 and V3 across multiple DEX providers and trading scenarios.
8
-
9
- ### Key Metrics
10
-
11
- - **Tests Executed**: 1
12
- - **V2 Success Rate**: 100.0%
13
- - **V3 Success Rate**: 100.0%
14
- - **Average Gas Savings**: 27.78%
15
-
16
- ### Gas Consumption Comparison
17
-
18
- | Version | Average Gas (MIST) | Average Gas (SUI) | Success Tests |
19
- |---------|-------------------|-------------------|---------------|
20
- | V2 | 2555288 | 0.002555 | 1 |
21
- | V3 | 1845288 | 0.001845 | 1 |
22
-
23
- ## Analysis
24
-
25
- ### Gas Efficiency
26
-
27
- The V3 aggregator demonstrates **27.78%** average gas savings compared to V2, representing:
28
- - **0.000710 SUI** savings per transaction
29
- - **710000 MIST** reduction in gas consumption
30
-
31
- ### Performance Insights
32
-
33
- ✅ **V3 Improvements**: The V3 client shows measurable gas efficiency improvements through optimized transaction structures and better route selection algorithms.
34
-
35
- ### Success Rate Analysis
36
-
37
- ✅ **Reliability**: V3 maintains or improves success rates while optimizing gas consumption.
38
-
39
- ## Per-Config Analysis
40
-
41
- ### Test Configuration Results
42
-
43
- | Config Name | Amount Multiplier | V2 Success Rate | V3 Success Rate | V2 Avg Gas (MIST) | V3 Avg Gas (MIST) | Gas Savings |
44
- |-------------|------------------|-----------------|-----------------|-------------------|-------------------|-------------|
45
- | MagmaChecker-1_0.1x | 0.1x | 100.0% | 100.0% | 2555288 | 1845288 | 27.79% |
46
-
47
-
48
- ### Detailed Gas Breakdown by Test Case
49
-
50
- #### MagmaChecker-1_0.1x
51
-
52
- **V2 Gas Breakdown:**
53
- - Computation Cost: 1,420,000 MIST
54
- - Storage Cost: 8,352,400 MIST
55
- - Storage Rebate: -7,290,756 MIST
56
- - Non-Refundable Fee: 73,644 MIST
57
- - **Total Gas Cost: 2,555,288 MIST**
58
-
59
- **V3 Gas Breakdown:**
60
- - Computation Cost: 710,000 MIST
61
- - Storage Cost: 8,352,400 MIST
62
- - Storage Rebate: -7,290,756 MIST
63
- - Non-Refundable Fee: 73,644 MIST
64
- - **Total Gas Cost: 1,845,288 MIST**
65
-
66
- **Gas Comparison:**
67
- - Absolute Savings: 710,000 MIST
68
- - Percentage Savings: 27.79%
69
- - V2 to V3 Ratio: 0.722
70
-
71
- ---
72
-
73
-
74
-
75
- ## Conclusion
76
-
77
- The V3 aggregator client represents a significant improvement in gas efficiency, delivering meaningful cost savings for users while maintaining transaction reliability.
78
-
79
- ---
80
- *Generated by Cetus Aggregator Gas Benchmark Tool*
@@ -1,296 +0,0 @@
1
- # Cetus Aggregator V2 vs V3 Gas Efficiency Analysis
2
-
3
- **Generated**: 2025-07-21T03:31:59.267Z
4
-
5
- ## Executive Summary
6
-
7
- This analysis compares gas consumption between Cetus Aggregator V2 and V3 across multiple DEX providers and trading scenarios.
8
-
9
- ### Key Metrics
10
-
11
- - **Tests Executed**: 10
12
- - **V2 Success Rate**: 100.0%
13
- - **V3 Success Rate**: 100.0%
14
- - **Average Gas Savings**: 15.07%
15
-
16
- ### Gas Consumption Comparison
17
-
18
- | Version | Average Gas (MIST) | Average Gas (SUI) | Success Tests |
19
- |---------|-------------------|-------------------|---------------|
20
- | V2 | 2746411 | 0.002746 | 10 |
21
- | V3 | 2332419 | 0.002332 | 10 |
22
-
23
- ## Analysis
24
-
25
- ### Gas Efficiency
26
-
27
- The V3 aggregator demonstrates **15.07%** average gas savings compared to V2, representing:
28
- - **0.000414 SUI** savings per transaction
29
- - **413992 MIST** reduction in gas consumption
30
-
31
- ### Performance Insights
32
-
33
- ✅ **V3 Improvements**: The V3 client shows measurable gas efficiency improvements through optimized transaction structures and better route selection algorithms.
34
-
35
- ### Success Rate Analysis
36
-
37
- ✅ **Reliability**: V3 maintains or improves success rates while optimizing gas consumption.
38
-
39
- ## Per-Config Analysis
40
-
41
- ### Test Configuration Results
42
-
43
- | Config Name | Amount Multiplier | V2 Success Rate | V3 Success Rate | V2 Avg Gas (MIST) | V3 Avg Gas (MIST) | Gas Savings |
44
- |-------------|------------------|-----------------|-----------------|-------------------|-------------------|-------------|
45
- | MagmaChecker-1_0.1x | 0.1x | 100.0% | 100.0% | 2556656 | 1846656 | 27.77% |
46
- | MagmaChecker-1_1x | 1x | 100.0% | 100.0% | 2556656 | 1846656 | 27.77% |
47
- | MagmaChecker-1_10x | 10x | 100.0% | 100.0% | 2764288 | 2054288 | 25.68% |
48
- | MagmaChecker-1_2000x | 2000x | 100.0% | 100.0% | 5052200 | 4342200 | 14.05% |
49
- | CetusChecker-1_0.1x | 0.1x | 100.0% | 100.0% | 2829040 | 2119040 | 25.10% |
50
- | CetusChecker-1_1x | 1x | 100.0% | 100.0% | 2950184 | 2240184 | 24.07% |
51
- | CetusChecker-1_10x | 10x | 100.0% | 100.0% | 3014936 | 3014936 | 0.00% |
52
- | CetusChecker-1_2000x | 2000x | 100.0% | 100.0% | 1913384 | 1913384 | 0.00% |
53
- | CetusChecker-2_0.1x | 0.1x | 100.0% | 100.0% | 1913384 | 2033464 | -6.28% |
54
- | CetusChecker-2_1x | 1x | 100.0% | 100.0% | 1913384 | 1913384 | 0.00% |
55
-
56
-
57
- ### Detailed Gas Breakdown by Test Case
58
-
59
- #### MagmaChecker-1_0.1x
60
-
61
- **V2 Gas Breakdown:**
62
- - Computation Cost: 1,420,000 MIST
63
- - Storage Cost: 8,420,800 MIST
64
- - Storage Rebate: -7,358,472 MIST
65
- - Non-Refundable Fee: 74,328 MIST
66
- - **Total Gas Cost: 2,556,656 MIST**
67
-
68
- **V3 Gas Breakdown:**
69
- - Computation Cost: 710,000 MIST
70
- - Storage Cost: 8,420,800 MIST
71
- - Storage Rebate: -7,358,472 MIST
72
- - Non-Refundable Fee: 74,328 MIST
73
- - **Total Gas Cost: 1,846,656 MIST**
74
-
75
- **Gas Comparison:**
76
- - Absolute Savings: 710,000 MIST
77
- - Percentage Savings: 27.77%
78
- - V2 to V3 Ratio: 0.722
79
-
80
- ---
81
-
82
- #### MagmaChecker-1_1x
83
-
84
- **V2 Gas Breakdown:**
85
- - Computation Cost: 1,420,000 MIST
86
- - Storage Cost: 8,420,800 MIST
87
- - Storage Rebate: -7,358,472 MIST
88
- - Non-Refundable Fee: 74,328 MIST
89
- - **Total Gas Cost: 2,556,656 MIST**
90
-
91
- **V3 Gas Breakdown:**
92
- - Computation Cost: 710,000 MIST
93
- - Storage Cost: 8,420,800 MIST
94
- - Storage Rebate: -7,358,472 MIST
95
- - Non-Refundable Fee: 74,328 MIST
96
- - **Total Gas Cost: 1,846,656 MIST**
97
-
98
- **Gas Comparison:**
99
- - Absolute Savings: 710,000 MIST
100
- - Percentage Savings: 27.77%
101
- - V2 to V3 Ratio: 0.722
102
-
103
- ---
104
-
105
- #### MagmaChecker-1_10x
106
-
107
- **V2 Gas Breakdown:**
108
- - Computation Cost: 1,420,000 MIST
109
- - Storage Cost: 18,802,400 MIST
110
- - Storage Rebate: -17,636,256 MIST
111
- - Non-Refundable Fee: 178,144 MIST
112
- - **Total Gas Cost: 2,764,288 MIST**
113
-
114
- **V3 Gas Breakdown:**
115
- - Computation Cost: 710,000 MIST
116
- - Storage Cost: 18,802,400 MIST
117
- - Storage Rebate: -17,636,256 MIST
118
- - Non-Refundable Fee: 178,144 MIST
119
- - **Total Gas Cost: 2,054,288 MIST**
120
-
121
- **Gas Comparison:**
122
- - Absolute Savings: 710,000 MIST
123
- - Percentage Savings: 25.68%
124
- - V2 to V3 Ratio: 0.743
125
-
126
- ---
127
-
128
- #### MagmaChecker-1_2000x
129
-
130
- **V2 Gas Breakdown:**
131
- - Computation Cost: 2,130,000 MIST
132
- - Storage Cost: 97,698,000 MIST
133
- - Storage Rebate: -95,742,900 MIST
134
- - Non-Refundable Fee: 967,100 MIST
135
- - **Total Gas Cost: 5,052,200 MIST**
136
-
137
- **V3 Gas Breakdown:**
138
- - Computation Cost: 1,420,000 MIST
139
- - Storage Cost: 97,698,000 MIST
140
- - Storage Rebate: -95,742,900 MIST
141
- - Non-Refundable Fee: 967,100 MIST
142
- - **Total Gas Cost: 4,342,200 MIST**
143
-
144
- **Gas Comparison:**
145
- - Absolute Savings: 710,000 MIST
146
- - Percentage Savings: 14.05%
147
- - V2 to V3 Ratio: 0.859
148
-
149
- ---
150
-
151
- #### CetusChecker-1_0.1x
152
-
153
- **V2 Gas Breakdown:**
154
- - Computation Cost: 1,420,000 MIST
155
- - Storage Cost: 22,040,000 MIST
156
- - Storage Rebate: -20,841,480 MIST
157
- - Non-Refundable Fee: 210,520 MIST
158
- - **Total Gas Cost: 2,829,040 MIST**
159
-
160
- **V3 Gas Breakdown:**
161
- - Computation Cost: 710,000 MIST
162
- - Storage Cost: 22,040,000 MIST
163
- - Storage Rebate: -20,841,480 MIST
164
- - Non-Refundable Fee: 210,520 MIST
165
- - **Total Gas Cost: 2,119,040 MIST**
166
-
167
- **Gas Comparison:**
168
- - Absolute Savings: 710,000 MIST
169
- - Percentage Savings: 25.10%
170
- - V2 to V3 Ratio: 0.749
171
-
172
- ---
173
-
174
- #### CetusChecker-1_1x
175
-
176
- **V2 Gas Breakdown:**
177
- - Computation Cost: 1,420,000 MIST
178
- - Storage Cost: 28,097,200 MIST
179
- - Storage Rebate: -26,838,108 MIST
180
- - Non-Refundable Fee: 271,092 MIST
181
- - **Total Gas Cost: 2,950,184 MIST**
182
-
183
- **V3 Gas Breakdown:**
184
- - Computation Cost: 710,000 MIST
185
- - Storage Cost: 28,097,200 MIST
186
- - Storage Rebate: -26,838,108 MIST
187
- - Non-Refundable Fee: 271,092 MIST
188
- - **Total Gas Cost: 2,240,184 MIST**
189
-
190
- **Gas Comparison:**
191
- - Absolute Savings: 710,000 MIST
192
- - Percentage Savings: 24.07%
193
- - V2 to V3 Ratio: 0.759
194
-
195
- ---
196
-
197
- #### CetusChecker-1_10x
198
-
199
- **V2 Gas Breakdown:**
200
- - Computation Cost: 1,420,000 MIST
201
- - Storage Cost: 31,334,800 MIST
202
- - Storage Rebate: -30,043,332 MIST
203
- - Non-Refundable Fee: 303,468 MIST
204
- - **Total Gas Cost: 3,014,936 MIST**
205
-
206
- **V3 Gas Breakdown:**
207
- - Computation Cost: 1,420,000 MIST
208
- - Storage Cost: 31,334,800 MIST
209
- - Storage Rebate: -30,043,332 MIST
210
- - Non-Refundable Fee: 303,468 MIST
211
- - **Total Gas Cost: 3,014,936 MIST**
212
-
213
- **Gas Comparison:**
214
- - Absolute Savings: 0 MIST
215
- - Percentage Savings: 0.00%
216
- - V2 to V3 Ratio: 1.000
217
-
218
- ---
219
-
220
- #### CetusChecker-1_2000x
221
-
222
- **V2 Gas Breakdown:**
223
- - Computation Cost: 710,000 MIST
224
- - Storage Cost: 11,757,200 MIST
225
- - Storage Rebate: -10,661,508 MIST
226
- - Non-Refundable Fee: 107,692 MIST
227
- - **Total Gas Cost: 1,913,384 MIST**
228
-
229
- **V3 Gas Breakdown:**
230
- - Computation Cost: 710,000 MIST
231
- - Storage Cost: 11,757,200 MIST
232
- - Storage Rebate: -10,661,508 MIST
233
- - Non-Refundable Fee: 107,692 MIST
234
- - **Total Gas Cost: 1,913,384 MIST**
235
-
236
- **Gas Comparison:**
237
- - Absolute Savings: 0 MIST
238
- - Percentage Savings: 0.00%
239
- - V2 to V3 Ratio: 1.000
240
-
241
- ---
242
-
243
- #### CetusChecker-2_0.1x
244
-
245
- **V2 Gas Breakdown:**
246
- - Computation Cost: 710,000 MIST
247
- - Storage Cost: 11,757,200 MIST
248
- - Storage Rebate: -10,661,508 MIST
249
- - Non-Refundable Fee: 107,692 MIST
250
- - **Total Gas Cost: 1,913,384 MIST**
251
-
252
- **V3 Gas Breakdown:**
253
- - Computation Cost: 710,000 MIST
254
- - Storage Cost: 17,761,200 MIST
255
- - Storage Rebate: -16,605,468 MIST
256
- - Non-Refundable Fee: 167,732 MIST
257
- - **Total Gas Cost: 2,033,464 MIST**
258
-
259
- **Gas Comparison:**
260
- - Absolute Savings: -120,080 MIST
261
- - Percentage Savings: -6.28%
262
- - V2 to V3 Ratio: 1.063
263
-
264
- ---
265
-
266
- #### CetusChecker-2_1x
267
-
268
- **V2 Gas Breakdown:**
269
- - Computation Cost: 710,000 MIST
270
- - Storage Cost: 11,757,200 MIST
271
- - Storage Rebate: -10,661,508 MIST
272
- - Non-Refundable Fee: 107,692 MIST
273
- - **Total Gas Cost: 1,913,384 MIST**
274
-
275
- **V3 Gas Breakdown:**
276
- - Computation Cost: 710,000 MIST
277
- - Storage Cost: 11,757,200 MIST
278
- - Storage Rebate: -10,661,508 MIST
279
- - Non-Refundable Fee: 107,692 MIST
280
- - **Total Gas Cost: 1,913,384 MIST**
281
-
282
- **Gas Comparison:**
283
- - Absolute Savings: 0 MIST
284
- - Percentage Savings: 0.00%
285
- - V2 to V3 Ratio: 1.000
286
-
287
- ---
288
-
289
-
290
-
291
- ## Conclusion
292
-
293
- The V3 aggregator client represents a significant improvement in gas efficiency, delivering meaningful cost savings for users while maintaining transaction reliability.
294
-
295
- ---
296
- *Generated by Cetus Aggregator Gas Benchmark Tool*
@@ -1,323 +0,0 @@
1
- # Cetus Aggregator V2 vs V3 Gas Efficiency Analysis
2
-
3
- **Generated**: 2025-07-21T07:54:54.921Z
4
-
5
- ## Executive Summary
6
-
7
- This analysis compares gas consumption between Cetus Aggregator V2 and V3 across multiple DEX providers and trading scenarios.
8
-
9
- ### Key Metrics
10
-
11
- - **Tests Executed**: 10
12
- - **V2 Success Rate**: 100.0%
13
- - **V3 Success Rate**: 100.0%
14
- - **Average Gas Savings**: 2.23%
15
-
16
- ### Gas Consumption Comparison
17
-
18
- | Version | Average Gas (MIST) | Average Gas (SUI) | Success Tests |
19
- |---------|-------------------|-------------------|---------------|
20
- | V2 | 3050989 | 0.003051 | 10 |
21
- | V3 | 2982724 | 0.002983 | 10 |
22
-
23
- ## Analysis
24
-
25
- ### Gas Efficiency
26
-
27
- The V3 aggregator demonstrates **2.23%** average gas savings compared to V2, representing:
28
- - **0.000068 SUI** savings per transaction
29
- - **68265 MIST** reduction in gas consumption
30
-
31
- ### Performance Insights
32
-
33
- ✅ **V3 Improvements**: The V3 client shows measurable gas efficiency improvements through optimized transaction structures and better route selection algorithms.
34
-
35
- ### Success Rate Analysis
36
-
37
- ✅ **Reliability**: V3 maintains or improves success rates while optimizing gas consumption.
38
-
39
- ## Per-Config Analysis
40
-
41
- ### Test Configuration Results
42
-
43
- | Config Name | Amount Multiplier | V2 Success Rate | V3 Success Rate | V2 Avg Gas (MIST) | V3 Avg Gas (MIST) | Gas Savings | V2 Avg Paths | V2 Merged | V3 Avg Paths | V3 Merged | Path Reduction |
44
- |-------------|------------------|-----------------|-----------------|-------------------|-------------------|-------------|--------------|-----------|--------------|-----------|----------------|
45
- | MagmaChecker-1_0.1x | 0.1x | 100.0% | 100.0% | 2815816 | 2105816 | 25.21% | 2.0 | 2.0 | 2.0 | 2.0 | 0.0% |
46
- | MagmaChecker-1_1x | 1x | 100.0% | 100.0% | 3206456 | 2496456 | 22.14% | 3.0 | 3.0 | 3.0 | 3.0 | 0.0% |
47
- | MagmaChecker-1_10x | 10x | 100.0% | 100.0% | 3470936 | 3470936 | 0.00% | 4.0 | 4.0 | 4.0 | 4.0 | 0.0% |
48
- | MagmaChecker-1_2000x | 2000x | 100.0% | 100.0% | 5270776 | 4560776 | 13.47% | 2.0 | 2.0 | 2.0 | 2.0 | 0.0% |
49
- | CetusChecker-1_0.1x | 0.1x | 100.0% | 100.0% | 2007168 | 2007168 | 0.00% | 2.0 | 2.0 | 2.0 | 2.0 | 0.0% |
50
- | CetusChecker-1_1x | 1x | 100.0% | 100.0% | 1884200 | 1884200 | 0.00% | 1.0 | 1.0 | 1.0 | 1.0 | 0.0% |
51
- | CetusChecker-1_10x | 10x | 100.0% | 100.0% | 2034528 | 3014936 | -48.19% | 2.0 | 2.0 | 4.0 | 4.0 | 0.0% |
52
- | CetusChecker-1_2000x | 2000x | 100.0% | 100.0% | 1913384 | 1913384 | 0.00% | 1.0 | 1.0 | 1.0 | 1.0 | 0.0% |
53
- | CetusChecker-2_0.1x | 0.1x | 100.0% | 100.0% | 2034528 | 5084888 | -149.93% | 2.0 | 2.0 | 10.0 | 9.0 | 10.0% |
54
- | CetusChecker-2_1x | 1x | 100.0% | 100.0% | 5872104 | 3288688 | 43.99% | 11.0 | 11.0 | 7.0 | 6.0 | 14.3% |
55
-
56
-
57
- ### Detailed Gas Breakdown by Test Case
58
-
59
- #### MagmaChecker-1_0.1x
60
-
61
- **V2 Gas Breakdown:**
62
- - Computation Cost: 1,420,000 MIST
63
- - Storage Cost: 21,378,800 MIST
64
- - Storage Rebate: -20,186,892 MIST
65
- - Non-Refundable Fee: 203,908 MIST
66
- - **Total Gas Cost: 2,815,816 MIST**
67
-
68
- **V3 Gas Breakdown:**
69
- - Computation Cost: 710,000 MIST
70
- - Storage Cost: 21,378,800 MIST
71
- - Storage Rebate: -20,186,892 MIST
72
- - Non-Refundable Fee: 203,908 MIST
73
- - **Total Gas Cost: 2,105,816 MIST**
74
-
75
- **Gas Comparison:**
76
- - Absolute Savings: 710,000 MIST
77
- - Percentage Savings: 25.21%
78
- - V2 to V3 Ratio: 0.748
79
-
80
- ---
81
-
82
- #### MagmaChecker-1_1x
83
-
84
- **V2 Gas Breakdown:**
85
- - Computation Cost: 1,420,000 MIST
86
- - Storage Cost: 40,910,800 MIST
87
- - Storage Rebate: -39,523,572 MIST
88
- - Non-Refundable Fee: 399,228 MIST
89
- - **Total Gas Cost: 3,206,456 MIST**
90
-
91
- **V3 Gas Breakdown:**
92
- - Computation Cost: 710,000 MIST
93
- - Storage Cost: 40,910,800 MIST
94
- - Storage Rebate: -39,523,572 MIST
95
- - Non-Refundable Fee: 399,228 MIST
96
- - **Total Gas Cost: 2,496,456 MIST**
97
-
98
- **Gas Comparison:**
99
- - Absolute Savings: 710,000 MIST
100
- - Percentage Savings: 22.14%
101
- - V2 to V3 Ratio: 0.779
102
-
103
- ---
104
-
105
- #### MagmaChecker-1_10x
106
-
107
- **V2 Gas Breakdown:**
108
- - Computation Cost: 1,420,000 MIST
109
- - Storage Cost: 54,134,800 MIST
110
- - Storage Rebate: -52,615,332 MIST
111
- - Non-Refundable Fee: 531,468 MIST
112
- - **Total Gas Cost: 3,470,936 MIST**
113
-
114
- **V3 Gas Breakdown:**
115
- - Computation Cost: 1,420,000 MIST
116
- - Storage Cost: 54,134,800 MIST
117
- - Storage Rebate: -52,615,332 MIST
118
- - Non-Refundable Fee: 531,468 MIST
119
- - **Total Gas Cost: 3,470,936 MIST**
120
-
121
- **Gas Comparison:**
122
- - Absolute Savings: 0 MIST
123
- - Percentage Savings: 0.00%
124
- - V2 to V3 Ratio: 1.000
125
-
126
- ---
127
-
128
- #### MagmaChecker-1_2000x
129
-
130
- **V2 Gas Breakdown:**
131
- - Computation Cost: 2,130,000 MIST
132
- - Storage Cost: 108,626,800 MIST
133
- - Storage Rebate: -106,562,412 MIST
134
- - Non-Refundable Fee: 1,076,388 MIST
135
- - **Total Gas Cost: 5,270,776 MIST**
136
-
137
- **V3 Gas Breakdown:**
138
- - Computation Cost: 1,420,000 MIST
139
- - Storage Cost: 108,626,800 MIST
140
- - Storage Rebate: -106,562,412 MIST
141
- - Non-Refundable Fee: 1,076,388 MIST
142
- - **Total Gas Cost: 4,560,776 MIST**
143
-
144
- **Gas Comparison:**
145
- - Absolute Savings: 710,000 MIST
146
- - Percentage Savings: 13.47%
147
- - V2 to V3 Ratio: 0.865
148
-
149
- ---
150
-
151
- #### CetusChecker-1_0.1x
152
-
153
- **V2 Gas Breakdown:**
154
- - Computation Cost: 710,000 MIST
155
- - Storage Cost: 16,446,400 MIST
156
- - Storage Rebate: -15,303,816 MIST
157
- - Non-Refundable Fee: 154,584 MIST
158
- - **Total Gas Cost: 2,007,168 MIST**
159
-
160
- **V3 Gas Breakdown:**
161
- - Computation Cost: 710,000 MIST
162
- - Storage Cost: 16,446,400 MIST
163
- - Storage Rebate: -15,303,816 MIST
164
- - Non-Refundable Fee: 154,584 MIST
165
- - **Total Gas Cost: 2,007,168 MIST**
166
-
167
- **Gas Comparison:**
168
- - Absolute Savings: 0 MIST
169
- - Percentage Savings: 0.00%
170
- - V2 to V3 Ratio: 1.000
171
-
172
- ---
173
-
174
- #### CetusChecker-1_1x
175
-
176
- **V2 Gas Breakdown:**
177
- - Computation Cost: 710,000 MIST
178
- - Storage Cost: 10,298,000 MIST
179
- - Storage Rebate: -9,216,900 MIST
180
- - Non-Refundable Fee: 93,100 MIST
181
- - **Total Gas Cost: 1,884,200 MIST**
182
-
183
- **V3 Gas Breakdown:**
184
- - Computation Cost: 710,000 MIST
185
- - Storage Cost: 10,298,000 MIST
186
- - Storage Rebate: -9,216,900 MIST
187
- - Non-Refundable Fee: 93,100 MIST
188
- - **Total Gas Cost: 1,884,200 MIST**
189
-
190
- **Gas Comparison:**
191
- - Absolute Savings: 0 MIST
192
- - Percentage Savings: 0.00%
193
- - V2 to V3 Ratio: 1.000
194
-
195
- ---
196
-
197
- #### CetusChecker-1_10x
198
-
199
- **V2 Gas Breakdown:**
200
- - Computation Cost: 710,000 MIST
201
- - Storage Cost: 17,814,400 MIST
202
- - Storage Rebate: -16,658,136 MIST
203
- - Non-Refundable Fee: 168,264 MIST
204
- - **Total Gas Cost: 2,034,528 MIST**
205
-
206
- **V3 Gas Breakdown:**
207
- - Computation Cost: 1,420,000 MIST
208
- - Storage Cost: 31,334,800 MIST
209
- - Storage Rebate: -30,043,332 MIST
210
- - Non-Refundable Fee: 303,468 MIST
211
- - **Total Gas Cost: 3,014,936 MIST**
212
-
213
- **Gas Comparison:**
214
- - Absolute Savings: -980,408 MIST
215
- - Percentage Savings: -48.19%
216
- - V2 to V3 Ratio: 1.482
217
-
218
- ---
219
-
220
- #### CetusChecker-1_2000x
221
-
222
- **V2 Gas Breakdown:**
223
- - Computation Cost: 710,000 MIST
224
- - Storage Cost: 11,757,200 MIST
225
- - Storage Rebate: -10,661,508 MIST
226
- - Non-Refundable Fee: 107,692 MIST
227
- - **Total Gas Cost: 1,913,384 MIST**
228
-
229
- **V3 Gas Breakdown:**
230
- - Computation Cost: 710,000 MIST
231
- - Storage Cost: 11,757,200 MIST
232
- - Storage Rebate: -10,661,508 MIST
233
- - Non-Refundable Fee: 107,692 MIST
234
- - **Total Gas Cost: 1,913,384 MIST**
235
-
236
- **Gas Comparison:**
237
- - Absolute Savings: 0 MIST
238
- - Percentage Savings: 0.00%
239
- - V2 to V3 Ratio: 1.000
240
-
241
- ---
242
-
243
- #### CetusChecker-2_0.1x
244
-
245
- **V2 Gas Breakdown:**
246
- - Computation Cost: 710,000 MIST
247
- - Storage Cost: 17,814,400 MIST
248
- - Storage Rebate: -16,658,136 MIST
249
- - Non-Refundable Fee: 168,264 MIST
250
- - **Total Gas Cost: 2,034,528 MIST**
251
-
252
- **V3 Gas Breakdown:**
253
- - Computation Cost: 2,840,000 MIST
254
- - Storage Cost: 63,832,400 MIST
255
- - Storage Rebate: -62,215,956 MIST
256
- - Non-Refundable Fee: 628,444 MIST
257
- - **Total Gas Cost: 5,084,888 MIST**
258
-
259
- **Gas Comparison:**
260
- - Absolute Savings: -3,050,360 MIST
261
- - Percentage Savings: -149.93%
262
- - V2 to V3 Ratio: 2.499
263
-
264
- ---
265
-
266
- #### CetusChecker-2_1x
267
-
268
- **V2 Gas Breakdown:**
269
- - Computation Cost: 3,550,000 MIST
270
- - Storage Cost: 67,693,200 MIST
271
- - Storage Rebate: -66,038,148 MIST
272
- - Non-Refundable Fee: 667,052 MIST
273
- - **Total Gas Cost: 5,872,104 MIST**
274
-
275
- **V3 Gas Breakdown:**
276
- - Computation Cost: 1,420,000 MIST
277
- - Storage Cost: 45,022,400 MIST
278
- - Storage Rebate: -43,594,056 MIST
279
- - Non-Refundable Fee: 440,344 MIST
280
- - **Total Gas Cost: 3,288,688 MIST**
281
-
282
- **Gas Comparison:**
283
- - Absolute Savings: 2,583,416 MIST
284
- - Percentage Savings: 43.99%
285
- - V2 to V3 Ratio: 0.560
286
-
287
- ---
288
-
289
-
290
-
291
- ## Path Optimization Analysis
292
-
293
- ### Path Merging Effectiveness
294
-
295
- The aggregator optimizes trading routes by merging multiple paths through the same liquidity pools, reducing transaction complexity and gas costs.
296
-
297
- #### Overall Path Statistics
298
-
299
- | Version | Avg Original Paths | Avg Merged Paths | Path Reduction | Optimization Efficiency |
300
- |---------|-------------------|------------------|----------------|------------------------|
301
- | V2 | 3.00 | 3.00 | 0.0% | No merging |
302
- | V3 | 3.60 | 3.40 | 5.6% | Moderate merging |
303
-
304
- #### Key Findings
305
-
306
- - **V3 Path Optimization**: V3 demonstrates superior path merging capabilities with 5.6% reduction compared to V2's 0.0%
307
- - **Efficiency Gain**: On average, V3 reduces 3.60 original paths to 3.40 merged paths per swap
308
-
309
- #### Path Count vs Gas Cost Correlation
310
-
311
- Analyzing the relationship between path complexity and gas consumption:
312
-
313
- - More complex routes (multiple paths) generally result in higher gas costs
314
- - Path merging optimization directly contributes to gas savings
315
- - V3's advanced merging algorithm provides better gas efficiency for complex routes
316
-
317
-
318
- ## Conclusion
319
-
320
- The V3 aggregator client provides comparable performance to V2 with modest improvements in specific scenarios.
321
-
322
- ---
323
- *Generated by Cetus Aggregator Gas Benchmark Tool*