@pendle/core-v2 0.6.2 → 0.6.4

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 (139) hide show
  1. package/build/artifacts/contracts/SuperComposableYield/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +4 -0
  2. package/build/artifacts/contracts/SuperComposableYield/ISuperComposableYield.sol/ISuperComposableYield.json +495 -0
  3. package/build/artifacts/contracts/SuperComposableYield/SCYUtils.sol/SCYUtils.dbg.json +4 -0
  4. package/build/artifacts/contracts/SuperComposableYield/SCYUtils.sol/SCYUtils.json +10 -0
  5. package/build/artifacts/contracts/SuperComposableYield/implementations/IRewardManager.sol/IRewardManager.dbg.json +4 -0
  6. package/build/artifacts/contracts/SuperComposableYield/implementations/IRewardManager.sol/IRewardManager.json +77 -0
  7. package/build/artifacts/contracts/SuperComposableYield/implementations/RewardManager.sol/RewardManager.dbg.json +4 -0
  8. package/build/artifacts/contracts/SuperComposableYield/implementations/RewardManager.sol/RewardManager.json +90 -0
  9. package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBase.sol/SCYBase.dbg.json +4 -0
  10. package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBase.sol/SCYBase.json +556 -0
  11. package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +4 -0
  12. package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +641 -0
  13. package/build/artifacts/contracts/core/PendleBaseToken.sol/PendleBaseToken.dbg.json +4 -0
  14. package/build/artifacts/contracts/core/PendleBaseToken.sol/PendleBaseToken.json +333 -0
  15. package/build/artifacts/contracts/core/PendleMarket.sol/PendleMarket.dbg.json +4 -0
  16. package/build/artifacts/contracts/core/PendleMarket.sol/PendleMarket.json +842 -0
  17. package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +4 -0
  18. package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.json +265 -0
  19. package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +4 -0
  20. package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.json +452 -0
  21. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +4 -0
  22. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +230 -0
  23. package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +4 -0
  24. package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +783 -0
  25. package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +4 -0
  26. package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/WadRayMath.sol/WadRayMath.json +10 -0
  27. package/build/artifacts/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol/PendleBenQiErc20SCY.dbg.json +4 -0
  28. package/build/artifacts/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol/PendleBenQiErc20SCY.json +766 -0
  29. package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.dbg.json +4 -0
  30. package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.json +641 -0
  31. package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.dbg.json +4 -0
  32. package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.json +623 -0
  33. package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.dbg.json +4 -0
  34. package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.json +623 -0
  35. package/build/artifacts/contracts/core/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +4 -0
  36. package/build/artifacts/contracts/core/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +339 -0
  37. package/build/artifacts/contracts/core/PendleYieldToken.sol/PendleYieldToken.dbg.json +4 -0
  38. package/build/artifacts/contracts/core/PendleYieldToken.sol/PendleYieldToken.json +808 -0
  39. package/build/artifacts/contracts/core/RouterStatic.sol/RouterStatic.dbg.json +4 -0
  40. package/build/artifacts/contracts/core/RouterStatic.sol/RouterStatic.json +862 -0
  41. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +4 -0
  42. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +58 -0
  43. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +4 -0
  44. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +750 -0
  45. package/build/artifacts/contracts/core/actions/ActionRedeem.sol/ActionRedeem.dbg.json +4 -0
  46. package/build/artifacts/contracts/core/actions/ActionRedeem.sol/ActionRedeem.json +55 -0
  47. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +4 -0
  48. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +521 -0
  49. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +4 -0
  50. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json +10 -0
  51. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +4 -0
  52. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json +185 -0
  53. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +4 -0
  54. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +210 -0
  55. package/build/artifacts/contracts/core/actions/base/ActionType.sol/ActionType.dbg.json +4 -0
  56. package/build/artifacts/contracts/core/actions/base/ActionType.sol/ActionType.json +10 -0
  57. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +4 -0
  58. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.json +213 -0
  59. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +4 -0
  60. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.json +87 -0
  61. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +4 -0
  62. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.json +59 -0
  63. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +4 -0
  64. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.json +44 -0
  65. package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.dbg.json +4 -0
  66. package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.json +662 -0
  67. package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +4 -0
  68. package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.json +760 -0
  69. package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +4 -0
  70. package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.json +555 -0
  71. package/build/artifacts/contracts/interfaces/IPActionRedeem.sol/IPActionRedeem.dbg.json +4 -0
  72. package/build/artifacts/contracts/interfaces/IPActionRedeem.sol/IPActionRedeem.json +55 -0
  73. package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +4 -0
  74. package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.json +306 -0
  75. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +4 -0
  76. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +894 -0
  77. package/build/artifacts/contracts/interfaces/IPBaseToken.sol/IPBaseToken.dbg.json +4 -0
  78. package/build/artifacts/contracts/interfaces/IPBaseToken.sol/IPBaseToken.json +259 -0
  79. package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +4 -0
  80. package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.json +24 -0
  81. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +4 -0
  82. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +670 -0
  83. package/build/artifacts/contracts/interfaces/IPMarketAddRemoveCallback.sol/IPMarketAddRemoveCallback.dbg.json +4 -0
  84. package/build/artifacts/contracts/interfaces/IPMarketAddRemoveCallback.sol/IPMarketAddRemoveCallback.json +67 -0
  85. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +4 -0
  86. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.json +96 -0
  87. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +4 -0
  88. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.json +34 -0
  89. package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +4 -0
  90. package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.json +24 -0
  91. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +4 -0
  92. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.json +334 -0
  93. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +4 -0
  94. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +820 -0
  95. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +4 -0
  96. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.json +206 -0
  97. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +4 -0
  98. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.json +595 -0
  99. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +4 -0
  100. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.json +258 -0
  101. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +4 -0
  102. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.json +207 -0
  103. package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +4 -0
  104. package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.json +92 -0
  105. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +4 -0
  106. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.json +252 -0
  107. package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +4 -0
  108. package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.json +119 -0
  109. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +4 -0
  110. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.json +62 -0
  111. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +4 -0
  112. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.json +62 -0
  113. package/build/artifacts/contracts/libraries/JoeLibrary.sol/JoeLibrary.dbg.json +4 -0
  114. package/build/artifacts/contracts/libraries/JoeLibrary.sol/JoeLibrary.json +10 -0
  115. package/build/artifacts/contracts/libraries/SCYIndex.sol/SCYIndexLib.dbg.json +4 -0
  116. package/build/artifacts/contracts/libraries/SCYIndex.sol/SCYIndexLib.json +10 -0
  117. package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +4 -0
  118. package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.json +10 -0
  119. package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +4 -0
  120. package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.json +10 -0
  121. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +4 -0
  122. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.json +10 -0
  123. package/build/artifacts/contracts/libraries/math/MarketMathAux.sol/MarketMathAux.dbg.json +4 -0
  124. package/build/artifacts/contracts/libraries/math/MarketMathAux.sol/MarketMathAux.json +10 -0
  125. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +4 -0
  126. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +10 -0
  127. package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +4 -0
  128. package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +10 -0
  129. package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.dbg.json +4 -0
  130. package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.json +87 -0
  131. package/build/artifacts/contracts/periphery/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +4 -0
  132. package/build/artifacts/contracts/periphery/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.json +37 -0
  133. package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +4 -0
  134. package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.json +24 -0
  135. package/contracts/core/RouterStatic.sol +4 -4
  136. package/deployments/kovan.json +34 -0
  137. package/package.json +4 -2
  138. package/typechain-types/RouterStatic.ts +4 -4
  139. package/typechain-types/factories/RouterStatic__factory.ts +3 -3
