@pendle/core-v2 4.4.6 → 4.5.0-beta-2
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.
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.json +1073 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Tensorplex/PendleStTAOSY.sol/PendleStTAOSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Tensorplex/PendleStTAOSY.sol/PendleStTAOSY.json +2 -2
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.json +149 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +134 -72
- package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -28
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -124
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +3 -51
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -50
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +149 -0
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -76
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -92
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +4 -0
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +35 -0
- package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +4 -0
- package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.json +10 -0
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol +55 -0
- package/contracts/core/StandardizedYield/implementations/Tensorplex/PendleStTAOSY.sol +1 -1
- package/contracts/interfaces/IPActionStorageStatic.sol +1 -0
- package/contracts/interfaces/IPActionStorageV4.sol +25 -0
- package/contracts/interfaces/IPAllActionV3.sol +2 -2
- package/contracts/interfaces/IPMiniDiamond.sol +1 -0
- package/contracts/limit/LimitRouterBase.sol +48 -25
- package/contracts/router/ActionAddRemoveLiqV3.sol +12 -12
- package/contracts/router/ActionCallbackV3.sol +14 -13
- package/contracts/router/ActionMiscV3.sol +1 -3
- package/contracts/router/ActionStorageV4.sol +64 -0
- package/contracts/router/ActionSwapYTV3.sol +3 -3
- package/contracts/router/PendleRouterV4.sol +23 -0
- package/contracts/router/RouterStorage.sol +19 -0
- package/contracts/router/base/ActionBase.sol +5 -7
- package/contracts/router/base/MarketApproxLib.sol +18 -16
- package/deployments/1-core.json +1 -1
- package/deployments/1-markets/ENA-AUG2024.json +13 -0
- package/deployments/1-markets/EZETH-DEC2024.json +11 -0
- package/deployments/1-markets/SUSDE-JUL2024.json +13 -0
- package/deployments/1-markets/WEETH-DEC2024.json +13 -0
- package/deployments/10-core.json +1 -1
- package/deployments/42161-core.json +1 -1
- package/deployments/5000-core.json +1 -1
- package/deployments/56-core.json +1 -1
- package/deployments/56-markets/EZETH-BSC-SEP2024.json +13 -0
- package/package.json +1 -1
- package/typechain-types/ActionCallbackV3.ts +5 -5
- package/typechain-types/ActionStorageV4.ts +293 -0
- package/typechain-types/IPActionStorageV4.ts +293 -0
- package/typechain-types/IPAllActionV3.ts +208 -109
- package/typechain-types/PendleERC20WithSupplyCapSY.ts +1332 -0
- package/typechain-types/PendleRouterV4.ts +57 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -123
- package/typechain-types/factories/ActionCallbackV3__factory.ts +2 -50
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -27
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -49
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageV4__factory.ts +202 -0
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -75
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -91
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/IPActionStorageV4__factory.ts +164 -0
- package/typechain-types/factories/IPAllActionV3__factory.ts +134 -72
- package/typechain-types/factories/PendleERC20WithSupplyCapSY__factory.ts +1157 -0
- package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV4__factory.ts +96 -0
- package/typechain-types/factories/PendleStTAOSY__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +31 -58
- package/typechain-types/index.ts +8 -14
- package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.json +0 -93
- package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.json +0 -87
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +0 -4
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +0 -1002
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.dbg.json +0 -4
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.json +0 -466
- package/build/artifacts/contracts/router/PendleRouterV3.sol/PendleRouterV3.dbg.json +0 -4
- package/build/artifacts/contracts/router/PendleRouterV3.sol/PendleRouterV3.json +0 -179
- package/contracts/interfaces/IDiamondCut.sol +0 -32
- package/contracts/interfaces/IDiamondLoupe.sol +0 -38
- package/contracts/router/PendleRouterHelper.sol +0 -305
- package/contracts/router/PendleRouterV3.sol +0 -235
|
@@ -1,466 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "RouterV2InterfaceForRouterHelper",
|
|
4
|
-
"sourceName": "contracts/router/PendleRouterHelper.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"inputs": [
|
|
8
|
-
{
|
|
9
|
-
"internalType": "address",
|
|
10
|
-
"name": "receiver",
|
|
11
|
-
"type": "address"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"internalType": "address",
|
|
15
|
-
"name": "market",
|
|
16
|
-
"type": "address"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"internalType": "uint256",
|
|
20
|
-
"name": "netSyIn",
|
|
21
|
-
"type": "uint256"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"internalType": "uint256",
|
|
25
|
-
"name": "minLpOut",
|
|
26
|
-
"type": "uint256"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"components": [
|
|
30
|
-
{
|
|
31
|
-
"internalType": "uint256",
|
|
32
|
-
"name": "guessMin",
|
|
33
|
-
"type": "uint256"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"internalType": "uint256",
|
|
37
|
-
"name": "guessMax",
|
|
38
|
-
"type": "uint256"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"internalType": "uint256",
|
|
42
|
-
"name": "guessOffchain",
|
|
43
|
-
"type": "uint256"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"internalType": "uint256",
|
|
47
|
-
"name": "maxIteration",
|
|
48
|
-
"type": "uint256"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"internalType": "uint256",
|
|
52
|
-
"name": "eps",
|
|
53
|
-
"type": "uint256"
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"internalType": "struct ApproxParams",
|
|
57
|
-
"name": "guessPtReceivedFromSy",
|
|
58
|
-
"type": "tuple"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"name": "addLiquiditySingleSy",
|
|
62
|
-
"outputs": [
|
|
63
|
-
{
|
|
64
|
-
"internalType": "uint256",
|
|
65
|
-
"name": "netLpOut",
|
|
66
|
-
"type": "uint256"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"internalType": "uint256",
|
|
70
|
-
"name": "netSyFee",
|
|
71
|
-
"type": "uint256"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"stateMutability": "nonpayable",
|
|
75
|
-
"type": "function"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"inputs": [
|
|
79
|
-
{
|
|
80
|
-
"internalType": "address",
|
|
81
|
-
"name": "receiver",
|
|
82
|
-
"type": "address"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"internalType": "address",
|
|
86
|
-
"name": "market",
|
|
87
|
-
"type": "address"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"internalType": "uint256",
|
|
91
|
-
"name": "netSyIn",
|
|
92
|
-
"type": "uint256"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"internalType": "uint256",
|
|
96
|
-
"name": "minLpOut",
|
|
97
|
-
"type": "uint256"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"internalType": "uint256",
|
|
101
|
-
"name": "minYtOut",
|
|
102
|
-
"type": "uint256"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"name": "addLiquiditySingleSyKeepYt",
|
|
106
|
-
"outputs": [
|
|
107
|
-
{
|
|
108
|
-
"internalType": "uint256",
|
|
109
|
-
"name": "netLpOut",
|
|
110
|
-
"type": "uint256"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"internalType": "uint256",
|
|
114
|
-
"name": "netYtOut",
|
|
115
|
-
"type": "uint256"
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
"stateMutability": "nonpayable",
|
|
119
|
-
"type": "function"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"inputs": [
|
|
123
|
-
{
|
|
124
|
-
"internalType": "address",
|
|
125
|
-
"name": "receiver",
|
|
126
|
-
"type": "address"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"internalType": "address",
|
|
130
|
-
"name": "market",
|
|
131
|
-
"type": "address"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"internalType": "uint256",
|
|
135
|
-
"name": "minLpOut",
|
|
136
|
-
"type": "uint256"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"components": [
|
|
140
|
-
{
|
|
141
|
-
"internalType": "uint256",
|
|
142
|
-
"name": "guessMin",
|
|
143
|
-
"type": "uint256"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"internalType": "uint256",
|
|
147
|
-
"name": "guessMax",
|
|
148
|
-
"type": "uint256"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"internalType": "uint256",
|
|
152
|
-
"name": "guessOffchain",
|
|
153
|
-
"type": "uint256"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"internalType": "uint256",
|
|
157
|
-
"name": "maxIteration",
|
|
158
|
-
"type": "uint256"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"internalType": "uint256",
|
|
162
|
-
"name": "eps",
|
|
163
|
-
"type": "uint256"
|
|
164
|
-
}
|
|
165
|
-
],
|
|
166
|
-
"internalType": "struct ApproxParams",
|
|
167
|
-
"name": "guessPtReceivedFromSy",
|
|
168
|
-
"type": "tuple"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"components": [
|
|
172
|
-
{
|
|
173
|
-
"internalType": "address",
|
|
174
|
-
"name": "tokenIn",
|
|
175
|
-
"type": "address"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"internalType": "uint256",
|
|
179
|
-
"name": "netTokenIn",
|
|
180
|
-
"type": "uint256"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"internalType": "address",
|
|
184
|
-
"name": "tokenMintSy",
|
|
185
|
-
"type": "address"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"internalType": "address",
|
|
189
|
-
"name": "pendleSwap",
|
|
190
|
-
"type": "address"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"components": [
|
|
194
|
-
{
|
|
195
|
-
"internalType": "enum SwapType",
|
|
196
|
-
"name": "swapType",
|
|
197
|
-
"type": "uint8"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"internalType": "address",
|
|
201
|
-
"name": "extRouter",
|
|
202
|
-
"type": "address"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"internalType": "bytes",
|
|
206
|
-
"name": "extCalldata",
|
|
207
|
-
"type": "bytes"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"internalType": "bool",
|
|
211
|
-
"name": "needScale",
|
|
212
|
-
"type": "bool"
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
"internalType": "struct SwapData",
|
|
216
|
-
"name": "swapData",
|
|
217
|
-
"type": "tuple"
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
"internalType": "struct TokenInput",
|
|
221
|
-
"name": "input",
|
|
222
|
-
"type": "tuple"
|
|
223
|
-
}
|
|
224
|
-
],
|
|
225
|
-
"name": "addLiquiditySingleToken",
|
|
226
|
-
"outputs": [
|
|
227
|
-
{
|
|
228
|
-
"internalType": "uint256",
|
|
229
|
-
"name": "netLpOut",
|
|
230
|
-
"type": "uint256"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"internalType": "uint256",
|
|
234
|
-
"name": "netSyFee",
|
|
235
|
-
"type": "uint256"
|
|
236
|
-
}
|
|
237
|
-
],
|
|
238
|
-
"stateMutability": "payable",
|
|
239
|
-
"type": "function"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"inputs": [
|
|
243
|
-
{
|
|
244
|
-
"internalType": "address",
|
|
245
|
-
"name": "receiver",
|
|
246
|
-
"type": "address"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"internalType": "address",
|
|
250
|
-
"name": "market",
|
|
251
|
-
"type": "address"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"internalType": "uint256",
|
|
255
|
-
"name": "minLpOut",
|
|
256
|
-
"type": "uint256"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"internalType": "uint256",
|
|
260
|
-
"name": "minYtOut",
|
|
261
|
-
"type": "uint256"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"components": [
|
|
265
|
-
{
|
|
266
|
-
"internalType": "address",
|
|
267
|
-
"name": "tokenIn",
|
|
268
|
-
"type": "address"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"internalType": "uint256",
|
|
272
|
-
"name": "netTokenIn",
|
|
273
|
-
"type": "uint256"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"internalType": "address",
|
|
277
|
-
"name": "tokenMintSy",
|
|
278
|
-
"type": "address"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"internalType": "address",
|
|
282
|
-
"name": "pendleSwap",
|
|
283
|
-
"type": "address"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"components": [
|
|
287
|
-
{
|
|
288
|
-
"internalType": "enum SwapType",
|
|
289
|
-
"name": "swapType",
|
|
290
|
-
"type": "uint8"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"internalType": "address",
|
|
294
|
-
"name": "extRouter",
|
|
295
|
-
"type": "address"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"internalType": "bytes",
|
|
299
|
-
"name": "extCalldata",
|
|
300
|
-
"type": "bytes"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"internalType": "bool",
|
|
304
|
-
"name": "needScale",
|
|
305
|
-
"type": "bool"
|
|
306
|
-
}
|
|
307
|
-
],
|
|
308
|
-
"internalType": "struct SwapData",
|
|
309
|
-
"name": "swapData",
|
|
310
|
-
"type": "tuple"
|
|
311
|
-
}
|
|
312
|
-
],
|
|
313
|
-
"internalType": "struct TokenInput",
|
|
314
|
-
"name": "input",
|
|
315
|
-
"type": "tuple"
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"name": "addLiquiditySingleTokenKeepYt",
|
|
319
|
-
"outputs": [
|
|
320
|
-
{
|
|
321
|
-
"internalType": "uint256",
|
|
322
|
-
"name": "netLpOut",
|
|
323
|
-
"type": "uint256"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"internalType": "uint256",
|
|
327
|
-
"name": "netYtOut",
|
|
328
|
-
"type": "uint256"
|
|
329
|
-
}
|
|
330
|
-
],
|
|
331
|
-
"stateMutability": "nonpayable",
|
|
332
|
-
"type": "function"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"inputs": [
|
|
336
|
-
{
|
|
337
|
-
"internalType": "address",
|
|
338
|
-
"name": "receiver",
|
|
339
|
-
"type": "address"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"internalType": "address",
|
|
343
|
-
"name": "market",
|
|
344
|
-
"type": "address"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"internalType": "uint256",
|
|
348
|
-
"name": "netLpToRemove",
|
|
349
|
-
"type": "uint256"
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
"internalType": "uint256",
|
|
353
|
-
"name": "minSyOut",
|
|
354
|
-
"type": "uint256"
|
|
355
|
-
}
|
|
356
|
-
],
|
|
357
|
-
"name": "removeLiquiditySingleSy",
|
|
358
|
-
"outputs": [
|
|
359
|
-
{
|
|
360
|
-
"internalType": "uint256",
|
|
361
|
-
"name": "netSyOut",
|
|
362
|
-
"type": "uint256"
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"internalType": "uint256",
|
|
366
|
-
"name": "netSyFee",
|
|
367
|
-
"type": "uint256"
|
|
368
|
-
}
|
|
369
|
-
],
|
|
370
|
-
"stateMutability": "nonpayable",
|
|
371
|
-
"type": "function"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"inputs": [
|
|
375
|
-
{
|
|
376
|
-
"internalType": "address",
|
|
377
|
-
"name": "receiver",
|
|
378
|
-
"type": "address"
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"internalType": "address",
|
|
382
|
-
"name": "market",
|
|
383
|
-
"type": "address"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"internalType": "uint256",
|
|
387
|
-
"name": "netLpToRemove",
|
|
388
|
-
"type": "uint256"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
"components": [
|
|
392
|
-
{
|
|
393
|
-
"internalType": "address",
|
|
394
|
-
"name": "tokenOut",
|
|
395
|
-
"type": "address"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
"internalType": "uint256",
|
|
399
|
-
"name": "minTokenOut",
|
|
400
|
-
"type": "uint256"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
"internalType": "address",
|
|
404
|
-
"name": "tokenRedeemSy",
|
|
405
|
-
"type": "address"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"internalType": "address",
|
|
409
|
-
"name": "pendleSwap",
|
|
410
|
-
"type": "address"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"components": [
|
|
414
|
-
{
|
|
415
|
-
"internalType": "enum SwapType",
|
|
416
|
-
"name": "swapType",
|
|
417
|
-
"type": "uint8"
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
"internalType": "address",
|
|
421
|
-
"name": "extRouter",
|
|
422
|
-
"type": "address"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"internalType": "bytes",
|
|
426
|
-
"name": "extCalldata",
|
|
427
|
-
"type": "bytes"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
"internalType": "bool",
|
|
431
|
-
"name": "needScale",
|
|
432
|
-
"type": "bool"
|
|
433
|
-
}
|
|
434
|
-
],
|
|
435
|
-
"internalType": "struct SwapData",
|
|
436
|
-
"name": "swapData",
|
|
437
|
-
"type": "tuple"
|
|
438
|
-
}
|
|
439
|
-
],
|
|
440
|
-
"internalType": "struct TokenOutput",
|
|
441
|
-
"name": "output",
|
|
442
|
-
"type": "tuple"
|
|
443
|
-
}
|
|
444
|
-
],
|
|
445
|
-
"name": "removeLiquiditySingleToken",
|
|
446
|
-
"outputs": [
|
|
447
|
-
{
|
|
448
|
-
"internalType": "uint256",
|
|
449
|
-
"name": "netTokenOut",
|
|
450
|
-
"type": "uint256"
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"internalType": "uint256",
|
|
454
|
-
"name": "netSyFee",
|
|
455
|
-
"type": "uint256"
|
|
456
|
-
}
|
|
457
|
-
],
|
|
458
|
-
"stateMutability": "nonpayable",
|
|
459
|
-
"type": "function"
|
|
460
|
-
}
|
|
461
|
-
],
|
|
462
|
-
"bytecode": "0x",
|
|
463
|
-
"deployedBytecode": "0x",
|
|
464
|
-
"linkReferences": {},
|
|
465
|
-
"deployedLinkReferences": {}
|
|
466
|
-
}
|