@pendle/sdk-boros 0.1.47 → 0.2.0

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.
@@ -131,54 +131,63 @@ export declare class Exchange {
131
131
  };
132
132
  IMFactor: bigint;
133
133
  MMFactor: bigint;
134
- minMarginIndexRate: bigint;
134
+ minMarginIndexTick: number;
135
135
  minMarginIndexDuration: number;
136
136
  };
137
137
  };
138
+ } | {
139
+ eventName: "AMMIdToAccUpdated";
140
+ args: {
141
+ ammId: number;
142
+ amm: `0x${string}`;
143
+ };
138
144
  } | {
139
145
  eventName: "AddLiquidityDualToAmm";
140
146
  args: {
141
147
  user: `0x${string}`;
142
- ammAddr: `0x${string}`;
148
+ ammId: number;
143
149
  exactSizeIn: bigint;
144
150
  netLpOut: bigint;
145
- mintCashIn: bigint;
146
- netCashUsed: bigint;
151
+ netCashIn: bigint;
152
+ netOtcFee: bigint;
147
153
  } | {
148
154
  user: `0x${string}`;
149
- ammAddr: `0x${string}`;
155
+ ammId: number;
150
156
  exactSizeIn: bigint;
151
157
  netLpOut: bigint;
152
- mintCashIn: bigint;
153
- netCashUsed: bigint;
158
+ netCashIn: bigint;
159
+ netOtcFee: bigint;
154
160
  } | {
155
161
  user: `0x${string}`;
156
- ammAddr: `0x${string}`;
162
+ ammId: number;
157
163
  exactSizeIn: bigint;
158
164
  netLpOut: bigint;
159
- mintCashIn: bigint;
160
- netCashUsed: bigint;
165
+ netCashIn: bigint;
166
+ netOtcFee: bigint;
161
167
  };
162
168
  } | {
163
169
  eventName: "AddLiquiditySingleCashToAmm";
164
170
  args: {
165
171
  user: `0x${string}`;
166
- ammAddr: `0x${string}`;
172
+ ammId: number;
167
173
  netLpOut: bigint;
168
- netCashUsed: bigint;
169
- netSizeInterm: bigint;
174
+ netCashIn: bigint;
175
+ totalTakerOtcFee: bigint;
176
+ swapSizeInterm: bigint;
170
177
  } | {
171
178
  user: `0x${string}`;
172
- ammAddr: `0x${string}`;
179
+ ammId: number;
173
180
  netLpOut: bigint;
174
- netCashUsed: bigint;
175
- netSizeInterm: bigint;
181
+ netCashIn: bigint;
182
+ totalTakerOtcFee: bigint;
183
+ swapSizeInterm: bigint;
176
184
  } | {
177
185
  user: `0x${string}`;
178
- ammAddr: `0x${string}`;
186
+ ammId: number;
179
187
  netLpOut: bigint;
180
- netCashUsed: bigint;
181
- netSizeInterm: bigint;
188
+ netCashIn: bigint;
189
+ totalTakerOtcFee: bigint;
190
+ swapSizeInterm: bigint;
182
191
  };
183
192
  } | {
184
193
  eventName: "AgentApproved";
@@ -208,10 +217,10 @@ export declare class Exchange {
208
217
  agent: `0x${string}`;
209
218
  };
210
219
  } | {
211
- eventName: "MarketIdAmmSet";
220
+ eventName: "MaxIterationAndEpsUpdated";
212
221
  args: {
213
- marketId: number;
214
- amm: `0x${string}`;
222
+ newMaxIteration: bigint;
223
+ newEps: bigint;
215
224
  };
216
225
  } | {
217
226
  eventName: "NewAccManagerSet";
@@ -234,45 +243,48 @@ export declare class Exchange {
234
243
  eventName: "RemoveLiquidityDualFromAmm";
235
244
  args: {
236
245
  user: `0x${string}`;
237
- ammAddr: `0x${string}`;
246
+ ammId: number;
238
247
  lpToRemove: bigint;
239
- burnCashOut: bigint;
240
- netSizeOut: bigint;
241
248
  netCashOut: bigint;
249
+ netSizeOut: bigint;
250
+ netOtcFee: bigint;
242
251
  } | {
243
252
  user: `0x${string}`;
244
- ammAddr: `0x${string}`;
253
+ ammId: number;
245
254
  lpToRemove: bigint;
246
- burnCashOut: bigint;
247
- netSizeOut: bigint;
248
255
  netCashOut: bigint;
256
+ netSizeOut: bigint;
257
+ netOtcFee: bigint;
249
258
  } | {
250
259
  user: `0x${string}`;
251
- ammAddr: `0x${string}`;
260
+ ammId: number;
252
261
  lpToRemove: bigint;
253
- burnCashOut: bigint;
254
- netSizeOut: bigint;
255
262
  netCashOut: bigint;
263
+ netSizeOut: bigint;
264
+ netOtcFee: bigint;
256
265
  };
257
266
  } | {
258
267
  eventName: "RemoveLiquiditySingleCashFromAmm";
259
268
  args: {
260
269
  user: `0x${string}`;
261
- ammAddr: `0x${string}`;
270
+ ammId: number;
262
271
  lpToRemove: bigint;
263
272
  netCashOut: bigint;
273
+ netTakerOtcFee: bigint;
264
274
  netSizeInterm: bigint;
265
275
  } | {
266
276
  user: `0x${string}`;
267
- ammAddr: `0x${string}`;
277
+ ammId: number;
268
278
  lpToRemove: bigint;
269
279
  netCashOut: bigint;
280
+ netTakerOtcFee: bigint;
270
281
  netSizeInterm: bigint;
271
282
  } | {
272
283
  user: `0x${string}`;
273
- ammAddr: `0x${string}`;
284
+ ammId: number;
274
285
  lpToRemove: bigint;
275
286
  netCashOut: bigint;
287
+ netTakerOtcFee: bigint;
276
288
  netSizeInterm: bigint;
277
289
  };
278
290
  } | {
@@ -533,7 +545,7 @@ export declare class Exchange {
533
545
  };
534
546
  IMFactor: bigint;
535
547
  MMFactor: bigint;
536
- minMarginIndexRate: bigint;
548
+ minMarginIndexTick: number;
537
549
  minMarginIndexDuration: number;
538
550
  };
539
551
  } | {
@@ -550,7 +562,7 @@ export declare class Exchange {
550
562
  };
551
563
  IMFactor: bigint;
552
564
  MMFactor: bigint;
553
- minMarginIndexRate: bigint;
565
+ minMarginIndexTick: number;
554
566
  minMarginIndexDuration: number;
555
567
  };
556
568
  } | {
@@ -567,7 +579,7 @@ export declare class Exchange {
567
579
  };
568
580
  IMFactor: bigint;
569
581
  MMFactor: bigint;
570
- minMarginIndexRate: bigint;
582
+ minMarginIndexTick: number;
571
583
  minMarginIndexDuration: number;
572
584
  };
573
585
  } | {
@@ -584,7 +596,7 @@ export declare class Exchange {
584
596
  };
585
597
  IMFactor: bigint;
586
598
  MMFactor: bigint;
587
- minMarginIndexRate: bigint;
599
+ minMarginIndexTick: number;
588
600
  minMarginIndexDuration: number;
589
601
  };
590
602
  } | {
@@ -601,7 +613,7 @@ export declare class Exchange {
601
613
  };
602
614
  IMFactor: bigint;
603
615
  MMFactor: bigint;
604
- minMarginIndexRate: bigint;
616
+ minMarginIndexTick: number;
605
617
  minMarginIndexDuration: number;
606
618
  };
607
619
  } | {
@@ -618,7 +630,7 @@ export declare class Exchange {
618
630
  };
619
631
  IMFactor: bigint;
620
632
  MMFactor: bigint;
621
- minMarginIndexRate: bigint;
633
+ minMarginIndexTick: number;
622
634
  minMarginIndexDuration: number;
623
635
  };
624
636
  } | {
@@ -635,7 +647,7 @@ export declare class Exchange {
635
647
  };
636
648
  IMFactor: bigint;
637
649
  MMFactor: bigint;
638
- minMarginIndexRate: bigint;
650
+ minMarginIndexTick: number;
639
651
  minMarginIndexDuration: number;
640
652
  };
641
653
  };
@@ -991,54 +1003,63 @@ export declare class Exchange {
991
1003
  };
992
1004
  IMFactor: bigint;
993
1005
  MMFactor: bigint;
994
- minMarginIndexRate: bigint;
1006
+ minMarginIndexTick: number;
995
1007
  minMarginIndexDuration: number;
996
1008
  };
997
1009
  };