@@ -0,0 +1,820 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPRouterStatic",
4
+ "sourceName": "contracts/interfaces/IPRouterStatic.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "market",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "scyDesired",
16
+ "type": "uint256"
17
+ },
18
+ {
19
+ "internalType": "uint256",
20
+ "name": "ptDesired",
21
+ "type": "uint256"
22
+ }
23
+ ],
24
+ "name": "addLiquidityStatic",
25
+ "outputs": [
26
+ {
27
+ "internalType": "uint256",
28
+ "name": "netLpOut",
29
+ "type": "uint256"
30
+ },
31
+ {
32
+ "internalType": "uint256",
33
+ "name": "scyUsed",
34
+ "type": "uint256"
35
+ },
36
+ {
37
+ "internalType": "uint256",
38
+ "name": "ptUsed",
39
+ "type": "uint256"
40
+ }
41
+ ],
42
+ "stateMutability": "nonpayable",
43
+ "type": "function"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "address",
49
+ "name": "market",
50
+ "type": "address"
51
+ }
52
+ ],
53
+ "name": "getMarketInfo",
54
+ "outputs": [
55
+ {
56
+ "internalType": "address",
57
+ "name": "pt",
58
+ "type": "address"
59
+ },
60
+ {
61
+ "internalType": "address",
62
+ "name": "scy",
63
+ "type": "address"
64
+ },
65
+ {
66
+ "components": [
67
+ {
68
+ "internalType": "int256",
69
+ "name": "totalPt",
70
+ "type": "int256"
71
+ },
72
+ {
73
+ "internalType": "int256",
74
+ "name": "totalScy",
75
+ "type": "int256"
76
+ },
77
+ {
78
+ "internalType": "int256",
79
+ "name": "totalLp",
80
+ "type": "int256"
81
+ },
82
+ {
83
+ "internalType": "uint256",
84
+ "name": "oracleRate",
85
+ "type": "uint256"
86
+ },
87
+ {
88
+ "internalType": "address",
89
+ "name": "treasury",
90
+ "type": "address"
91
+ },
92
+ {
93
+ "internalType": "int256",
94
+ "name": "scalarRoot",
95
+ "type": "int256"
96
+ },
97
+ {
98
+ "internalType": "uint256",
99
+ "name": "lnFeeRateRoot",
100
+ "type": "uint256"
101
+ },
102
+ {
103
+ "internalType": "uint256",
104
+ "name": "rateOracleTimeWindow",
105
+ "type": "uint256"
106
+ },
107
+ {
108
+ "internalType": "uint256",
109
+ "name": "expiry",
110
+ "type": "uint256"
111
+ },
112
+ {
113
+ "internalType": "uint256",
114
+ "name": "reserveFeePercent",
115
+ "type": "uint256"
116
+ },
117
+ {
118
+ "internalType": "uint256",
119
+ "name": "lastLnImpliedRate",
120
+ "type": "uint256"
121
+ },
122
+ {
123
+ "internalType": "uint256",
124
+ "name": "lastTradeTime",
125
+ "type": "uint256"
126
+ }
127
+ ],
128
+ "internalType": "struct MarketState",
129
+ "name": "state",
130
+ "type": "tuple"
131
+ },
132
+ {
133
+ "internalType": "int256",
134
+ "name": "impliedYield",
135
+ "type": "int256"
136
+ },
137
+ {
138
+ "internalType": "uint256",
139
+ "name": "exchangeRate",
140
+ "type": "uint256"
141
+ }
142
+ ],
143
+ "stateMutability": "view",
144
+ "type": "function"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "address",
150
+ "name": "py",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "name": "getPY",
155
+ "outputs": [
156
+ {
157
+ "internalType": "address",
158
+ "name": "yt",
159
+ "type": "address"
160
+ },
161
+ {
162
+ "internalType": "address",
163
+ "name": "pt",
164
+ "type": "address"
165
+ }
166
+ ],
167
+ "stateMutability": "view",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [
172
+ {
173
+ "internalType": "address",
174
+ "name": "py",
175
+ "type": "address"
176
+ }
177
+ ],
178
+ "name": "getPYInfo",
179
+ "outputs": [
180
+ {
181
+ "internalType": "uint256",
182
+ "name": "exchangeRate",
183
+ "type": "uint256"
184
+ },
185
+ {
186
+ "internalType": "uint256",
187
+ "name": "totalSupply",
188
+ "type": "uint256"
189
+ },
190
+ {
191
+ "components": [
192
+ {
193
+ "internalType": "address",
194
+ "name": "rewardToken",
195
+ "type": "address"
196
+ },
197
+ {
198
+ "internalType": "uint256",
199
+ "name": "index",
200
+ "type": "uint256"
201
+ }
202
+ ],
203
+ "internalType": "struct IPRouterStatic.RewardIndex[]",
204
+ "name": "rewardIndexes",
205
+ "type": "tuple[]"
206
+ }
207
+ ],
208
+ "stateMutability": "nonpayable",
209
+ "type": "function"
210
+ },
211
+ {
212
+ "inputs": [
213
+ {
214
+ "internalType": "address",
215
+ "name": "token",
216
+ "type": "address"
217
+ }
218
+ ],
219
+ "name": "getPendleTokenType",
220
+ "outputs": [
221
+ {
222
+ "internalType": "bool",
223
+ "name": "isPT",
224
+ "type": "bool"
225
+ },
226
+ {
227
+ "internalType": "bool",
228
+ "name": "isYT",
229
+ "type": "bool"
230
+ },
231
+ {
232
+ "internalType": "bool",
233
+ "name": "isMarket",
234
+ "type": "bool"
235
+ }
236
+ ],
237
+ "stateMutability": "view",
238
+ "type": "function"
239
+ },
240
+ {
241
+ "inputs": [
242
+ {
243
+ "internalType": "address",
244
+ "name": "market",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "name": "getPtImpliedYield",
249
+ "outputs": [
250
+ {
251
+ "internalType": "int256",
252
+ "name": "",
253
+ "type": "int256"
254
+ }
255
+ ],
256
+ "stateMutability": "view",
257
+ "type": "function"
258
+ },
259
+ {
260
+ "inputs": [
261
+ {
262
+ "internalType": "address",
263
+ "name": "market",
264
+ "type": "address"
265
+ },
266
+ {
267
+ "internalType": "address",
268
+ "name": "user",
269
+ "type": "address"
270
+ }
271
+ ],
272
+ "name": "getUserMarketInfo",
273
+ "outputs": [
274
+ {
275
+ "components": [
276
+ {
277
+ "internalType": "address",
278
+ "name": "market",
279
+ "type": "address"
280
+ },
281
+ {
282
+ "internalType": "uint256",
283
+ "name": "lpBalance",
284
+ "type": "uint256"
285
+ },
286
+ {
287
+ "components": [
288
+ {
289
+ "internalType": "address",
290
+ "name": "token",
291
+ "type": "address"
292
+ },
293
+ {
294
+ "internalType": "uint256",
295
+ "name": "amount",
296
+ "type": "uint256"
297
+ }
298
+ ],
299
+ "internalType": "struct IPRouterStatic.TokenAmount",
300
+ "name": "ptBalance",
301
+ "type": "tuple"
302
+ },
303
+ {
304
+ "components": [
305
+ {
306
+ "internalType": "address",
307
+ "name": "token",
308
+ "type": "address"
309
+ },
310
+ {
311
+ "internalType": "uint256",
312
+ "name": "amount",
313
+ "type": "uint256"
314
+ }
315
+ ],
316
+ "internalType": "struct IPRouterStatic.TokenAmount",
317
+ "name": "scyBalance",
318
+ "type": "tuple"
319
+ },
320
+ {
321
+ "components": [
322
+ {
323
+ "internalType": "address",
324
+ "name": "token",
325
+ "type": "address"
326
+ },
327
+ {
328
+ "internalType": "uint256",
329
+ "name": "amount",
330
+ "type": "uint256"
331
+ }
332
+ ],
333
+ "internalType": "struct IPRouterStatic.TokenAmount",
334
+ "name": "assetBalance",
335
+ "type": "tuple"
336
+ }
337
+ ],
338
+ "internalType": "struct IPRouterStatic.UserMarketInfo",
339
+ "name": "userMarketInfo",
340
+ "type": "tuple"
341
+ }
342
+ ],
343
+ "stateMutability": "view",
344
+ "type": "function"
345
+ },
346
+ {
347
+ "inputs": [
348
+ {
349
+ "internalType": "address",
350
+ "name": "user",
351
+ "type": "address"
352
+ },
353
+ {
354
+ "internalType": "address[]",
355
+ "name": "markets",
356
+ "type": "address[]"
357
+ }
358
+ ],
359
+ "name": "getUserMarketPositions",
360
+ "outputs": [
361
+ {
362
+ "components": [
363
+ {
364
+ "internalType": "address",
365
+ "name": "market",
366
+ "type": "address"
367
+ },
368
+ {
369
+ "internalType": "uint256",
370
+ "name": "lpBalance",
371
+ "type": "uint256"
372
+ },
373
+ {
374
+ "components": [
375
+ {
376
+ "internalType": "address",
377
+ "name": "token",
378
+ "type": "address"
379
+ },
380
+ {
381
+ "internalType": "uint256",
382
+ "name": "amount",
383
+ "type": "uint256"
384
+ }
385
+ ],
386
+ "internalType": "struct IPRouterStatic.TokenAmount",
387
+ "name": "ptBalance",
388
+ "type": "tuple"
389
+ },
390
+ {
391
+ "components": [
392
+ {
393
+ "internalType": "address",
394
+ "name": "token",
395
+ "type": "address"
396
+ },
397
+ {
398
+ "internalType": "uint256",
399
+ "name": "amount",
400
+ "type": "uint256"
401
+ }
402
+ ],
403
+ "internalType": "struct IPRouterStatic.TokenAmount",
404
+ "name": "scyBalance",
405
+ "type": "tuple"
406
+ },
407
+ {
408
+ "components": [
409
+ {
410
+ "internalType": "address",
411
+ "name": "token",
412
+ "type": "address"
413
+ },
414
+ {
415
+ "internalType": "uint256",
416
+ "name": "amount",
417
+ "type": "uint256"
418
+ }
419
+ ],
420
+ "internalType": "struct IPRouterStatic.TokenAmount",
421
+ "name": "assetBalance",
422
+ "type": "tuple"
423
+ }
424
+ ],
425
+ "internalType": "struct IPRouterStatic.UserMarketInfo[]",
426
+ "name": "userMarketPositions",
427
+ "type": "tuple[]"
428
+ }
429
+ ],
430
+ "stateMutability": "view",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ {
436
+ "internalType": "address",
437
+ "name": "py",
438
+ "type": "address"
439
+ },
440
+ {
441
+ "internalType": "address",
442
+ "name": "user",
443
+ "type": "address"
444
+ }
445
+ ],
446
+ "name": "getUserPYInfo",
447
+ "outputs": [
448
+ {
449
+ "components": [
450
+ {
451
+ "internalType": "address",
452
+ "name": "yt",
453
+ "type": "address"
454
+ },
455
+ {
456
+ "internalType": "address",
457
+ "name": "pt",
458
+ "type": "address"
459
+ },
460
+ {
461
+ "internalType": "uint256",
462
+ "name": "ytBalance",
463
+ "type": "uint256"
464
+ },
465
+ {
466
+ "internalType": "uint256",
467
+ "name": "ptBalance",
468
+ "type": "uint256"
469
+ },
470
+ {
471
+ "components": [
472
+ {
473
+ "internalType": "address",
474
+ "name": "token",
475
+ "type": "address"
476
+ },
477
+ {
478
+ "internalType": "uint256",
479
+ "name": "amount",
480
+ "type": "uint256"
481
+ }
482
+ ],
483
+ "internalType": "struct IPRouterStatic.TokenAmount",
484
+ "name": "unclaimedInterest",
485
+ "type": "tuple"
486
+ },
487
+ {
488
+ "components": [
489
+ {
490
+ "internalType": "address",
491
+ "name": "token",
492
+ "type": "address"
493
+ },
494
+ {
495
+ "internalType": "uint256",
496
+ "name": "amount",
497
+ "type": "uint256"
498
+ }
499
+ ],
500
+ "internalType": "struct IPRouterStatic.TokenAmount[]",
501
+ "name": "unclaimedRewards",
502
+ "type": "tuple[]"
503
+ }
504
+ ],
505
+ "internalType": "struct IPRouterStatic.UserPYInfo",
506
+ "name": "userPYInfo",
507
+ "type": "tuple"
508
+ }
509
+ ],
510
+ "stateMutability": "view",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [
515
+ {
516
+ "internalType": "address",
517
+ "name": "user",
518
+ "type": "address"
519
+ },
520
+ {
521
+ "internalType": "address[]",
522
+ "name": "pys",
523
+ "type": "address[]"
524
+ }
525
+ ],
526
+ "name": "getUserPYPositionsByPYs",
527
+ "outputs": [
528
+ {
529
+ "components": [
530
+ {
531
+ "internalType": "address",
532
+ "name": "yt",
533
+ "type": "address"
534
+ },
535
+ {
536
+ "internalType": "address",
537
+ "name": "pt",
538
+ "type": "address"
539
+ },
540
+ {
541
+ "internalType": "uint256",
542
+ "name": "ytBalance",
543
+ "type": "uint256"
544
+ },
545
+ {
546
+ "internalType": "uint256",
547
+ "name": "ptBalance",
548
+ "type": "uint256"
549
+ },
550
+ {
551
+ "components": [
552
+ {
553
+ "internalType": "address",
554
+ "name": "token",
555
+ "type": "address"
556
+ },
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "amount",
560
+ "type": "uint256"
561
+ }
562
+ ],
563
+ "internalType": "struct IPRouterStatic.TokenAmount",
564
+ "name": "unclaimedInterest",
565
+ "type": "tuple"
566
+ },
567
+ {
568
+ "components": [
569
+ {
570
+ "internalType": "address",
571
+ "name": "token",
572
+ "type": "address"
573
+ },
574
+ {
575
+ "internalType": "uint256",
576
+ "name": "amount",
577
+ "type": "uint256"
578
+ }
579
+ ],
580
+ "internalType": "struct IPRouterStatic.TokenAmount[]",
581
+ "name": "unclaimedRewards",
582
+ "type": "tuple[]"
583
+ }
584
+ ],
585
+ "internalType": "struct IPRouterStatic.UserPYInfo[]",
586
+ "name": "userPYPositions",
587
+ "type": "tuple[]"
588
+ }
589
+ ],
590
+ "stateMutability": "view",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [
595
+ {
596
+ "internalType": "address",
597
+ "name": "scy",
598
+ "type": "address"
599
+ },
600
+ {
601
+ "internalType": "address",
602
+ "name": "user",
603
+ "type": "address"
604
+ }
605
+ ],
606
+ "name": "getUserSCYInfo",
607
+ "outputs": [
608
+ {
609
+ "internalType": "uint256",
610
+ "name": "balance",
611
+ "type": "uint256"
612
+ },
613
+ {
614
+ "components": [
615
+ {
616
+ "internalType": "address",
617
+ "name": "token",
618
+ "type": "address"
619
+ },
620
+ {
621
+ "internalType": "uint256",
622
+ "name": "amount",
623
+ "type": "uint256"
624
+ }
625
+ ],
626
+ "internalType": "struct IPRouterStatic.TokenAmount[]",
627
+ "name": "rewards",
628
+ "type": "tuple[]"
629
+ }
630
+ ],
631
+ "stateMutability": "view",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [
636
+ {
637
+ "components": [
638
+ {
639
+ "internalType": "address",
640
+ "name": "yt",
641
+ "type": "address"
642
+ },
643
+ {
644
+ "internalType": "address",
645
+ "name": "pt",
646
+ "type": "address"
647
+ },
648
+ {
649
+ "internalType": "uint256",
650
+ "name": "ytBalance",
651
+ "type": "uint256"
652
+ },
653
+ {
654
+ "internalType": "uint256",
655
+ "name": "ptBalance",
656
+ "type": "uint256"
657
+ },
658
+ {
659
+ "components": [
660
+ {
661
+ "internalType": "address",
662
+ "name": "token",
663
+ "type": "address"
664
+ },
665
+ {
666
+ "internalType": "uint256",
667
+ "name": "amount",
668
+ "type": "uint256"
669
+ }
670
+ ],
671
+ "internalType": "struct IPRouterStatic.TokenAmount",
672
+ "name": "unclaimedInterest",
673
+ "type": "tuple"
674
+ },
675
+ {
676
+ "components": [
677
+ {
678
+ "internalType": "address",
679
+ "name": "token",
680
+ "type": "address"
681
+ },
682
+ {
683
+ "internalType": "uint256",
684
+ "name": "amount",
685
+ "type": "uint256"
686
+ }
687
+ ],
688
+ "internalType": "struct IPRouterStatic.TokenAmount[]",
689
+ "name": "unclaimedRewards",
690
+ "type": "tuple[]"
691
+ }
692
+ ],
693
+ "internalType": "struct IPRouterStatic.UserPYInfo",
694
+ "name": "userPYInfo",
695
+ "type": "tuple"
696
+ }
697
+ ],
698
+ "name": "hasPYPosition",
699
+ "outputs": [
700
+ {
701
+ "internalType": "bool",
702
+ "name": "hasPosition",
703
+ "type": "bool"
704
+ }
705
+ ],
706
+ "stateMutability": "pure",
707
+ "type": "function"
708
+ },
709
+ {
710
+ "inputs": [
711
+ {
712
+ "internalType": "address",
713
+ "name": "market",
714
+ "type": "address"
715
+ },
716
+ {
717
+ "internalType": "uint256",
718
+ "name": "lpToRemove",
719
+ "type": "uint256"
720
+ }
721
+ ],
722
+ "name": "removeLiquidityStatic",
723
+ "outputs": [
724
+ {
725
+ "internalType": "uint256",
726
+ "name": "netScyOut",
727
+ "type": "uint256"
728
+ },
729
+ {
730
+ "internalType": "uint256",
731
+ "name": "netPtOut",
732
+ "type": "uint256"
733
+ }
734
+ ],
735
+ "stateMutability": "view",
736
+ "type": "function"
737
+ },
738
+ {
739
+ "inputs": [
740
+ {
741
+ "internalType": "address",
742
+ "name": "market",
743
+ "type": "address"
744
+ }
745
+ ],
746
+ "name": "scyIndex",
747
+ "outputs": [
748
+ {
749
+ "internalType": "SCYIndex",
750
+ "name": "index",
751
+ "type": "uint256"
752
+ }
753
+ ],
754
+ "stateMutability": "nonpayable",
755
+ "type": "function"
756
+ },
757
+ {
758
+ "inputs": [
759
+ {
760
+ "internalType": "address",
761
+ "name": "market",
762
+ "type": "address"
763
+ },
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "exactPtIn",
767
+ "type": "uint256"
768
+ }
769
+ ],
770
+ "name": "swapPtForScyStatic",
771
+ "outputs": [
772
+ {
773
+ "internalType": "uint256",
774
+ "name": "netScyOut",
775
+ "type": "uint256"
776
+ },
777
+ {
778
+ "internalType": "uint256",
779
+ "name": "netScyFee",
780
+ "type": "uint256"
781
+ }
782
+ ],
783
+ "stateMutability": "nonpayable",
784
+ "type": "function"
785
+ },
786
+ {
787
+ "inputs": [
788
+ {
789
+ "internalType": "address",
790
+ "name": "market",
791
+ "type": "address"
792
+ },
793
+ {
794
+ "internalType": "uint256",
795
+ "name": "exactPtOut",
796
+ "type": "uint256"
797
+ }
798
+ ],
799
+ "name": "swapScyForPtStatic",
800
+ "outputs": [
801
+ {
802
+ "internalType": "uint256",
803
+ "name": "netScyIn",
804
+ "type": "uint256"
805
+ },
806
+ {
807
+ "internalType": "uint256",
808
+ "name": "netScyFee",
809
+ "type": "uint256"
810
+ }
811
+ ],
812
+ "stateMutability": "nonpayable",
813
+ "type": "function"
814
+ }
815
+ ],
816
+ "bytecode": "0x",
817
+ "deployedBytecode": "0x",
818
+ "linkReferences": {},
819
+ "deployedLinkReferences": {}
820
+ }