@pendle/core-v2 5.1.1 → 5.1.2-beta-3

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.
Files changed (204) hide show
  1. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  3. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithoutPermitUpg.sol/SYBaseWithoutPermitUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleStkGHOSY.sol/PendleStkGHOSY.dbg.json +1 -1
  5. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  6. package/build/artifacts/contracts/core/StandardizedYield/implementations/Mantle/PendleCMETHSY.sol/PendleCMETHSY.dbg.json +1 -1
  7. package/build/artifacts/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveNonBorrowableSY.sol/PendleSiloWithIncentiveNonBorrowableSY.dbg.json +4 -0
  8. package/build/artifacts/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveNonBorrowableSY.sol/PendleSiloWithIncentiveNonBorrowableSY.json +1222 -0
  9. package/build/artifacts/contracts/interfaces/AaveV3/IAaveStkGHO.sol/IAaveStkGHO.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/Angle/IAngleDistributor.sol/IAngleDistributor.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.json +196 -0
  13. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +66 -0
  16. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +196 -78
  18. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  19. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.json +196 -0
  20. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  21. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.json +196 -0
  22. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  23. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.json +196 -0
  24. package/build/artifacts/contracts/interfaces/IPActionSwapLimitV3.sol/IPActionSwapLimitV3.dbg.json +4 -0
  25. package/build/artifacts/contracts/interfaces/IPActionSwapLimitV3.sol/IPActionSwapLimitV3.json +2638 -0
  26. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  27. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.json +196 -0
  28. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  29. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.json +196 -0
  30. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  31. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +1220 -48
  32. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  33. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  34. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  35. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapLimitV3Events.dbg.json +4 -0
  36. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapLimitV3Events.json +207 -0
  37. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  38. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  39. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  40. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.json +196 -0
  41. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  42. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +262 -0
  43. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  44. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  45. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  46. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  47. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  48. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  49. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  50. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  51. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  52. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  53. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +68 -2
  54. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  55. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  56. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  57. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +198 -2
  58. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  59. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  60. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  61. package/build/artifacts/contracts/oracles/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  62. package/build/artifacts/contracts/oracles/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  63. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  64. package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  65. package/build/artifacts/contracts/oracles/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  66. package/build/artifacts/contracts/oracles/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  67. package/build/artifacts/contracts/oracles/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  68. package/build/artifacts/contracts/oracles/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  69. package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +1 -1
  70. package/build/artifacts/contracts/oracles/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  71. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  72. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  73. package/build/artifacts/contracts/oracles/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  74. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  75. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +198 -2
  76. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  77. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +198 -80
  78. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  79. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +198 -2
  80. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  81. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +198 -2
  82. package/build/artifacts/contracts/router/ActionSwapLimitV3.sol/ActionSwapLimitV3.dbg.json +4 -0
  83. package/build/artifacts/contracts/router/ActionSwapLimitV3.sol/ActionSwapLimitV3.json +2638 -0
  84. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  85. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +198 -2
  86. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  87. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +198 -2
  88. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  89. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  90. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  91. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  92. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  93. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  94. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  95. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  96. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  97. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  98. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  99. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  100. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  101. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  102. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  103. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  104. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  105. package/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveNonBorrowableSY.sol +154 -0
  106. package/contracts/interfaces/IPActionAddRemoveLiqV3.sol +6 -6
  107. package/contracts/interfaces/IPActionMarketCoreStatic.sol +4 -0
  108. package/contracts/interfaces/IPActionMiscV3.sol +2 -8
  109. package/contracts/interfaces/IPActionSwapLimitV3.sol +42 -0
  110. package/contracts/interfaces/IPActionSwapPTV3.sol +4 -4
  111. package/contracts/interfaces/IPActionSwapYTV3.sol +4 -4
  112. package/contracts/interfaces/IPAllActionTypeV3.sol +4 -0
  113. package/contracts/interfaces/IPAllActionV3.sol +3 -1
  114. package/contracts/interfaces/IPAllEventsV3.sol +44 -1
  115. package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +1 -1
  116. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +1 -1
  117. package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +10 -4
  118. package/contracts/router/ActionAddRemoveLiqV3.sol +9 -9
  119. package/contracts/router/ActionMiscV3.sol +3 -17
  120. package/contracts/router/ActionSwapLimitV3.sol +126 -0
  121. package/contracts/router/ActionSwapPTV3.sol +4 -4
  122. package/contracts/router/ActionSwapYTV3.sol +4 -4
  123. package/contracts/router/base/ActionBase.sol +35 -12
  124. package/contracts/router/base/ActionDelegateBase.sol +1 -1
  125. package/deployments/1-markets/RSETH-MAINNET-JUN2025.json +14 -0
  126. package/deployments/1-markets/WEETH-MAINNET-JUN2025.json +14 -0
  127. package/deployments/42161-markets/RSETH-ARBITRUM-JUN2025.json +14 -0
  128. package/deployments/42161-markets/SPSILO-ARBITRUM-MAR2025.json +14 -0
  129. package/deployments/42161-markets/WEETH-ARBITRUM-JUN2025.json +14 -0
  130. package/deployments/56-core.json +1 -1
  131. package/package.json +1 -1
  132. package/typechain-types/ActionAddRemoveLiqV3.ts +148 -0
  133. package/typechain-types/ActionMarketCoreStatic.ts +68 -0
  134. package/typechain-types/ActionMiscV3.ts +148 -44
  135. package/typechain-types/ActionSimple.ts +148 -0
  136. package/typechain-types/ActionStorageStatic.ts +148 -0
  137. package/typechain-types/ActionStorageV4.ts +148 -0
  138. package/typechain-types/ActionSwapLimitV3.ts +1667 -0
  139. package/typechain-types/ActionSwapPTV3.ts +148 -0
  140. package/typechain-types/ActionSwapYTV3.ts +148 -0
  141. package/typechain-types/IPActionAddRemoveLiqV3.ts +148 -0
  142. package/typechain-types/IPActionMarketCoreStatic.ts +68 -0
  143. package/typechain-types/IPActionMiscV3.ts +148 -44
  144. package/typechain-types/IPActionSimple.ts +148 -0
  145. package/typechain-types/IPActionStorageStatic.ts +148 -0
  146. package/typechain-types/IPActionStorageV4.ts +148 -0
  147. package/typechain-types/IPActionSwapLimitV3.ts +1667 -0
  148. package/typechain-types/IPActionSwapLimitV3Events.ts +207 -0
  149. package/typechain-types/IPActionSwapPTV3.ts +148 -0
  150. package/typechain-types/IPActionSwapYTV3.ts +148 -0
  151. package/typechain-types/IPAllActionV3.ts +390 -20
  152. package/typechain-types/IPAllEventsV3.ts +148 -0
  153. package/typechain-types/IPChainlinkOracle.ts +221 -0
  154. package/typechain-types/IPChainlinkOracleFactory.ts +123 -0
  155. package/typechain-types/IPChainlinkOracleWithQuote.ts +404 -0
  156. package/typechain-types/IPRouterStatic.ts +182 -0
  157. package/typechain-types/PendleChainlinkOracle.ts +299 -0
  158. package/typechain-types/PendleChainlinkOracleBase.ts +299 -0
  159. package/typechain-types/PendleChainlinkOracleFactory.ts +389 -0
  160. package/typechain-types/PendleChainlinkOracleWithQuote.ts +335 -0
  161. package/typechain-types/PendleSiloWithIncentiveNonBorrowableSY.ts +1543 -0
  162. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +197 -1
  163. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  164. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  165. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +67 -1
  166. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  167. package/typechain-types/factories/ActionMiscV3__factory.ts +197 -79
  168. package/typechain-types/factories/ActionSimple__factory.ts +197 -1
  169. package/typechain-types/factories/ActionStorageStatic__factory.ts +197 -1
  170. package/typechain-types/factories/ActionStorageV4__factory.ts +197 -1
  171. package/typechain-types/factories/ActionSwapLimitV3__factory.ts +2691 -0
  172. package/typechain-types/factories/ActionSwapPTV3__factory.ts +197 -1
  173. package/typechain-types/factories/ActionSwapYTV3__factory.ts +197 -1
  174. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  175. package/typechain-types/factories/IPActionAddRemoveLiqV3__factory.ts +196 -0
  176. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +66 -0
  177. package/typechain-types/factories/IPActionMiscV3__factory.ts +196 -78
  178. package/typechain-types/factories/IPActionSimple__factory.ts +196 -0
  179. package/typechain-types/factories/IPActionStorageStatic__factory.ts +196 -0
  180. package/typechain-types/factories/IPActionStorageV4__factory.ts +196 -0
  181. package/typechain-types/factories/IPActionSwapLimitV3Events__factory.ts +226 -0
  182. package/typechain-types/factories/IPActionSwapLimitV3__factory.ts +2653 -0
  183. package/typechain-types/factories/IPActionSwapPTV3__factory.ts +196 -0
  184. package/typechain-types/factories/IPActionSwapYTV3__factory.ts +196 -0
  185. package/typechain-types/factories/IPAllActionV3__factory.ts +1220 -48
  186. package/typechain-types/factories/IPAllEventsV3__factory.ts +196 -0
  187. package/typechain-types/factories/IPChainlinkOracleFactory__factory.ts +110 -0
  188. package/typechain-types/factories/IPChainlinkOracleWithQuote__factory.ts +281 -0
  189. package/typechain-types/factories/IPChainlinkOracle__factory.ts +137 -0
  190. package/typechain-types/factories/IPRouterStatic__factory.ts +262 -0
  191. package/typechain-types/factories/PendleChainlinkOracleBase__factory.ts +272 -0
  192. package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +362 -0
  193. package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +394 -0
  194. package/typechain-types/factories/PendleChainlinkOracle__factory.ts +354 -0
  195. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  196. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  197. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  198. package/typechain-types/factories/PendleSiloWithIncentiveNonBorrowableSY__factory.ts +1317 -0
  199. package/typechain-types/factories/Reflector__factory.ts +1 -1
  200. package/typechain-types/hardhat.d.ts +36 -0
  201. package/typechain-types/index.ts +8 -0
  202. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +0 -4
  203. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +0 -10
  204. package/contracts/offchain-helpers/MarketExchangeRateLib.sol +0 -32