1010
+ } | {
1011
+ eventName: "AMMIdToAccUpdated";
1012
+ args: {
1013
+ ammId: number;
1014
+ amm: `0x${string}`;
1015
+ };
998
1016
  } | {
999
1017
  eventName: "AddLiquidityDualToAmm";
1000
1018
  args: {
1001
1019
  user: `0x${string}`;
1002
- ammAddr: `0x${string}`;
1020
+ ammId: number;
1003
1021
  exactSizeIn: bigint;
1004
1022
  netLpOut: bigint;
1005
- mintCashIn: bigint;
1006
- netCashUsed: bigint;
1023
+ netCashIn: bigint;
1024
+ netOtcFee: bigint;
1007
1025
  } | {
1008
1026
  user: `0x${string}`;
1009
- ammAddr: `0x${string}`;
1027
+ ammId: number;
1010
1028
  exactSizeIn: bigint;
1011
1029
  netLpOut: bigint;
1012
- mintCashIn: bigint;
1013
- netCashUsed: bigint;
1030
+ netCashIn: bigint;
1031
+ netOtcFee: bigint;
1014
1032
  } | {
1015
1033
  user: `0x${string}`;
1016
- ammAddr: `0x${string}`;
1034
+ ammId: number;
1017
1035
  exactSizeIn: bigint;
1018
1036
  netLpOut: bigint;
1019
- mintCashIn: bigint;
1020
- netCashUsed: bigint;
1037
+ netCashIn: bigint;
1038
+ netOtcFee: bigint;
1021
1039
  };
1022
1040
  } | {
1023
1041
  eventName: "AddLiquiditySingleCashToAmm";
1024
1042
  args: {
1025
1043
  user: `0x${string}`;
1026
- ammAddr: `0x${string}`;
1044
+ ammId: number;
1027
1045
  netLpOut: bigint;
1028
- netCashUsed: bigint;
1029
- netSizeInterm: bigint;
1046
+ netCashIn: bigint;
1047
+ totalTakerOtcFee: bigint;
1048
+ swapSizeInterm: bigint;
1030
1049
  } | {
1031
1050
  user: `0x${string}`;
1032
- ammAddr: `0x${string}`;
1051
+ ammId: number;
1033
1052
  netLpOut: bigint;
1034
- netCashUsed: bigint;
1035
- netSizeInterm: bigint;
1053
+ netCashIn: bigint;
1054
+ totalTakerOtcFee: bigint;
1055
+ swapSizeInterm: bigint;
1036
1056
  } | {
1037
1057
  user: `0x${string}`;
1038
- ammAddr: `0x${string}`;
1058
+ ammId: number;
1039
1059
  netLpOut: bigint;
1040
- netCashUsed: bigint;
1041
- netSizeInterm: bigint;
1060
+ netCashIn: bigint;
1061
+ totalTakerOtcFee: bigint;
1062
+ swapSizeInterm: bigint;
1042
1063
  };
1043
1064
  } | {
1044
1065
  eventName: "AgentApproved";
@@ -1068,10 +1089,10 @@ export declare class Exchange {
1068
1089
  agent: `0x${string}`;
1069
1090
  };
1070
1091
  } | {
1071
- eventName: "MarketIdAmmSet";
1092
+ eventName: "MaxIterationAndEpsUpdated";
1072
1093
  args: {
1073
- marketId: number;
1074
- amm: `0x${string}`;
1094
+ newMaxIteration: bigint;
1095
+ newEps: bigint;
1075
1096
  };
1076
1097
  } | {
1077
1098
  eventName: "NewAccManagerSet";
@@ -1094,45 +1115,48 @@ export declare class Exchange {
1094
1115
  eventName: "RemoveLiquidityDualFromAmm";
1095
1116
  args: {
1096
1117
  user: `0x${string}`;
1097
- ammAddr: `0x${string}`;
1118
+ ammId: number;
1098
1119
  lpToRemove: bigint;
1099
- burnCashOut: bigint;
1100
- netSizeOut: bigint;
1101
1120
  netCashOut: bigint;
1121
+ netSizeOut: bigint;
1122
+ netOtcFee: bigint;
1102
1123
  } | {
1103
1124
  user: `0x${string}`;
1104
- ammAddr: `0x${string}`;
1125
+ ammId: number;
1105
1126
  lpToRemove: bigint;
1106
- burnCashOut: bigint;
1107
- netSizeOut: bigint;
1108
1127
  netCashOut: bigint;
1128
+ netSizeOut: bigint;
1129
+ netOtcFee: bigint;
1109
1130
  } | {
1110
1131
  user: `0x${string}`;
1111
- ammAddr: `0x${string}`;
1132
+ ammId: number;
1112
1133
  lpToRemove: bigint;
1113
- burnCashOut: bigint;
1114
- netSizeOut: bigint;
1115
1134
  netCashOut: bigint;
1135
+ netSizeOut: bigint;
1136
+ netOtcFee: bigint;
1116
1137
  };
1117
1138
  } | {
1118
1139
  eventName: "RemoveLiquiditySingleCashFromAmm";
1119
1140
  args: {
1120
1141
  user: `0x${string}`;
1121
- ammAddr: `0x${string}`;
1142
+ ammId: number;
1122
1143
  lpToRemove: bigint;
1123
1144
  netCashOut: bigint;
1145
+ netTakerOtcFee: bigint;
1124
1146
  netSizeInterm: bigint;
1125
1147
  } | {
1126
1148
  user: `0x${string}`;
1127
- ammAddr: `0x${string}`;
1149
+ ammId: number;
1128
1150
  lpToRemove: bigint;
1129
1151
  netCashOut: bigint;
1152
+ netTakerOtcFee: bigint;
1130
1153
  netSizeInterm: bigint;
1131
1154
  } | {
1132
1155
  user: `0x${string}`;
1133
- ammAddr: `0x${string}`;
1156
+ ammId: number;
1134
1157
  lpToRemove: bigint;
1135
1158
  netCashOut: bigint;
1159
+ netTakerOtcFee: bigint;
1136
1160
  netSizeInterm: bigint;
1137
1161
  };
1138
1162
  } | {
@@ -1393,7 +1417,7 @@ export declare class Exchange {
1393
1417
  };
1394
1418
  IMFactor: bigint;
1395
1419
  MMFactor: bigint;
1396
- minMarginIndexRate: bigint;
1420
+ minMarginIndexTick: number;
1397
1421
  minMarginIndexDuration: number;
1398
1422
  };
1399
1423
  } | {
@@ -1410,7 +1434,7 @@ export declare class Exchange {
1410
1434
  };
1411
1435
  IMFactor: bigint;
1412
1436
  MMFactor: bigint;
1413
- minMarginIndexRate: bigint;
1437
+ minMarginIndexTick: number;
1414
1438
  minMarginIndexDuration: number;
1415
1439
  };
1416
1440
  } | {
@@ -1427,7 +1451,7 @@ export declare class Exchange {
1427
1451
  };
1428
1452
  IMFactor: bigint;
1429
1453
  MMFactor: bigint;
1430
- minMarginIndexRate: bigint;
1454
+ minMarginIndexTick: number;
1431
1455
  minMarginIndexDuration: number;
1432
1456
  };
1433
1457
  } | {
@@ -1444,7 +1468,7 @@ export declare class Exchange {
1444
1468
  };
1445
1469
  IMFactor: bigint;
1446
1470
  MMFactor: bigint;
1447
- minMarginIndexRate: bigint;
1471
+ minMarginIndexTick: number;
1448
1472
  minMarginIndexDuration: number;
1449
1473
  };
1450
1474
  } | {
@@ -1461,7 +1485,7 @@ export declare class Exchange {
1461
1485
  };
1462
1486
  IMFactor: bigint;
1463
1487
  MMFactor: bigint;
1464
- minMarginIndexRate: bigint;
1488
+ minMarginIndexTick: number;
1465
1489
  minMarginIndexDuration: number;
1466
1490
  };
1467
1491
  } | {
@@ -1478,7 +1502,7 @@ export declare class Exchange {
1478
1502
  };
1479
1503
  IMFactor: bigint;
1480
1504
  MMFactor: bigint;
1481
- minMarginIndexRate: bigint;
1505
+ minMarginIndexTick: number;
1482
1506
  minMarginIndexDuration: number;
1483
1507
  };
1484
1508
  } | {
@@ -1495,7 +1519,7 @@ export declare class Exchange {
1495
1519
  };
1496
1520
  IMFactor: bigint;
1497
1521
  MMFactor: bigint;
1498
- minMarginIndexRate: bigint;
1522
+ minMarginIndexTick: number;
1499
1523
  minMarginIndexDuration: number;
1500
1524
  };
1501
1525
  };
@@ -1863,54 +1887,63 @@ export declare class Exchange {
1863
1887
  };
1864
1888
  IMFactor: bigint;
1865
1889
  MMFactor: bigint;
1866
- minMarginIndexRate: bigint;
1890
+ minMarginIndexTick: number;
1867
1891
  minMarginIndexDuration: number;
1868
1892
  };
1869
1893
  };
