|
20 | 20 | }, |
21 | 21 | { |
22 | 22 | "internalType": "uint256", |
23 | | - "name": "priceShiftDailyRate", |
| 23 | + "name": "dailyPriceShiftExponent", |
24 | 24 | "type": "uint256" |
25 | 25 | }, |
26 | 26 | { |
|
72 | 72 | "name": "BaseOutOfBounds", |
73 | 73 | "type": "error" |
74 | 74 | }, |
| 75 | + { |
| 76 | + "inputs": [], |
| 77 | + "name": "DailyPriceShiftExponentTooHigh", |
| 78 | + "type": "error" |
| 79 | + }, |
75 | 80 | { |
76 | 81 | "inputs": [], |
77 | 82 | "name": "ECDSAInvalidSignature", |
|
142 | 147 | "name": "FourthRootPriceRatioDeltaBelowMin", |
143 | 148 | "type": "error" |
144 | 149 | }, |
145 | | - { |
146 | | - "inputs": [ |
147 | | - { |
148 | | - "internalType": "uint256", |
149 | | - "name": "resolvedStartTime", |
150 | | - "type": "uint256" |
151 | | - }, |
152 | | - { |
153 | | - "internalType": "uint256", |
154 | | - "name": "endTime", |
155 | | - "type": "uint256" |
156 | | - } |
157 | | - ], |
158 | | - "name": "GradualUpdateTimeTravel", |
159 | | - "type": "error" |
160 | | - }, |
161 | 150 | { |
162 | 151 | "inputs": [ |
163 | 152 | { |
|
194 | 183 | "name": "InvalidShortString", |
195 | 184 | "type": "error" |
196 | 185 | }, |
| 186 | + { |
| 187 | + "inputs": [ |
| 188 | + { |
| 189 | + "internalType": "uint256", |
| 190 | + "name": "resolvedStartTime", |
| 191 | + "type": "uint256" |
| 192 | + }, |
| 193 | + { |
| 194 | + "internalType": "uint256", |
| 195 | + "name": "endTime", |
| 196 | + "type": "uint256" |
| 197 | + } |
| 198 | + ], |
| 199 | + "name": "InvalidStartTime", |
| 200 | + "type": "error" |
| 201 | + }, |
197 | 202 | { |
198 | 203 | "inputs": [], |
199 | 204 | "name": "InvalidStartTime", |
200 | 205 | "type": "error" |
201 | 206 | }, |
| 207 | + { |
| 208 | + "inputs": [], |
| 209 | + "name": "InvalidToken", |
| 210 | + "type": "error" |
| 211 | + }, |
202 | 212 | { |
203 | 213 | "inputs": [], |
204 | 214 | "name": "NegativeAmountOut", |
|
229 | 239 | "name": "PriceRatioUpdateDurationTooShort", |
230 | 240 | "type": "error" |
231 | 241 | }, |
232 | | - { |
233 | | - "inputs": [], |
234 | | - "name": "PriceShiftDailyRateTooHigh", |
235 | | - "type": "error" |
236 | | - }, |
237 | 242 | { |
238 | 243 | "inputs": [], |
239 | 244 | "name": "ProductOutOfBounds", |
|
361 | 366 | "name": "CenterednessMarginUpdated", |
362 | 367 | "type": "event" |
363 | 368 | }, |
| 369 | + { |
| 370 | + "anonymous": false, |
| 371 | + "inputs": [ |
| 372 | + { |
| 373 | + "indexed": false, |
| 374 | + "internalType": "uint256", |
| 375 | + "name": "dailyPriceShiftExponent", |
| 376 | + "type": "uint256" |
| 377 | + }, |
| 378 | + { |
| 379 | + "indexed": false, |
| 380 | + "internalType": "uint256", |
| 381 | + "name": "dailyPriceShiftBase", |
| 382 | + "type": "uint256" |
| 383 | + } |
| 384 | + ], |
| 385 | + "name": "DailyPriceShiftExponentUpdated", |
| 386 | + "type": "event" |
| 387 | + }, |
364 | 388 | { |
365 | 389 | "anonymous": false, |
366 | 390 | "inputs": [], |
|
411 | 435 | "name": "PriceRatioStateUpdated", |
412 | 436 | "type": "event" |
413 | 437 | }, |
414 | | - { |
415 | | - "anonymous": false, |
416 | | - "inputs": [ |
417 | | - { |
418 | | - "indexed": false, |
419 | | - "internalType": "uint256", |
420 | | - "name": "priceShiftDailyRate", |
421 | | - "type": "uint256" |
422 | | - }, |
423 | | - { |
424 | | - "indexed": false, |
425 | | - "internalType": "uint256", |
426 | | - "name": "priceShiftDailyRateInSeconds", |
427 | | - "type": "uint256" |
428 | | - } |
429 | | - ], |
430 | | - "name": "PriceShiftDailyRateUpdated", |
431 | | - "type": "event" |
432 | | - }, |
433 | 438 | { |
434 | 439 | "anonymous": false, |
435 | 440 | "inputs": [ |
|
669 | 674 | "outputs": [ |
670 | 675 | { |
671 | 676 | "internalType": "uint256", |
672 | | - "name": "balanceRatio", |
| 677 | + "name": "", |
| 678 | + "type": "uint256" |
| 679 | + } |
| 680 | + ], |
| 681 | + "stateMutability": "view", |
| 682 | + "type": "function" |
| 683 | + }, |
| 684 | + { |
| 685 | + "inputs": [ |
| 686 | + { |
| 687 | + "internalType": "contract IERC20", |
| 688 | + "name": "referenceToken", |
| 689 | + "type": "address" |
| 690 | + }, |
| 691 | + { |
| 692 | + "internalType": "uint256", |
| 693 | + "name": "referenceAmountIn", |
673 | 694 | "type": "uint256" |
674 | 695 | } |
675 | 696 | ], |
| 697 | + "name": "computeInitialBalances", |
| 698 | + "outputs": [ |
| 699 | + { |
| 700 | + "internalType": "uint256[]", |
| 701 | + "name": "initialBalances", |
| 702 | + "type": "uint256[]" |
| 703 | + } |
| 704 | + ], |
676 | 705 | "stateMutability": "view", |
677 | 706 | "type": "function" |
678 | 707 | }, |
|
865 | 894 | "stateMutability": "view", |
866 | 895 | "type": "function" |
867 | 896 | }, |
| 897 | + { |
| 898 | + "inputs": [], |
| 899 | + "name": "getDailyPriceShiftBase", |
| 900 | + "outputs": [ |
| 901 | + { |
| 902 | + "internalType": "uint256", |
| 903 | + "name": "", |
| 904 | + "type": "uint256" |
| 905 | + } |
| 906 | + ], |
| 907 | + "stateMutability": "view", |
| 908 | + "type": "function" |
| 909 | + }, |
| 910 | + { |
| 911 | + "inputs": [], |
| 912 | + "name": "getDailyPriceShiftExponent", |
| 913 | + "outputs": [ |
| 914 | + { |
| 915 | + "internalType": "uint256", |
| 916 | + "name": "", |
| 917 | + "type": "uint256" |
| 918 | + } |
| 919 | + ], |
| 920 | + "stateMutability": "view", |
| 921 | + "type": "function" |
| 922 | + }, |
868 | 923 | { |
869 | 924 | "inputs": [], |
870 | 925 | "name": "getHookFlags", |
|
1048 | 1103 | "stateMutability": "view", |
1049 | 1104 | "type": "function" |
1050 | 1105 | }, |
1051 | | - { |
1052 | | - "inputs": [], |
1053 | | - "name": "getPriceShiftDailyRateInSeconds", |
1054 | | - "outputs": [ |
1055 | | - { |
1056 | | - "internalType": "uint256", |
1057 | | - "name": "", |
1058 | | - "type": "uint256" |
1059 | | - } |
1060 | | - ], |
1061 | | - "stateMutability": "view", |
1062 | | - "type": "function" |
1063 | | - }, |
1064 | 1106 | { |
1065 | 1107 | "inputs": [], |
1066 | 1108 | "name": "getRate", |
|
1112 | 1154 | }, |
1113 | 1155 | { |
1114 | 1156 | "internalType": "uint256", |
1115 | | - "name": "priceShiftDailyRateInSeconds", |
| 1157 | + "name": "dailyPriceShiftBase", |
1116 | 1158 | "type": "uint256" |
1117 | 1159 | }, |
1118 | 1160 | { |
|
1202 | 1244 | }, |
1203 | 1245 | { |
1204 | 1246 | "internalType": "uint256", |
1205 | | - "name": "initialPriceShiftDailyRate", |
| 1247 | + "name": "initialDailyPriceShiftExponent", |
1206 | 1248 | "type": "uint256" |
1207 | 1249 | }, |
1208 | 1250 | { |
|
1232 | 1274 | }, |
1233 | 1275 | { |
1234 | 1276 | "internalType": "uint256", |
1235 | | - "name": "maxPriceShiftDailyRate", |
| 1277 | + "name": "maxDailyPriceShiftExponent", |
1236 | 1278 | "type": "uint256" |
1237 | 1279 | }, |
1238 | 1280 | { |
|
1358 | 1400 | "stateMutability": "view", |
1359 | 1401 | "type": "function" |
1360 | 1402 | }, |
| 1403 | + { |
| 1404 | + "inputs": [], |
| 1405 | + "name": "isPoolWithinTargetRangeUsingCurrentVirtualBalances", |
| 1406 | + "outputs": [ |
| 1407 | + { |
| 1408 | + "internalType": "bool", |
| 1409 | + "name": "isWithinTargetRange", |
| 1410 | + "type": "bool" |
| 1411 | + }, |
| 1412 | + { |
| 1413 | + "internalType": "bool", |
| 1414 | + "name": "virtualBalancesChanged", |
| 1415 | + "type": "bool" |
| 1416 | + } |
| 1417 | + ], |
| 1418 | + "stateMutability": "view", |
| 1419 | + "type": "function" |
| 1420 | + }, |
1361 | 1421 | { |
1362 | 1422 | "inputs": [], |
1363 | 1423 | "name": "name", |
|
2067 | 2127 | "stateMutability": "nonpayable", |
2068 | 2128 | "type": "function" |
2069 | 2129 | }, |
| 2130 | + { |
| 2131 | + "inputs": [ |
| 2132 | + { |
| 2133 | + "internalType": "uint256", |
| 2134 | + "name": "newDailyPriceShiftExponent", |
| 2135 | + "type": "uint256" |
| 2136 | + } |
| 2137 | + ], |
| 2138 | + "name": "setDailyPriceShiftExponent", |
| 2139 | + "outputs": [ |
| 2140 | + { |
| 2141 | + "internalType": "uint256", |
| 2142 | + "name": "", |
| 2143 | + "type": "uint256" |
| 2144 | + } |
| 2145 | + ], |
| 2146 | + "stateMutability": "nonpayable", |
| 2147 | + "type": "function" |
| 2148 | + }, |
2070 | 2149 | { |
2071 | 2150 | "inputs": [ |
2072 | 2151 | { |
|
2096 | 2175 | "stateMutability": "nonpayable", |
2097 | 2176 | "type": "function" |
2098 | 2177 | }, |
2099 | | - { |
2100 | | - "inputs": [ |
2101 | | - { |
2102 | | - "internalType": "uint256", |
2103 | | - "name": "newPriceShiftDailyRate", |
2104 | | - "type": "uint256" |
2105 | | - } |
2106 | | - ], |
2107 | | - "name": "setPriceShiftDailyRate", |
2108 | | - "outputs": [], |
2109 | | - "stateMutability": "nonpayable", |
2110 | | - "type": "function" |
2111 | | - }, |
2112 | 2178 | { |
2113 | 2179 | "inputs": [ |
2114 | 2180 | { |
|
0 commit comments