@@ -1171,6 +1171,202 @@
1171
1171
  "name": "SelectorToFacetSet",
1172
1172
  "type": "event"
1173
1173
  },
1174
+ {
1175
+ "anonymous": false,
1176
+ "inputs": [
1177
+ {
1178
+ "indexed": true,
1179
+ "internalType": "address",
1180
+ "name": "caller",
1181
+ "type": "address"
1182
+ },
1183
+ {
1184
+ "indexed": true,
1185
+ "internalType": "address",
1186
+ "name": "market",
1187
+ "type": "address"
1188
+ },
1189
+ {
1190
+ "indexed": true,
1191
+ "internalType": "address",
1192
+ "name": "receiver",
1193
+ "type": "address"
1194
+ },
1195
+ {
1196
+ "indexed": false,
1197
+ "internalType": "uint256",
1198
+ "name": "maxPtIn",
1199
+ "type": "uint256"
1200
+ },
1201
+ {
1202
+ "indexed": false,
1203
+ "internalType": "uint256",
1204
+ "name": "netSyOut",
1205
+ "type": "uint256"
1206
+ },
1207
+ {
1208
+ "indexed": false,
1209
+ "internalType": "uint256",
1210
+ "name": "netPtReturned",
1211
+ "type": "uint256"
1212
+ }
1213
+ ],
1214
+ "name": "SwapMaxPtForSyLimitOnly",
1215
+ "type": "event"
1216
+ },
1217
+ {
1218
+ "anonymous": false,
1219
+ "inputs": [
1220
+ {
1221
+ "indexed": true,
1222
+ "internalType": "address",
1223
+ "name": "caller",
1224
+ "type": "address"
1225
+ },
1226
+ {
1227
+ "indexed": true,
1228
+ "internalType": "address",
1229
+ "name": "market",
1230
+ "type": "address"
1231
+ },
1232
+ {
1233
+ "indexed": true,
1234
+ "internalType": "address",
1235
+ "name": "token",
1236
+ "type": "address"
1237
+ },
1238
+ {
1239
+ "indexed": false,
1240
+ "internalType": "address",
1241
+ "name": "receiver",
1242
+ "type": "address"
1243
+ },
1244
+ {
1245
+ "indexed": false,
1246
+ "internalType": "uint256",
1247
+ "name": "maxPtIn",
1248
+ "type": "uint256"
1249
+ },
1250
+ {
1251
+ "indexed": false,
1252
+ "internalType": "uint256",
1253
+ "name": "netTokenOut",
1254
+ "type": "uint256"
1255
+ },
1256
+ {
1257
+ "indexed": false,
1258
+ "internalType": "uint256",
1259
+ "name": "netSyInterm",
1260
+ "type": "uint256"
1261
+ },
1262
+ {
1263
+ "indexed": false,
1264
+ "internalType": "uint256",
1265
+ "name": "netPtReturned",
1266
+ "type": "uint256"
1267
+ }
1268
+ ],
1269
+ "name": "SwapMaxPtForTokenLimitOnly",
1270
+ "type": "event"
1271
+ },
1272
+ {
1273
+ "anonymous": false,
1274
+ "inputs": [
1275
+ {
1276
+ "indexed": true,
1277
+ "internalType": "address",
1278
+ "name": "caller",
1279
+ "type": "address"
1280
+ },
1281
+ {
1282
+ "indexed": true,
1283
+ "internalType": "address",
1284
+ "name": "market",
1285
+ "type": "address"
1286
+ },
1287
+ {
1288
+ "indexed": true,
1289
+ "internalType": "address",
1290
+ "name": "receiver",
1291
+ "type": "address"
1292
+ },
1293
+ {
1294
+ "indexed": false,
1295
+ "internalType": "uint256",
1296
+ "name": "maxSyIn",
1297
+ "type": "uint256"
1298
+ },
1299
+ {
1300
+ "indexed": false,
1301
+ "internalType": "uint256",
1302
+ "name": "netYtOut",
1303
+ "type": "uint256"
1304
+ },
1305
+ {
1306
+ "indexed": false,
1307
+ "internalType": "uint256",
1308
+ "name": "netSyReturned",
1309
+ "type": "uint256"
1310
+ }
1311
+ ],
1312
+ "name": "SwapMaxSyForYtLimitOnly",
1313
+ "type": "event"
1314
+ },
1315
+ {
1316
+ "anonymous": false,
1317
+ "inputs": [
1318
+ {
1319
+ "indexed": true,
1320
+ "internalType": "address",
1321
+ "name": "caller",
1322
+ "type": "address"
1323
+ },
1324
+ {
1325
+ "indexed": true,
1326
+ "internalType": "address",
1327
+ "name": "market",
1328
+ "type": "address"
1329
+ },
1330
+ {
1331
+ "indexed": true,
1332
+ "internalType": "address",
1333
+ "name": "token",
1334
+ "type": "address"
1335
+ },
1336
+ {
1337
+ "indexed": false,
1338
+ "internalType": "address",
1339
+ "name": "receiver",
1340
+ "type": "address"
1341
+ },
1342
+ {
1343
+ "indexed": false,
1344
+ "internalType": "uint256",
1345
+ "name": "maxTokenIn",
1346
+ "type": "uint256"
1347
+ },
1348
+ {
1349
+ "indexed": false,
1350
+ "internalType": "uint256",
1351
+ "name": "netYtOut",
1352
+ "type": "uint256"
1353
+ },
1354
+ {
1355
+ "indexed": false,
1356
+ "internalType": "uint256",
1357
+ "name": "netSyInterm",
1358
+ "type": "uint256"
1359
+ },
1360
+ {
1361
+ "indexed": false,
1362
+ "internalType": "uint256",
1363
+ "name": "netSyReturned",
1364
+ "type": "uint256"
1365
+ }
1366
+ ],
1367
+ "name": "SwapMaxTokenForYtLimitOnly",
1368
+ "type": "event"
1369
+ },
1174
1370
  {
1175
1371
  "anonymous": false,
1176
1372
  "inputs": [
@@ -7837,71 +8033,1047 @@
7837
8033
  "name": "receiver",
7838
8034
  "type": "address"
7839
8035
  },
8036
+ {
8037
+ "internalType": "address",
8038
+ "name": "market",
8039
+ "type": "address"
8040
+ },
7840
8041
  {
7841
8042
  "internalType": "uint256",
7842
- "name": "minTokenOut",
8043
+ "name": "maxPtIn",
8044
+ "type": "uint256"
8045
+ },
8046
+ {
8047
+ "internalType": "uint256",
8048
+ "name": "minSyPtRate",
7843
8049
  "type": "uint256"
7844
8050
  },
7845
8051
  {
7846
8052
  "components": [
7847
8053
  {
7848
8054
  "internalType": "address",
7849
- "name": "tokenIn",
8055
+ "name": "limitRouter",
7850
8056
  "type": "address"
7851
8057
  },
7852
8058
  {
7853
8059
  "internalType": "uint256",
7854
- "name": "netTokenIn",
8060
+ "name": "epsSkipMarket",
7855
8061
  "type": "uint256"
7856
8062
  },
7857
- {
7858
- "internalType": "address",
7859
- "name": "tokenMintSy",
7860
- "type": "address"
7861
- },
7862
- {
7863
- "internalType": "address",
7864
- "name": "pendleSwap",
7865
- "type": "address"
7866
- },
7867
8063
  {
7868
8064
  "components": [
7869
8065
  {
7870
- "internalType": "enum SwapType",
7871
- "name": "swapType",
7872
- "type": "uint8"
7873
- },
7874
- {
7875
- "internalType": "address",
7876
- "name": "extRouter",
7877
- "type": "address"
7878
- },
7879
- {
7880
- "internalType": "bytes",
7881
- "name": "extCalldata",
7882
- "type": "bytes"
7883
- },
7884
- {
7885
- "internalType": "bool",
7886
- "name": "needScale",
7887
- "type": "bool"
7888
- }
7889
- ],
7890
- "internalType": "struct SwapData",
7891
- "name": "swapData",
7892
- "type": "tuple"
7893
- }
7894
- ],
7895
- "internalType": "struct TokenInput",
7896
- "name": "inp",
7897
- "type": "tuple"
7898
- }
7899
- ],
7900
- "name": "swapTokenToToken",
7901
- "outputs": [
7902
- {
7903
- "internalType": "uint256",
7904
- "name": "netTokenOut",
8066
+ "components": [
8067
+ {
8068
+ "internalType": "uint256",
8069
+ "name": "salt",
8070
+ "type": "uint256"
8071
+ },
8072
+ {
8073
+ "internalType": "uint256",
8074
+ "name": "expiry",
8075
+ "type": "uint256"
8076
+ },
8077
+ {
8078
+ "internalType": "uint256",
8079
+ "name": "nonce",
8080
+ "type": "uint256"
8081
+ },
8082
+ {
8083
+ "internalType": "enum IPLimitOrderType.OrderType",
8084
+ "name": "orderType",
8085
+ "type": "uint8"
8086
+ },
8087
+ {
8088
+ "internalType": "address",
8089
+ "name": "token",
8090
+ "type": "address"
8091
+ },
8092
+ {
8093
+ "internalType": "address",
8094
+ "name": "YT",
8095
+ "type": "address"
8096
+ },
8097
+ {
8098
+ "internalType": "address",
8099
+ "name": "maker",
8100
+ "type": "address"
8101
+ },
8102
+ {
8103
+ "internalType": "address",
8104
+ "name": "receiver",
8105
+ "type": "address"
8106
+ },
8107
+ {
8108
+ "internalType": "uint256",
8109
+ "name": "makingAmount",
8110
+ "type": "uint256"
8111
+ },
8112
+ {
8113
+ "internalType": "uint256",
8114
+ "name": "lnImpliedRate",
8115
+ "type": "uint256"
8116
+ },
8117
+ {
8118
+ "internalType": "uint256",
8119
+ "name": "failSafeRate",
8120
+ "type": "uint256"
8121
+ },
8122
+ {
8123
+ "internalType": "bytes",
8124
+ "name": "permit",
8125
+ "type": "bytes"
8126
+ }
8127
+ ],
8128
+ "internalType": "struct Order",
8129
+ "name": "order",
8130
+ "type": "tuple"
8131
+ },
8132
+ {
8133
+ "internalType": "bytes",
8134
+ "name": "signature",
8135
+ "type": "bytes"
8136
+ },
8137
+ {
8138
+ "internalType": "uint256",
8139
+ "name": "makingAmount",
8140
+ "type": "uint256"
8141
+ }
8142
+ ],
8143
+ "internalType": "struct FillOrderParams[]",
8144
+ "name": "normalFills",
8145
+ "type": "tuple[]"
8146
+ },
8147
+ {
8148
+ "components": [
8149
+ {
8150
+ "components": [
8151
+ {
8152
+ "internalType": "uint256",
8153
+ "name": "salt",
8154
+ "type": "uint256"
8155
+ },
8156
+ {
8157
+ "internalType": "uint256",
8158
+ "name": "expiry",
8159
+ "type": "uint256"
8160
+ },
8161
+ {
8162
+ "internalType": "uint256",
8163
+ "name": "nonce",
8164
+ "type": "uint256"
8165
+ },
8166
+ {
8167
+ "internalType": "enum IPLimitOrderType.OrderType",
8168
+ "name": "orderType",
8169
+ "type": "uint8"
8170
+ },
8171
+ {
8172
+ "internalType": "address",
8173
+ "name": "token",
8174
+ "type": "address"
8175
+ },
8176
+ {
8177
+ "internalType": "address",
8178
+ "name": "YT",
8179
+ "type": "address"
8180
+ },
8181
+ {
8182
+ "internalType": "address",
8183
+ "name": "maker",
8184
+ "type": "address"
8185
+ },
8186
+ {
8187
+ "internalType": "address",
8188
+ "name": "receiver",
8189
+ "type": "address"
8190
+ },
8191
+ {
8192
+ "internalType": "uint256",
8193
+ "name": "makingAmount",
8194
+ "type": "uint256"
8195
+ },
8196
+ {
8197
+ "internalType": "uint256",
8198
+ "name": "lnImpliedRate",
8199
+ "type": "uint256"
8200
+ },
8201
+ {
8202
+ "internalType": "uint256",
8203
+ "name": "failSafeRate",
8204
+ "type": "uint256"
8205
+ },
8206
+ {
8207
+ "internalType": "bytes",
8208
+ "name": "permit",
8209
+ "type": "bytes"
8210
+ }
8211
+ ],
8212
+ "internalType": "struct Order",
8213
+ "name": "order",
8214
+ "type": "tuple"
8215
+ },
8216
+ {
8217
+ "internalType": "bytes",
8218
+ "name": "signature",
8219
+ "type": "bytes"
8220
+ },
8221
+ {
8222
+ "internalType": "uint256",
8223
+ "name": "makingAmount",
8224
+ "type": "uint256"
8225
+ }
8226
+ ],
8227
+ "internalType": "struct FillOrderParams[]",
8228
+ "name": "flashFills",
8229
+ "type": "tuple[]"
8230
+ },
8231
+ {
8232
+ "internalType": "bytes",
8233
+ "name": "optData",
8234
+ "type": "bytes"
8235
+ }
8236
+ ],
8237
+ "internalType": "struct LimitOrderData",
8238
+ "name": "limit",
8239
+ "type": "tuple"
8240
+ }
8241
+ ],
8242
+ "name": "swapMaxPtForSyLimitOnly",
8243
+ "outputs": [
8244
+ {
8245
+ "internalType": "uint256",
8246
+ "name": "netSyOut",
8247
+ "type": "uint256"
8248
+ },
8249
+ {
8250
+ "internalType": "uint256",
8251
+ "name": "netPtReturned",
8252
+ "type": "uint256"
8253
+ },
8254
+ {
8255
+ "internalType": "uint256",
8256
+ "name": "netSyFee",
8257
+ "type": "uint256"
8258
+ }
8259
+ ],
8260
+ "stateMutability": "nonpayable",
8261
+ "type": "function"
8262
+ },
8263
+ {
8264
+ "inputs": [
8265
+ {
8266
+ "internalType": "address",
8267
+ "name": "receiver",
8268
+ "type": "address"
8269
+ },
8270
+ {
8271
+ "internalType": "address",
8272
+ "name": "market",
8273
+ "type": "address"
8274
+ },
8275
+ {
8276
+ "internalType": "uint256",
8277
+ "name": "maxPtIn",
8278
+ "type": "uint256"
8279
+ },
8280
+ {
8281
+ "internalType": "uint256",
8282
+ "name": "minTokenPtRate",
8283
+ "type": "uint256"
8284
+ },
8285
+ {
8286
+ "components": [
8287
+ {
8288
+ "internalType": "address",
8289
+ "name": "tokenOut",
8290
+ "type": "address"
8291
+ },
8292
+ {
8293
+ "internalType": "uint256",
8294
+ "name": "minTokenOut",
8295
+ "type": "uint256"
8296
+ },
8297
+ {
8298
+ "internalType": "address",
8299
+ "name": "tokenRedeemSy",
8300
+ "type": "address"
8301
+ },
8302
+ {
8303
+ "internalType": "address",
8304
+ "name": "pendleSwap",
8305
+ "type": "address"
8306
+ },
8307
+ {
8308
+ "components": [
8309
+ {
8310
+ "internalType": "enum SwapType",
8311
+ "name": "swapType",
8312
+ "type": "uint8"
8313
+ },
8314
+ {
8315
+ "internalType": "address",
8316
+ "name": "extRouter",
8317
+ "type": "address"
8318
+ },
8319
+ {
8320
+ "internalType": "bytes",
8321
+ "name": "extCalldata",
8322
+ "type": "bytes"
8323
+ },
8324
+ {
8325
+ "internalType": "bool",
8326
+ "name": "needScale",
8327
+ "type": "bool"
8328
+ }
8329
+ ],
8330
+ "internalType": "struct SwapData",
8331
+ "name": "swapData",
8332
+ "type": "tuple"
8333
+ }
8334
+ ],
8335
+ "internalType": "struct TokenOutput",
8336
+ "name": "output",
8337
+ "type": "tuple"
8338
+ },
8339
+ {
8340
+ "components": [
8341
+ {
8342
+ "internalType": "address",
8343
+ "name": "limitRouter",
8344
+ "type": "address"
8345
+ },
8346
+ {
8347
+ "internalType": "uint256",
8348
+ "name": "epsSkipMarket",
8349
+ "type": "uint256"
8350
+ },
8351
+ {
8352
+ "components": [
8353
+ {
8354
+ "components": [
8355
+ {
8356
+ "internalType": "uint256",
8357
+ "name": "salt",
8358
+ "type": "uint256"
8359
+ },
8360
+ {
8361
+ "internalType": "uint256",
8362
+ "name": "expiry",
8363
+ "type": "uint256"
8364
+ },
8365
+ {
8366
+ "internalType": "uint256",
8367
+ "name": "nonce",
8368
+ "type": "uint256"
8369
+ },
8370
+ {
8371
+ "internalType": "enum IPLimitOrderType.OrderType",
8372
+ "name": "orderType",
8373
+ "type": "uint8"
8374
+ },
8375
+ {
8376
+ "internalType": "address",
8377
+ "name": "token",
8378
+ "type": "address"
8379
+ },
8380
+ {
8381
+ "internalType": "address",
8382
+ "name": "YT",
8383
+ "type": "address"
8384
+ },
8385
+ {
8386
+ "internalType": "address",
8387
+ "name": "maker",
8388
+ "type": "address"
8389
+ },
8390
+ {
8391
+ "internalType": "address",
8392
+ "name": "receiver",
8393
+ "type": "address"
8394
+ },
8395
+ {
8396
+ "internalType": "uint256",
8397
+ "name": "makingAmount",
8398
+ "type": "uint256"
8399
+ },
8400
+ {
8401
+ "internalType": "uint256",
8402
+ "name": "lnImpliedRate",
8403
+ "type": "uint256"
8404
+ },
8405
+ {
8406
+ "internalType": "uint256",
8407
+ "name": "failSafeRate",
8408
+ "type": "uint256"
8409
+ },
8410
+ {
8411
+ "internalType": "bytes",
8412
+ "name": "permit",
8413
+ "type": "bytes"
8414
+ }
8415
+ ],
8416
+ "internalType": "struct Order",
8417
+ "name": "order",
8418
+ "type": "tuple"
8419
+ },
8420
+ {
8421
+ "internalType": "bytes",
8422
+ "name": "signature",
8423
+ "type": "bytes"
8424
+ },
8425
+ {
8426
+ "internalType": "uint256",
8427
+ "name": "makingAmount",
8428
+ "type": "uint256"
8429
+ }
8430
+ ],
8431
+ "internalType": "struct FillOrderParams[]",
8432
+ "name": "normalFills",
8433
+ "type": "tuple[]"
8434
+ },
8435
+ {
8436
+ "components": [
8437
+ {
8438
+ "components": [
8439
+ {
8440
+ "internalType": "uint256",
8441
+ "name": "salt",
8442
+ "type": "uint256"
8443
+ },
8444
+ {
8445
+ "internalType": "uint256",
8446
+ "name": "expiry",
8447
+ "type": "uint256"
8448
+ },
8449
+ {
8450
+ "internalType": "uint256",
8451
+ "name": "nonce",
8452
+ "type": "uint256"
8453
+ },
8454
+ {
8455
+ "internalType": "enum IPLimitOrderType.OrderType",
8456
+ "name": "orderType",
8457
+ "type": "uint8"
8458
+ },
8459
+ {
8460
+ "internalType": "address",
8461
+ "name": "token",
8462
+ "type": "address"
8463
+ },
8464
+ {
8465
+ "internalType": "address",
8466
+ "name": "YT",
8467
+ "type": "address"
8468
+ },
8469
+ {
8470
+ "internalType": "address",
8471
+ "name": "maker",
8472
+ "type": "address"
8473
+ },
8474
+ {
8475
+ "internalType": "address",
8476
+ "name": "receiver",
8477
+ "type": "address"
8478
+ },
8479
+ {
8480
+ "internalType": "uint256",
8481
+ "name": "makingAmount",
8482
+ "type": "uint256"
8483
+ },
8484
+ {
8485
+ "internalType": "uint256",
8486
+ "name": "lnImpliedRate",
8487
+ "type": "uint256"
8488
+ },
8489
+ {
8490
+ "internalType": "uint256",
8491
+ "name": "failSafeRate",
8492
+ "type": "uint256"
8493
+ },
8494
+ {
8495
+ "internalType": "bytes",
8496
+ "name": "permit",
8497
+ "type": "bytes"
8498
+ }
8499
+ ],
8500
+ "internalType": "struct Order",
8501
+ "name": "order",
8502
+ "type": "tuple"
8503
+ },
8504
+ {
8505
+ "internalType": "bytes",
8506
+ "name": "signature",
8507
+ "type": "bytes"
8508
+ },
8509
+ {
8510
+ "internalType": "uint256",
8511
+ "name": "makingAmount",
8512
+ "type": "uint256"
8513
+ }
8514
+ ],
8515
+ "internalType": "struct FillOrderParams[]",
8516
+ "name": "flashFills",
8517
+ "type": "tuple[]"
8518
+ },
8519
+ {
8520
+ "internalType": "bytes",
8521
+ "name": "optData",
8522
+ "type": "bytes"
8523
+ }
8524
+ ],
8525
+ "internalType": "struct LimitOrderData",
8526
+ "name": "limit",
8527
+ "type": "tuple"
8528
+ }
8529
+ ],
8530
+ "name": "swapMaxPtForTokenLimitOnly",
8531
+ "outputs": [
8532
+ {
8533
+ "internalType": "uint256",
8534
+ "name": "netTokenOut",
8535
+ "type": "uint256"
8536
+ },
8537
+ {
8538
+ "internalType": "uint256",
8539
+ "name": "netPtReturned",
8540
+ "type": "uint256"
8541
+ },
8542
+ {
8543
+ "internalType": "uint256",
8544
+ "name": "netSyFee",
8545
+ "type": "uint256"
8546
+ },
8547
+ {
8548
+ "internalType": "uint256",
8549
+ "name": "netSyInterm",
8550
+ "type": "uint256"
8551
+ }
8552
+ ],
8553
+ "stateMutability": "nonpayable",
8554
+ "type": "function"
8555
+ },
8556
+ {
8557
+ "inputs": [
8558
+ {
8559
+ "internalType": "address",
8560
+ "name": "receiver",
8561
+ "type": "address"
8562
+ },
8563
+ {
8564
+ "internalType": "address",
8565
+ "name": "market",
8566
+ "type": "address"
8567
+ },
8568
+ {
8569
+ "internalType": "uint256",
8570
+ "name": "maxSyIn",
8571
+ "type": "uint256"
8572
+ },
8573
+ {
8574
+ "internalType": "uint256",
8575
+ "name": "minYtSyRate",
8576
+ "type": "uint256"
8577
+ },
8578
+ {
8579
+ "components": [
8580
+ {
8581
+ "internalType": "address",
8582
+ "name": "limitRouter",
8583
+ "type": "address"
8584
+ },
8585
+ {
8586
+ "internalType": "uint256",
8587
+ "name": "epsSkipMarket",
8588
+ "type": "uint256"
8589
+ },
8590
+ {
8591
+ "components": [
8592
+ {
8593
+ "components": [
8594
+ {
8595
+ "internalType": "uint256",
8596
+ "name": "salt",
8597
+ "type": "uint256"
8598
+ },
8599
+ {
8600
+ "internalType": "uint256",
8601
+ "name": "expiry",
8602
+ "type": "uint256"
8603
+ },
8604
+ {
8605
+ "internalType": "uint256",
8606
+ "name": "nonce",
8607
+ "type": "uint256"
8608
+ },
8609
+ {
8610
+ "internalType": "enum IPLimitOrderType.OrderType",
8611
+ "name": "orderType",
8612
+ "type": "uint8"
8613
+ },
8614
+ {
8615
+ "internalType": "address",
8616
+ "name": "token",
8617
+ "type": "address"
8618
+ },
8619
+ {
8620
+ "internalType": "address",
8621
+ "name": "YT",
8622
+ "type": "address"
8623
+ },
8624
+ {
8625
+ "internalType": "address",
8626
+ "name": "maker",
8627
+ "type": "address"
8628
+ },
8629
+ {
8630
+ "internalType": "address",
8631
+ "name": "receiver",
8632
+ "type": "address"
8633
+ },
8634
+ {
8635
+ "internalType": "uint256",
8636
+ "name": "makingAmount",
8637
+ "type": "uint256"
8638
+ },
8639
+ {
8640
+ "internalType": "uint256",
8641
+ "name": "lnImpliedRate",
8642
+ "type": "uint256"
8643
+ },
8644
+ {
8645
+ "internalType": "uint256",
8646
+ "name": "failSafeRate",
8647
+ "type": "uint256"
8648
+ },
8649
+ {
8650
+ "internalType": "bytes",
8651
+ "name": "permit",
8652
+ "type": "bytes"
8653
+ }
8654
+ ],
8655
+ "internalType": "struct Order",
8656
+ "name": "order",
8657
+ "type": "tuple"
8658
+ },
8659
+ {
8660
+ "internalType": "bytes",
8661
+ "name": "signature",
8662
+ "type": "bytes"
8663
+ },
8664
+ {
8665
+ "internalType": "uint256",
8666
+ "name": "makingAmount",
8667
+ "type": "uint256"
8668
+ }
8669
+ ],
8670
+ "internalType": "struct FillOrderParams[]",
8671
+ "name": "normalFills",
8672
+ "type": "tuple[]"
8673
+ },
8674
+ {
8675
+ "components": [
8676
+ {
8677
+ "components": [
8678
+ {
8679
+ "internalType": "uint256",
8680
+ "name": "salt",
8681
+ "type": "uint256"
8682
+ },
8683
+ {
8684
+ "internalType": "uint256",
8685
+ "name": "expiry",
8686
+ "type": "uint256"
8687
+ },
8688
+ {
8689
+ "internalType": "uint256",
8690
+ "name": "nonce",
8691
+ "type": "uint256"
8692
+ },
8693
+ {
8694
+ "internalType": "enum IPLimitOrderType.OrderType",
8695
+ "name": "orderType",
8696
+ "type": "uint8"
8697
+ },
8698
+ {
8699
+ "internalType": "address",
8700
+ "name": "token",
8701
+ "type": "address"
8702
+ },
8703
+ {
8704
+ "internalType": "address",
8705
+ "name": "YT",
8706
+ "type": "address"
8707
+ },
8708
+ {
8709
+ "internalType": "address",
8710
+ "name": "maker",
8711
+ "type": "address"
8712
+ },
8713
+ {
8714
+ "internalType": "address",
8715
+ "name": "receiver",
8716
+ "type": "address"
8717
+ },
8718
+ {
8719
+ "internalType": "uint256",
8720
+ "name": "makingAmount",
8721
+ "type": "uint256"
8722
+ },
8723
+ {
8724
+ "internalType": "uint256",
8725
+ "name": "lnImpliedRate",
8726
+ "type": "uint256"
8727
+ },
8728
+ {
8729
+ "internalType": "uint256",
8730
+ "name": "failSafeRate",
8731
+ "type": "uint256"
8732
+ },
8733
+ {
8734
+ "internalType": "bytes",
8735
+ "name": "permit",
8736
+ "type": "bytes"
8737
+ }
8738
+ ],
8739
+ "internalType": "struct Order",
8740
+ "name": "order",
8741
+ "type": "tuple"
8742
+ },
8743
+ {
8744
+ "internalType": "bytes",
8745
+ "name": "signature",
8746
+ "type": "bytes"
8747
+ },
8748
+ {
8749
+ "internalType": "uint256",
8750
+ "name": "makingAmount",
8751
+ "type": "uint256"
8752
+ }
8753
+ ],
8754
+ "internalType": "struct FillOrderParams[]",
8755
+ "name": "flashFills",
8756
+ "type": "tuple[]"
8757
+ },
8758
+ {
8759
+ "internalType": "bytes",
8760
+ "name": "optData",
8761
+ "type": "bytes"
8762
+ }
8763
+ ],
8764
+ "internalType": "struct LimitOrderData",
8765
+ "name": "limit",
8766
+ "type": "tuple"
8767
+ }
8768
+ ],
8769
+ "name": "swapMaxSyForYtLimitOnly",
8770
+ "outputs": [
8771
+ {
8772
+ "internalType": "uint256",
8773
+ "name": "netYtOut",
8774
+ "type": "uint256"
8775
+ },
8776
+ {
8777
+ "internalType": "uint256",
8778
+ "name": "netSyReturned",
8779
+ "type": "uint256"
8780
+ },
8781
+ {
8782
+ "internalType": "uint256",
8783
+ "name": "netSyFee",
8784
+ "type": "uint256"
8785
+ }
8786
+ ],
8787
+ "stateMutability": "nonpayable",
8788
+ "type": "function"
8789
+ },
8790
+ {
8791
+ "inputs": [
8792
+ {
8793
+ "internalType": "address",
8794
+ "name": "receiver",
8795
+ "type": "address"
8796
+ },
8797
+ {
8798
+ "internalType": "address",
8799
+ "name": "market",
8800
+ "type": "address"
8801
+ },
8802
+ {
8803
+ "internalType": "uint256",
8804
+ "name": "minSyInterm",
8805
+ "type": "uint256"
8806
+ },
8807
+ {
8808
+ "internalType": "uint256",
8809
+ "name": "minYtSyRate",
8810
+ "type": "uint256"
8811
+ },
8812
+ {
8813
+ "components": [
8814
+ {
8815
+ "internalType": "address",
8816
+ "name": "tokenIn",
8817
+ "type": "address"
8818
+ },
8819
+ {
8820
+ "internalType": "uint256",
8821
+ "name": "netTokenIn",
8822
+ "type": "uint256"
8823
+ },
8824
+ {
8825
+ "internalType": "address",
8826
+ "name": "tokenMintSy",
8827
+ "type": "address"
8828
+ },
8829
+ {
8830
+ "internalType": "address",
8831
+ "name": "pendleSwap",
8832
+ "type": "address"
8833
+ },
8834
+ {
8835
+ "components": [
8836
+ {
8837
+ "internalType": "enum SwapType",
8838
+ "name": "swapType",
8839
+ "type": "uint8"
8840
+ },
8841
+ {
8842
+ "internalType": "address",
8843
+ "name": "extRouter",
8844
+ "type": "address"
8845
+ },
8846
+ {
8847
+ "internalType": "bytes",
8848
+ "name": "extCalldata",
8849
+ "type": "bytes"
8850
+ },
8851
+ {
8852
+ "internalType": "bool",
8853
+ "name": "needScale",
8854
+ "type": "bool"
8855
+ }
8856
+ ],
8857
+ "internalType": "struct SwapData",
8858
+ "name": "swapData",
8859
+ "type": "tuple"
8860
+ }
8861
+ ],
8862
+ "internalType": "struct TokenInput",
8863
+ "name": "input",
8864
+ "type": "tuple"
8865
+ },
8866
+ {
8867
+ "components": [
8868
+ {
8869
+ "internalType": "address",
8870
+ "name": "limitRouter",
8871
+ "type": "address"
8872
+ },
8873
+ {
8874
+ "internalType": "uint256",
8875
+ "name": "epsSkipMarket",
8876
+ "type": "uint256"
8877
+ },
8878
+ {
8879
+ "components": [
8880
+ {
8881
+ "components": [
8882
+ {
8883
+ "internalType": "uint256",
8884
+ "name": "salt",
8885
+ "type": "uint256"
8886
+ },
8887
+ {
8888
+ "internalType": "uint256",
8889
+ "name": "expiry",
8890
+ "type": "uint256"
8891
+ },
8892
+ {
8893
+ "internalType": "uint256",
8894
+ "name": "nonce",
8895
+ "type": "uint256"
8896
+ },
8897
+ {
8898
+ "internalType": "enum IPLimitOrderType.OrderType",
8899
+ "name": "orderType",
8900
+ "type": "uint8"
8901
+ },
8902
+ {
8903
+ "internalType": "address",
8904
+ "name": "token",
8905
+ "type": "address"
8906
+ },
8907
+ {
8908
+ "internalType": "address",
8909
+ "name": "YT",
8910
+ "type": "address"
8911
+ },
8912
+ {
8913
+ "internalType": "address",
8914
+ "name": "maker",
8915
+ "type": "address"
8916
+ },
8917
+ {
8918
+ "internalType": "address",
8919
+ "name": "receiver",
8920
+ "type": "address"
8921
+ },
8922
+ {
8923
+ "internalType": "uint256",
8924
+ "name": "makingAmount",
8925
+ "type": "uint256"
8926
+ },
8927
+ {
8928
+ "internalType": "uint256",
8929
+ "name": "lnImpliedRate",
8930
+ "type": "uint256"
8931
+ },
8932
+ {
8933
+ "internalType": "uint256",
8934
+ "name": "failSafeRate",
8935
+ "type": "uint256"
8936
+ },
8937
+ {
8938
+ "internalType": "bytes",
8939
+ "name": "permit",
8940
+ "type": "bytes"
8941
+ }
8942
+ ],
8943
+ "internalType": "struct Order",
8944
+ "name": "order",
8945
+ "type": "tuple"
8946
+ },
8947
+ {
8948
+ "internalType": "bytes",
8949
+ "name": "signature",
8950
+ "type": "bytes"
8951
+ },
8952
+ {
8953
+ "internalType": "uint256",
8954
+ "name": "makingAmount",
8955
+ "type": "uint256"
8956
+ }
8957
+ ],
8958
+ "internalType": "struct FillOrderParams[]",
8959
+ "name": "normalFills",
8960
+ "type": "tuple[]"
8961
+ },
8962
+ {
8963
+ "components": [
8964
+ {
8965
+ "components": [
8966
+ {
8967
+ "internalType": "uint256",
8968
+ "name": "salt",
8969
+ "type": "uint256"
8970
+ },
8971
+ {
8972
+ "internalType": "uint256",
8973
+ "name": "expiry",
8974
+ "type": "uint256"
8975
+ },
8976
+ {
8977
+ "internalType": "uint256",
8978
+ "name": "nonce",
8979
+ "type": "uint256"
8980
+ },
8981
+ {
8982
+ "internalType": "enum IPLimitOrderType.OrderType",
8983
+ "name": "orderType",
8984
+ "type": "uint8"
8985
+ },
8986
+ {
8987
+ "internalType": "address",
8988
+ "name": "token",
8989
+ "type": "address"
8990
+ },
8991
+ {
8992
+ "internalType": "address",
8993
+ "name": "YT",
8994
+ "type": "address"
8995
+ },
8996
+ {
8997
+ "internalType": "address",
8998
+ "name": "maker",
8999
+ "type": "address"
9000
+ },
9001
+ {
9002
+ "internalType": "address",
9003
+ "name": "receiver",
9004
+ "type": "address"
9005
+ },
9006
+ {
9007
+ "internalType": "uint256",
9008
+ "name": "makingAmount",
9009
+ "type": "uint256"
9010
+ },
9011
+ {
9012
+ "internalType": "uint256",
9013
+ "name": "lnImpliedRate",
9014
+ "type": "uint256"
9015
+ },
9016
+ {
9017
+ "internalType": "uint256",
9018
+ "name": "failSafeRate",
9019
+ "type": "uint256"
9020
+ },
9021
+ {
9022
+ "internalType": "bytes",
9023
+ "name": "permit",
9024
+ "type": "bytes"
9025
+ }
9026
+ ],
9027
+ "internalType": "struct Order",
9028
+ "name": "order",
9029
+ "type": "tuple"
9030
+ },
9031
+ {
9032
+ "internalType": "bytes",
9033
+ "name": "signature",
9034
+ "type": "bytes"
9035
+ },
9036
+ {
9037
+ "internalType": "uint256",
9038
+ "name": "makingAmount",
9039
+ "type": "uint256"
9040
+ }
9041
+ ],
9042
+ "internalType": "struct FillOrderParams[]",
9043
+ "name": "flashFills",
9044
+ "type": "tuple[]"
9045
+ },
9046
+ {
9047
+ "internalType": "bytes",
9048
+ "name": "optData",
9049
+ "type": "bytes"
9050
+ }
9051
+ ],
9052
+ "internalType": "struct LimitOrderData",
9053
+ "name": "limit",
9054
+ "type": "tuple"
9055
+ }
9056
+ ],
9057
+ "name": "swapMaxTokenForYtLimitOnly",
9058
+ "outputs": [
9059
+ {
9060
+ "internalType": "uint256",
9061
+ "name": "netYtOut",
9062
+ "type": "uint256"
9063
+ },
9064
+ {
9065
+ "internalType": "uint256",
9066
+ "name": "netSyReturned",
9067
+ "type": "uint256"
9068
+ },
9069
+ {
9070
+ "internalType": "uint256",
9071
+ "name": "netSyFee",
9072
+ "type": "uint256"
9073
+ },
9074
+ {
9075
+ "internalType": "uint256",
9076
+ "name": "netSyInterm",
7905
9077
  "type": "uint256"
7906
9078
  }
7907
9079
  ],