1894
+ } | {
1895
+ eventName: "AMMIdToAccUpdated";
1896
+ args: {
1897
+ ammId: number;
1898
+ amm: `0x${string}`;
1899
+ };
1870
1900
  } | {
1871
1901
  eventName: "AddLiquidityDualToAmm";
1872
1902
  args: {
1873
1903
  user: `0x${string}`;
1874
- ammAddr: `0x${string}`;
1904
+ ammId: number;
1875
1905
  exactSizeIn: bigint;
1876
1906
  netLpOut: bigint;
1877
- mintCashIn: bigint;
1878
- netCashUsed: bigint;
1907
+ netCashIn: bigint;
1908
+ netOtcFee: bigint;
1879
1909
  } | {
1880
1910
  user: `0x${string}`;
1881
- ammAddr: `0x${string}`;
1911
+ ammId: number;
1882
1912
  exactSizeIn: bigint;
1883
1913
  netLpOut: bigint;
1884
- mintCashIn: bigint;
1885
- netCashUsed: bigint;
1914
+ netCashIn: bigint;
1915
+ netOtcFee: bigint;
1886
1916
  } | {
1887
1917
  user: `0x${string}`;
1888
- ammAddr: `0x${string}`;
1918
+ ammId: number;
1889
1919
  exactSizeIn: bigint;
1890
1920
  netLpOut: bigint;
1891
- mintCashIn: bigint;
1892
- netCashUsed: bigint;
1921
+ netCashIn: bigint;
1922
+ netOtcFee: bigint;
1893
1923
  };
1894
1924
  } | {
1895
1925
  eventName: "AddLiquiditySingleCashToAmm";
1896
1926
  args: {
1897
1927
  user: `0x${string}`;
1898
- ammAddr: `0x${string}`;
1928
+ ammId: number;
1899
1929
  netLpOut: bigint;
1900
- netCashUsed: bigint;
1901
- netSizeInterm: bigint;
1930
+ netCashIn: bigint;
1931
+ totalTakerOtcFee: bigint;
1932
+ swapSizeInterm: bigint;
1902
1933
  } | {
1903
1934
  user: `0x${string}`;
1904
- ammAddr: `0x${string}`;
1935
+ ammId: number;
1905
1936
  netLpOut: bigint;
1906
- netCashUsed: bigint;
1907
- netSizeInterm: bigint;
1937
+ netCashIn: bigint;
1938
+ totalTakerOtcFee: bigint;
1939
+ swapSizeInterm: bigint;
1908
1940
  } | {
1909
1941
  user: `0x${string}`;
1910
- ammAddr: `0x${string}`;
1942
+ ammId: number;
1911
1943
  netLpOut: bigint;
1912
- netCashUsed: bigint;
1913
- netSizeInterm: bigint;
1944
+ netCashIn: bigint;
1945
+ totalTakerOtcFee: bigint;
1946
+ swapSizeInterm: bigint;
1914
1947
  };
1915
1948
  } | {
1916
1949
  eventName: "AgentApproved";
@@ -1940,10 +1973,10 @@ export declare class Exchange {
1940
1973
  agent: `0x${string}`;
1941
1974
  };
1942
1975
  } | {
1943
- eventName: "MarketIdAmmSet";
1976
+ eventName: "MaxIterationAndEpsUpdated";
1944
1977
  args: {
1945
- marketId: number;
1946
- amm: `0x${string}`;
1978
+ newMaxIteration: bigint;
1979
+ newEps: bigint;
1947
1980
  };
1948
1981
  } | {
1949
1982
  eventName: "NewAccManagerSet";
@@ -1966,45 +1999,48 @@ export declare class Exchange {
1966
1999
  eventName: "RemoveLiquidityDualFromAmm";
1967
2000
  args: {
1968
2001
  user: `0x${string}`;
1969
- ammAddr: `0x${string}`;
2002
+ ammId: number;
1970
2003
  lpToRemove: bigint;
1971
- burnCashOut: bigint;
1972
- netSizeOut: bigint;
1973
2004
  netCashOut: bigint;
2005
+ netSizeOut: bigint;
2006
+ netOtcFee: bigint;
1974
2007
  } | {
1975
2008
  user: `0x${string}`;
1976
- ammAddr: `0x${string}`;
2009
+ ammId: number;
1977
2010
  lpToRemove: bigint;
1978
- burnCashOut: bigint;
1979
- netSizeOut: bigint;
1980
2011
  netCashOut: bigint;
2012
+ netSizeOut: bigint;
2013
+ netOtcFee: bigint;
1981
2014
  } | {
1982
2015
  user: `0x${string}`;
1983
- ammAddr: `0x${string}`;
2016
+ ammId: number;
1984
2017
  lpToRemove: bigint;
1985
- burnCashOut: bigint;
1986
- netSizeOut: bigint;
1987
2018
  netCashOut: bigint;
2019
+ netSizeOut: bigint;
2020
+ netOtcFee: bigint;
1988
2021
  };
1989
2022
  } | {
1990
2023
  eventName: "RemoveLiquiditySingleCashFromAmm";
1991
2024
  args: {
1992
2025
  user: `0x${string}`;
1993
- ammAddr: `0x${string}`;
2026
+ ammId: number;
1994
2027
  lpToRemove: bigint;
1995
2028
  netCashOut: bigint;
2029
+ netTakerOtcFee: bigint;
1996
2030
  netSizeInterm: bigint;
1997
2031
  } | {
1998
2032
  user: `0x${string}`;
1999
- ammAddr: `0x${string}`;
2033
+ ammId: number;
2000
2034
  lpToRemove: bigint;
2001
2035
  netCashOut: bigint;
2036
+ netTakerOtcFee: bigint;
2002
2037
  netSizeInterm: bigint;
2003
2038
  } | {
2004
2039
  user: `0x${string}`;
2005
- ammAddr: `0x${string}`;
2040
+ ammId: number;
2006
2041
  lpToRemove: bigint;
2007
2042
  netCashOut: bigint;
2043
+ netTakerOtcFee: bigint;
2008
2044
  netSizeInterm: bigint;
2009
2045
  };
2010
2046
  } | {
@@ -2265,7 +2301,7 @@ export declare class Exchange {
2265
2301
  };
2266
2302
  IMFactor: bigint;
2267
2303
  MMFactor: bigint;
2268
- minMarginIndexRate: bigint;
2304
+ minMarginIndexTick: number;
2269
2305
  minMarginIndexDuration: number;
2270
2306
  };
2271
2307
  } | {
@@ -2282,7 +2318,7 @@ export declare class Exchange {
2282
2318
  };
2283
2319
  IMFactor: bigint;
2284
2320
  MMFactor: bigint;
2285
- minMarginIndexRate: bigint;
2321
+ minMarginIndexTick: number;
2286
2322
  minMarginIndexDuration: number;
2287
2323
  };
2288
2324
  } | {
@@ -2299,7 +2335,7 @@ export declare class Exchange {
2299
2335
  };
2300
2336
  IMFactor: bigint;
2301
2337
  MMFactor: bigint;
2302
- minMarginIndexRate: bigint;
2338
+ minMarginIndexTick: number;
2303
2339
  minMarginIndexDuration: number;
2304
2340
  };
2305
2341
  } | {
@@ -2316,7 +2352,7 @@ export declare class Exchange {
2316
2352
  };
2317
2353
  IMFactor: bigint;
2318
2354
  MMFactor: bigint;
2319
- minMarginIndexRate: bigint;
2355
+ minMarginIndexTick: number;
2320
2356
  minMarginIndexDuration: number;
2321
2357
  };
2322
2358
  } | {
@@ -2333,7 +2369,7 @@ export declare class Exchange {
2333
2369
  };
2334
2370
  IMFactor: bigint;
2335
2371
  MMFactor: bigint;
2336
- minMarginIndexRate: bigint;
2372
+ minMarginIndexTick: number;
2337
2373
  minMarginIndexDuration: number;
2338
2374
  };
2339
2375
  } | {
@@ -2350,7 +2386,7 @@ export declare class Exchange {
2350
2386
  };
2351
2387
  IMFactor: bigint;
2352
2388
  MMFactor: bigint;
2353
- minMarginIndexRate: bigint;
2389
+ minMarginIndexTick: number;
2354
2390
  minMarginIndexDuration: number;
2355
2391
  };
2356
2392
  } | {
@@ -2367,7 +2403,7 @@ export declare class Exchange {
2367
2403
  };
2368
2404
  IMFactor: bigint;
2369
2405
  MMFactor: bigint;
2370
- minMarginIndexRate: bigint;
2406
+ minMarginIndexTick: number;
2371
2407
  minMarginIndexDuration: number;
2372
2408
  };
2373
2409
  };
@@ -2735,54 +2771,63 @@ export declare class Exchange {
2735
2771
  };
2736
2772
  IMFactor: bigint;
2737
2773
  MMFactor: bigint;
2738
- minMarginIndexRate: bigint;
2774
+ minMarginIndexTick: number;
2739
2775
  minMarginIndexDuration: number;
2740
2776
  };
2741
2777
  };
