@pendle/core-v2 2.5.1-mainnet → 2.6.0-mainnet
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/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.json +141 -0
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- 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/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- 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/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- 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/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +143 -2
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/contracts/interfaces/IPRouterHelper.sol +8 -0
- package/contracts/router/PendleRouterHelper.sol +9 -8
- package/deployments/1-core.json +1 -1
- package/deployments/42161-core.json +1 -1
- package/package.json +1 -1
- package/typechain-types/AggregatorInterface.ts +233 -0
- package/typechain-types/AggregatorV2V3Interface.ts +385 -0
- package/typechain-types/AggregatorV3Interface.ts +221 -0
- package/typechain-types/IPRouterHelper.ts +84 -12
- package/typechain-types/PendlePtAssetOracle.ts +167 -0
- package/typechain-types/PendlePtChainlinkOracle.ts +215 -0
- package/typechain-types/PendlePtSingleAssetOracle.ts +167 -0
- package/typechain-types/PendlePtUSDOracle.ts +215 -0
- package/typechain-types/PendleRouterHelper.ts +84 -12
- package/typechain-types/factories/AggregatorInterface__factory.ts +153 -0
- package/typechain-types/factories/AggregatorV2V3Interface__factory.ts +268 -0
- package/typechain-types/factories/AggregatorV3Interface__factory.ts +141 -0
- package/typechain-types/factories/IPRouterHelper__factory.ts +141 -0
- package/typechain-types/factories/PendlePtAssetOracle__factory.ts +199 -0
- package/typechain-types/factories/PendlePtChainlinkOracle__factory.ts +251 -0
- package/typechain-types/factories/PendlePtSingleAssetOracle__factory.ts +203 -0
- package/typechain-types/factories/PendlePtUSDOracle__factory.ts +247 -0
- package/typechain-types/factories/PendleRouterHelper__factory.ts +142 -1
- package/typechain-types/hardhat.d.ts +45 -0
- package/typechain-types/index.ts +10 -0
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
AggregatorV2V3Interface,
|
|
9
|
+
AggregatorV2V3InterfaceInterface,
|
|
10
|
+
} from "../AggregatorV2V3Interface";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: true,
|
|
18
|
+
internalType: "int256",
|
|
19
|
+
name: "current",
|
|
20
|
+
type: "int256",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
indexed: true,
|
|
24
|
+
internalType: "uint256",
|
|
25
|
+
name: "roundId",
|
|
26
|
+
type: "uint256",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
indexed: false,
|
|
30
|
+
internalType: "uint256",
|
|
31
|
+
name: "updatedAt",
|
|
32
|
+
type: "uint256",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
name: "AnswerUpdated",
|
|
36
|
+
type: "event",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
anonymous: false,
|
|
40
|
+
inputs: [
|
|
41
|
+
{
|
|
42
|
+
indexed: true,
|
|
43
|
+
internalType: "uint256",
|
|
44
|
+
name: "roundId",
|
|
45
|
+
type: "uint256",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
indexed: true,
|
|
49
|
+
internalType: "address",
|
|
50
|
+
name: "startedBy",
|
|
51
|
+
type: "address",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
indexed: false,
|
|
55
|
+
internalType: "uint256",
|
|
56
|
+
name: "startedAt",
|
|
57
|
+
type: "uint256",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
name: "NewRound",
|
|
61
|
+
type: "event",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
inputs: [],
|
|
65
|
+
name: "decimals",
|
|
66
|
+
outputs: [
|
|
67
|
+
{
|
|
68
|
+
internalType: "uint8",
|
|
69
|
+
name: "",
|
|
70
|
+
type: "uint8",
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
stateMutability: "view",
|
|
74
|
+
type: "function",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
inputs: [],
|
|
78
|
+
name: "description",
|
|
79
|
+
outputs: [
|
|
80
|
+
{
|
|
81
|
+
internalType: "string",
|
|
82
|
+
name: "",
|
|
83
|
+
type: "string",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
stateMutability: "view",
|
|
87
|
+
type: "function",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
inputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint256",
|
|
93
|
+
name: "roundId",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
name: "getAnswer",
|
|
98
|
+
outputs: [
|
|
99
|
+
{
|
|
100
|
+
internalType: "int256",
|
|
101
|
+
name: "",
|
|
102
|
+
type: "int256",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
stateMutability: "view",
|
|
106
|
+
type: "function",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
inputs: [
|
|
110
|
+
{
|
|
111
|
+
internalType: "uint80",
|
|
112
|
+
name: "_roundId",
|
|
113
|
+
type: "uint80",
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
name: "getRoundData",
|
|
117
|
+
outputs: [
|
|
118
|
+
{
|
|
119
|
+
internalType: "uint80",
|
|
120
|
+
name: "roundId",
|
|
121
|
+
type: "uint80",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
internalType: "int256",
|
|
125
|
+
name: "answer",
|
|
126
|
+
type: "int256",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
internalType: "uint256",
|
|
130
|
+
name: "startedAt",
|
|
131
|
+
type: "uint256",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
internalType: "uint256",
|
|
135
|
+
name: "updatedAt",
|
|
136
|
+
type: "uint256",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
internalType: "uint80",
|
|
140
|
+
name: "answeredInRound",
|
|
141
|
+
type: "uint80",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
stateMutability: "view",
|
|
145
|
+
type: "function",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
inputs: [
|
|
149
|
+
{
|
|
150
|
+
internalType: "uint256",
|
|
151
|
+
name: "roundId",
|
|
152
|
+
type: "uint256",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
name: "getTimestamp",
|
|
156
|
+
outputs: [
|
|
157
|
+
{
|
|
158
|
+
internalType: "uint256",
|
|
159
|
+
name: "",
|
|
160
|
+
type: "uint256",
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
stateMutability: "view",
|
|
164
|
+
type: "function",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
inputs: [],
|
|
168
|
+
name: "latestAnswer",
|
|
169
|
+
outputs: [
|
|
170
|
+
{
|
|
171
|
+
internalType: "int256",
|
|
172
|
+
name: "",
|
|
173
|
+
type: "int256",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
stateMutability: "view",
|
|
177
|
+
type: "function",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
inputs: [],
|
|
181
|
+
name: "latestRound",
|
|
182
|
+
outputs: [
|
|
183
|
+
{
|
|
184
|
+
internalType: "uint256",
|
|
185
|
+
name: "",
|
|
186
|
+
type: "uint256",
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
stateMutability: "view",
|
|
190
|
+
type: "function",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
inputs: [],
|
|
194
|
+
name: "latestRoundData",
|
|
195
|
+
outputs: [
|
|
196
|
+
{
|
|
197
|
+
internalType: "uint80",
|
|
198
|
+
name: "roundId",
|
|
199
|
+
type: "uint80",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
internalType: "int256",
|
|
203
|
+
name: "answer",
|
|
204
|
+
type: "int256",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
internalType: "uint256",
|
|
208
|
+
name: "startedAt",
|
|
209
|
+
type: "uint256",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
internalType: "uint256",
|
|
213
|
+
name: "updatedAt",
|
|
214
|
+
type: "uint256",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
internalType: "uint80",
|
|
218
|
+
name: "answeredInRound",
|
|
219
|
+
type: "uint80",
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
stateMutability: "view",
|
|
223
|
+
type: "function",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
inputs: [],
|
|
227
|
+
name: "latestTimestamp",
|
|
228
|
+
outputs: [
|
|
229
|
+
{
|
|
230
|
+
internalType: "uint256",
|
|
231
|
+
name: "",
|
|
232
|
+
type: "uint256",
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
stateMutability: "view",
|
|
236
|
+
type: "function",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
inputs: [],
|
|
240
|
+
name: "version",
|
|
241
|
+
outputs: [
|
|
242
|
+
{
|
|
243
|
+
internalType: "uint256",
|
|
244
|
+
name: "",
|
|
245
|
+
type: "uint256",
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
stateMutability: "view",
|
|
249
|
+
type: "function",
|
|
250
|
+
},
|
|
251
|
+
];
|
|
252
|
+
|
|
253
|
+
export class AggregatorV2V3Interface__factory {
|
|
254
|
+
static readonly abi = _abi;
|
|
255
|
+
static createInterface(): AggregatorV2V3InterfaceInterface {
|
|
256
|
+
return new utils.Interface(_abi) as AggregatorV2V3InterfaceInterface;
|
|
257
|
+
}
|
|
258
|
+
static connect(
|
|
259
|
+
address: string,
|
|
260
|
+
signerOrProvider: Signer | Provider
|
|
261
|
+
): AggregatorV2V3Interface {
|
|
262
|
+
return new Contract(
|
|
263
|
+
address,
|
|
264
|
+
_abi,
|
|
265
|
+
signerOrProvider
|
|
266
|
+
) as AggregatorV2V3Interface;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
AggregatorV3Interface,
|
|
9
|
+
AggregatorV3InterfaceInterface,
|
|
10
|
+
} from "../AggregatorV3Interface";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "decimals",
|
|
16
|
+
outputs: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "uint8",
|
|
19
|
+
name: "",
|
|
20
|
+
type: "uint8",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
stateMutability: "view",
|
|
24
|
+
type: "function",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
inputs: [],
|
|
28
|
+
name: "description",
|
|
29
|
+
outputs: [
|
|
30
|
+
{
|
|
31
|
+
internalType: "string",
|
|
32
|
+
name: "",
|
|
33
|
+
type: "string",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
stateMutability: "view",
|
|
37
|
+
type: "function",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
inputs: [
|
|
41
|
+
{
|
|
42
|
+
internalType: "uint80",
|
|
43
|
+
name: "_roundId",
|
|
44
|
+
type: "uint80",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
name: "getRoundData",
|
|
48
|
+
outputs: [
|
|
49
|
+
{
|
|
50
|
+
internalType: "uint80",
|
|
51
|
+
name: "roundId",
|
|
52
|
+
type: "uint80",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
internalType: "int256",
|
|
56
|
+
name: "answer",
|
|
57
|
+
type: "int256",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
internalType: "uint256",
|
|
61
|
+
name: "startedAt",
|
|
62
|
+
type: "uint256",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
internalType: "uint256",
|
|
66
|
+
name: "updatedAt",
|
|
67
|
+
type: "uint256",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
internalType: "uint80",
|
|
71
|
+
name: "answeredInRound",
|
|
72
|
+
type: "uint80",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
stateMutability: "view",
|
|
76
|
+
type: "function",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
inputs: [],
|
|
80
|
+
name: "latestRoundData",
|
|
81
|
+
outputs: [
|
|
82
|
+
{
|
|
83
|
+
internalType: "uint80",
|
|
84
|
+
name: "roundId",
|
|
85
|
+
type: "uint80",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
internalType: "int256",
|
|
89
|
+
name: "answer",
|
|
90
|
+
type: "int256",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
internalType: "uint256",
|
|
94
|
+
name: "startedAt",
|
|
95
|
+
type: "uint256",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
internalType: "uint256",
|
|
99
|
+
name: "updatedAt",
|
|
100
|
+
type: "uint256",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
internalType: "uint80",
|
|
104
|
+
name: "answeredInRound",
|
|
105
|
+
type: "uint80",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
stateMutability: "view",
|
|
109
|
+
type: "function",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
inputs: [],
|
|
113
|
+
name: "version",
|
|
114
|
+
outputs: [
|
|
115
|
+
{
|
|
116
|
+
internalType: "uint256",
|
|
117
|
+
name: "",
|
|
118
|
+
type: "uint256",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
stateMutability: "view",
|
|
122
|
+
type: "function",
|
|
123
|
+
},
|
|
124
|
+
];
|
|
125
|
+
|
|
126
|
+
export class AggregatorV3Interface__factory {
|
|
127
|
+
static readonly abi = _abi;
|
|
128
|
+
static createInterface(): AggregatorV3InterfaceInterface {
|
|
129
|
+
return new utils.Interface(_abi) as AggregatorV3InterfaceInterface;
|
|
130
|
+
}
|
|
131
|
+
static connect(
|
|
132
|
+
address: string,
|
|
133
|
+
signerOrProvider: Signer | Provider
|
|
134
|
+
): AggregatorV3Interface {
|
|
135
|
+
return new Contract(
|
|
136
|
+
address,
|
|
137
|
+
_abi,
|
|
138
|
+
signerOrProvider
|
|
139
|
+
) as AggregatorV3Interface;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -262,6 +262,147 @@ const _abi = [
|
|
|
262
262
|
name: "RemoveLiquiditySingleToken",
|
|
263
263
|
type: "event",
|
|
264
264
|
},
|
|
265
|
+
{
|
|
266
|
+
inputs: [
|
|
267
|
+
{
|
|
268
|
+
components: [
|
|
269
|
+
{
|
|
270
|
+
internalType: "address",
|
|
271
|
+
name: "market",
|
|
272
|
+
type: "address",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
internalType: "uint256",
|
|
276
|
+
name: "netLpToRemove",
|
|
277
|
+
type: "uint256",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
internalType: "bool",
|
|
281
|
+
name: "doRedeemRewards",
|
|
282
|
+
type: "bool",
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
internalType: "struct IPRouterHelper.RemoveLiquiditySingleSyStruct",
|
|
286
|
+
name: "fromMarket",
|
|
287
|
+
type: "tuple",
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
name: "removeLiquiditySingleSy",
|
|
291
|
+
outputs: [
|
|
292
|
+
{
|
|
293
|
+
internalType: "uint256",
|
|
294
|
+
name: "netSyOut",
|
|
295
|
+
type: "uint256",
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
internalType: "uint256",
|
|
299
|
+
name: "netSyFee",
|
|
300
|
+
type: "uint256",
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
stateMutability: "nonpayable",
|
|
304
|
+
type: "function",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
inputs: [
|
|
308
|
+
{
|
|
309
|
+
components: [
|
|
310
|
+
{
|
|
311
|
+
internalType: "address",
|
|
312
|
+
name: "market",
|
|
313
|
+
type: "address",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
internalType: "uint256",
|
|
317
|
+
name: "netLpToRemove",
|
|
318
|
+
type: "uint256",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
internalType: "bool",
|
|
322
|
+
name: "doRedeemRewards",
|
|
323
|
+
type: "bool",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
components: [
|
|
327
|
+
{
|
|
328
|
+
internalType: "address",
|
|
329
|
+
name: "tokenOut",
|
|
330
|
+
type: "address",
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
internalType: "uint256",
|
|
334
|
+
name: "minTokenOut",
|
|
335
|
+
type: "uint256",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
internalType: "address",
|
|
339
|
+
name: "tokenRedeemSy",
|
|
340
|
+
type: "address",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
internalType: "address",
|
|
344
|
+
name: "bulk",
|
|
345
|
+
type: "address",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
internalType: "address",
|
|
349
|
+
name: "pendleSwap",
|
|
350
|
+
type: "address",
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
components: [
|
|
354
|
+
{
|
|
355
|
+
internalType: "enum SwapType",
|
|
356
|
+
name: "swapType",
|
|
357
|
+
type: "uint8",
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
internalType: "address",
|
|
361
|
+
name: "extRouter",
|
|
362
|
+
type: "address",
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
internalType: "bytes",
|
|
366
|
+
name: "extCalldata",
|
|
367
|
+
type: "bytes",
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
internalType: "bool",
|
|
371
|
+
name: "needScale",
|
|
372
|
+
type: "bool",
|
|
373
|
+
},
|
|
374
|
+
],
|
|
375
|
+
internalType: "struct SwapData",
|
|
376
|
+
name: "swapData",
|
|
377
|
+
type: "tuple",
|
|
378
|
+
},
|
|
379
|
+
],
|
|
380
|
+
internalType: "struct TokenOutput",
|
|
381
|
+
name: "output",
|
|
382
|
+
type: "tuple",
|
|
383
|
+
},
|
|
384
|
+
],
|
|
385
|
+
internalType: "struct IPRouterHelper.RemoveLiquiditySingleTokenStruct",
|
|
386
|
+
name: "fromMarket",
|
|
387
|
+
type: "tuple",
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
name: "removeLiquiditySingleToken",
|
|
391
|
+
outputs: [
|
|
392
|
+
{
|
|
393
|
+
internalType: "uint256",
|
|
394
|
+
name: "netTokenOut",
|
|
395
|
+
type: "uint256",
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
internalType: "uint256",
|
|
399
|
+
name: "netSyFee",
|
|
400
|
+
type: "uint256",
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
stateMutability: "nonpayable",
|
|
404
|
+
type: "function",
|
|
405
|
+
},
|
|
265
406
|
{
|
|
266
407
|
inputs: [
|
|
267
408
|
{
|