|
14 | 14 | "name": "InvalidPerc", |
15 | 15 | "type": "error" |
16 | 16 | }, |
| 17 | + { |
| 18 | + "inputs": [], |
| 19 | + "name": "InvalidRange", |
| 20 | + "type": "error" |
| 21 | + }, |
17 | 22 | { |
18 | 23 | "inputs": [], |
19 | 24 | "name": "SlippageTooHigh", |
|
31 | 36 | }, |
32 | 37 | { |
33 | 38 | "inputs": [], |
34 | | - "name": "UnexpectedARDelta", |
| 39 | + "name": "UnexpectedDecimals", |
35 | 40 | "type": "error" |
36 | 41 | }, |
37 | 42 | { |
38 | 43 | "inputs": [], |
39 | | - "name": "UnexpectedDecimals", |
| 44 | + "name": "UnexpectedRangeDelta", |
40 | 45 | "type": "error" |
41 | 46 | }, |
42 | 47 | { |
|
329 | 334 | "stateMutability": "view", |
330 | 335 | "type": "function" |
331 | 336 | }, |
| 337 | + { |
| 338 | + "inputs": [], |
| 339 | + "name": "MAX_ASSET_RATIO", |
| 340 | + "outputs": [ |
| 341 | + { |
| 342 | + "internalType": "uint256", |
| 343 | + "name": "", |
| 344 | + "type": "uint256" |
| 345 | + } |
| 346 | + ], |
| 347 | + "stateMutability": "view", |
| 348 | + "type": "function" |
| 349 | + }, |
| 350 | + { |
| 351 | + "inputs": [], |
| 352 | + "name": "MAX_FEE_FACTOR", |
| 353 | + "outputs": [ |
| 354 | + { |
| 355 | + "internalType": "uint256", |
| 356 | + "name": "", |
| 357 | + "type": "uint256" |
| 358 | + } |
| 359 | + ], |
| 360 | + "stateMutability": "view", |
| 361 | + "type": "function" |
| 362 | + }, |
332 | 363 | { |
333 | 364 | "inputs": [], |
334 | 365 | "name": "MINIMUM_LIQUIDITY", |
|
355 | 386 | "stateMutability": "view", |
356 | 387 | "type": "function" |
357 | 388 | }, |
| 389 | + { |
| 390 | + "inputs": [], |
| 391 | + "name": "TWO", |
| 392 | + "outputs": [ |
| 393 | + { |
| 394 | + "internalType": "uint256", |
| 395 | + "name": "", |
| 396 | + "type": "uint256" |
| 397 | + } |
| 398 | + ], |
| 399 | + "stateMutability": "view", |
| 400 | + "type": "function" |
| 401 | + }, |
358 | 402 | { |
359 | 403 | "inputs": [ |
360 | 404 | { |
|
627 | 671 | "outputs": [ |
628 | 672 | { |
629 | 673 | "internalType": "uint256", |
630 | | - "name": "", |
| 674 | + "name": "mintAmt", |
631 | 675 | "type": "uint256" |
632 | 676 | } |
633 | 677 | ], |
|
692 | 736 | "outputs": [ |
693 | 737 | { |
694 | 738 | "internalType": "uint256", |
695 | | - "name": "", |
| 739 | + "name": "mintAmt", |
696 | 740 | "type": "uint256" |
697 | 741 | } |
698 | 742 | ], |
|
760 | 804 | "name": "usdAmtOut", |
761 | 805 | "type": "uint256" |
762 | 806 | }, |
763 | | - { |
764 | | - "internalType": "uint256", |
765 | | - "name": "lpFeeUsdAmt", |
766 | | - "type": "uint256" |
767 | | - }, |
768 | 807 | { |
769 | 808 | "internalType": "uint256", |
770 | 809 | "name": "protocolFeeUsdAmt", |
|
787 | 826 | "type": "uint256" |
788 | 827 | } |
789 | 828 | ], |
790 | | - "name": "computePerpToUSDSwapFeePerc", |
| 829 | + "name": "computePerpToUSDSwapFeeFactor", |
791 | 830 | "outputs": [ |
792 | 831 | { |
793 | 832 | "internalType": "uint256", |
|
864 | 903 | "name": "perpAmtOut", |
865 | 904 | "type": "uint256" |
866 | 905 | }, |
867 | | - { |
868 | | - "internalType": "uint256", |
869 | | - "name": "lpFeePerpAmt", |
870 | | - "type": "uint256" |
871 | | - }, |
872 | 906 | { |
873 | 907 | "internalType": "uint256", |
874 | 908 | "name": "protocolFeePerpAmt", |
|
910 | 944 | "type": "uint256" |
911 | 945 | } |
912 | 946 | ], |
913 | | - "name": "computeUSDToPerpSwapFeePerc", |
| 947 | + "name": "computeUSDToPerpSwapFeeFactor", |
914 | 948 | "outputs": [ |
915 | 949 | { |
916 | 950 | "internalType": "uint256", |
|
1068 | 1102 | } |
1069 | 1103 | ], |
1070 | 1104 | "internalType": "struct Range", |
1071 | | - "name": "perpToUSDSwapFeePercs", |
| 1105 | + "name": "perpToUSDSwapFeeFactors", |
1072 | 1106 | "type": "tuple" |
1073 | 1107 | }, |
1074 | 1108 | { |
|
1085 | 1119 | } |
1086 | 1120 | ], |
1087 | 1121 | "internalType": "struct Range", |
1088 | | - "name": "usdToPerpSwapFeePercs", |
| 1122 | + "name": "usdToPerpSwapFeeFactors", |
1089 | 1123 | "type": "tuple" |
1090 | 1124 | }, |
1091 | 1125 | { |
|
1144 | 1178 | "type": "address" |
1145 | 1179 | }, |
1146 | 1180 | { |
1147 | | - "internalType": "contract ISpotPricingStrategy", |
1148 | | - "name": "pricingStrategy_", |
| 1181 | + "internalType": "contract IPerpPricer", |
| 1182 | + "name": "oracle_", |
1149 | 1183 | "type": "address" |
1150 | 1184 | } |
1151 | 1185 | ], |
|
1180 | 1214 | "stateMutability": "view", |
1181 | 1215 | "type": "function" |
1182 | 1216 | }, |
| 1217 | + { |
| 1218 | + "inputs": [], |
| 1219 | + "name": "oracle", |
| 1220 | + "outputs": [ |
| 1221 | + { |
| 1222 | + "internalType": "contract IPerpPricer", |
| 1223 | + "name": "", |
| 1224 | + "type": "address" |
| 1225 | + } |
| 1226 | + ], |
| 1227 | + "stateMutability": "view", |
| 1228 | + "type": "function" |
| 1229 | + }, |
1183 | 1230 | { |
1184 | 1231 | "inputs": [], |
1185 | 1232 | "name": "owner", |
|
1265 | 1312 | "stateMutability": "view", |
1266 | 1313 | "type": "function" |
1267 | 1314 | }, |
1268 | | - { |
1269 | | - "inputs": [], |
1270 | | - "name": "pricingStrategy", |
1271 | | - "outputs": [ |
1272 | | - { |
1273 | | - "internalType": "contract ISpotPricingStrategy", |
1274 | | - "name": "", |
1275 | | - "type": "address" |
1276 | | - } |
1277 | | - ], |
1278 | | - "stateMutability": "view", |
1279 | | - "type": "function" |
1280 | | - }, |
1281 | 1315 | { |
1282 | 1316 | "inputs": [], |
1283 | 1317 | "name": "protocolFeeCollector", |
|
1574 | 1608 | } |
1575 | 1609 | ], |
1576 | 1610 | "internalType": "struct Range", |
1577 | | - "name": "perpToUSDSwapFeePercs", |
| 1611 | + "name": "perpToUSDSwapFeeFactors", |
1578 | 1612 | "type": "tuple" |
1579 | 1613 | }, |
1580 | 1614 | { |
|
1591 | 1625 | } |
1592 | 1626 | ], |
1593 | 1627 | "internalType": "struct Range", |
1594 | | - "name": "usdToPerpSwapFeePercs", |
| 1628 | + "name": "usdToPerpSwapFeeFactors", |
1595 | 1629 | "type": "tuple" |
1596 | 1630 | }, |
1597 | 1631 | { |
|
1626 | 1660 | { |
1627 | 1661 | "inputs": [ |
1628 | 1662 | { |
1629 | | - "internalType": "contract ISpotPricingStrategy", |
1630 | | - "name": "pricingStrategy_", |
| 1663 | + "internalType": "contract IPerpPricer", |
| 1664 | + "name": "oracle_", |
1631 | 1665 | "type": "address" |
1632 | 1666 | } |
1633 | 1667 | ], |
1634 | | - "name": "updatePricingStrategy", |
| 1668 | + "name": "updateOracle", |
1635 | 1669 | "outputs": [], |
1636 | 1670 | "stateMutability": "nonpayable", |
1637 | 1671 | "type": "function" |
|
0 commit comments