2778
+ } | {
2779
+ eventName: "AMMIdToAccUpdated";
2780
+ args: {
2781
+ ammId: number;
2782
+ amm: `0x${string}`;
2783
+ };
2742
2784
  } | {
2743
2785
  eventName: "AddLiquidityDualToAmm";
2744
2786
  args: {
2745
2787
  user: `0x${string}`;
2746
- ammAddr: `0x${string}`;
2788
+ ammId: number;
2747
2789
  exactSizeIn: bigint;
2748
2790
  netLpOut: bigint;
2749
- mintCashIn: bigint;
2750
- netCashUsed: bigint;
2791
+ netCashIn: bigint;
2792
+ netOtcFee: bigint;
2751
2793
  } | {
2752
2794
  user: `0x${string}`;
2753
- ammAddr: `0x${string}`;
2795
+ ammId: number;
2754
2796
  exactSizeIn: bigint;
2755
2797
  netLpOut: bigint;
2756
- mintCashIn: bigint;
2757
- netCashUsed: bigint;
2798
+ netCashIn: bigint;
2799
+ netOtcFee: bigint;
2758
2800
  } | {
2759
2801
  user: `0x${string}`;
2760
- ammAddr: `0x${string}`;
2802
+ ammId: number;
2761
2803
  exactSizeIn: bigint;
2762
2804
  netLpOut: bigint;
2763
- mintCashIn: bigint;
2764
- netCashUsed: bigint;
2805
+ netCashIn: bigint;
2806
+ netOtcFee: bigint;
2765
2807
  };
2766
2808
  } | {
2767
2809
  eventName: "AddLiquiditySingleCashToAmm";
2768
2810
  args: {
2769
2811
  user: `0x${string}`;
2770
- ammAddr: `0x${string}`;
2812
+ ammId: number;
2771
2813
  netLpOut: bigint;
2772
- netCashUsed: bigint;
2773
- netSizeInterm: bigint;
2814
+ netCashIn: bigint;
2815
+ totalTakerOtcFee: bigint;
2816
+ swapSizeInterm: bigint;
2774
2817
  } | {
2775
2818
  user: `0x${string}`;
2776
- ammAddr: `0x${string}`;
2819
+ ammId: number;
2777
2820
  netLpOut: bigint;
2778
- netCashUsed: bigint;
2779
- netSizeInterm: bigint;
2821
+ netCashIn: bigint;
2822
+ totalTakerOtcFee: bigint;
2823
+ swapSizeInterm: bigint;
2780
2824
  } | {
2781
2825
  user: `0x${string}`;
2782
- ammAddr: `0x${string}`;
2826
+ ammId: number;
2783
2827
  netLpOut: bigint;
2784
- netCashUsed: bigint;
2785
- netSizeInterm: bigint;
2828
+ netCashIn: bigint;
2829
+ totalTakerOtcFee: bigint;
2830
+ swapSizeInterm: bigint;
2786
2831
  };
2787
2832
  } | {
2788
2833
  eventName: "AgentApproved";
@@ -2812,10 +2857,10 @@ export declare class Exchange {
2812
2857
  agent: `0x${string}`;
2813
2858
  };
2814
2859
  } | {
2815
- eventName: "MarketIdAmmSet";
2860
+ eventName: "MaxIterationAndEpsUpdated";
2816
2861
  args: {
2817
- marketId: number;
2818
- amm: `0x${string}`;
2862
+ newMaxIteration: bigint;
2863
+ newEps: bigint;
2819
2864
  };
2820
2865
  } | {
2821
2866
  eventName: "NewAccManagerSet";
@@ -2838,45 +2883,48 @@ export declare class Exchange {
2838
2883
  eventName: "RemoveLiquidityDualFromAmm";
2839
2884
  args: {
2840
2885
  user: `0x${string}`;
2841
- ammAddr: `0x${string}`;
2886
+ ammId: number;
2842
2887
  lpToRemove: bigint;
2843
- burnCashOut: bigint;
2844
- netSizeOut: bigint;
2845
2888
  netCashOut: bigint;
2889
+ netSizeOut: bigint;
2890
+ netOtcFee: bigint;
2846
2891
  } | {
2847
2892
  user: `0x${string}`;
2848
- ammAddr: `0x${string}`;
2893
+ ammId: number;
2849
2894
  lpToRemove: bigint;
2850
- burnCashOut: bigint;
2851
- netSizeOut: bigint;
2852
2895
  netCashOut: bigint;
2896
+ netSizeOut: bigint;
2897
+ netOtcFee: bigint;
2853
2898
  } | {
2854
2899
  user: `0x${string}`;
2855
- ammAddr: `0x${string}`;
2900
+ ammId: number;
2856
2901
  lpToRemove: bigint;
2857
- burnCashOut: bigint;
2858
- netSizeOut: bigint;
2859
2902
  netCashOut: bigint;
2903
+ netSizeOut: bigint;
2904
+ netOtcFee: bigint;
2860
2905
  };
2861
2906
  } | {
2862
2907
  eventName: "RemoveLiquiditySingleCashFromAmm";
2863
2908
  args: {
2864
2909
  user: `0x${string}`;
2865
- ammAddr: `0x${string}`;
2910
+ ammId: number;
2866
2911
  lpToRemove: bigint;
2867
2912
  netCashOut: bigint;
2913
+ netTakerOtcFee: bigint;
2868
2914
  netSizeInterm: bigint;
2869
2915
  } | {
2870
2916
  user: `0x${string}`;
2871
- ammAddr: `0x${string}`;
2917
+ ammId: number;
2872
2918
  lpToRemove: bigint;
2873
2919
  netCashOut: bigint;
2920
+ netTakerOtcFee: bigint;
2874
2921
  netSizeInterm: bigint;
2875
2922
  } | {
2876
2923
  user: `0x${string}`;
2877
- ammAddr: `0x${string}`;
2924
+ ammId: number;
2878
2925
  lpToRemove: bigint;
2879
2926
  netCashOut: bigint;
2927
+ netTakerOtcFee: bigint;
2880
2928
  netSizeInterm: bigint;
2881
2929
  };
2882
2930
  } | {
@@ -3137,7 +3185,7 @@ export declare class Exchange {
3137
3185
  };
3138
3186
  IMFactor: bigint;
3139
3187
  MMFactor: bigint;
3140
- minMarginIndexRate: bigint;
3188
+ minMarginIndexTick: number;
3141
3189
  minMarginIndexDuration: number;
3142
3190
  };
3143
3191
  } | {
@@ -3154,7 +3202,7 @@ export declare class Exchange {
3154
3202
  };
3155
3203
  IMFactor: bigint;
3156
3204
  MMFactor: bigint;
3157
- minMarginIndexRate: bigint;
3205
+ minMarginIndexTick: number;
3158
3206
  minMarginIndexDuration: number;
3159
3207
  };
3160
3208
  } | {
@@ -3171,7 +3219,7 @@ export declare class Exchange {
3171
3219
  };
3172
3220
  IMFactor: bigint;
3173
3221
  MMFactor: bigint;
3174
- minMarginIndexRate: bigint;
3222
+ minMarginIndexTick: number;
3175
3223
  minMarginIndexDuration: number;
3176
3224
  };
3177
3225
  } | {
@@ -3188,7 +3236,7 @@ export declare class Exchange {
3188
3236
  };
3189
3237
  IMFactor: bigint;
3190
3238
  MMFactor: bigint;
3191
- minMarginIndexRate: bigint;
3239
+ minMarginIndexTick: number;
3192
3240
  minMarginIndexDuration: number;
3193
3241
  };
3194
3242
  } | {
@@ -3205,7 +3253,7 @@ export declare class Exchange {
3205
3253
  };
3206
3254
  IMFactor: bigint;
3207
3255
  MMFactor: bigint;
3208
- minMarginIndexRate: bigint;
3256
+ minMarginIndexTick: number;
3209
3257
  minMarginIndexDuration: number;
3210
3258
  };
3211
3259
  } | {
@@ -3222,7 +3270,7 @@ export declare class Exchange {
3222
3270
  };
3223
3271
  IMFactor: bigint;
3224
3272
  MMFactor: bigint;
3225
- minMarginIndexRate: bigint;
3273
+ minMarginIndexTick: number;
3226
3274
  minMarginIndexDuration: number;
3227
3275
  };
3228
3276
  } | {
@@ -3239,7 +3287,7 @@ export declare class Exchange {
3239
3287
  };
3240
3288
  IMFactor: bigint;
3241
3289
  MMFactor: bigint;
3242
- minMarginIndexRate: bigint;
3290
+ minMarginIndexTick: number;
3243
3291
  minMarginIndexDuration: number;
3244
3292
  };
3245
3293
  };
@@ -3607,54 +3655,63 @@ export declare class Exchange {
3607
3655
  };
3608
3656
  IMFactor: bigint;
3609
3657
  MMFactor: bigint;
3610
- minMarginIndexRate: bigint;
3658
+ minMarginIndexTick: number;
3611
3659
  minMarginIndexDuration: number;
3612
3660
  };
3613
3661
  };
3662
+ } | {
3663
+ eventName: "AMMIdToAccUpdated";
3664
+ args: {
3665
+ ammId: number;
3666
+ amm: `0x${string}`;
3667
+ };
3614
3668
  } | {
3615
3669
  eventName: "AddLiquidityDualToAmm";
3616
3670
  args: {
3617
3671
  user: `0x${string}`;
3618
- ammAddr: `0x${string}`;
3672
+ ammId: number;
3619
3673
  exactSizeIn: bigint;
3620
3674
  netLpOut: bigint;
3621
- mintCashIn: bigint;
3622
- netCashUsed: bigint;
3675
+ netCashIn: bigint;
3676
+ netOtcFee: bigint;
3623
3677
  } | {
3624
3678
  user: `0x${string}`;
3625
- ammAddr: `0x${string}`;
3679
+ ammId: number;
3626
3680
  exactSizeIn: bigint;
3627
3681
  netLpOut: bigint;
3628
- mintCashIn: bigint;
3629
- netCashUsed: bigint;
3682
+ netCashIn: bigint;
3683
+ netOtcFee: bigint;
3630
3684
  } | {
3631
3685
  user: `0x${string}`;
3632
- ammAddr: `0x${string}`;
3686
+ ammId: number;
3633
3687
  exactSizeIn: bigint;
3634
3688
  netLpOut: bigint;
3635
- mintCashIn: bigint;
3636
- netCashUsed: bigint;
3689
+ netCashIn: bigint;
3690
+ netOtcFee: bigint;
3637
3691
  };
3638
3692
  } | {
3639
3693
  eventName: "AddLiquiditySingleCashToAmm";
3640
3694
  args: {
3641
3695
  user: `0x${string}`;
3642
- ammAddr: `0x${string}`;
3696
+ ammId: number;
3643
3697
  netLpOut: bigint;
3644
- netCashUsed: bigint;
3645
- netSizeInterm: bigint;
3698
+ netCashIn: bigint;
3699
+ totalTakerOtcFee: bigint;
3700
+ swapSizeInterm: bigint;
3646
3701
  } | {
3647
3702
  user: `0x${string}`;
3648
- ammAddr: `0x${string}`;
3703
+ ammId: number;
3649
3704
  netLpOut: bigint;
3650
- netCashUsed: bigint;
3651
- netSizeInterm: bigint;
3705
+ netCashIn: bigint;
3706
+ totalTakerOtcFee: bigint;
3707
+ swapSizeInterm: bigint;
3652
3708
  } | {
3653
3709
  user: `0x${string}`;
3654
- ammAddr: `0x${string}`;
3710
+ ammId: number;
3655
3711
  netLpOut: bigint;
3656
- netCashUsed: bigint;
3657
- netSizeInterm: bigint;
3712
+ netCashIn: bigint;
3713
+ totalTakerOtcFee: bigint;
3714
+ swapSizeInterm: bigint;
3658
3715
  };
3659
3716
  } | {
3660
3717
  eventName: "AgentApproved";
@@ -3684,10 +3741,10 @@ export declare class Exchange {
3684
3741
  agent: `0x${string}`;
3685
3742
  };
3686
3743
  } | {
3687
- eventName: "MarketIdAmmSet";
3744
+ eventName: "MaxIterationAndEpsUpdated";
3688
3745
  args: {
3689
- marketId: number;
3690
- amm: `0x${string}`;
3746
+ newMaxIteration: bigint;
3747
+ newEps: bigint;
3691
3748
  };
3692
3749
  } | {
3693
3750
  eventName: "NewAccManagerSet";
@@ -3710,45 +3767,48 @@ export declare class Exchange {
3710
3767
  eventName: "RemoveLiquidityDualFromAmm";
3711
3768
  args: {
3712
3769
  user: `0x${string}`;
3713
- ammAddr: `0x${string}`;
3770
+ ammId: number;
3714
3771
  lpToRemove: bigint;
3715
- burnCashOut: bigint;
3716
- netSizeOut: bigint;
3717
3772
  netCashOut: bigint;
3773
+ netSizeOut: bigint;
3774
+ netOtcFee: bigint;
3718
3775
  } | {
3719
3776
  user: `0x${string}`;
3720
- ammAddr: `0x${string}`;
3777
+ ammId: number;
3721
3778
  lpToRemove: bigint;
3722
- burnCashOut: bigint;
3723
- netSizeOut: bigint;
3724
3779
  netCashOut: bigint;
3780
+ netSizeOut: bigint;
3781
+ netOtcFee: bigint;
3725
3782
  } | {
3726
3783
  user: `0x${string}`;
3727
- ammAddr: `0x${string}`;
3784
+ ammId: number;
3728
3785
  lpToRemove: bigint;
3729
- burnCashOut: bigint;
3730
- netSizeOut: bigint;
3731
3786
  netCashOut: bigint;
3787
+ netSizeOut: bigint;
3788
+ netOtcFee: bigint;
3732
3789
  };
3733
3790
  } | {
3734
3791
  eventName: "RemoveLiquiditySingleCashFromAmm";
3735
3792
  args: {
3736
3793
  user: `0x${string}`;
3737
- ammAddr: `0x${string}`;
3794
+ ammId: number;
3738
3795
  lpToRemove: bigint;
3739
3796
  netCashOut: bigint;
3797
+ netTakerOtcFee: bigint;
3740
3798
  netSizeInterm: bigint;
3741
3799
  } | {
3742
3800
  user: `0x${string}`;
3743
- ammAddr: `0x${string}`;
3801
+ ammId: number;
3744
3802
  lpToRemove: bigint;
3745
3803
  netCashOut: bigint;
3804
+ netTakerOtcFee: bigint;
3746
3805
  netSizeInterm: bigint;
3747
3806
  } | {
3748
3807
  user: `0x${string}`;
3749
- ammAddr: `0x${string}`;
3808
+ ammId: number;
3750
3809
  lpToRemove: bigint;
3751
3810
  netCashOut: bigint;
3811
+ netTakerOtcFee: bigint;
3752
3812
  netSizeInterm: bigint;
3753
3813
  };
3754
3814
  } | {
@@ -4009,7 +4069,7 @@ export declare class Exchange {
4009
4069
  };
4010
4070
  IMFactor: bigint;
4011
4071
  MMFactor: bigint;
4012
- minMarginIndexRate: bigint;
4072
+ minMarginIndexTick: number;
4013
4073
  minMarginIndexDuration: number;
4014
4074
  };
4015
4075
  } | {
@@ -4026,7 +4086,7 @@ export declare class Exchange {
4026
4086
  };
4027
4087
  IMFactor: bigint;
4028
4088
  MMFactor: bigint;
4029
- minMarginIndexRate: bigint;
4089
+ minMarginIndexTick: number;
4030
4090
  minMarginIndexDuration: number;
4031
4091
  };
4032
4092
  } | {
@@ -4043,7 +4103,7 @@ export declare class Exchange {
4043
4103
  };
4044
4104
  IMFactor: bigint;
4045
4105
  MMFactor: bigint;
4046
- minMarginIndexRate: bigint;
4106
+ minMarginIndexTick: number;
4047
4107
  minMarginIndexDuration: number;
4048
4108
  };
4049
4109
  } | {
@@ -4060,7 +4120,7 @@ export declare class Exchange {
4060
4120
  };
4061
4121
  IMFactor: bigint;
4062
4122
  MMFactor: bigint;
4063
- minMarginIndexRate: bigint;
4123
+ minMarginIndexTick: number;
4064
4124
  minMarginIndexDuration: number;
4065
4125
  };
4066
4126
  } | {
@@ -4077,7 +4137,7 @@ export declare class Exchange {
4077
4137
  };
4078
4138
  IMFactor: bigint;
4079
4139
  MMFactor: bigint;
4080
- minMarginIndexRate: bigint;
4140
+ minMarginIndexTick: number;
4081
4141
  minMarginIndexDuration: number;
4082
4142
  };
4083
4143
  } | {
@@ -4094,7 +4154,7 @@ export declare class Exchange {
4094
4154
  };
4095
4155
  IMFactor: bigint;
4096
4156
  MMFactor: bigint;
4097
- minMarginIndexRate: bigint;
4157
+ minMarginIndexTick: number;
4098
4158
  minMarginIndexDuration: number;
4099
4159
  };
4100
4160
  } | {
@@ -4111,7 +4171,7 @@ export declare class Exchange {
4111
4171
  };
4112
4172
  IMFactor: bigint;
4113
4173
  MMFactor: bigint;
4114
- minMarginIndexRate: bigint;
4174
+ minMarginIndexTick: number;
4115
4175
  minMarginIndexDuration: number;
4116
4176
  };
4117
4177
  };
@@ -4479,54 +4539,63 @@ export declare class Exchange {
4479
4539
  };
4480
4540
  IMFactor: bigint;
4481
4541
  MMFactor: bigint;
4482
- minMarginIndexRate: bigint;
4542
+ minMarginIndexTick: number;
4483
4543
  minMarginIndexDuration: number;
4484
4544
  };
4485
4545
  };
4546
+ } | {
4547
+ eventName: "AMMIdToAccUpdated";
4548
+ args: {
4549
+ ammId: number;
4550
+ amm: `0x${string}`;
4551
+ };
4486
4552
  } | {
4487
4553
  eventName: "AddLiquidityDualToAmm";
4488
4554
  args: {
4489
4555
  user: `0x${string}`;
4490
- ammAddr: `0x${string}`;
4556
+ ammId: number;
4491
4557
  exactSizeIn: bigint;
4492
4558
  netLpOut: bigint;
4493
- mintCashIn: bigint;
4494
- netCashUsed: bigint;
4559
+ netCashIn: bigint;
4560
+ netOtcFee: bigint;
4495
4561
  } | {
4496
4562
  user: `0x${string}`;
4497
- ammAddr: `0x${string}`;
4563
+ ammId: number;
4498
4564
  exactSizeIn: bigint;
4499
4565
  netLpOut: bigint;
4500
- mintCashIn: bigint;
4501
- netCashUsed: bigint;
4566
+ netCashIn: bigint;
4567
+ netOtcFee: bigint;
4502
4568
  } | {
4503
4569
  user: `0x${string}`;
4504
- ammAddr: `0x${string}`;
4570
+ ammId: number;
4505
4571
  exactSizeIn: bigint;
4506
4572
  netLpOut: bigint;
4507
- mintCashIn: bigint;
4508
- netCashUsed: bigint;
4573
+ netCashIn: bigint;
4574
+ netOtcFee: bigint;
4509
4575
  };
4510
4576
  } | {
4511
4577
  eventName: "AddLiquiditySingleCashToAmm";
4512
4578
  args: {
4513
4579
  user: `0x${string}`;
4514
- ammAddr: `0x${string}`;
4580
+ ammId: number;
4515
4581
  netLpOut: bigint;
4516
- netCashUsed: bigint;
4517
- netSizeInterm: bigint;
4582
+ netCashIn: bigint;
4583
+ totalTakerOtcFee: bigint;
4584
+ swapSizeInterm: bigint;
4518
4585
  } | {
4519
4586
  user: `0x${string}`;
4520
- ammAddr: `0x${string}`;
4587
+ ammId: number;
4521
4588
  netLpOut: bigint;
4522
- netCashUsed: bigint;
4523
- netSizeInterm: bigint;
4589
+ netCashIn: bigint;
4590
+ totalTakerOtcFee: bigint;
4591
+ swapSizeInterm: bigint;
4524
4592
  } | {
4525
4593
  user: `0x${string}`;
4526
- ammAddr: `0x${string}`;
4594
+ ammId: number;
4527
4595
  netLpOut: bigint;
4528
- netCashUsed: bigint;
4529
- netSizeInterm: bigint;
4596
+ netCashIn: bigint;
4597
+ totalTakerOtcFee: bigint;
4598
+ swapSizeInterm: bigint;
4530
4599
  };
4531
4600
  } | {
4532
4601
  eventName: "AgentApproved";
@@ -4556,10 +4625,10 @@ export declare class Exchange {
4556
4625
  agent: `0x${string}`;
4557
4626
  };
4558
4627
  } | {
4559
- eventName: "MarketIdAmmSet";
4628
+ eventName: "MaxIterationAndEpsUpdated";
4560
4629
  args: {
4561
- marketId: number;
4562
- amm: `0x${string}`;
4630
+ newMaxIteration: bigint;
4631
+ newEps: bigint;
4563
4632
  };
4564
4633
  } | {
4565
4634
  eventName: "NewAccManagerSet";
@@ -4582,45 +4651,48 @@ export declare class Exchange {
4582
4651
  eventName: "RemoveLiquidityDualFromAmm";
4583
4652
  args: {
4584
4653
  user: `0x${string}`;
4585
- ammAddr: `0x${string}`;
4654
+ ammId: number;
4586
4655
  lpToRemove: bigint;
4587
- burnCashOut: bigint;
4588
- netSizeOut: bigint;
4589
4656
  netCashOut: bigint;
4657
+ netSizeOut: bigint;
4658
+ netOtcFee: bigint;
4590
4659
  } | {
4591
4660
  user: `0x${string}`;
4592
- ammAddr: `0x${string}`;
4661
+ ammId: number;
4593
4662
  lpToRemove: bigint;
4594
- burnCashOut: bigint;
4595
- netSizeOut: bigint;
4596
4663
  netCashOut: bigint;
4664
+ netSizeOut: bigint;
4665
+ netOtcFee: bigint;
4597
4666
  } | {
4598
4667
  user: `0x${string}`;
4599
- ammAddr: `0x${string}`;
4668
+ ammId: number;
4600
4669
  lpToRemove: bigint;
4601
- burnCashOut: bigint;
4602
- netSizeOut: bigint;
4603
4670
  netCashOut: bigint;
4671
+ netSizeOut: bigint;
4672
+ netOtcFee: bigint;
4604
4673
  };
4605
4674
  } | {
4606
4675
  eventName: "RemoveLiquiditySingleCashFromAmm";
4607
4676
  args: {
4608
4677
  user: `0x${string}`;
4609
- ammAddr: `0x${string}`;
4678
+ ammId: number;
4610
4679
  lpToRemove: bigint;
4611
4680
  netCashOut: bigint;
4681
+ netTakerOtcFee: bigint;
4612
4682
  netSizeInterm: bigint;
4613
4683
  } | {
4614
4684
  user: `0x${string}`;
4615
- ammAddr: `0x${string}`;
4685
+ ammId: number;
4616
4686
  lpToRemove: bigint;
4617
4687
  netCashOut: bigint;
4688
+ netTakerOtcFee: bigint;
4618
4689
  netSizeInterm: bigint;
4619
4690
  } | {
4620
4691
  user: `0x${string}`;
4621
- ammAddr: `0x${string}`;
4692
+ ammId: number;
4622
4693
  lpToRemove: bigint;
4623
4694
  netCashOut: bigint;
4695
+ netTakerOtcFee: bigint;
4624
4696
  netSizeInterm: bigint;
4625
4697
  };
4626
4698
  } | {
@@ -4881,7 +4953,7 @@ export declare class Exchange {
4881
4953
  };
4882
4954
  IMFactor: bigint;
4883
4955
  MMFactor: bigint;
4884
- minMarginIndexRate: bigint;
4956
+ minMarginIndexTick: number;
4885
4957
  minMarginIndexDuration: number;
4886
4958
  };
4887
4959
  } | {
@@ -4898,7 +4970,7 @@ export declare class Exchange {
4898
4970
  };
4899
4971
  IMFactor: bigint;
4900
4972
  MMFactor: bigint;
4901
- minMarginIndexRate: bigint;
4973
+ minMarginIndexTick: number;
4902
4974
  minMarginIndexDuration: number;
4903
4975
  };
4904
4976
  } | {
@@ -4915,7 +4987,7 @@ export declare class Exchange {
4915
4987
  };
4916
4988
  IMFactor: bigint;
4917
4989
  MMFactor: bigint;
4918
- minMarginIndexRate: bigint;
4990
+ minMarginIndexTick: number;
4919
4991
  minMarginIndexDuration: number;
4920
4992
  };
4921
4993
  } | {
@@ -4932,7 +5004,7 @@ export declare class Exchange {
4932
5004
  };
4933
5005
  IMFactor: bigint;
4934
5006
  MMFactor: bigint;
4935
- minMarginIndexRate: bigint;
5007
+ minMarginIndexTick: number;
4936
5008
  minMarginIndexDuration: number;
4937
5009
  };
4938
5010
  } | {
@@ -4949,7 +5021,7 @@ export declare class Exchange {
4949
5021
  };
4950
5022
  IMFactor: bigint;
4951
5023
  MMFactor: bigint;
4952
- minMarginIndexRate: bigint;
5024
+ minMarginIndexTick: number;
4953
5025
  minMarginIndexDuration: number;
4954
5026
  };
4955
5027
  } | {
@@ -4966,7 +5038,7 @@ export declare class Exchange {
4966
5038
  };
4967
5039
  IMFactor: bigint;
4968
5040
  MMFactor: bigint;
4969
- minMarginIndexRate: bigint;
5041
+ minMarginIndexTick: number;
4970
5042
  minMarginIndexDuration: number;
4971
5043
  };
4972
5044
  } | {
@@ -4983,7 +5055,7 @@ export declare class Exchange {
4983
5055
  };
4984
5056
  IMFactor: bigint;
4985
5057
  MMFactor: bigint;
4986
- minMarginIndexRate: bigint;
5058
+ minMarginIndexTick: number;
4987
5059
  minMarginIndexDuration: number;
4988
5060
  };
4989
5061
  };
@@ -5359,54 +5431,63 @@ export declare class Exchange {
5359
5431
  };
5360
5432
  IMFactor: bigint;
5361
5433
  MMFactor: bigint;
5362
- minMarginIndexRate: bigint;
5434
+ minMarginIndexTick: number;
5363
5435
  minMarginIndexDuration: number;
5364
5436
  };
5365
5437
  };
5438
+ } | {
5439
+ eventName: "AMMIdToAccUpdated";
5440
+ args: {
5441
+ ammId: number;
5442
+ amm: `0x${string}`;
5443
+ };
5366
5444
  } | {
5367
5445
  eventName: "AddLiquidityDualToAmm";
5368
5446
  args: {
5369
5447
  user: `0x${string}`;
5370
- ammAddr: `0x${string}`;
5448
+ ammId: number;
5371
5449
  exactSizeIn: bigint;
5372
5450
  netLpOut: bigint;
5373
- mintCashIn: bigint;
5374
- netCashUsed: bigint;
5451
+ netCashIn: bigint;
5452
+ netOtcFee: bigint;
5375
5453
  } | {
5376
5454
  user: `0x${string}`;
5377
- ammAddr: `0x${string}`;
5455
+ ammId: number;
5378
5456
  exactSizeIn: bigint;
5379
5457
  netLpOut: bigint;
5380
- mintCashIn: bigint;
5381
- netCashUsed: bigint;
5458
+ netCashIn: bigint;
5459
+ netOtcFee: bigint;
5382
5460
  } | {
5383
5461
  user: `0x${string}`;
5384
- ammAddr: `0x${string}`;
5462
+ ammId: number;
5385
5463
  exactSizeIn: bigint;
5386
5464
  netLpOut: bigint;
5387
- mintCashIn: bigint;
5388
- netCashUsed: bigint;
5465
+ netCashIn: bigint;
5466
+ netOtcFee: bigint;
5389
5467
  };
5390
5468
  } | {
5391
5469
  eventName: "AddLiquiditySingleCashToAmm";
5392
5470
  args: {
5393
5471
  user: `0x${string}`;
5394
- ammAddr: `0x${string}`;
5472
+ ammId: number;
5395
5473
  netLpOut: bigint;
5396
- netCashUsed: bigint;
5397
- netSizeInterm: bigint;
5474
+ netCashIn: bigint;
5475
+ totalTakerOtcFee: bigint;
5476
+ swapSizeInterm: bigint;
5398
5477
  } | {
5399
5478
  user: `0x${string}`;
5400
- ammAddr: `0x${string}`;
5479
+ ammId: number;
5401
5480
  netLpOut: bigint;
5402
- netCashUsed: bigint;
5403
- netSizeInterm: bigint;
5481
+ netCashIn: bigint;
5482
+ totalTakerOtcFee: bigint;
5483
+ swapSizeInterm: bigint;
5404
5484
  } | {
5405
5485
  user: `0x${string}`;
5406
- ammAddr: `0x${string}`;
5486
+ ammId: number;
5407
5487
  netLpOut: bigint;
5408
- netCashUsed: bigint;
5409
- netSizeInterm: bigint;
5488
+ netCashIn: bigint;
5489
+ totalTakerOtcFee: bigint;
5490
+ swapSizeInterm: bigint;
5410
5491
  };
5411
5492
  } | {
5412
5493
  eventName: "AgentApproved";
@@ -5436,10 +5517,10 @@ export declare class Exchange {
5436
5517
  agent: `0x${string}`;
5437
5518
  };
5438
5519
  } | {
5439
- eventName: "MarketIdAmmSet";
5520
+ eventName: "MaxIterationAndEpsUpdated";
5440
5521
  args: {
5441
- marketId: number;
5442
- amm: `0x${string}`;
5522
+ newMaxIteration: bigint;
5523
+ newEps: bigint;
5443
5524
  };
5444
5525
  } | {
5445
5526
  eventName: "NewAccManagerSet";
@@ -5462,45 +5543,48 @@ export declare class Exchange {
5462
5543
  eventName: "RemoveLiquidityDualFromAmm";
5463
5544
  args: {
5464
5545
  user: `0x${string}`;
5465
- ammAddr: `0x${string}`;
5546
+ ammId: number;
5466
5547
  lpToRemove: bigint;
5467
- burnCashOut: bigint;
5468
- netSizeOut: bigint;
5469
5548
  netCashOut: bigint;
5549
+ netSizeOut: bigint;
5550
+ netOtcFee: bigint;
5470
5551
  } | {
5471
5552
  user: `0x${string}`;
5472
- ammAddr: `0x${string}`;
5553
+ ammId: number;
5473
5554
  lpToRemove: bigint;
5474
- burnCashOut: bigint;
5475
- netSizeOut: bigint;
5476
5555
  netCashOut: bigint;
5556
+ netSizeOut: bigint;
5557
+ netOtcFee: bigint;
5477
5558
  } | {
5478
5559
  user: `0x${string}`;
5479
- ammAddr: `0x${string}`;
5560
+ ammId: number;
5480
5561
  lpToRemove: bigint;
5481
- burnCashOut: bigint;
5482
- netSizeOut: bigint;
5483
5562
  netCashOut: bigint;
5563
+ netSizeOut: bigint;
5564
+ netOtcFee: bigint;
5484
5565
  };
5485
5566
  } | {
5486
5567
  eventName: "RemoveLiquiditySingleCashFromAmm";
5487
5568
  args: {
5488
5569
  user: `0x${string}`;
5489
- ammAddr: `0x${string}`;
5570
+ ammId: number;
5490
5571
  lpToRemove: bigint;
5491
5572
  netCashOut: bigint;
5573
+ netTakerOtcFee: bigint;
5492
5574
  netSizeInterm: bigint;
5493
5575
  } | {
5494
5576
  user: `0x${string}`;
5495
- ammAddr: `0x${string}`;
5577
+ ammId: number;
5496
5578
  lpToRemove: bigint;
5497
5579
  netCashOut: bigint;
5580
+ netTakerOtcFee: bigint;
5498
5581
  netSizeInterm: bigint;
5499
5582
  } | {
5500
5583
  user: `0x${string}`;
5501
- ammAddr: `0x${string}`;
5584
+ ammId: number;
5502
5585
  lpToRemove: bigint;
5503
5586
  netCashOut: bigint;
5587
+ netTakerOtcFee: bigint;
5504
5588
  netSizeInterm: bigint;
5505
5589
  };
5506
5590
  } | {
@@ -5761,7 +5845,7 @@ export declare class Exchange {
5761
5845
  };
5762
5846
  IMFactor: bigint;
5763
5847
  MMFactor: bigint;
5764
- minMarginIndexRate: bigint;
5848
+ minMarginIndexTick: number;
5765
5849
  minMarginIndexDuration: number;
5766
5850
  };
5767
5851
  } | {
@@ -5778,7 +5862,7 @@ export declare class Exchange {
5778
5862
  };
5779
5863
  IMFactor: bigint;
5780
5864
  MMFactor: bigint;
5781
- minMarginIndexRate: bigint;
5865
+ minMarginIndexTick: number;
5782
5866
  minMarginIndexDuration: number;
5783
5867
  };
5784
5868
  } | {
@@ -5795,7 +5879,7 @@ export declare class Exchange {
5795
5879
  };
5796
5880
  IMFactor: bigint;
5797
5881
  MMFactor: bigint;
5798
- minMarginIndexRate: bigint;
5882
+ minMarginIndexTick: number;
5799
5883
  minMarginIndexDuration: number;
5800
5884
  };
5801
5885
  } | {
@@ -5812,7 +5896,7 @@ export declare class Exchange {
5812
5896
  };
5813
5897
  IMFactor: bigint;
5814
5898
  MMFactor: bigint;
5815
- minMarginIndexRate: bigint;
5899
+ minMarginIndexTick: number;
5816
5900
  minMarginIndexDuration: number;
5817
5901
  };
5818
5902
  } | {
@@ -5829,7 +5913,7 @@ export declare class Exchange {
5829
5913
  };
5830
5914
  IMFactor: bigint;
5831
5915
  MMFactor: bigint;
5832
- minMarginIndexRate: bigint;
5916
+ minMarginIndexTick: number;
5833
5917
  minMarginIndexDuration: number;
5834
5918
  };
5835
5919
  } | {
@@ -5846,7 +5930,7 @@ export declare class Exchange {
5846
5930
  };
5847
5931
  IMFactor: bigint;
5848
5932
  MMFactor: bigint;
5849
- minMarginIndexRate: bigint;
5933
+ minMarginIndexTick: number;
5850
5934
  minMarginIndexDuration: number;
5851
5935
  };
5852
5936
  } | {
@@ -5863,7 +5947,7 @@ export declare class Exchange {
5863
5947
  };
5864
5948
  IMFactor: bigint;
5865
5949
  MMFactor: bigint;
5866
- minMarginIndexRate: bigint;
5950
+ minMarginIndexTick: number;
5867
5951
  minMarginIndexDuration: number;
5868
5952
  };
5869
5953
  };
@@ -6219,54 +6303,63 @@ export declare class Exchange {
6219
6303
  };
6220
6304
  IMFactor: bigint;
6221
6305
  MMFactor: bigint;
6222
- minMarginIndexRate: bigint;
6306
+ minMarginIndexTick: number;
6223
6307
  minMarginIndexDuration: number;
6224
6308
  };
6225
6309
  };
6310
+ } | {
6311
+ eventName: "AMMIdToAccUpdated";
6312
+ args: {
6313
+ ammId: number;
6314
+ amm: `0x${string}`;
6315
+ };
6226
6316
  } | {
6227
6317
  eventName: "AddLiquidityDualToAmm";
6228
6318
  args: {
6229
6319
  user: `0x${string}`;
6230
- ammAddr: `0x${string}`;
6320
+ ammId: number;
6231
6321
  exactSizeIn: bigint;
6232
6322
  netLpOut: bigint;
6233
- mintCashIn: bigint;
6234
- netCashUsed: bigint;
6323
+ netCashIn: bigint;
6324
+ netOtcFee: bigint;
6235
6325
  } | {
6236
6326
  user: `0x${string}`;
6237
- ammAddr: `0x${string}`;
6327
+ ammId: number;
6238
6328
  exactSizeIn: bigint;
6239
6329
  netLpOut: bigint;
6240
- mintCashIn: bigint;
6241
- netCashUsed: bigint;
6330
+ netCashIn: bigint;
6331
+ netOtcFee: bigint;
6242
6332
  } | {
6243
6333
  user: `0x${string}`;
6244
- ammAddr: `0x${string}`;
6334
+ ammId: number;
6245
6335
  exactSizeIn: bigint;
6246
6336
  netLpOut: bigint;
6247
- mintCashIn: bigint;
6248
- netCashUsed: bigint;
6337
+ netCashIn: bigint;
6338
+ netOtcFee: bigint;
6249
6339
  };
6250
6340
  } | {
6251
6341
  eventName: "AddLiquiditySingleCashToAmm";
6252
6342
  args: {
6253
6343
  user: `0x${string}`;
6254
- ammAddr: `0x${string}`;
6344
+ ammId: number;
6255
6345
  netLpOut: bigint;
6256
- netCashUsed: bigint;
6257
- netSizeInterm: bigint;
6346
+ netCashIn: bigint;
6347
+ totalTakerOtcFee: bigint;
6348
+ swapSizeInterm: bigint;
6258
6349
  } | {
6259
6350
  user: `0x${string}`;
6260
- ammAddr: `0x${string}`;
6351
+ ammId: number;
6261
6352
  netLpOut: bigint;
6262
- netCashUsed: bigint;
6263
- netSizeInterm: bigint;
6353
+ netCashIn: bigint;
6354
+ totalTakerOtcFee: bigint;
6355
+ swapSizeInterm: bigint;
6264
6356
  } | {
6265
6357
  user: `0x${string}`;
6266
- ammAddr: `0x${string}`;
6358
+ ammId: number;
6267
6359
  netLpOut: bigint;
6268
- netCashUsed: bigint;
6269
- netSizeInterm: bigint;
6360
+ netCashIn: bigint;
6361
+ totalTakerOtcFee: bigint;
6362
+ swapSizeInterm: bigint;
6270
6363
  };
6271
6364
  } | {
6272
6365
  eventName: "AgentApproved";
@@ -6296,10 +6389,10 @@ export declare class Exchange {
6296
6389
  agent: `0x${string}`;
6297
6390
  };
6298
6391
  } | {
6299
- eventName: "MarketIdAmmSet";
6392
+ eventName: "MaxIterationAndEpsUpdated";
6300
6393
  args: {
6301
- marketId: number;
6302
- amm: `0x${string}`;
6394
+ newMaxIteration: bigint;
6395
+ newEps: bigint;
6303
6396
  };
6304
6397
  } | {
6305
6398
  eventName: "NewAccManagerSet";
@@ -6322,45 +6415,48 @@ export declare class Exchange {
6322
6415
  eventName: "RemoveLiquidityDualFromAmm";
6323
6416
  args: {
6324
6417
  user: `0x${string}`;
6325
- ammAddr: `0x${string}`;
6418
+ ammId: number;
6326
6419
  lpToRemove: bigint;
6327
- burnCashOut: bigint;
6328
- netSizeOut: bigint;
6329
6420
  netCashOut: bigint;
6421
+ netSizeOut: bigint;
6422
+ netOtcFee: bigint;
6330
6423
  } | {
6331
6424
  user: `0x${string}`;
6332
- ammAddr: `0x${string}`;
6425
+ ammId: number;
6333
6426
  lpToRemove: bigint;
6334
- burnCashOut: bigint;
6335
- netSizeOut: bigint;
6336
6427
  netCashOut: bigint;
6428
+ netSizeOut: bigint;
6429
+ netOtcFee: bigint;
6337
6430
  } | {
6338
6431
  user: `0x${string}`;
6339
- ammAddr: `0x${string}`;
6432
+ ammId: number;
6340
6433
  lpToRemove: bigint;
6341
- burnCashOut: bigint;
6342
- netSizeOut: bigint;
6343
6434
  netCashOut: bigint;
6435
+ netSizeOut: bigint;
6436
+ netOtcFee: bigint;
6344
6437
  };
6345
6438
  } | {
6346
6439
  eventName: "RemoveLiquiditySingleCashFromAmm";
6347
6440
  args: {
6348
6441
  user: `0x${string}`;
6349
- ammAddr: `0x${string}`;
6442
+ ammId: number;
6350
6443
  lpToRemove: bigint;
6351
6444
  netCashOut: bigint;
6445
+ netTakerOtcFee: bigint;
6352
6446
  netSizeInterm: bigint;
6353
6447
  } | {
6354
6448
  user: `0x${string}`;
6355
- ammAddr: `0x${string}`;
6449
+ ammId: number;
6356
6450
  lpToRemove: bigint;
6357
6451
  netCashOut: bigint;
6452
+ netTakerOtcFee: bigint;
6358
6453
  netSizeInterm: bigint;
6359
6454
  } | {
6360
6455
  user: `0x${string}`;
6361
- ammAddr: `0x${string}`;
6456
+ ammId: number;
6362
6457
  lpToRemove: bigint;
6363
6458
  netCashOut: bigint;
6459
+ netTakerOtcFee: bigint;
6364
6460
  netSizeInterm: bigint;
6365
6461
  };
6366
6462
  } | {
@@ -6621,7 +6717,7 @@ export declare class Exchange {
6621
6717
  };
6622
6718
  IMFactor: bigint;
6623
6719
  MMFactor: bigint;
6624
- minMarginIndexRate: bigint;
6720
+ minMarginIndexTick: number;
6625
6721
  minMarginIndexDuration: number;
6626
6722
  };
6627
6723
  } | {
@@ -6638,7 +6734,7 @@ export declare class Exchange {
6638
6734
  };
6639
6735
  IMFactor: bigint;
6640
6736
  MMFactor: bigint;
6641
- minMarginIndexRate: bigint;
6737
+ minMarginIndexTick: number;
6642
6738
  minMarginIndexDuration: number;
6643
6739
  };
6644
6740
  } | {
@@ -6655,7 +6751,7 @@ export declare class Exchange {
6655
6751
  };
6656
6752
  IMFactor: bigint;
6657
6753
  MMFactor: bigint;
6658
- minMarginIndexRate: bigint;
6754
+ minMarginIndexTick: number;
6659
6755
  minMarginIndexDuration: number;
6660
6756
  };
6661
6757
  } | {
@@ -6672,7 +6768,7 @@ export declare class Exchange {
6672
6768
  };
6673
6769
  IMFactor: bigint;
6674
6770
  MMFactor: bigint;
6675
- minMarginIndexRate: bigint;
6771
+ minMarginIndexTick: number;
6676
6772
  minMarginIndexDuration: number;
6677
6773
  };
6678
6774
  } | {
@@ -6689,7 +6785,7 @@ export declare class Exchange {
6689
6785
  };
6690
6786
  IMFactor: bigint;
6691
6787
  MMFactor: bigint;
6692
- minMarginIndexRate: bigint;
6788
+ minMarginIndexTick: number;
6693
6789
  minMarginIndexDuration: number;
6694
6790
  };
6695
6791
  } | {
@@ -6706,7 +6802,7 @@ export declare class Exchange {
6706
6802
  };
6707
6803
  IMFactor: bigint;
6708
6804
  MMFactor: bigint;
6709
- minMarginIndexRate: bigint;
6805
+ minMarginIndexTick: number;
6710
6806
  minMarginIndexDuration: number;
6711
6807
  };
6712
6808
  } | {
@@ -6723,7 +6819,7 @@ export declare class Exchange {
6723
6819
  };
6724
6820
  IMFactor: bigint;
6725
6821
  MMFactor: bigint;
6726
- minMarginIndexRate: bigint;
6822
+ minMarginIndexTick: number;
6727
6823
  minMarginIndexDuration: number;
6728
6824
  };
6729
6825
  };