damm-sdk 1.4.37 → 1.4.39
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/dist/index.cjs +1191 -45
- package/dist/index.cjs.map +8 -8
- package/dist/index.js +1191 -45
- package/dist/index.js.map +8 -8
- package/dist/integrations/lagoonV2/lagoon.v2.permissions.d.ts +30 -10
- package/dist/integrations/lagoonV2/lagoon.v2.permissions.d.ts.map +1 -1
- package/dist/integrations/lagoonV2/vault.abi.d.ts +2 -2
- package/dist/integrations/morphoBlue/morpho.blue.d.ts +21 -1
- package/dist/integrations/morphoBlue/morpho.blue.d.ts.map +1 -1
- package/dist/integrations/pendle/pendle.d.ts +13 -24
- package/dist/integrations/pendle/pendle.d.ts.map +1 -1
- package/dist/integrations/pendle/pendle.router.abi.d.ts +3653 -3
- package/dist/integrations/pendle/pendle.router.abi.d.ts.map +1 -1
- package/dist/integrations/pendle/pendle.router.encoders.d.ts +384 -0
- package/dist/integrations/pendle/pendle.router.encoders.d.ts.map +1 -0
- package/package.json +3 -2
- package/src/integrations/lagoonV2/lagoon.v2.permissions.ts +62 -10
- package/src/integrations/lagoonV2/vault.abi.ts +2 -2
- package/src/integrations/morphoBlue/morpho.blue.ts +44 -1
- package/src/integrations/pendle/pendle.router.abi.ts +796 -3
- package/src/integrations/pendle/pendle.router.encoders.ts +977 -0
- package/src/integrations/pendle/pendle.ts +13 -78
- package/src/lib/contractsRegistry.json +32 -2
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Pendle Router V4 ABI
|
|
2
|
+
* Pendle Router V4 ABI — full scoped function set.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* The router is a diamond proxy (EIP-2535 style): the proxy address
|
|
5
|
+
* (0x8888...F946) holds all funds; facets are pure logic contracts.
|
|
6
|
+
* This ABI covers every function in the no-aggregator / no-limit-order
|
|
7
|
+
* scope (ADR-0001). Excluded: multicall, callAndReflect, swapCallback,
|
|
8
|
+
* limitRouterCallback, swapTokensToTokens, redeemDueInterestAndRewardsV2,
|
|
9
|
+
* setSelectorToFacets, simulate, swapExactPtForYt, swapExactYtForPt
|
|
10
|
+
* (PT↔YT are not real router functions — absent from source + selectorToFacet
|
|
11
|
+
* returns 0x0 on the Monad router) — see ADR-0001.
|
|
12
|
+
*
|
|
13
|
+
* Struct encoding (all as ABI tuples):
|
|
14
|
+
* SwapData = (uint8 swapType, address extRouter, bytes extCalldata, bool needScale)
|
|
15
|
+
* TokenInput = (address tokenIn, uint256 netTokenIn, address tokenMintSy, address pendleSwap, SwapData swapData)
|
|
16
|
+
* TokenOutput = (address tokenOut, uint256 minTokenOut, address tokenRedeemSy, address pendleSwap, SwapData swapData)
|
|
17
|
+
* ApproxParams = (uint256 guessMin, uint256 guessMax, uint256 guessOffchain, uint256 maxIteration, uint256 eps)
|
|
18
|
+
* Order = (uint256 salt, uint256 expiry, uint256 nonce, uint8 orderType, address token, address YT, address maker, address receiver, uint256 makingAmount, uint256 lnImpliedRate, uint256 failSafeRate, bytes permit)
|
|
19
|
+
* FillOrderParams = (Order order, bytes signature, uint256 makingAmount)
|
|
20
|
+
* LimitOrderData = (address limitRouter, uint256 epsSkipMarket, FillOrderParams[] normalFills, FillOrderParams[] flashFills, bytes optData)
|
|
21
|
+
*
|
|
22
|
+
* Verified against pendle-core-v2-public source + Monad deployment 143-core.json (2026-06-29).
|
|
23
|
+
* Source: contracts/router/ActionBase.sol, IPAllActionTypeV3.sol, IPSwapAggregator.sol
|
|
6
24
|
*/
|
|
7
25
|
declare const _default: readonly [{
|
|
8
26
|
readonly inputs: readonly [{
|
|
@@ -26,6 +44,3638 @@ declare const _default: readonly [{
|
|
|
26
44
|
readonly outputs: readonly [];
|
|
27
45
|
readonly stateMutability: "nonpayable";
|
|
28
46
|
readonly type: "function";
|
|
47
|
+
}, {
|
|
48
|
+
readonly inputs: readonly [{
|
|
49
|
+
readonly internalType: "address";
|
|
50
|
+
readonly name: "receiver";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
}, {
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
readonly name: "SY";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly internalType: "uint256";
|
|
58
|
+
readonly name: "minSyOut";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
}, {
|
|
61
|
+
readonly internalType: "struct TokenInput";
|
|
62
|
+
readonly name: "input";
|
|
63
|
+
readonly type: "tuple";
|
|
64
|
+
readonly components: readonly [{
|
|
65
|
+
readonly internalType: "address";
|
|
66
|
+
readonly name: "tokenIn";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}, {
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
readonly name: "netTokenIn";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}, {
|
|
73
|
+
readonly internalType: "address";
|
|
74
|
+
readonly name: "tokenMintSy";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
}, {
|
|
77
|
+
readonly internalType: "address";
|
|
78
|
+
readonly name: "pendleSwap";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
}, {
|
|
81
|
+
readonly internalType: "struct SwapData";
|
|
82
|
+
readonly name: "swapData";
|
|
83
|
+
readonly type: "tuple";
|
|
84
|
+
readonly components: readonly [{
|
|
85
|
+
readonly internalType: "enum SwapType";
|
|
86
|
+
readonly name: "swapType";
|
|
87
|
+
readonly type: "uint8";
|
|
88
|
+
}, {
|
|
89
|
+
readonly internalType: "address";
|
|
90
|
+
readonly name: "extRouter";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
}, {
|
|
93
|
+
readonly internalType: "bytes";
|
|
94
|
+
readonly name: "extCalldata";
|
|
95
|
+
readonly type: "bytes";
|
|
96
|
+
}, {
|
|
97
|
+
readonly internalType: "bool";
|
|
98
|
+
readonly name: "needScale";
|
|
99
|
+
readonly type: "bool";
|
|
100
|
+
}];
|
|
101
|
+
}];
|
|
102
|
+
}];
|
|
103
|
+
readonly name: "mintSyFromToken";
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
readonly name: "netSyOut";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}];
|
|
109
|
+
readonly stateMutability: "payable";
|
|
110
|
+
readonly type: "function";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
readonly name: "receiver";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
}, {
|
|
117
|
+
readonly internalType: "address";
|
|
118
|
+
readonly name: "SY";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
}, {
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
readonly name: "netSyIn";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}, {
|
|
125
|
+
readonly internalType: "struct TokenOutput";
|
|
126
|
+
readonly name: "output";
|
|
127
|
+
readonly type: "tuple";
|
|
128
|
+
readonly components: readonly [{
|
|
129
|
+
readonly internalType: "address";
|
|
130
|
+
readonly name: "tokenOut";
|
|
131
|
+
readonly type: "address";
|
|
132
|
+
}, {
|
|
133
|
+
readonly internalType: "uint256";
|
|
134
|
+
readonly name: "minTokenOut";
|
|
135
|
+
readonly type: "uint256";
|
|
136
|
+
}, {
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
readonly name: "tokenRedeemSy";
|
|
139
|
+
readonly type: "address";
|
|
140
|
+
}, {
|
|
141
|
+
readonly internalType: "address";
|
|
142
|
+
readonly name: "pendleSwap";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
}, {
|
|
145
|
+
readonly internalType: "struct SwapData";
|
|
146
|
+
readonly name: "swapData";
|
|
147
|
+
readonly type: "tuple";
|
|
148
|
+
readonly components: readonly [{
|
|
149
|
+
readonly internalType: "enum SwapType";
|
|
150
|
+
readonly name: "swapType";
|
|
151
|
+
readonly type: "uint8";
|
|
152
|
+
}, {
|
|
153
|
+
readonly internalType: "address";
|
|
154
|
+
readonly name: "extRouter";
|
|
155
|
+
readonly type: "address";
|
|
156
|
+
}, {
|
|
157
|
+
readonly internalType: "bytes";
|
|
158
|
+
readonly name: "extCalldata";
|
|
159
|
+
readonly type: "bytes";
|
|
160
|
+
}, {
|
|
161
|
+
readonly internalType: "bool";
|
|
162
|
+
readonly name: "needScale";
|
|
163
|
+
readonly type: "bool";
|
|
164
|
+
}];
|
|
165
|
+
}];
|
|
166
|
+
}];
|
|
167
|
+
readonly name: "redeemSyToToken";
|
|
168
|
+
readonly outputs: readonly [{
|
|
169
|
+
readonly internalType: "uint256";
|
|
170
|
+
readonly name: "netTokenOut";
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
}];
|
|
173
|
+
readonly stateMutability: "nonpayable";
|
|
174
|
+
readonly type: "function";
|
|
175
|
+
}, {
|
|
176
|
+
readonly inputs: readonly [{
|
|
177
|
+
readonly internalType: "address";
|
|
178
|
+
readonly name: "receiver";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
}, {
|
|
181
|
+
readonly internalType: "address";
|
|
182
|
+
readonly name: "YT";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
}, {
|
|
185
|
+
readonly internalType: "uint256";
|
|
186
|
+
readonly name: "minPyOut";
|
|
187
|
+
readonly type: "uint256";
|
|
188
|
+
}, {
|
|
189
|
+
readonly internalType: "struct TokenInput";
|
|
190
|
+
readonly name: "input";
|
|
191
|
+
readonly type: "tuple";
|
|
192
|
+
readonly components: readonly [{
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
readonly name: "tokenIn";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
}, {
|
|
197
|
+
readonly internalType: "uint256";
|
|
198
|
+
readonly name: "netTokenIn";
|
|
199
|
+
readonly type: "uint256";
|
|
200
|
+
}, {
|
|
201
|
+
readonly internalType: "address";
|
|
202
|
+
readonly name: "tokenMintSy";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
}, {
|
|
205
|
+
readonly internalType: "address";
|
|
206
|
+
readonly name: "pendleSwap";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
}, {
|
|
209
|
+
readonly internalType: "struct SwapData";
|
|
210
|
+
readonly name: "swapData";
|
|
211
|
+
readonly type: "tuple";
|
|
212
|
+
readonly components: readonly [{
|
|
213
|
+
readonly internalType: "enum SwapType";
|
|
214
|
+
readonly name: "swapType";
|
|
215
|
+
readonly type: "uint8";
|
|
216
|
+
}, {
|
|
217
|
+
readonly internalType: "address";
|
|
218
|
+
readonly name: "extRouter";
|
|
219
|
+
readonly type: "address";
|
|
220
|
+
}, {
|
|
221
|
+
readonly internalType: "bytes";
|
|
222
|
+
readonly name: "extCalldata";
|
|
223
|
+
readonly type: "bytes";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "bool";
|
|
226
|
+
readonly name: "needScale";
|
|
227
|
+
readonly type: "bool";
|
|
228
|
+
}];
|
|
229
|
+
}];
|
|
230
|
+
}];
|
|
231
|
+
readonly name: "mintPyFromToken";
|
|
232
|
+
readonly outputs: readonly [{
|
|
233
|
+
readonly internalType: "uint256";
|
|
234
|
+
readonly name: "netPyOut";
|
|
235
|
+
readonly type: "uint256";
|
|
236
|
+
}, {
|
|
237
|
+
readonly internalType: "uint256";
|
|
238
|
+
readonly name: "netSyInterm";
|
|
239
|
+
readonly type: "uint256";
|
|
240
|
+
}];
|
|
241
|
+
readonly stateMutability: "payable";
|
|
242
|
+
readonly type: "function";
|
|
243
|
+
}, {
|
|
244
|
+
readonly inputs: readonly [{
|
|
245
|
+
readonly internalType: "address";
|
|
246
|
+
readonly name: "receiver";
|
|
247
|
+
readonly type: "address";
|
|
248
|
+
}, {
|
|
249
|
+
readonly internalType: "address";
|
|
250
|
+
readonly name: "YT";
|
|
251
|
+
readonly type: "address";
|
|
252
|
+
}, {
|
|
253
|
+
readonly internalType: "uint256";
|
|
254
|
+
readonly name: "netPyIn";
|
|
255
|
+
readonly type: "uint256";
|
|
256
|
+
}, {
|
|
257
|
+
readonly internalType: "struct TokenOutput";
|
|
258
|
+
readonly name: "output";
|
|
259
|
+
readonly type: "tuple";
|
|
260
|
+
readonly components: readonly [{
|
|
261
|
+
readonly internalType: "address";
|
|
262
|
+
readonly name: "tokenOut";
|
|
263
|
+
readonly type: "address";
|
|
264
|
+
}, {
|
|
265
|
+
readonly internalType: "uint256";
|
|
266
|
+
readonly name: "minTokenOut";
|
|
267
|
+
readonly type: "uint256";
|
|
268
|
+
}, {
|
|
269
|
+
readonly internalType: "address";
|
|
270
|
+
readonly name: "tokenRedeemSy";
|
|
271
|
+
readonly type: "address";
|
|
272
|
+
}, {
|
|
273
|
+
readonly internalType: "address";
|
|
274
|
+
readonly name: "pendleSwap";
|
|
275
|
+
readonly type: "address";
|
|
276
|
+
}, {
|
|
277
|
+
readonly internalType: "struct SwapData";
|
|
278
|
+
readonly name: "swapData";
|
|
279
|
+
readonly type: "tuple";
|
|
280
|
+
readonly components: readonly [{
|
|
281
|
+
readonly internalType: "enum SwapType";
|
|
282
|
+
readonly name: "swapType";
|
|
283
|
+
readonly type: "uint8";
|
|
284
|
+
}, {
|
|
285
|
+
readonly internalType: "address";
|
|
286
|
+
readonly name: "extRouter";
|
|
287
|
+
readonly type: "address";
|
|
288
|
+
}, {
|
|
289
|
+
readonly internalType: "bytes";
|
|
290
|
+
readonly name: "extCalldata";
|
|
291
|
+
readonly type: "bytes";
|
|
292
|
+
}, {
|
|
293
|
+
readonly internalType: "bool";
|
|
294
|
+
readonly name: "needScale";
|
|
295
|
+
readonly type: "bool";
|
|
296
|
+
}];
|
|
297
|
+
}];
|
|
298
|
+
}];
|
|
299
|
+
readonly name: "redeemPyToToken";
|
|
300
|
+
readonly outputs: readonly [{
|
|
301
|
+
readonly internalType: "uint256";
|
|
302
|
+
readonly name: "netTokenOut";
|
|
303
|
+
readonly type: "uint256";
|
|
304
|
+
}, {
|
|
305
|
+
readonly internalType: "uint256";
|
|
306
|
+
readonly name: "netSyInterm";
|
|
307
|
+
readonly type: "uint256";
|
|
308
|
+
}];
|
|
309
|
+
readonly stateMutability: "nonpayable";
|
|
310
|
+
readonly type: "function";
|
|
311
|
+
}, {
|
|
312
|
+
readonly inputs: readonly [{
|
|
313
|
+
readonly internalType: "address";
|
|
314
|
+
readonly name: "receiver";
|
|
315
|
+
readonly type: "address";
|
|
316
|
+
}, {
|
|
317
|
+
readonly internalType: "address";
|
|
318
|
+
readonly name: "YT";
|
|
319
|
+
readonly type: "address";
|
|
320
|
+
}, {
|
|
321
|
+
readonly internalType: "uint256";
|
|
322
|
+
readonly name: "netSyIn";
|
|
323
|
+
readonly type: "uint256";
|
|
324
|
+
}, {
|
|
325
|
+
readonly internalType: "uint256";
|
|
326
|
+
readonly name: "minPyOut";
|
|
327
|
+
readonly type: "uint256";
|
|
328
|
+
}];
|
|
329
|
+
readonly name: "mintPyFromSy";
|
|
330
|
+
readonly outputs: readonly [{
|
|
331
|
+
readonly internalType: "uint256";
|
|
332
|
+
readonly name: "netPyOut";
|
|
333
|
+
readonly type: "uint256";
|
|
334
|
+
}];
|
|
335
|
+
readonly stateMutability: "nonpayable";
|
|
336
|
+
readonly type: "function";
|
|
337
|
+
}, {
|
|
338
|
+
readonly inputs: readonly [{
|
|
339
|
+
readonly internalType: "address";
|
|
340
|
+
readonly name: "receiver";
|
|
341
|
+
readonly type: "address";
|
|
342
|
+
}, {
|
|
343
|
+
readonly internalType: "address";
|
|
344
|
+
readonly name: "YT";
|
|
345
|
+
readonly type: "address";
|
|
346
|
+
}, {
|
|
347
|
+
readonly internalType: "uint256";
|
|
348
|
+
readonly name: "netPyIn";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
}, {
|
|
351
|
+
readonly internalType: "uint256";
|
|
352
|
+
readonly name: "minSyOut";
|
|
353
|
+
readonly type: "uint256";
|
|
354
|
+
}];
|
|
355
|
+
readonly name: "redeemPyToSy";
|
|
356
|
+
readonly outputs: readonly [{
|
|
357
|
+
readonly internalType: "uint256";
|
|
358
|
+
readonly name: "netSyOut";
|
|
359
|
+
readonly type: "uint256";
|
|
360
|
+
}];
|
|
361
|
+
readonly stateMutability: "nonpayable";
|
|
362
|
+
readonly type: "function";
|
|
363
|
+
}, {
|
|
364
|
+
readonly inputs: readonly [{
|
|
365
|
+
readonly internalType: "address";
|
|
366
|
+
readonly name: "receiver";
|
|
367
|
+
readonly type: "address";
|
|
368
|
+
}, {
|
|
369
|
+
readonly internalType: "address";
|
|
370
|
+
readonly name: "market";
|
|
371
|
+
readonly type: "address";
|
|
372
|
+
}, {
|
|
373
|
+
readonly internalType: "uint256";
|
|
374
|
+
readonly name: "minPtOut";
|
|
375
|
+
readonly type: "uint256";
|
|
376
|
+
}, {
|
|
377
|
+
readonly internalType: "struct ApproxParams";
|
|
378
|
+
readonly name: "guess";
|
|
379
|
+
readonly type: "tuple";
|
|
380
|
+
readonly components: readonly [{
|
|
381
|
+
readonly internalType: "uint256";
|
|
382
|
+
readonly name: "guessMin";
|
|
383
|
+
readonly type: "uint256";
|
|
384
|
+
}, {
|
|
385
|
+
readonly internalType: "uint256";
|
|
386
|
+
readonly name: "guessMax";
|
|
387
|
+
readonly type: "uint256";
|
|
388
|
+
}, {
|
|
389
|
+
readonly internalType: "uint256";
|
|
390
|
+
readonly name: "guessOffchain";
|
|
391
|
+
readonly type: "uint256";
|
|
392
|
+
}, {
|
|
393
|
+
readonly internalType: "uint256";
|
|
394
|
+
readonly name: "maxIteration";
|
|
395
|
+
readonly type: "uint256";
|
|
396
|
+
}, {
|
|
397
|
+
readonly internalType: "uint256";
|
|
398
|
+
readonly name: "eps";
|
|
399
|
+
readonly type: "uint256";
|
|
400
|
+
}];
|
|
401
|
+
}, {
|
|
402
|
+
readonly internalType: "struct TokenInput";
|
|
403
|
+
readonly name: "input";
|
|
404
|
+
readonly type: "tuple";
|
|
405
|
+
readonly components: readonly [{
|
|
406
|
+
readonly internalType: "address";
|
|
407
|
+
readonly name: "tokenIn";
|
|
408
|
+
readonly type: "address";
|
|
409
|
+
}, {
|
|
410
|
+
readonly internalType: "uint256";
|
|
411
|
+
readonly name: "netTokenIn";
|
|
412
|
+
readonly type: "uint256";
|
|
413
|
+
}, {
|
|
414
|
+
readonly internalType: "address";
|
|
415
|
+
readonly name: "tokenMintSy";
|
|
416
|
+
readonly type: "address";
|
|
417
|
+
}, {
|
|
418
|
+
readonly internalType: "address";
|
|
419
|
+
readonly name: "pendleSwap";
|
|
420
|
+
readonly type: "address";
|
|
421
|
+
}, {
|
|
422
|
+
readonly internalType: "struct SwapData";
|
|
423
|
+
readonly name: "swapData";
|
|
424
|
+
readonly type: "tuple";
|
|
425
|
+
readonly components: readonly [{
|
|
426
|
+
readonly internalType: "enum SwapType";
|
|
427
|
+
readonly name: "swapType";
|
|
428
|
+
readonly type: "uint8";
|
|
429
|
+
}, {
|
|
430
|
+
readonly internalType: "address";
|
|
431
|
+
readonly name: "extRouter";
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
}, {
|
|
434
|
+
readonly internalType: "bytes";
|
|
435
|
+
readonly name: "extCalldata";
|
|
436
|
+
readonly type: "bytes";
|
|
437
|
+
}, {
|
|
438
|
+
readonly internalType: "bool";
|
|
439
|
+
readonly name: "needScale";
|
|
440
|
+
readonly type: "bool";
|
|
441
|
+
}];
|
|
442
|
+
}];
|
|
443
|
+
}, {
|
|
444
|
+
readonly internalType: "struct LimitOrderData";
|
|
445
|
+
readonly name: "limit";
|
|
446
|
+
readonly type: "tuple";
|
|
447
|
+
readonly components: readonly [{
|
|
448
|
+
readonly internalType: "address";
|
|
449
|
+
readonly name: "limitRouter";
|
|
450
|
+
readonly type: "address";
|
|
451
|
+
}, {
|
|
452
|
+
readonly internalType: "uint256";
|
|
453
|
+
readonly name: "epsSkipMarket";
|
|
454
|
+
readonly type: "uint256";
|
|
455
|
+
}, {
|
|
456
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
457
|
+
readonly name: "normalFills";
|
|
458
|
+
readonly type: "tuple[]";
|
|
459
|
+
readonly components: readonly [{
|
|
460
|
+
readonly internalType: "struct Order";
|
|
461
|
+
readonly name: "order";
|
|
462
|
+
readonly type: "tuple";
|
|
463
|
+
readonly components: readonly [{
|
|
464
|
+
readonly internalType: "uint256";
|
|
465
|
+
readonly name: "salt";
|
|
466
|
+
readonly type: "uint256";
|
|
467
|
+
}, {
|
|
468
|
+
readonly internalType: "uint256";
|
|
469
|
+
readonly name: "expiry";
|
|
470
|
+
readonly type: "uint256";
|
|
471
|
+
}, {
|
|
472
|
+
readonly internalType: "uint256";
|
|
473
|
+
readonly name: "nonce";
|
|
474
|
+
readonly type: "uint256";
|
|
475
|
+
}, {
|
|
476
|
+
readonly internalType: "enum OrderType";
|
|
477
|
+
readonly name: "orderType";
|
|
478
|
+
readonly type: "uint8";
|
|
479
|
+
}, {
|
|
480
|
+
readonly internalType: "address";
|
|
481
|
+
readonly name: "token";
|
|
482
|
+
readonly type: "address";
|
|
483
|
+
}, {
|
|
484
|
+
readonly internalType: "address";
|
|
485
|
+
readonly name: "YT";
|
|
486
|
+
readonly type: "address";
|
|
487
|
+
}, {
|
|
488
|
+
readonly internalType: "address";
|
|
489
|
+
readonly name: "maker";
|
|
490
|
+
readonly type: "address";
|
|
491
|
+
}, {
|
|
492
|
+
readonly internalType: "address";
|
|
493
|
+
readonly name: "receiver";
|
|
494
|
+
readonly type: "address";
|
|
495
|
+
}, {
|
|
496
|
+
readonly internalType: "uint256";
|
|
497
|
+
readonly name: "makingAmount";
|
|
498
|
+
readonly type: "uint256";
|
|
499
|
+
}, {
|
|
500
|
+
readonly internalType: "uint256";
|
|
501
|
+
readonly name: "lnImpliedRate";
|
|
502
|
+
readonly type: "uint256";
|
|
503
|
+
}, {
|
|
504
|
+
readonly internalType: "uint256";
|
|
505
|
+
readonly name: "failSafeRate";
|
|
506
|
+
readonly type: "uint256";
|
|
507
|
+
}, {
|
|
508
|
+
readonly internalType: "bytes";
|
|
509
|
+
readonly name: "permit";
|
|
510
|
+
readonly type: "bytes";
|
|
511
|
+
}];
|
|
512
|
+
}, {
|
|
513
|
+
readonly internalType: "bytes";
|
|
514
|
+
readonly name: "signature";
|
|
515
|
+
readonly type: "bytes";
|
|
516
|
+
}, {
|
|
517
|
+
readonly internalType: "uint256";
|
|
518
|
+
readonly name: "makingAmount";
|
|
519
|
+
readonly type: "uint256";
|
|
520
|
+
}];
|
|
521
|
+
}, {
|
|
522
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
523
|
+
readonly name: "flashFills";
|
|
524
|
+
readonly type: "tuple[]";
|
|
525
|
+
readonly components: readonly [{
|
|
526
|
+
readonly internalType: "struct Order";
|
|
527
|
+
readonly name: "order";
|
|
528
|
+
readonly type: "tuple";
|
|
529
|
+
readonly components: readonly [{
|
|
530
|
+
readonly internalType: "uint256";
|
|
531
|
+
readonly name: "salt";
|
|
532
|
+
readonly type: "uint256";
|
|
533
|
+
}, {
|
|
534
|
+
readonly internalType: "uint256";
|
|
535
|
+
readonly name: "expiry";
|
|
536
|
+
readonly type: "uint256";
|
|
537
|
+
}, {
|
|
538
|
+
readonly internalType: "uint256";
|
|
539
|
+
readonly name: "nonce";
|
|
540
|
+
readonly type: "uint256";
|
|
541
|
+
}, {
|
|
542
|
+
readonly internalType: "enum OrderType";
|
|
543
|
+
readonly name: "orderType";
|
|
544
|
+
readonly type: "uint8";
|
|
545
|
+
}, {
|
|
546
|
+
readonly internalType: "address";
|
|
547
|
+
readonly name: "token";
|
|
548
|
+
readonly type: "address";
|
|
549
|
+
}, {
|
|
550
|
+
readonly internalType: "address";
|
|
551
|
+
readonly name: "YT";
|
|
552
|
+
readonly type: "address";
|
|
553
|
+
}, {
|
|
554
|
+
readonly internalType: "address";
|
|
555
|
+
readonly name: "maker";
|
|
556
|
+
readonly type: "address";
|
|
557
|
+
}, {
|
|
558
|
+
readonly internalType: "address";
|
|
559
|
+
readonly name: "receiver";
|
|
560
|
+
readonly type: "address";
|
|
561
|
+
}, {
|
|
562
|
+
readonly internalType: "uint256";
|
|
563
|
+
readonly name: "makingAmount";
|
|
564
|
+
readonly type: "uint256";
|
|
565
|
+
}, {
|
|
566
|
+
readonly internalType: "uint256";
|
|
567
|
+
readonly name: "lnImpliedRate";
|
|
568
|
+
readonly type: "uint256";
|
|
569
|
+
}, {
|
|
570
|
+
readonly internalType: "uint256";
|
|
571
|
+
readonly name: "failSafeRate";
|
|
572
|
+
readonly type: "uint256";
|
|
573
|
+
}, {
|
|
574
|
+
readonly internalType: "bytes";
|
|
575
|
+
readonly name: "permit";
|
|
576
|
+
readonly type: "bytes";
|
|
577
|
+
}];
|
|
578
|
+
}, {
|
|
579
|
+
readonly internalType: "bytes";
|
|
580
|
+
readonly name: "signature";
|
|
581
|
+
readonly type: "bytes";
|
|
582
|
+
}, {
|
|
583
|
+
readonly internalType: "uint256";
|
|
584
|
+
readonly name: "makingAmount";
|
|
585
|
+
readonly type: "uint256";
|
|
586
|
+
}];
|
|
587
|
+
}, {
|
|
588
|
+
readonly internalType: "bytes";
|
|
589
|
+
readonly name: "optData";
|
|
590
|
+
readonly type: "bytes";
|
|
591
|
+
}];
|
|
592
|
+
}];
|
|
593
|
+
readonly name: "swapExactTokenForPt";
|
|
594
|
+
readonly outputs: readonly [{
|
|
595
|
+
readonly internalType: "uint256";
|
|
596
|
+
readonly name: "netPtOut";
|
|
597
|
+
readonly type: "uint256";
|
|
598
|
+
}, {
|
|
599
|
+
readonly internalType: "uint256";
|
|
600
|
+
readonly name: "netSyFee";
|
|
601
|
+
readonly type: "uint256";
|
|
602
|
+
}, {
|
|
603
|
+
readonly internalType: "uint256";
|
|
604
|
+
readonly name: "netSyInterm";
|
|
605
|
+
readonly type: "uint256";
|
|
606
|
+
}];
|
|
607
|
+
readonly stateMutability: "payable";
|
|
608
|
+
readonly type: "function";
|
|
609
|
+
}, {
|
|
610
|
+
readonly inputs: readonly [{
|
|
611
|
+
readonly internalType: "address";
|
|
612
|
+
readonly name: "receiver";
|
|
613
|
+
readonly type: "address";
|
|
614
|
+
}, {
|
|
615
|
+
readonly internalType: "address";
|
|
616
|
+
readonly name: "market";
|
|
617
|
+
readonly type: "address";
|
|
618
|
+
}, {
|
|
619
|
+
readonly internalType: "uint256";
|
|
620
|
+
readonly name: "exactSyIn";
|
|
621
|
+
readonly type: "uint256";
|
|
622
|
+
}, {
|
|
623
|
+
readonly internalType: "uint256";
|
|
624
|
+
readonly name: "minPtOut";
|
|
625
|
+
readonly type: "uint256";
|
|
626
|
+
}, {
|
|
627
|
+
readonly internalType: "struct ApproxParams";
|
|
628
|
+
readonly name: "guess";
|
|
629
|
+
readonly type: "tuple";
|
|
630
|
+
readonly components: readonly [{
|
|
631
|
+
readonly internalType: "uint256";
|
|
632
|
+
readonly name: "guessMin";
|
|
633
|
+
readonly type: "uint256";
|
|
634
|
+
}, {
|
|
635
|
+
readonly internalType: "uint256";
|
|
636
|
+
readonly name: "guessMax";
|
|
637
|
+
readonly type: "uint256";
|
|
638
|
+
}, {
|
|
639
|
+
readonly internalType: "uint256";
|
|
640
|
+
readonly name: "guessOffchain";
|
|
641
|
+
readonly type: "uint256";
|
|
642
|
+
}, {
|
|
643
|
+
readonly internalType: "uint256";
|
|
644
|
+
readonly name: "maxIteration";
|
|
645
|
+
readonly type: "uint256";
|
|
646
|
+
}, {
|
|
647
|
+
readonly internalType: "uint256";
|
|
648
|
+
readonly name: "eps";
|
|
649
|
+
readonly type: "uint256";
|
|
650
|
+
}];
|
|
651
|
+
}, {
|
|
652
|
+
readonly internalType: "struct LimitOrderData";
|
|
653
|
+
readonly name: "limit";
|
|
654
|
+
readonly type: "tuple";
|
|
655
|
+
readonly components: readonly [{
|
|
656
|
+
readonly internalType: "address";
|
|
657
|
+
readonly name: "limitRouter";
|
|
658
|
+
readonly type: "address";
|
|
659
|
+
}, {
|
|
660
|
+
readonly internalType: "uint256";
|
|
661
|
+
readonly name: "epsSkipMarket";
|
|
662
|
+
readonly type: "uint256";
|
|
663
|
+
}, {
|
|
664
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
665
|
+
readonly name: "normalFills";
|
|
666
|
+
readonly type: "tuple[]";
|
|
667
|
+
readonly components: readonly [{
|
|
668
|
+
readonly internalType: "struct Order";
|
|
669
|
+
readonly name: "order";
|
|
670
|
+
readonly type: "tuple";
|
|
671
|
+
readonly components: readonly [{
|
|
672
|
+
readonly internalType: "uint256";
|
|
673
|
+
readonly name: "salt";
|
|
674
|
+
readonly type: "uint256";
|
|
675
|
+
}, {
|
|
676
|
+
readonly internalType: "uint256";
|
|
677
|
+
readonly name: "expiry";
|
|
678
|
+
readonly type: "uint256";
|
|
679
|
+
}, {
|
|
680
|
+
readonly internalType: "uint256";
|
|
681
|
+
readonly name: "nonce";
|
|
682
|
+
readonly type: "uint256";
|
|
683
|
+
}, {
|
|
684
|
+
readonly internalType: "enum OrderType";
|
|
685
|
+
readonly name: "orderType";
|
|
686
|
+
readonly type: "uint8";
|
|
687
|
+
}, {
|
|
688
|
+
readonly internalType: "address";
|
|
689
|
+
readonly name: "token";
|
|
690
|
+
readonly type: "address";
|
|
691
|
+
}, {
|
|
692
|
+
readonly internalType: "address";
|
|
693
|
+
readonly name: "YT";
|
|
694
|
+
readonly type: "address";
|
|
695
|
+
}, {
|
|
696
|
+
readonly internalType: "address";
|
|
697
|
+
readonly name: "maker";
|
|
698
|
+
readonly type: "address";
|
|
699
|
+
}, {
|
|
700
|
+
readonly internalType: "address";
|
|
701
|
+
readonly name: "receiver";
|
|
702
|
+
readonly type: "address";
|
|
703
|
+
}, {
|
|
704
|
+
readonly internalType: "uint256";
|
|
705
|
+
readonly name: "makingAmount";
|
|
706
|
+
readonly type: "uint256";
|
|
707
|
+
}, {
|
|
708
|
+
readonly internalType: "uint256";
|
|
709
|
+
readonly name: "lnImpliedRate";
|
|
710
|
+
readonly type: "uint256";
|
|
711
|
+
}, {
|
|
712
|
+
readonly internalType: "uint256";
|
|
713
|
+
readonly name: "failSafeRate";
|
|
714
|
+
readonly type: "uint256";
|
|
715
|
+
}, {
|
|
716
|
+
readonly internalType: "bytes";
|
|
717
|
+
readonly name: "permit";
|
|
718
|
+
readonly type: "bytes";
|
|
719
|
+
}];
|
|
720
|
+
}, {
|
|
721
|
+
readonly internalType: "bytes";
|
|
722
|
+
readonly name: "signature";
|
|
723
|
+
readonly type: "bytes";
|
|
724
|
+
}, {
|
|
725
|
+
readonly internalType: "uint256";
|
|
726
|
+
readonly name: "makingAmount";
|
|
727
|
+
readonly type: "uint256";
|
|
728
|
+
}];
|
|
729
|
+
}, {
|
|
730
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
731
|
+
readonly name: "flashFills";
|
|
732
|
+
readonly type: "tuple[]";
|
|
733
|
+
readonly components: readonly [{
|
|
734
|
+
readonly internalType: "struct Order";
|
|
735
|
+
readonly name: "order";
|
|
736
|
+
readonly type: "tuple";
|
|
737
|
+
readonly components: readonly [{
|
|
738
|
+
readonly internalType: "uint256";
|
|
739
|
+
readonly name: "salt";
|
|
740
|
+
readonly type: "uint256";
|
|
741
|
+
}, {
|
|
742
|
+
readonly internalType: "uint256";
|
|
743
|
+
readonly name: "expiry";
|
|
744
|
+
readonly type: "uint256";
|
|
745
|
+
}, {
|
|
746
|
+
readonly internalType: "uint256";
|
|
747
|
+
readonly name: "nonce";
|
|
748
|
+
readonly type: "uint256";
|
|
749
|
+
}, {
|
|
750
|
+
readonly internalType: "enum OrderType";
|
|
751
|
+
readonly name: "orderType";
|
|
752
|
+
readonly type: "uint8";
|
|
753
|
+
}, {
|
|
754
|
+
readonly internalType: "address";
|
|
755
|
+
readonly name: "token";
|
|
756
|
+
readonly type: "address";
|
|
757
|
+
}, {
|
|
758
|
+
readonly internalType: "address";
|
|
759
|
+
readonly name: "YT";
|
|
760
|
+
readonly type: "address";
|
|
761
|
+
}, {
|
|
762
|
+
readonly internalType: "address";
|
|
763
|
+
readonly name: "maker";
|
|
764
|
+
readonly type: "address";
|
|
765
|
+
}, {
|
|
766
|
+
readonly internalType: "address";
|
|
767
|
+
readonly name: "receiver";
|
|
768
|
+
readonly type: "address";
|
|
769
|
+
}, {
|
|
770
|
+
readonly internalType: "uint256";
|
|
771
|
+
readonly name: "makingAmount";
|
|
772
|
+
readonly type: "uint256";
|
|
773
|
+
}, {
|
|
774
|
+
readonly internalType: "uint256";
|
|
775
|
+
readonly name: "lnImpliedRate";
|
|
776
|
+
readonly type: "uint256";
|
|
777
|
+
}, {
|
|
778
|
+
readonly internalType: "uint256";
|
|
779
|
+
readonly name: "failSafeRate";
|
|
780
|
+
readonly type: "uint256";
|
|
781
|
+
}, {
|
|
782
|
+
readonly internalType: "bytes";
|
|
783
|
+
readonly name: "permit";
|
|
784
|
+
readonly type: "bytes";
|
|
785
|
+
}];
|
|
786
|
+
}, {
|
|
787
|
+
readonly internalType: "bytes";
|
|
788
|
+
readonly name: "signature";
|
|
789
|
+
readonly type: "bytes";
|
|
790
|
+
}, {
|
|
791
|
+
readonly internalType: "uint256";
|
|
792
|
+
readonly name: "makingAmount";
|
|
793
|
+
readonly type: "uint256";
|
|
794
|
+
}];
|
|
795
|
+
}, {
|
|
796
|
+
readonly internalType: "bytes";
|
|
797
|
+
readonly name: "optData";
|
|
798
|
+
readonly type: "bytes";
|
|
799
|
+
}];
|
|
800
|
+
}];
|
|
801
|
+
readonly name: "swapExactSyForPt";
|
|
802
|
+
readonly outputs: readonly [{
|
|
803
|
+
readonly internalType: "uint256";
|
|
804
|
+
readonly name: "netPtOut";
|
|
805
|
+
readonly type: "uint256";
|
|
806
|
+
}, {
|
|
807
|
+
readonly internalType: "uint256";
|
|
808
|
+
readonly name: "netSyFee";
|
|
809
|
+
readonly type: "uint256";
|
|
810
|
+
}];
|
|
811
|
+
readonly stateMutability: "nonpayable";
|
|
812
|
+
readonly type: "function";
|
|
813
|
+
}, {
|
|
814
|
+
readonly inputs: readonly [{
|
|
815
|
+
readonly internalType: "address";
|
|
816
|
+
readonly name: "receiver";
|
|
817
|
+
readonly type: "address";
|
|
818
|
+
}, {
|
|
819
|
+
readonly internalType: "address";
|
|
820
|
+
readonly name: "market";
|
|
821
|
+
readonly type: "address";
|
|
822
|
+
}, {
|
|
823
|
+
readonly internalType: "uint256";
|
|
824
|
+
readonly name: "exactPtIn";
|
|
825
|
+
readonly type: "uint256";
|
|
826
|
+
}, {
|
|
827
|
+
readonly internalType: "struct TokenOutput";
|
|
828
|
+
readonly name: "output";
|
|
829
|
+
readonly type: "tuple";
|
|
830
|
+
readonly components: readonly [{
|
|
831
|
+
readonly internalType: "address";
|
|
832
|
+
readonly name: "tokenOut";
|
|
833
|
+
readonly type: "address";
|
|
834
|
+
}, {
|
|
835
|
+
readonly internalType: "uint256";
|
|
836
|
+
readonly name: "minTokenOut";
|
|
837
|
+
readonly type: "uint256";
|
|
838
|
+
}, {
|
|
839
|
+
readonly internalType: "address";
|
|
840
|
+
readonly name: "tokenRedeemSy";
|
|
841
|
+
readonly type: "address";
|
|
842
|
+
}, {
|
|
843
|
+
readonly internalType: "address";
|
|
844
|
+
readonly name: "pendleSwap";
|
|
845
|
+
readonly type: "address";
|
|
846
|
+
}, {
|
|
847
|
+
readonly internalType: "struct SwapData";
|
|
848
|
+
readonly name: "swapData";
|
|
849
|
+
readonly type: "tuple";
|
|
850
|
+
readonly components: readonly [{
|
|
851
|
+
readonly internalType: "enum SwapType";
|
|
852
|
+
readonly name: "swapType";
|
|
853
|
+
readonly type: "uint8";
|
|
854
|
+
}, {
|
|
855
|
+
readonly internalType: "address";
|
|
856
|
+
readonly name: "extRouter";
|
|
857
|
+
readonly type: "address";
|
|
858
|
+
}, {
|
|
859
|
+
readonly internalType: "bytes";
|
|
860
|
+
readonly name: "extCalldata";
|
|
861
|
+
readonly type: "bytes";
|
|
862
|
+
}, {
|
|
863
|
+
readonly internalType: "bool";
|
|
864
|
+
readonly name: "needScale";
|
|
865
|
+
readonly type: "bool";
|
|
866
|
+
}];
|
|
867
|
+
}];
|
|
868
|
+
}, {
|
|
869
|
+
readonly internalType: "struct LimitOrderData";
|
|
870
|
+
readonly name: "limit";
|
|
871
|
+
readonly type: "tuple";
|
|
872
|
+
readonly components: readonly [{
|
|
873
|
+
readonly internalType: "address";
|
|
874
|
+
readonly name: "limitRouter";
|
|
875
|
+
readonly type: "address";
|
|
876
|
+
}, {
|
|
877
|
+
readonly internalType: "uint256";
|
|
878
|
+
readonly name: "epsSkipMarket";
|
|
879
|
+
readonly type: "uint256";
|
|
880
|
+
}, {
|
|
881
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
882
|
+
readonly name: "normalFills";
|
|
883
|
+
readonly type: "tuple[]";
|
|
884
|
+
readonly components: readonly [{
|
|
885
|
+
readonly internalType: "struct Order";
|
|
886
|
+
readonly name: "order";
|
|
887
|
+
readonly type: "tuple";
|
|
888
|
+
readonly components: readonly [{
|
|
889
|
+
readonly internalType: "uint256";
|
|
890
|
+
readonly name: "salt";
|
|
891
|
+
readonly type: "uint256";
|
|
892
|
+
}, {
|
|
893
|
+
readonly internalType: "uint256";
|
|
894
|
+
readonly name: "expiry";
|
|
895
|
+
readonly type: "uint256";
|
|
896
|
+
}, {
|
|
897
|
+
readonly internalType: "uint256";
|
|
898
|
+
readonly name: "nonce";
|
|
899
|
+
readonly type: "uint256";
|
|
900
|
+
}, {
|
|
901
|
+
readonly internalType: "enum OrderType";
|
|
902
|
+
readonly name: "orderType";
|
|
903
|
+
readonly type: "uint8";
|
|
904
|
+
}, {
|
|
905
|
+
readonly internalType: "address";
|
|
906
|
+
readonly name: "token";
|
|
907
|
+
readonly type: "address";
|
|
908
|
+
}, {
|
|
909
|
+
readonly internalType: "address";
|
|
910
|
+
readonly name: "YT";
|
|
911
|
+
readonly type: "address";
|
|
912
|
+
}, {
|
|
913
|
+
readonly internalType: "address";
|
|
914
|
+
readonly name: "maker";
|
|
915
|
+
readonly type: "address";
|
|
916
|
+
}, {
|
|
917
|
+
readonly internalType: "address";
|
|
918
|
+
readonly name: "receiver";
|
|
919
|
+
readonly type: "address";
|
|
920
|
+
}, {
|
|
921
|
+
readonly internalType: "uint256";
|
|
922
|
+
readonly name: "makingAmount";
|
|
923
|
+
readonly type: "uint256";
|
|
924
|
+
}, {
|
|
925
|
+
readonly internalType: "uint256";
|
|
926
|
+
readonly name: "lnImpliedRate";
|
|
927
|
+
readonly type: "uint256";
|
|
928
|
+
}, {
|
|
929
|
+
readonly internalType: "uint256";
|
|
930
|
+
readonly name: "failSafeRate";
|
|
931
|
+
readonly type: "uint256";
|
|
932
|
+
}, {
|
|
933
|
+
readonly internalType: "bytes";
|
|
934
|
+
readonly name: "permit";
|
|
935
|
+
readonly type: "bytes";
|
|
936
|
+
}];
|
|
937
|
+
}, {
|
|
938
|
+
readonly internalType: "bytes";
|
|
939
|
+
readonly name: "signature";
|
|
940
|
+
readonly type: "bytes";
|
|
941
|
+
}, {
|
|
942
|
+
readonly internalType: "uint256";
|
|
943
|
+
readonly name: "makingAmount";
|
|
944
|
+
readonly type: "uint256";
|
|
945
|
+
}];
|
|
946
|
+
}, {
|
|
947
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
948
|
+
readonly name: "flashFills";
|
|
949
|
+
readonly type: "tuple[]";
|
|
950
|
+
readonly components: readonly [{
|
|
951
|
+
readonly internalType: "struct Order";
|
|
952
|
+
readonly name: "order";
|
|
953
|
+
readonly type: "tuple";
|
|
954
|
+
readonly components: readonly [{
|
|
955
|
+
readonly internalType: "uint256";
|
|
956
|
+
readonly name: "salt";
|
|
957
|
+
readonly type: "uint256";
|
|
958
|
+
}, {
|
|
959
|
+
readonly internalType: "uint256";
|
|
960
|
+
readonly name: "expiry";
|
|
961
|
+
readonly type: "uint256";
|
|
962
|
+
}, {
|
|
963
|
+
readonly internalType: "uint256";
|
|
964
|
+
readonly name: "nonce";
|
|
965
|
+
readonly type: "uint256";
|
|
966
|
+
}, {
|
|
967
|
+
readonly internalType: "enum OrderType";
|
|
968
|
+
readonly name: "orderType";
|
|
969
|
+
readonly type: "uint8";
|
|
970
|
+
}, {
|
|
971
|
+
readonly internalType: "address";
|
|
972
|
+
readonly name: "token";
|
|
973
|
+
readonly type: "address";
|
|
974
|
+
}, {
|
|
975
|
+
readonly internalType: "address";
|
|
976
|
+
readonly name: "YT";
|
|
977
|
+
readonly type: "address";
|
|
978
|
+
}, {
|
|
979
|
+
readonly internalType: "address";
|
|
980
|
+
readonly name: "maker";
|
|
981
|
+
readonly type: "address";
|
|
982
|
+
}, {
|
|
983
|
+
readonly internalType: "address";
|
|
984
|
+
readonly name: "receiver";
|
|
985
|
+
readonly type: "address";
|
|
986
|
+
}, {
|
|
987
|
+
readonly internalType: "uint256";
|
|
988
|
+
readonly name: "makingAmount";
|
|
989
|
+
readonly type: "uint256";
|
|
990
|
+
}, {
|
|
991
|
+
readonly internalType: "uint256";
|
|
992
|
+
readonly name: "lnImpliedRate";
|
|
993
|
+
readonly type: "uint256";
|
|
994
|
+
}, {
|
|
995
|
+
readonly internalType: "uint256";
|
|
996
|
+
readonly name: "failSafeRate";
|
|
997
|
+
readonly type: "uint256";
|
|
998
|
+
}, {
|
|
999
|
+
readonly internalType: "bytes";
|
|
1000
|
+
readonly name: "permit";
|
|
1001
|
+
readonly type: "bytes";
|
|
1002
|
+
}];
|
|
1003
|
+
}, {
|
|
1004
|
+
readonly internalType: "bytes";
|
|
1005
|
+
readonly name: "signature";
|
|
1006
|
+
readonly type: "bytes";
|
|
1007
|
+
}, {
|
|
1008
|
+
readonly internalType: "uint256";
|
|
1009
|
+
readonly name: "makingAmount";
|
|
1010
|
+
readonly type: "uint256";
|
|
1011
|
+
}];
|
|
1012
|
+
}, {
|
|
1013
|
+
readonly internalType: "bytes";
|
|
1014
|
+
readonly name: "optData";
|
|
1015
|
+
readonly type: "bytes";
|
|
1016
|
+
}];
|
|
1017
|
+
}];
|
|
1018
|
+
readonly name: "swapExactPtForToken";
|
|
1019
|
+
readonly outputs: readonly [{
|
|
1020
|
+
readonly internalType: "uint256";
|
|
1021
|
+
readonly name: "netTokenOut";
|
|
1022
|
+
readonly type: "uint256";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly internalType: "uint256";
|
|
1025
|
+
readonly name: "netSyFee";
|
|
1026
|
+
readonly type: "uint256";
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly internalType: "uint256";
|
|
1029
|
+
readonly name: "netSyInterm";
|
|
1030
|
+
readonly type: "uint256";
|
|
1031
|
+
}];
|
|
1032
|
+
readonly stateMutability: "nonpayable";
|
|
1033
|
+
readonly type: "function";
|
|
1034
|
+
}, {
|
|
1035
|
+
readonly inputs: readonly [{
|
|
1036
|
+
readonly internalType: "address";
|
|
1037
|
+
readonly name: "receiver";
|
|
1038
|
+
readonly type: "address";
|
|
1039
|
+
}, {
|
|
1040
|
+
readonly internalType: "address";
|
|
1041
|
+
readonly name: "market";
|
|
1042
|
+
readonly type: "address";
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly internalType: "uint256";
|
|
1045
|
+
readonly name: "exactPtIn";
|
|
1046
|
+
readonly type: "uint256";
|
|
1047
|
+
}, {
|
|
1048
|
+
readonly internalType: "uint256";
|
|
1049
|
+
readonly name: "minSyOut";
|
|
1050
|
+
readonly type: "uint256";
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly internalType: "struct LimitOrderData";
|
|
1053
|
+
readonly name: "limit";
|
|
1054
|
+
readonly type: "tuple";
|
|
1055
|
+
readonly components: readonly [{
|
|
1056
|
+
readonly internalType: "address";
|
|
1057
|
+
readonly name: "limitRouter";
|
|
1058
|
+
readonly type: "address";
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly internalType: "uint256";
|
|
1061
|
+
readonly name: "epsSkipMarket";
|
|
1062
|
+
readonly type: "uint256";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1065
|
+
readonly name: "normalFills";
|
|
1066
|
+
readonly type: "tuple[]";
|
|
1067
|
+
readonly components: readonly [{
|
|
1068
|
+
readonly internalType: "struct Order";
|
|
1069
|
+
readonly name: "order";
|
|
1070
|
+
readonly type: "tuple";
|
|
1071
|
+
readonly components: readonly [{
|
|
1072
|
+
readonly internalType: "uint256";
|
|
1073
|
+
readonly name: "salt";
|
|
1074
|
+
readonly type: "uint256";
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly internalType: "uint256";
|
|
1077
|
+
readonly name: "expiry";
|
|
1078
|
+
readonly type: "uint256";
|
|
1079
|
+
}, {
|
|
1080
|
+
readonly internalType: "uint256";
|
|
1081
|
+
readonly name: "nonce";
|
|
1082
|
+
readonly type: "uint256";
|
|
1083
|
+
}, {
|
|
1084
|
+
readonly internalType: "enum OrderType";
|
|
1085
|
+
readonly name: "orderType";
|
|
1086
|
+
readonly type: "uint8";
|
|
1087
|
+
}, {
|
|
1088
|
+
readonly internalType: "address";
|
|
1089
|
+
readonly name: "token";
|
|
1090
|
+
readonly type: "address";
|
|
1091
|
+
}, {
|
|
1092
|
+
readonly internalType: "address";
|
|
1093
|
+
readonly name: "YT";
|
|
1094
|
+
readonly type: "address";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly internalType: "address";
|
|
1097
|
+
readonly name: "maker";
|
|
1098
|
+
readonly type: "address";
|
|
1099
|
+
}, {
|
|
1100
|
+
readonly internalType: "address";
|
|
1101
|
+
readonly name: "receiver";
|
|
1102
|
+
readonly type: "address";
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly internalType: "uint256";
|
|
1105
|
+
readonly name: "makingAmount";
|
|
1106
|
+
readonly type: "uint256";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly internalType: "uint256";
|
|
1109
|
+
readonly name: "lnImpliedRate";
|
|
1110
|
+
readonly type: "uint256";
|
|
1111
|
+
}, {
|
|
1112
|
+
readonly internalType: "uint256";
|
|
1113
|
+
readonly name: "failSafeRate";
|
|
1114
|
+
readonly type: "uint256";
|
|
1115
|
+
}, {
|
|
1116
|
+
readonly internalType: "bytes";
|
|
1117
|
+
readonly name: "permit";
|
|
1118
|
+
readonly type: "bytes";
|
|
1119
|
+
}];
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly internalType: "bytes";
|
|
1122
|
+
readonly name: "signature";
|
|
1123
|
+
readonly type: "bytes";
|
|
1124
|
+
}, {
|
|
1125
|
+
readonly internalType: "uint256";
|
|
1126
|
+
readonly name: "makingAmount";
|
|
1127
|
+
readonly type: "uint256";
|
|
1128
|
+
}];
|
|
1129
|
+
}, {
|
|
1130
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1131
|
+
readonly name: "flashFills";
|
|
1132
|
+
readonly type: "tuple[]";
|
|
1133
|
+
readonly components: readonly [{
|
|
1134
|
+
readonly internalType: "struct Order";
|
|
1135
|
+
readonly name: "order";
|
|
1136
|
+
readonly type: "tuple";
|
|
1137
|
+
readonly components: readonly [{
|
|
1138
|
+
readonly internalType: "uint256";
|
|
1139
|
+
readonly name: "salt";
|
|
1140
|
+
readonly type: "uint256";
|
|
1141
|
+
}, {
|
|
1142
|
+
readonly internalType: "uint256";
|
|
1143
|
+
readonly name: "expiry";
|
|
1144
|
+
readonly type: "uint256";
|
|
1145
|
+
}, {
|
|
1146
|
+
readonly internalType: "uint256";
|
|
1147
|
+
readonly name: "nonce";
|
|
1148
|
+
readonly type: "uint256";
|
|
1149
|
+
}, {
|
|
1150
|
+
readonly internalType: "enum OrderType";
|
|
1151
|
+
readonly name: "orderType";
|
|
1152
|
+
readonly type: "uint8";
|
|
1153
|
+
}, {
|
|
1154
|
+
readonly internalType: "address";
|
|
1155
|
+
readonly name: "token";
|
|
1156
|
+
readonly type: "address";
|
|
1157
|
+
}, {
|
|
1158
|
+
readonly internalType: "address";
|
|
1159
|
+
readonly name: "YT";
|
|
1160
|
+
readonly type: "address";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly internalType: "address";
|
|
1163
|
+
readonly name: "maker";
|
|
1164
|
+
readonly type: "address";
|
|
1165
|
+
}, {
|
|
1166
|
+
readonly internalType: "address";
|
|
1167
|
+
readonly name: "receiver";
|
|
1168
|
+
readonly type: "address";
|
|
1169
|
+
}, {
|
|
1170
|
+
readonly internalType: "uint256";
|
|
1171
|
+
readonly name: "makingAmount";
|
|
1172
|
+
readonly type: "uint256";
|
|
1173
|
+
}, {
|
|
1174
|
+
readonly internalType: "uint256";
|
|
1175
|
+
readonly name: "lnImpliedRate";
|
|
1176
|
+
readonly type: "uint256";
|
|
1177
|
+
}, {
|
|
1178
|
+
readonly internalType: "uint256";
|
|
1179
|
+
readonly name: "failSafeRate";
|
|
1180
|
+
readonly type: "uint256";
|
|
1181
|
+
}, {
|
|
1182
|
+
readonly internalType: "bytes";
|
|
1183
|
+
readonly name: "permit";
|
|
1184
|
+
readonly type: "bytes";
|
|
1185
|
+
}];
|
|
1186
|
+
}, {
|
|
1187
|
+
readonly internalType: "bytes";
|
|
1188
|
+
readonly name: "signature";
|
|
1189
|
+
readonly type: "bytes";
|
|
1190
|
+
}, {
|
|
1191
|
+
readonly internalType: "uint256";
|
|
1192
|
+
readonly name: "makingAmount";
|
|
1193
|
+
readonly type: "uint256";
|
|
1194
|
+
}];
|
|
1195
|
+
}, {
|
|
1196
|
+
readonly internalType: "bytes";
|
|
1197
|
+
readonly name: "optData";
|
|
1198
|
+
readonly type: "bytes";
|
|
1199
|
+
}];
|
|
1200
|
+
}];
|
|
1201
|
+
readonly name: "swapExactPtForSy";
|
|
1202
|
+
readonly outputs: readonly [{
|
|
1203
|
+
readonly internalType: "uint256";
|
|
1204
|
+
readonly name: "netSyOut";
|
|
1205
|
+
readonly type: "uint256";
|
|
1206
|
+
}, {
|
|
1207
|
+
readonly internalType: "uint256";
|
|
1208
|
+
readonly name: "netSyFee";
|
|
1209
|
+
readonly type: "uint256";
|
|
1210
|
+
}];
|
|
1211
|
+
readonly stateMutability: "nonpayable";
|
|
1212
|
+
readonly type: "function";
|
|
1213
|
+
}, {
|
|
1214
|
+
readonly inputs: readonly [{
|
|
1215
|
+
readonly internalType: "address";
|
|
1216
|
+
readonly name: "receiver";
|
|
1217
|
+
readonly type: "address";
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly internalType: "address";
|
|
1220
|
+
readonly name: "market";
|
|
1221
|
+
readonly type: "address";
|
|
1222
|
+
}, {
|
|
1223
|
+
readonly internalType: "uint256";
|
|
1224
|
+
readonly name: "minYtOut";
|
|
1225
|
+
readonly type: "uint256";
|
|
1226
|
+
}, {
|
|
1227
|
+
readonly internalType: "struct ApproxParams";
|
|
1228
|
+
readonly name: "guess";
|
|
1229
|
+
readonly type: "tuple";
|
|
1230
|
+
readonly components: readonly [{
|
|
1231
|
+
readonly internalType: "uint256";
|
|
1232
|
+
readonly name: "guessMin";
|
|
1233
|
+
readonly type: "uint256";
|
|
1234
|
+
}, {
|
|
1235
|
+
readonly internalType: "uint256";
|
|
1236
|
+
readonly name: "guessMax";
|
|
1237
|
+
readonly type: "uint256";
|
|
1238
|
+
}, {
|
|
1239
|
+
readonly internalType: "uint256";
|
|
1240
|
+
readonly name: "guessOffchain";
|
|
1241
|
+
readonly type: "uint256";
|
|
1242
|
+
}, {
|
|
1243
|
+
readonly internalType: "uint256";
|
|
1244
|
+
readonly name: "maxIteration";
|
|
1245
|
+
readonly type: "uint256";
|
|
1246
|
+
}, {
|
|
1247
|
+
readonly internalType: "uint256";
|
|
1248
|
+
readonly name: "eps";
|
|
1249
|
+
readonly type: "uint256";
|
|
1250
|
+
}];
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly internalType: "struct TokenInput";
|
|
1253
|
+
readonly name: "input";
|
|
1254
|
+
readonly type: "tuple";
|
|
1255
|
+
readonly components: readonly [{
|
|
1256
|
+
readonly internalType: "address";
|
|
1257
|
+
readonly name: "tokenIn";
|
|
1258
|
+
readonly type: "address";
|
|
1259
|
+
}, {
|
|
1260
|
+
readonly internalType: "uint256";
|
|
1261
|
+
readonly name: "netTokenIn";
|
|
1262
|
+
readonly type: "uint256";
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly internalType: "address";
|
|
1265
|
+
readonly name: "tokenMintSy";
|
|
1266
|
+
readonly type: "address";
|
|
1267
|
+
}, {
|
|
1268
|
+
readonly internalType: "address";
|
|
1269
|
+
readonly name: "pendleSwap";
|
|
1270
|
+
readonly type: "address";
|
|
1271
|
+
}, {
|
|
1272
|
+
readonly internalType: "struct SwapData";
|
|
1273
|
+
readonly name: "swapData";
|
|
1274
|
+
readonly type: "tuple";
|
|
1275
|
+
readonly components: readonly [{
|
|
1276
|
+
readonly internalType: "enum SwapType";
|
|
1277
|
+
readonly name: "swapType";
|
|
1278
|
+
readonly type: "uint8";
|
|
1279
|
+
}, {
|
|
1280
|
+
readonly internalType: "address";
|
|
1281
|
+
readonly name: "extRouter";
|
|
1282
|
+
readonly type: "address";
|
|
1283
|
+
}, {
|
|
1284
|
+
readonly internalType: "bytes";
|
|
1285
|
+
readonly name: "extCalldata";
|
|
1286
|
+
readonly type: "bytes";
|
|
1287
|
+
}, {
|
|
1288
|
+
readonly internalType: "bool";
|
|
1289
|
+
readonly name: "needScale";
|
|
1290
|
+
readonly type: "bool";
|
|
1291
|
+
}];
|
|
1292
|
+
}];
|
|
1293
|
+
}, {
|
|
1294
|
+
readonly internalType: "struct LimitOrderData";
|
|
1295
|
+
readonly name: "limit";
|
|
1296
|
+
readonly type: "tuple";
|
|
1297
|
+
readonly components: readonly [{
|
|
1298
|
+
readonly internalType: "address";
|
|
1299
|
+
readonly name: "limitRouter";
|
|
1300
|
+
readonly type: "address";
|
|
1301
|
+
}, {
|
|
1302
|
+
readonly internalType: "uint256";
|
|
1303
|
+
readonly name: "epsSkipMarket";
|
|
1304
|
+
readonly type: "uint256";
|
|
1305
|
+
}, {
|
|
1306
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1307
|
+
readonly name: "normalFills";
|
|
1308
|
+
readonly type: "tuple[]";
|
|
1309
|
+
readonly components: readonly [{
|
|
1310
|
+
readonly internalType: "struct Order";
|
|
1311
|
+
readonly name: "order";
|
|
1312
|
+
readonly type: "tuple";
|
|
1313
|
+
readonly components: readonly [{
|
|
1314
|
+
readonly internalType: "uint256";
|
|
1315
|
+
readonly name: "salt";
|
|
1316
|
+
readonly type: "uint256";
|
|
1317
|
+
}, {
|
|
1318
|
+
readonly internalType: "uint256";
|
|
1319
|
+
readonly name: "expiry";
|
|
1320
|
+
readonly type: "uint256";
|
|
1321
|
+
}, {
|
|
1322
|
+
readonly internalType: "uint256";
|
|
1323
|
+
readonly name: "nonce";
|
|
1324
|
+
readonly type: "uint256";
|
|
1325
|
+
}, {
|
|
1326
|
+
readonly internalType: "enum OrderType";
|
|
1327
|
+
readonly name: "orderType";
|
|
1328
|
+
readonly type: "uint8";
|
|
1329
|
+
}, {
|
|
1330
|
+
readonly internalType: "address";
|
|
1331
|
+
readonly name: "token";
|
|
1332
|
+
readonly type: "address";
|
|
1333
|
+
}, {
|
|
1334
|
+
readonly internalType: "address";
|
|
1335
|
+
readonly name: "YT";
|
|
1336
|
+
readonly type: "address";
|
|
1337
|
+
}, {
|
|
1338
|
+
readonly internalType: "address";
|
|
1339
|
+
readonly name: "maker";
|
|
1340
|
+
readonly type: "address";
|
|
1341
|
+
}, {
|
|
1342
|
+
readonly internalType: "address";
|
|
1343
|
+
readonly name: "receiver";
|
|
1344
|
+
readonly type: "address";
|
|
1345
|
+
}, {
|
|
1346
|
+
readonly internalType: "uint256";
|
|
1347
|
+
readonly name: "makingAmount";
|
|
1348
|
+
readonly type: "uint256";
|
|
1349
|
+
}, {
|
|
1350
|
+
readonly internalType: "uint256";
|
|
1351
|
+
readonly name: "lnImpliedRate";
|
|
1352
|
+
readonly type: "uint256";
|
|
1353
|
+
}, {
|
|
1354
|
+
readonly internalType: "uint256";
|
|
1355
|
+
readonly name: "failSafeRate";
|
|
1356
|
+
readonly type: "uint256";
|
|
1357
|
+
}, {
|
|
1358
|
+
readonly internalType: "bytes";
|
|
1359
|
+
readonly name: "permit";
|
|
1360
|
+
readonly type: "bytes";
|
|
1361
|
+
}];
|
|
1362
|
+
}, {
|
|
1363
|
+
readonly internalType: "bytes";
|
|
1364
|
+
readonly name: "signature";
|
|
1365
|
+
readonly type: "bytes";
|
|
1366
|
+
}, {
|
|
1367
|
+
readonly internalType: "uint256";
|
|
1368
|
+
readonly name: "makingAmount";
|
|
1369
|
+
readonly type: "uint256";
|
|
1370
|
+
}];
|
|
1371
|
+
}, {
|
|
1372
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1373
|
+
readonly name: "flashFills";
|
|
1374
|
+
readonly type: "tuple[]";
|
|
1375
|
+
readonly components: readonly [{
|
|
1376
|
+
readonly internalType: "struct Order";
|
|
1377
|
+
readonly name: "order";
|
|
1378
|
+
readonly type: "tuple";
|
|
1379
|
+
readonly components: readonly [{
|
|
1380
|
+
readonly internalType: "uint256";
|
|
1381
|
+
readonly name: "salt";
|
|
1382
|
+
readonly type: "uint256";
|
|
1383
|
+
}, {
|
|
1384
|
+
readonly internalType: "uint256";
|
|
1385
|
+
readonly name: "expiry";
|
|
1386
|
+
readonly type: "uint256";
|
|
1387
|
+
}, {
|
|
1388
|
+
readonly internalType: "uint256";
|
|
1389
|
+
readonly name: "nonce";
|
|
1390
|
+
readonly type: "uint256";
|
|
1391
|
+
}, {
|
|
1392
|
+
readonly internalType: "enum OrderType";
|
|
1393
|
+
readonly name: "orderType";
|
|
1394
|
+
readonly type: "uint8";
|
|
1395
|
+
}, {
|
|
1396
|
+
readonly internalType: "address";
|
|
1397
|
+
readonly name: "token";
|
|
1398
|
+
readonly type: "address";
|
|
1399
|
+
}, {
|
|
1400
|
+
readonly internalType: "address";
|
|
1401
|
+
readonly name: "YT";
|
|
1402
|
+
readonly type: "address";
|
|
1403
|
+
}, {
|
|
1404
|
+
readonly internalType: "address";
|
|
1405
|
+
readonly name: "maker";
|
|
1406
|
+
readonly type: "address";
|
|
1407
|
+
}, {
|
|
1408
|
+
readonly internalType: "address";
|
|
1409
|
+
readonly name: "receiver";
|
|
1410
|
+
readonly type: "address";
|
|
1411
|
+
}, {
|
|
1412
|
+
readonly internalType: "uint256";
|
|
1413
|
+
readonly name: "makingAmount";
|
|
1414
|
+
readonly type: "uint256";
|
|
1415
|
+
}, {
|
|
1416
|
+
readonly internalType: "uint256";
|
|
1417
|
+
readonly name: "lnImpliedRate";
|
|
1418
|
+
readonly type: "uint256";
|
|
1419
|
+
}, {
|
|
1420
|
+
readonly internalType: "uint256";
|
|
1421
|
+
readonly name: "failSafeRate";
|
|
1422
|
+
readonly type: "uint256";
|
|
1423
|
+
}, {
|
|
1424
|
+
readonly internalType: "bytes";
|
|
1425
|
+
readonly name: "permit";
|
|
1426
|
+
readonly type: "bytes";
|
|
1427
|
+
}];
|
|
1428
|
+
}, {
|
|
1429
|
+
readonly internalType: "bytes";
|
|
1430
|
+
readonly name: "signature";
|
|
1431
|
+
readonly type: "bytes";
|
|
1432
|
+
}, {
|
|
1433
|
+
readonly internalType: "uint256";
|
|
1434
|
+
readonly name: "makingAmount";
|
|
1435
|
+
readonly type: "uint256";
|
|
1436
|
+
}];
|
|
1437
|
+
}, {
|
|
1438
|
+
readonly internalType: "bytes";
|
|
1439
|
+
readonly name: "optData";
|
|
1440
|
+
readonly type: "bytes";
|
|
1441
|
+
}];
|
|
1442
|
+
}];
|
|
1443
|
+
readonly name: "swapExactTokenForYt";
|
|
1444
|
+
readonly outputs: readonly [{
|
|
1445
|
+
readonly internalType: "uint256";
|
|
1446
|
+
readonly name: "netYtOut";
|
|
1447
|
+
readonly type: "uint256";
|
|
1448
|
+
}, {
|
|
1449
|
+
readonly internalType: "uint256";
|
|
1450
|
+
readonly name: "netSyFee";
|
|
1451
|
+
readonly type: "uint256";
|
|
1452
|
+
}, {
|
|
1453
|
+
readonly internalType: "uint256";
|
|
1454
|
+
readonly name: "netSyInterm";
|
|
1455
|
+
readonly type: "uint256";
|
|
1456
|
+
}];
|
|
1457
|
+
readonly stateMutability: "payable";
|
|
1458
|
+
readonly type: "function";
|
|
1459
|
+
}, {
|
|
1460
|
+
readonly inputs: readonly [{
|
|
1461
|
+
readonly internalType: "address";
|
|
1462
|
+
readonly name: "receiver";
|
|
1463
|
+
readonly type: "address";
|
|
1464
|
+
}, {
|
|
1465
|
+
readonly internalType: "address";
|
|
1466
|
+
readonly name: "market";
|
|
1467
|
+
readonly type: "address";
|
|
1468
|
+
}, {
|
|
1469
|
+
readonly internalType: "uint256";
|
|
1470
|
+
readonly name: "exactSyIn";
|
|
1471
|
+
readonly type: "uint256";
|
|
1472
|
+
}, {
|
|
1473
|
+
readonly internalType: "uint256";
|
|
1474
|
+
readonly name: "minYtOut";
|
|
1475
|
+
readonly type: "uint256";
|
|
1476
|
+
}, {
|
|
1477
|
+
readonly internalType: "struct ApproxParams";
|
|
1478
|
+
readonly name: "guess";
|
|
1479
|
+
readonly type: "tuple";
|
|
1480
|
+
readonly components: readonly [{
|
|
1481
|
+
readonly internalType: "uint256";
|
|
1482
|
+
readonly name: "guessMin";
|
|
1483
|
+
readonly type: "uint256";
|
|
1484
|
+
}, {
|
|
1485
|
+
readonly internalType: "uint256";
|
|
1486
|
+
readonly name: "guessMax";
|
|
1487
|
+
readonly type: "uint256";
|
|
1488
|
+
}, {
|
|
1489
|
+
readonly internalType: "uint256";
|
|
1490
|
+
readonly name: "guessOffchain";
|
|
1491
|
+
readonly type: "uint256";
|
|
1492
|
+
}, {
|
|
1493
|
+
readonly internalType: "uint256";
|
|
1494
|
+
readonly name: "maxIteration";
|
|
1495
|
+
readonly type: "uint256";
|
|
1496
|
+
}, {
|
|
1497
|
+
readonly internalType: "uint256";
|
|
1498
|
+
readonly name: "eps";
|
|
1499
|
+
readonly type: "uint256";
|
|
1500
|
+
}];
|
|
1501
|
+
}, {
|
|
1502
|
+
readonly internalType: "struct LimitOrderData";
|
|
1503
|
+
readonly name: "limit";
|
|
1504
|
+
readonly type: "tuple";
|
|
1505
|
+
readonly components: readonly [{
|
|
1506
|
+
readonly internalType: "address";
|
|
1507
|
+
readonly name: "limitRouter";
|
|
1508
|
+
readonly type: "address";
|
|
1509
|
+
}, {
|
|
1510
|
+
readonly internalType: "uint256";
|
|
1511
|
+
readonly name: "epsSkipMarket";
|
|
1512
|
+
readonly type: "uint256";
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1515
|
+
readonly name: "normalFills";
|
|
1516
|
+
readonly type: "tuple[]";
|
|
1517
|
+
readonly components: readonly [{
|
|
1518
|
+
readonly internalType: "struct Order";
|
|
1519
|
+
readonly name: "order";
|
|
1520
|
+
readonly type: "tuple";
|
|
1521
|
+
readonly components: readonly [{
|
|
1522
|
+
readonly internalType: "uint256";
|
|
1523
|
+
readonly name: "salt";
|
|
1524
|
+
readonly type: "uint256";
|
|
1525
|
+
}, {
|
|
1526
|
+
readonly internalType: "uint256";
|
|
1527
|
+
readonly name: "expiry";
|
|
1528
|
+
readonly type: "uint256";
|
|
1529
|
+
}, {
|
|
1530
|
+
readonly internalType: "uint256";
|
|
1531
|
+
readonly name: "nonce";
|
|
1532
|
+
readonly type: "uint256";
|
|
1533
|
+
}, {
|
|
1534
|
+
readonly internalType: "enum OrderType";
|
|
1535
|
+
readonly name: "orderType";
|
|
1536
|
+
readonly type: "uint8";
|
|
1537
|
+
}, {
|
|
1538
|
+
readonly internalType: "address";
|
|
1539
|
+
readonly name: "token";
|
|
1540
|
+
readonly type: "address";
|
|
1541
|
+
}, {
|
|
1542
|
+
readonly internalType: "address";
|
|
1543
|
+
readonly name: "YT";
|
|
1544
|
+
readonly type: "address";
|
|
1545
|
+
}, {
|
|
1546
|
+
readonly internalType: "address";
|
|
1547
|
+
readonly name: "maker";
|
|
1548
|
+
readonly type: "address";
|
|
1549
|
+
}, {
|
|
1550
|
+
readonly internalType: "address";
|
|
1551
|
+
readonly name: "receiver";
|
|
1552
|
+
readonly type: "address";
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly internalType: "uint256";
|
|
1555
|
+
readonly name: "makingAmount";
|
|
1556
|
+
readonly type: "uint256";
|
|
1557
|
+
}, {
|
|
1558
|
+
readonly internalType: "uint256";
|
|
1559
|
+
readonly name: "lnImpliedRate";
|
|
1560
|
+
readonly type: "uint256";
|
|
1561
|
+
}, {
|
|
1562
|
+
readonly internalType: "uint256";
|
|
1563
|
+
readonly name: "failSafeRate";
|
|
1564
|
+
readonly type: "uint256";
|
|
1565
|
+
}, {
|
|
1566
|
+
readonly internalType: "bytes";
|
|
1567
|
+
readonly name: "permit";
|
|
1568
|
+
readonly type: "bytes";
|
|
1569
|
+
}];
|
|
1570
|
+
}, {
|
|
1571
|
+
readonly internalType: "bytes";
|
|
1572
|
+
readonly name: "signature";
|
|
1573
|
+
readonly type: "bytes";
|
|
1574
|
+
}, {
|
|
1575
|
+
readonly internalType: "uint256";
|
|
1576
|
+
readonly name: "makingAmount";
|
|
1577
|
+
readonly type: "uint256";
|
|
1578
|
+
}];
|
|
1579
|
+
}, {
|
|
1580
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1581
|
+
readonly name: "flashFills";
|
|
1582
|
+
readonly type: "tuple[]";
|
|
1583
|
+
readonly components: readonly [{
|
|
1584
|
+
readonly internalType: "struct Order";
|
|
1585
|
+
readonly name: "order";
|
|
1586
|
+
readonly type: "tuple";
|
|
1587
|
+
readonly components: readonly [{
|
|
1588
|
+
readonly internalType: "uint256";
|
|
1589
|
+
readonly name: "salt";
|
|
1590
|
+
readonly type: "uint256";
|
|
1591
|
+
}, {
|
|
1592
|
+
readonly internalType: "uint256";
|
|
1593
|
+
readonly name: "expiry";
|
|
1594
|
+
readonly type: "uint256";
|
|
1595
|
+
}, {
|
|
1596
|
+
readonly internalType: "uint256";
|
|
1597
|
+
readonly name: "nonce";
|
|
1598
|
+
readonly type: "uint256";
|
|
1599
|
+
}, {
|
|
1600
|
+
readonly internalType: "enum OrderType";
|
|
1601
|
+
readonly name: "orderType";
|
|
1602
|
+
readonly type: "uint8";
|
|
1603
|
+
}, {
|
|
1604
|
+
readonly internalType: "address";
|
|
1605
|
+
readonly name: "token";
|
|
1606
|
+
readonly type: "address";
|
|
1607
|
+
}, {
|
|
1608
|
+
readonly internalType: "address";
|
|
1609
|
+
readonly name: "YT";
|
|
1610
|
+
readonly type: "address";
|
|
1611
|
+
}, {
|
|
1612
|
+
readonly internalType: "address";
|
|
1613
|
+
readonly name: "maker";
|
|
1614
|
+
readonly type: "address";
|
|
1615
|
+
}, {
|
|
1616
|
+
readonly internalType: "address";
|
|
1617
|
+
readonly name: "receiver";
|
|
1618
|
+
readonly type: "address";
|
|
1619
|
+
}, {
|
|
1620
|
+
readonly internalType: "uint256";
|
|
1621
|
+
readonly name: "makingAmount";
|
|
1622
|
+
readonly type: "uint256";
|
|
1623
|
+
}, {
|
|
1624
|
+
readonly internalType: "uint256";
|
|
1625
|
+
readonly name: "lnImpliedRate";
|
|
1626
|
+
readonly type: "uint256";
|
|
1627
|
+
}, {
|
|
1628
|
+
readonly internalType: "uint256";
|
|
1629
|
+
readonly name: "failSafeRate";
|
|
1630
|
+
readonly type: "uint256";
|
|
1631
|
+
}, {
|
|
1632
|
+
readonly internalType: "bytes";
|
|
1633
|
+
readonly name: "permit";
|
|
1634
|
+
readonly type: "bytes";
|
|
1635
|
+
}];
|
|
1636
|
+
}, {
|
|
1637
|
+
readonly internalType: "bytes";
|
|
1638
|
+
readonly name: "signature";
|
|
1639
|
+
readonly type: "bytes";
|
|
1640
|
+
}, {
|
|
1641
|
+
readonly internalType: "uint256";
|
|
1642
|
+
readonly name: "makingAmount";
|
|
1643
|
+
readonly type: "uint256";
|
|
1644
|
+
}];
|
|
1645
|
+
}, {
|
|
1646
|
+
readonly internalType: "bytes";
|
|
1647
|
+
readonly name: "optData";
|
|
1648
|
+
readonly type: "bytes";
|
|
1649
|
+
}];
|
|
1650
|
+
}];
|
|
1651
|
+
readonly name: "swapExactSyForYt";
|
|
1652
|
+
readonly outputs: readonly [{
|
|
1653
|
+
readonly internalType: "uint256";
|
|
1654
|
+
readonly name: "netYtOut";
|
|
1655
|
+
readonly type: "uint256";
|
|
1656
|
+
}, {
|
|
1657
|
+
readonly internalType: "uint256";
|
|
1658
|
+
readonly name: "netSyFee";
|
|
1659
|
+
readonly type: "uint256";
|
|
1660
|
+
}];
|
|
1661
|
+
readonly stateMutability: "nonpayable";
|
|
1662
|
+
readonly type: "function";
|
|
1663
|
+
}, {
|
|
1664
|
+
readonly inputs: readonly [{
|
|
1665
|
+
readonly internalType: "address";
|
|
1666
|
+
readonly name: "receiver";
|
|
1667
|
+
readonly type: "address";
|
|
1668
|
+
}, {
|
|
1669
|
+
readonly internalType: "address";
|
|
1670
|
+
readonly name: "market";
|
|
1671
|
+
readonly type: "address";
|
|
1672
|
+
}, {
|
|
1673
|
+
readonly internalType: "uint256";
|
|
1674
|
+
readonly name: "exactYtIn";
|
|
1675
|
+
readonly type: "uint256";
|
|
1676
|
+
}, {
|
|
1677
|
+
readonly internalType: "struct TokenOutput";
|
|
1678
|
+
readonly name: "output";
|
|
1679
|
+
readonly type: "tuple";
|
|
1680
|
+
readonly components: readonly [{
|
|
1681
|
+
readonly internalType: "address";
|
|
1682
|
+
readonly name: "tokenOut";
|
|
1683
|
+
readonly type: "address";
|
|
1684
|
+
}, {
|
|
1685
|
+
readonly internalType: "uint256";
|
|
1686
|
+
readonly name: "minTokenOut";
|
|
1687
|
+
readonly type: "uint256";
|
|
1688
|
+
}, {
|
|
1689
|
+
readonly internalType: "address";
|
|
1690
|
+
readonly name: "tokenRedeemSy";
|
|
1691
|
+
readonly type: "address";
|
|
1692
|
+
}, {
|
|
1693
|
+
readonly internalType: "address";
|
|
1694
|
+
readonly name: "pendleSwap";
|
|
1695
|
+
readonly type: "address";
|
|
1696
|
+
}, {
|
|
1697
|
+
readonly internalType: "struct SwapData";
|
|
1698
|
+
readonly name: "swapData";
|
|
1699
|
+
readonly type: "tuple";
|
|
1700
|
+
readonly components: readonly [{
|
|
1701
|
+
readonly internalType: "enum SwapType";
|
|
1702
|
+
readonly name: "swapType";
|
|
1703
|
+
readonly type: "uint8";
|
|
1704
|
+
}, {
|
|
1705
|
+
readonly internalType: "address";
|
|
1706
|
+
readonly name: "extRouter";
|
|
1707
|
+
readonly type: "address";
|
|
1708
|
+
}, {
|
|
1709
|
+
readonly internalType: "bytes";
|
|
1710
|
+
readonly name: "extCalldata";
|
|
1711
|
+
readonly type: "bytes";
|
|
1712
|
+
}, {
|
|
1713
|
+
readonly internalType: "bool";
|
|
1714
|
+
readonly name: "needScale";
|
|
1715
|
+
readonly type: "bool";
|
|
1716
|
+
}];
|
|
1717
|
+
}];
|
|
1718
|
+
}, {
|
|
1719
|
+
readonly internalType: "struct LimitOrderData";
|
|
1720
|
+
readonly name: "limit";
|
|
1721
|
+
readonly type: "tuple";
|
|
1722
|
+
readonly components: readonly [{
|
|
1723
|
+
readonly internalType: "address";
|
|
1724
|
+
readonly name: "limitRouter";
|
|
1725
|
+
readonly type: "address";
|
|
1726
|
+
}, {
|
|
1727
|
+
readonly internalType: "uint256";
|
|
1728
|
+
readonly name: "epsSkipMarket";
|
|
1729
|
+
readonly type: "uint256";
|
|
1730
|
+
}, {
|
|
1731
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1732
|
+
readonly name: "normalFills";
|
|
1733
|
+
readonly type: "tuple[]";
|
|
1734
|
+
readonly components: readonly [{
|
|
1735
|
+
readonly internalType: "struct Order";
|
|
1736
|
+
readonly name: "order";
|
|
1737
|
+
readonly type: "tuple";
|
|
1738
|
+
readonly components: readonly [{
|
|
1739
|
+
readonly internalType: "uint256";
|
|
1740
|
+
readonly name: "salt";
|
|
1741
|
+
readonly type: "uint256";
|
|
1742
|
+
}, {
|
|
1743
|
+
readonly internalType: "uint256";
|
|
1744
|
+
readonly name: "expiry";
|
|
1745
|
+
readonly type: "uint256";
|
|
1746
|
+
}, {
|
|
1747
|
+
readonly internalType: "uint256";
|
|
1748
|
+
readonly name: "nonce";
|
|
1749
|
+
readonly type: "uint256";
|
|
1750
|
+
}, {
|
|
1751
|
+
readonly internalType: "enum OrderType";
|
|
1752
|
+
readonly name: "orderType";
|
|
1753
|
+
readonly type: "uint8";
|
|
1754
|
+
}, {
|
|
1755
|
+
readonly internalType: "address";
|
|
1756
|
+
readonly name: "token";
|
|
1757
|
+
readonly type: "address";
|
|
1758
|
+
}, {
|
|
1759
|
+
readonly internalType: "address";
|
|
1760
|
+
readonly name: "YT";
|
|
1761
|
+
readonly type: "address";
|
|
1762
|
+
}, {
|
|
1763
|
+
readonly internalType: "address";
|
|
1764
|
+
readonly name: "maker";
|
|
1765
|
+
readonly type: "address";
|
|
1766
|
+
}, {
|
|
1767
|
+
readonly internalType: "address";
|
|
1768
|
+
readonly name: "receiver";
|
|
1769
|
+
readonly type: "address";
|
|
1770
|
+
}, {
|
|
1771
|
+
readonly internalType: "uint256";
|
|
1772
|
+
readonly name: "makingAmount";
|
|
1773
|
+
readonly type: "uint256";
|
|
1774
|
+
}, {
|
|
1775
|
+
readonly internalType: "uint256";
|
|
1776
|
+
readonly name: "lnImpliedRate";
|
|
1777
|
+
readonly type: "uint256";
|
|
1778
|
+
}, {
|
|
1779
|
+
readonly internalType: "uint256";
|
|
1780
|
+
readonly name: "failSafeRate";
|
|
1781
|
+
readonly type: "uint256";
|
|
1782
|
+
}, {
|
|
1783
|
+
readonly internalType: "bytes";
|
|
1784
|
+
readonly name: "permit";
|
|
1785
|
+
readonly type: "bytes";
|
|
1786
|
+
}];
|
|
1787
|
+
}, {
|
|
1788
|
+
readonly internalType: "bytes";
|
|
1789
|
+
readonly name: "signature";
|
|
1790
|
+
readonly type: "bytes";
|
|
1791
|
+
}, {
|
|
1792
|
+
readonly internalType: "uint256";
|
|
1793
|
+
readonly name: "makingAmount";
|
|
1794
|
+
readonly type: "uint256";
|
|
1795
|
+
}];
|
|
1796
|
+
}, {
|
|
1797
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1798
|
+
readonly name: "flashFills";
|
|
1799
|
+
readonly type: "tuple[]";
|
|
1800
|
+
readonly components: readonly [{
|
|
1801
|
+
readonly internalType: "struct Order";
|
|
1802
|
+
readonly name: "order";
|
|
1803
|
+
readonly type: "tuple";
|
|
1804
|
+
readonly components: readonly [{
|
|
1805
|
+
readonly internalType: "uint256";
|
|
1806
|
+
readonly name: "salt";
|
|
1807
|
+
readonly type: "uint256";
|
|
1808
|
+
}, {
|
|
1809
|
+
readonly internalType: "uint256";
|
|
1810
|
+
readonly name: "expiry";
|
|
1811
|
+
readonly type: "uint256";
|
|
1812
|
+
}, {
|
|
1813
|
+
readonly internalType: "uint256";
|
|
1814
|
+
readonly name: "nonce";
|
|
1815
|
+
readonly type: "uint256";
|
|
1816
|
+
}, {
|
|
1817
|
+
readonly internalType: "enum OrderType";
|
|
1818
|
+
readonly name: "orderType";
|
|
1819
|
+
readonly type: "uint8";
|
|
1820
|
+
}, {
|
|
1821
|
+
readonly internalType: "address";
|
|
1822
|
+
readonly name: "token";
|
|
1823
|
+
readonly type: "address";
|
|
1824
|
+
}, {
|
|
1825
|
+
readonly internalType: "address";
|
|
1826
|
+
readonly name: "YT";
|
|
1827
|
+
readonly type: "address";
|
|
1828
|
+
}, {
|
|
1829
|
+
readonly internalType: "address";
|
|
1830
|
+
readonly name: "maker";
|
|
1831
|
+
readonly type: "address";
|
|
1832
|
+
}, {
|
|
1833
|
+
readonly internalType: "address";
|
|
1834
|
+
readonly name: "receiver";
|
|
1835
|
+
readonly type: "address";
|
|
1836
|
+
}, {
|
|
1837
|
+
readonly internalType: "uint256";
|
|
1838
|
+
readonly name: "makingAmount";
|
|
1839
|
+
readonly type: "uint256";
|
|
1840
|
+
}, {
|
|
1841
|
+
readonly internalType: "uint256";
|
|
1842
|
+
readonly name: "lnImpliedRate";
|
|
1843
|
+
readonly type: "uint256";
|
|
1844
|
+
}, {
|
|
1845
|
+
readonly internalType: "uint256";
|
|
1846
|
+
readonly name: "failSafeRate";
|
|
1847
|
+
readonly type: "uint256";
|
|
1848
|
+
}, {
|
|
1849
|
+
readonly internalType: "bytes";
|
|
1850
|
+
readonly name: "permit";
|
|
1851
|
+
readonly type: "bytes";
|
|
1852
|
+
}];
|
|
1853
|
+
}, {
|
|
1854
|
+
readonly internalType: "bytes";
|
|
1855
|
+
readonly name: "signature";
|
|
1856
|
+
readonly type: "bytes";
|
|
1857
|
+
}, {
|
|
1858
|
+
readonly internalType: "uint256";
|
|
1859
|
+
readonly name: "makingAmount";
|
|
1860
|
+
readonly type: "uint256";
|
|
1861
|
+
}];
|
|
1862
|
+
}, {
|
|
1863
|
+
readonly internalType: "bytes";
|
|
1864
|
+
readonly name: "optData";
|
|
1865
|
+
readonly type: "bytes";
|
|
1866
|
+
}];
|
|
1867
|
+
}];
|
|
1868
|
+
readonly name: "swapExactYtForToken";
|
|
1869
|
+
readonly outputs: readonly [{
|
|
1870
|
+
readonly internalType: "uint256";
|
|
1871
|
+
readonly name: "netTokenOut";
|
|
1872
|
+
readonly type: "uint256";
|
|
1873
|
+
}, {
|
|
1874
|
+
readonly internalType: "uint256";
|
|
1875
|
+
readonly name: "netSyFee";
|
|
1876
|
+
readonly type: "uint256";
|
|
1877
|
+
}, {
|
|
1878
|
+
readonly internalType: "uint256";
|
|
1879
|
+
readonly name: "netSyInterm";
|
|
1880
|
+
readonly type: "uint256";
|
|
1881
|
+
}];
|
|
1882
|
+
readonly stateMutability: "nonpayable";
|
|
1883
|
+
readonly type: "function";
|
|
1884
|
+
}, {
|
|
1885
|
+
readonly inputs: readonly [{
|
|
1886
|
+
readonly internalType: "address";
|
|
1887
|
+
readonly name: "receiver";
|
|
1888
|
+
readonly type: "address";
|
|
1889
|
+
}, {
|
|
1890
|
+
readonly internalType: "address";
|
|
1891
|
+
readonly name: "market";
|
|
1892
|
+
readonly type: "address";
|
|
1893
|
+
}, {
|
|
1894
|
+
readonly internalType: "uint256";
|
|
1895
|
+
readonly name: "exactYtIn";
|
|
1896
|
+
readonly type: "uint256";
|
|
1897
|
+
}, {
|
|
1898
|
+
readonly internalType: "uint256";
|
|
1899
|
+
readonly name: "minSyOut";
|
|
1900
|
+
readonly type: "uint256";
|
|
1901
|
+
}, {
|
|
1902
|
+
readonly internalType: "struct LimitOrderData";
|
|
1903
|
+
readonly name: "limit";
|
|
1904
|
+
readonly type: "tuple";
|
|
1905
|
+
readonly components: readonly [{
|
|
1906
|
+
readonly internalType: "address";
|
|
1907
|
+
readonly name: "limitRouter";
|
|
1908
|
+
readonly type: "address";
|
|
1909
|
+
}, {
|
|
1910
|
+
readonly internalType: "uint256";
|
|
1911
|
+
readonly name: "epsSkipMarket";
|
|
1912
|
+
readonly type: "uint256";
|
|
1913
|
+
}, {
|
|
1914
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1915
|
+
readonly name: "normalFills";
|
|
1916
|
+
readonly type: "tuple[]";
|
|
1917
|
+
readonly components: readonly [{
|
|
1918
|
+
readonly internalType: "struct Order";
|
|
1919
|
+
readonly name: "order";
|
|
1920
|
+
readonly type: "tuple";
|
|
1921
|
+
readonly components: readonly [{
|
|
1922
|
+
readonly internalType: "uint256";
|
|
1923
|
+
readonly name: "salt";
|
|
1924
|
+
readonly type: "uint256";
|
|
1925
|
+
}, {
|
|
1926
|
+
readonly internalType: "uint256";
|
|
1927
|
+
readonly name: "expiry";
|
|
1928
|
+
readonly type: "uint256";
|
|
1929
|
+
}, {
|
|
1930
|
+
readonly internalType: "uint256";
|
|
1931
|
+
readonly name: "nonce";
|
|
1932
|
+
readonly type: "uint256";
|
|
1933
|
+
}, {
|
|
1934
|
+
readonly internalType: "enum OrderType";
|
|
1935
|
+
readonly name: "orderType";
|
|
1936
|
+
readonly type: "uint8";
|
|
1937
|
+
}, {
|
|
1938
|
+
readonly internalType: "address";
|
|
1939
|
+
readonly name: "token";
|
|
1940
|
+
readonly type: "address";
|
|
1941
|
+
}, {
|
|
1942
|
+
readonly internalType: "address";
|
|
1943
|
+
readonly name: "YT";
|
|
1944
|
+
readonly type: "address";
|
|
1945
|
+
}, {
|
|
1946
|
+
readonly internalType: "address";
|
|
1947
|
+
readonly name: "maker";
|
|
1948
|
+
readonly type: "address";
|
|
1949
|
+
}, {
|
|
1950
|
+
readonly internalType: "address";
|
|
1951
|
+
readonly name: "receiver";
|
|
1952
|
+
readonly type: "address";
|
|
1953
|
+
}, {
|
|
1954
|
+
readonly internalType: "uint256";
|
|
1955
|
+
readonly name: "makingAmount";
|
|
1956
|
+
readonly type: "uint256";
|
|
1957
|
+
}, {
|
|
1958
|
+
readonly internalType: "uint256";
|
|
1959
|
+
readonly name: "lnImpliedRate";
|
|
1960
|
+
readonly type: "uint256";
|
|
1961
|
+
}, {
|
|
1962
|
+
readonly internalType: "uint256";
|
|
1963
|
+
readonly name: "failSafeRate";
|
|
1964
|
+
readonly type: "uint256";
|
|
1965
|
+
}, {
|
|
1966
|
+
readonly internalType: "bytes";
|
|
1967
|
+
readonly name: "permit";
|
|
1968
|
+
readonly type: "bytes";
|
|
1969
|
+
}];
|
|
1970
|
+
}, {
|
|
1971
|
+
readonly internalType: "bytes";
|
|
1972
|
+
readonly name: "signature";
|
|
1973
|
+
readonly type: "bytes";
|
|
1974
|
+
}, {
|
|
1975
|
+
readonly internalType: "uint256";
|
|
1976
|
+
readonly name: "makingAmount";
|
|
1977
|
+
readonly type: "uint256";
|
|
1978
|
+
}];
|
|
1979
|
+
}, {
|
|
1980
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1981
|
+
readonly name: "flashFills";
|
|
1982
|
+
readonly type: "tuple[]";
|
|
1983
|
+
readonly components: readonly [{
|
|
1984
|
+
readonly internalType: "struct Order";
|
|
1985
|
+
readonly name: "order";
|
|
1986
|
+
readonly type: "tuple";
|
|
1987
|
+
readonly components: readonly [{
|
|
1988
|
+
readonly internalType: "uint256";
|
|
1989
|
+
readonly name: "salt";
|
|
1990
|
+
readonly type: "uint256";
|
|
1991
|
+
}, {
|
|
1992
|
+
readonly internalType: "uint256";
|
|
1993
|
+
readonly name: "expiry";
|
|
1994
|
+
readonly type: "uint256";
|
|
1995
|
+
}, {
|
|
1996
|
+
readonly internalType: "uint256";
|
|
1997
|
+
readonly name: "nonce";
|
|
1998
|
+
readonly type: "uint256";
|
|
1999
|
+
}, {
|
|
2000
|
+
readonly internalType: "enum OrderType";
|
|
2001
|
+
readonly name: "orderType";
|
|
2002
|
+
readonly type: "uint8";
|
|
2003
|
+
}, {
|
|
2004
|
+
readonly internalType: "address";
|
|
2005
|
+
readonly name: "token";
|
|
2006
|
+
readonly type: "address";
|
|
2007
|
+
}, {
|
|
2008
|
+
readonly internalType: "address";
|
|
2009
|
+
readonly name: "YT";
|
|
2010
|
+
readonly type: "address";
|
|
2011
|
+
}, {
|
|
2012
|
+
readonly internalType: "address";
|
|
2013
|
+
readonly name: "maker";
|
|
2014
|
+
readonly type: "address";
|
|
2015
|
+
}, {
|
|
2016
|
+
readonly internalType: "address";
|
|
2017
|
+
readonly name: "receiver";
|
|
2018
|
+
readonly type: "address";
|
|
2019
|
+
}, {
|
|
2020
|
+
readonly internalType: "uint256";
|
|
2021
|
+
readonly name: "makingAmount";
|
|
2022
|
+
readonly type: "uint256";
|
|
2023
|
+
}, {
|
|
2024
|
+
readonly internalType: "uint256";
|
|
2025
|
+
readonly name: "lnImpliedRate";
|
|
2026
|
+
readonly type: "uint256";
|
|
2027
|
+
}, {
|
|
2028
|
+
readonly internalType: "uint256";
|
|
2029
|
+
readonly name: "failSafeRate";
|
|
2030
|
+
readonly type: "uint256";
|
|
2031
|
+
}, {
|
|
2032
|
+
readonly internalType: "bytes";
|
|
2033
|
+
readonly name: "permit";
|
|
2034
|
+
readonly type: "bytes";
|
|
2035
|
+
}];
|
|
2036
|
+
}, {
|
|
2037
|
+
readonly internalType: "bytes";
|
|
2038
|
+
readonly name: "signature";
|
|
2039
|
+
readonly type: "bytes";
|
|
2040
|
+
}, {
|
|
2041
|
+
readonly internalType: "uint256";
|
|
2042
|
+
readonly name: "makingAmount";
|
|
2043
|
+
readonly type: "uint256";
|
|
2044
|
+
}];
|
|
2045
|
+
}, {
|
|
2046
|
+
readonly internalType: "bytes";
|
|
2047
|
+
readonly name: "optData";
|
|
2048
|
+
readonly type: "bytes";
|
|
2049
|
+
}];
|
|
2050
|
+
}];
|
|
2051
|
+
readonly name: "swapExactYtForSy";
|
|
2052
|
+
readonly outputs: readonly [{
|
|
2053
|
+
readonly internalType: "uint256";
|
|
2054
|
+
readonly name: "netSyOut";
|
|
2055
|
+
readonly type: "uint256";
|
|
2056
|
+
}, {
|
|
2057
|
+
readonly internalType: "uint256";
|
|
2058
|
+
readonly name: "netSyFee";
|
|
2059
|
+
readonly type: "uint256";
|
|
2060
|
+
}];
|
|
2061
|
+
readonly stateMutability: "nonpayable";
|
|
2062
|
+
readonly type: "function";
|
|
2063
|
+
}, {
|
|
2064
|
+
readonly inputs: readonly [{
|
|
2065
|
+
readonly internalType: "address";
|
|
2066
|
+
readonly name: "receiver";
|
|
2067
|
+
readonly type: "address";
|
|
2068
|
+
}, {
|
|
2069
|
+
readonly internalType: "address";
|
|
2070
|
+
readonly name: "market";
|
|
2071
|
+
readonly type: "address";
|
|
2072
|
+
}, {
|
|
2073
|
+
readonly internalType: "uint256";
|
|
2074
|
+
readonly name: "minLpOut";
|
|
2075
|
+
readonly type: "uint256";
|
|
2076
|
+
}, {
|
|
2077
|
+
readonly internalType: "struct ApproxParams";
|
|
2078
|
+
readonly name: "guess";
|
|
2079
|
+
readonly type: "tuple";
|
|
2080
|
+
readonly components: readonly [{
|
|
2081
|
+
readonly internalType: "uint256";
|
|
2082
|
+
readonly name: "guessMin";
|
|
2083
|
+
readonly type: "uint256";
|
|
2084
|
+
}, {
|
|
2085
|
+
readonly internalType: "uint256";
|
|
2086
|
+
readonly name: "guessMax";
|
|
2087
|
+
readonly type: "uint256";
|
|
2088
|
+
}, {
|
|
2089
|
+
readonly internalType: "uint256";
|
|
2090
|
+
readonly name: "guessOffchain";
|
|
2091
|
+
readonly type: "uint256";
|
|
2092
|
+
}, {
|
|
2093
|
+
readonly internalType: "uint256";
|
|
2094
|
+
readonly name: "maxIteration";
|
|
2095
|
+
readonly type: "uint256";
|
|
2096
|
+
}, {
|
|
2097
|
+
readonly internalType: "uint256";
|
|
2098
|
+
readonly name: "eps";
|
|
2099
|
+
readonly type: "uint256";
|
|
2100
|
+
}];
|
|
2101
|
+
}, {
|
|
2102
|
+
readonly internalType: "struct TokenInput";
|
|
2103
|
+
readonly name: "input";
|
|
2104
|
+
readonly type: "tuple";
|
|
2105
|
+
readonly components: readonly [{
|
|
2106
|
+
readonly internalType: "address";
|
|
2107
|
+
readonly name: "tokenIn";
|
|
2108
|
+
readonly type: "address";
|
|
2109
|
+
}, {
|
|
2110
|
+
readonly internalType: "uint256";
|
|
2111
|
+
readonly name: "netTokenIn";
|
|
2112
|
+
readonly type: "uint256";
|
|
2113
|
+
}, {
|
|
2114
|
+
readonly internalType: "address";
|
|
2115
|
+
readonly name: "tokenMintSy";
|
|
2116
|
+
readonly type: "address";
|
|
2117
|
+
}, {
|
|
2118
|
+
readonly internalType: "address";
|
|
2119
|
+
readonly name: "pendleSwap";
|
|
2120
|
+
readonly type: "address";
|
|
2121
|
+
}, {
|
|
2122
|
+
readonly internalType: "struct SwapData";
|
|
2123
|
+
readonly name: "swapData";
|
|
2124
|
+
readonly type: "tuple";
|
|
2125
|
+
readonly components: readonly [{
|
|
2126
|
+
readonly internalType: "enum SwapType";
|
|
2127
|
+
readonly name: "swapType";
|
|
2128
|
+
readonly type: "uint8";
|
|
2129
|
+
}, {
|
|
2130
|
+
readonly internalType: "address";
|
|
2131
|
+
readonly name: "extRouter";
|
|
2132
|
+
readonly type: "address";
|
|
2133
|
+
}, {
|
|
2134
|
+
readonly internalType: "bytes";
|
|
2135
|
+
readonly name: "extCalldata";
|
|
2136
|
+
readonly type: "bytes";
|
|
2137
|
+
}, {
|
|
2138
|
+
readonly internalType: "bool";
|
|
2139
|
+
readonly name: "needScale";
|
|
2140
|
+
readonly type: "bool";
|
|
2141
|
+
}];
|
|
2142
|
+
}];
|
|
2143
|
+
}, {
|
|
2144
|
+
readonly internalType: "struct LimitOrderData";
|
|
2145
|
+
readonly name: "limit";
|
|
2146
|
+
readonly type: "tuple";
|
|
2147
|
+
readonly components: readonly [{
|
|
2148
|
+
readonly internalType: "address";
|
|
2149
|
+
readonly name: "limitRouter";
|
|
2150
|
+
readonly type: "address";
|
|
2151
|
+
}, {
|
|
2152
|
+
readonly internalType: "uint256";
|
|
2153
|
+
readonly name: "epsSkipMarket";
|
|
2154
|
+
readonly type: "uint256";
|
|
2155
|
+
}, {
|
|
2156
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
2157
|
+
readonly name: "normalFills";
|
|
2158
|
+
readonly type: "tuple[]";
|
|
2159
|
+
readonly components: readonly [{
|
|
2160
|
+
readonly internalType: "struct Order";
|
|
2161
|
+
readonly name: "order";
|
|
2162
|
+
readonly type: "tuple";
|
|
2163
|
+
readonly components: readonly [{
|
|
2164
|
+
readonly internalType: "uint256";
|
|
2165
|
+
readonly name: "salt";
|
|
2166
|
+
readonly type: "uint256";
|
|
2167
|
+
}, {
|
|
2168
|
+
readonly internalType: "uint256";
|
|
2169
|
+
readonly name: "expiry";
|
|
2170
|
+
readonly type: "uint256";
|
|
2171
|
+
}, {
|
|
2172
|
+
readonly internalType: "uint256";
|
|
2173
|
+
readonly name: "nonce";
|
|
2174
|
+
readonly type: "uint256";
|
|
2175
|
+
}, {
|
|
2176
|
+
readonly internalType: "enum OrderType";
|
|
2177
|
+
readonly name: "orderType";
|
|
2178
|
+
readonly type: "uint8";
|
|
2179
|
+
}, {
|
|
2180
|
+
readonly internalType: "address";
|
|
2181
|
+
readonly name: "token";
|
|
2182
|
+
readonly type: "address";
|
|
2183
|
+
}, {
|
|
2184
|
+
readonly internalType: "address";
|
|
2185
|
+
readonly name: "YT";
|
|
2186
|
+
readonly type: "address";
|
|
2187
|
+
}, {
|
|
2188
|
+
readonly internalType: "address";
|
|
2189
|
+
readonly name: "maker";
|
|
2190
|
+
readonly type: "address";
|
|
2191
|
+
}, {
|
|
2192
|
+
readonly internalType: "address";
|
|
2193
|
+
readonly name: "receiver";
|
|
2194
|
+
readonly type: "address";
|
|
2195
|
+
}, {
|
|
2196
|
+
readonly internalType: "uint256";
|
|
2197
|
+
readonly name: "makingAmount";
|
|
2198
|
+
readonly type: "uint256";
|
|
2199
|
+
}, {
|
|
2200
|
+
readonly internalType: "uint256";
|
|
2201
|
+
readonly name: "lnImpliedRate";
|
|
2202
|
+
readonly type: "uint256";
|
|
2203
|
+
}, {
|
|
2204
|
+
readonly internalType: "uint256";
|
|
2205
|
+
readonly name: "failSafeRate";
|
|
2206
|
+
readonly type: "uint256";
|
|
2207
|
+
}, {
|
|
2208
|
+
readonly internalType: "bytes";
|
|
2209
|
+
readonly name: "permit";
|
|
2210
|
+
readonly type: "bytes";
|
|
2211
|
+
}];
|
|
2212
|
+
}, {
|
|
2213
|
+
readonly internalType: "bytes";
|
|
2214
|
+
readonly name: "signature";
|
|
2215
|
+
readonly type: "bytes";
|
|
2216
|
+
}, {
|
|
2217
|
+
readonly internalType: "uint256";
|
|
2218
|
+
readonly name: "makingAmount";
|
|
2219
|
+
readonly type: "uint256";
|
|
2220
|
+
}];
|
|
2221
|
+
}, {
|
|
2222
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
2223
|
+
readonly name: "flashFills";
|
|
2224
|
+
readonly type: "tuple[]";
|
|
2225
|
+
readonly components: readonly [{
|
|
2226
|
+
readonly internalType: "struct Order";
|
|
2227
|
+
readonly name: "order";
|
|
2228
|
+
readonly type: "tuple";
|
|
2229
|
+
readonly components: readonly [{
|
|
2230
|
+
readonly internalType: "uint256";
|
|
2231
|
+
readonly name: "salt";
|
|
2232
|
+
readonly type: "uint256";
|
|
2233
|
+
}, {
|
|
2234
|
+
readonly internalType: "uint256";
|
|
2235
|
+
readonly name: "expiry";
|
|
2236
|
+
readonly type: "uint256";
|
|
2237
|
+
}, {
|
|
2238
|
+
readonly internalType: "uint256";
|
|
2239
|
+
readonly name: "nonce";
|
|
2240
|
+
readonly type: "uint256";
|
|
2241
|
+
}, {
|
|
2242
|
+
readonly internalType: "enum OrderType";
|
|
2243
|
+
readonly name: "orderType";
|
|
2244
|
+
readonly type: "uint8";
|
|
2245
|
+
}, {
|
|
2246
|
+
readonly internalType: "address";
|
|
2247
|
+
readonly name: "token";
|
|
2248
|
+
readonly type: "address";
|
|
2249
|
+
}, {
|
|
2250
|
+
readonly internalType: "address";
|
|
2251
|
+
readonly name: "YT";
|
|
2252
|
+
readonly type: "address";
|
|
2253
|
+
}, {
|
|
2254
|
+
readonly internalType: "address";
|
|
2255
|
+
readonly name: "maker";
|
|
2256
|
+
readonly type: "address";
|
|
2257
|
+
}, {
|
|
2258
|
+
readonly internalType: "address";
|
|
2259
|
+
readonly name: "receiver";
|
|
2260
|
+
readonly type: "address";
|
|
2261
|
+
}, {
|
|
2262
|
+
readonly internalType: "uint256";
|
|
2263
|
+
readonly name: "makingAmount";
|
|
2264
|
+
readonly type: "uint256";
|
|
2265
|
+
}, {
|
|
2266
|
+
readonly internalType: "uint256";
|
|
2267
|
+
readonly name: "lnImpliedRate";
|
|
2268
|
+
readonly type: "uint256";
|
|
2269
|
+
}, {
|
|
2270
|
+
readonly internalType: "uint256";
|
|
2271
|
+
readonly name: "failSafeRate";
|
|
2272
|
+
readonly type: "uint256";
|
|
2273
|
+
}, {
|
|
2274
|
+
readonly internalType: "bytes";
|
|
2275
|
+
readonly name: "permit";
|
|
2276
|
+
readonly type: "bytes";
|
|
2277
|
+
}];
|
|
2278
|
+
}, {
|
|
2279
|
+
readonly internalType: "bytes";
|
|
2280
|
+
readonly name: "signature";
|
|
2281
|
+
readonly type: "bytes";
|
|
2282
|
+
}, {
|
|
2283
|
+
readonly internalType: "uint256";
|
|
2284
|
+
readonly name: "makingAmount";
|
|
2285
|
+
readonly type: "uint256";
|
|
2286
|
+
}];
|
|
2287
|
+
}, {
|
|
2288
|
+
readonly internalType: "bytes";
|
|
2289
|
+
readonly name: "optData";
|
|
2290
|
+
readonly type: "bytes";
|
|
2291
|
+
}];
|
|
2292
|
+
}];
|
|
2293
|
+
readonly name: "addLiquiditySingleToken";
|
|
2294
|
+
readonly outputs: readonly [{
|
|
2295
|
+
readonly internalType: "uint256";
|
|
2296
|
+
readonly name: "netLpOut";
|
|
2297
|
+
readonly type: "uint256";
|
|
2298
|
+
}, {
|
|
2299
|
+
readonly internalType: "uint256";
|
|
2300
|
+
readonly name: "netPtFromSwap";
|
|
2301
|
+
readonly type: "uint256";
|
|
2302
|
+
}, {
|
|
2303
|
+
readonly internalType: "uint256";
|
|
2304
|
+
readonly name: "netSyFee";
|
|
2305
|
+
readonly type: "uint256";
|
|
2306
|
+
}, {
|
|
2307
|
+
readonly internalType: "uint256";
|
|
2308
|
+
readonly name: "netSyInterm";
|
|
2309
|
+
readonly type: "uint256";
|
|
2310
|
+
}];
|
|
2311
|
+
readonly stateMutability: "payable";
|
|
2312
|
+
readonly type: "function";
|
|
2313
|
+
}, {
|
|
2314
|
+
readonly inputs: readonly [{
|
|
2315
|
+
readonly internalType: "address";
|
|
2316
|
+
readonly name: "receiver";
|
|
2317
|
+
readonly type: "address";
|
|
2318
|
+
}, {
|
|
2319
|
+
readonly internalType: "address";
|
|
2320
|
+
readonly name: "market";
|
|
2321
|
+
readonly type: "address";
|
|
2322
|
+
}, {
|
|
2323
|
+
readonly internalType: "uint256";
|
|
2324
|
+
readonly name: "netSyIn";
|
|
2325
|
+
readonly type: "uint256";
|
|
2326
|
+
}, {
|
|
2327
|
+
readonly internalType: "uint256";
|
|
2328
|
+
readonly name: "minLpOut";
|
|
2329
|
+
readonly type: "uint256";
|
|
2330
|
+
}, {
|
|
2331
|
+
readonly internalType: "struct ApproxParams";
|
|
2332
|
+
readonly name: "guess";
|
|
2333
|
+
readonly type: "tuple";
|
|
2334
|
+
readonly components: readonly [{
|
|
2335
|
+
readonly internalType: "uint256";
|
|
2336
|
+
readonly name: "guessMin";
|
|
2337
|
+
readonly type: "uint256";
|
|
2338
|
+
}, {
|
|
2339
|
+
readonly internalType: "uint256";
|
|
2340
|
+
readonly name: "guessMax";
|
|
2341
|
+
readonly type: "uint256";
|
|
2342
|
+
}, {
|
|
2343
|
+
readonly internalType: "uint256";
|
|
2344
|
+
readonly name: "guessOffchain";
|
|
2345
|
+
readonly type: "uint256";
|
|
2346
|
+
}, {
|
|
2347
|
+
readonly internalType: "uint256";
|
|
2348
|
+
readonly name: "maxIteration";
|
|
2349
|
+
readonly type: "uint256";
|
|
2350
|
+
}, {
|
|
2351
|
+
readonly internalType: "uint256";
|
|
2352
|
+
readonly name: "eps";
|
|
2353
|
+
readonly type: "uint256";
|
|
2354
|
+
}];
|
|
2355
|
+
}, {
|
|
2356
|
+
readonly internalType: "struct LimitOrderData";
|
|
2357
|
+
readonly name: "limit";
|
|
2358
|
+
readonly type: "tuple";
|
|
2359
|
+
readonly components: readonly [{
|
|
2360
|
+
readonly internalType: "address";
|
|
2361
|
+
readonly name: "limitRouter";
|
|
2362
|
+
readonly type: "address";
|
|
2363
|
+
}, {
|
|
2364
|
+
readonly internalType: "uint256";
|
|
2365
|
+
readonly name: "epsSkipMarket";
|
|
2366
|
+
readonly type: "uint256";
|
|
2367
|
+
}, {
|
|
2368
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
2369
|
+
readonly name: "normalFills";
|
|
2370
|
+
readonly type: "tuple[]";
|
|
2371
|
+
readonly components: readonly [{
|
|
2372
|
+
readonly internalType: "struct Order";
|
|
2373
|
+
readonly name: "order";
|
|
2374
|
+
readonly type: "tuple";
|
|
2375
|
+
readonly components: readonly [{
|
|
2376
|
+
readonly internalType: "uint256";
|
|
2377
|
+
readonly name: "salt";
|
|
2378
|
+
readonly type: "uint256";
|
|
2379
|
+
}, {
|
|
2380
|
+
readonly internalType: "uint256";
|
|
2381
|
+
readonly name: "expiry";
|
|
2382
|
+
readonly type: "uint256";
|
|
2383
|
+
}, {
|
|
2384
|
+
readonly internalType: "uint256";
|
|
2385
|
+
readonly name: "nonce";
|
|
2386
|
+
readonly type: "uint256";
|
|
2387
|
+
}, {
|
|
2388
|
+
readonly internalType: "enum OrderType";
|
|
2389
|
+
readonly name: "orderType";
|
|
2390
|
+
readonly type: "uint8";
|
|
2391
|
+
}, {
|
|
2392
|
+
readonly internalType: "address";
|
|
2393
|
+
readonly name: "token";
|
|
2394
|
+
readonly type: "address";
|
|
2395
|
+
}, {
|
|
2396
|
+
readonly internalType: "address";
|
|
2397
|
+
readonly name: "YT";
|
|
2398
|
+
readonly type: "address";
|
|
2399
|
+
}, {
|
|
2400
|
+
readonly internalType: "address";
|
|
2401
|
+
readonly name: "maker";
|
|
2402
|
+
readonly type: "address";
|
|
2403
|
+
}, {
|
|
2404
|
+
readonly internalType: "address";
|
|
2405
|
+
readonly name: "receiver";
|
|
2406
|
+
readonly type: "address";
|
|
2407
|
+
}, {
|
|
2408
|
+
readonly internalType: "uint256";
|
|
2409
|
+
readonly name: "makingAmount";
|
|
2410
|
+
readonly type: "uint256";
|
|
2411
|
+
}, {
|
|
2412
|
+
readonly internalType: "uint256";
|
|
2413
|
+
readonly name: "lnImpliedRate";
|
|
2414
|
+
readonly type: "uint256";
|
|
2415
|
+
}, {
|
|
2416
|
+
readonly internalType: "uint256";
|
|
2417
|
+
readonly name: "failSafeRate";
|
|
2418
|
+
readonly type: "uint256";
|
|
2419
|
+
}, {
|
|
2420
|
+
readonly internalType: "bytes";
|
|
2421
|
+
readonly name: "permit";
|
|
2422
|
+
readonly type: "bytes";
|
|
2423
|
+
}];
|
|
2424
|
+
}, {
|
|
2425
|
+
readonly internalType: "bytes";
|
|
2426
|
+
readonly name: "signature";
|
|
2427
|
+
readonly type: "bytes";
|
|
2428
|
+
}, {
|
|
2429
|
+
readonly internalType: "uint256";
|
|
2430
|
+
readonly name: "makingAmount";
|
|
2431
|
+
readonly type: "uint256";
|
|
2432
|
+
}];
|
|
2433
|
+
}, {
|
|
2434
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
2435
|
+
readonly name: "flashFills";
|
|
2436
|
+
readonly type: "tuple[]";
|
|
2437
|
+
readonly components: readonly [{
|
|
2438
|
+
readonly internalType: "struct Order";
|
|
2439
|
+
readonly name: "order";
|
|
2440
|
+
readonly type: "tuple";
|
|
2441
|
+
readonly components: readonly [{
|
|
2442
|
+
readonly internalType: "uint256";
|
|
2443
|
+
readonly name: "salt";
|
|
2444
|
+
readonly type: "uint256";
|
|
2445
|
+
}, {
|
|
2446
|
+
readonly internalType: "uint256";
|
|
2447
|
+
readonly name: "expiry";
|
|
2448
|
+
readonly type: "uint256";
|
|
2449
|
+
}, {
|
|
2450
|
+
readonly internalType: "uint256";
|
|
2451
|
+
readonly name: "nonce";
|
|
2452
|
+
readonly type: "uint256";
|
|
2453
|
+
}, {
|
|
2454
|
+
readonly internalType: "enum OrderType";
|
|
2455
|
+
readonly name: "orderType";
|
|
2456
|
+
readonly type: "uint8";
|
|
2457
|
+
}, {
|
|
2458
|
+
readonly internalType: "address";
|
|
2459
|
+
readonly name: "token";
|
|
2460
|
+
readonly type: "address";
|
|
2461
|
+
}, {
|
|
2462
|
+
readonly internalType: "address";
|
|
2463
|
+
readonly name: "YT";
|
|
2464
|
+
readonly type: "address";
|
|
2465
|
+
}, {
|
|
2466
|
+
readonly internalType: "address";
|
|
2467
|
+
readonly name: "maker";
|
|
2468
|
+
readonly type: "address";
|
|
2469
|
+
}, {
|
|
2470
|
+
readonly internalType: "address";
|
|
2471
|
+
readonly name: "receiver";
|
|
2472
|
+
readonly type: "address";
|
|
2473
|
+
}, {
|
|
2474
|
+
readonly internalType: "uint256";
|
|
2475
|
+
readonly name: "makingAmount";
|
|
2476
|
+
readonly type: "uint256";
|
|
2477
|
+
}, {
|
|
2478
|
+
readonly internalType: "uint256";
|
|
2479
|
+
readonly name: "lnImpliedRate";
|
|
2480
|
+
readonly type: "uint256";
|
|
2481
|
+
}, {
|
|
2482
|
+
readonly internalType: "uint256";
|
|
2483
|
+
readonly name: "failSafeRate";
|
|
2484
|
+
readonly type: "uint256";
|
|
2485
|
+
}, {
|
|
2486
|
+
readonly internalType: "bytes";
|
|
2487
|
+
readonly name: "permit";
|
|
2488
|
+
readonly type: "bytes";
|
|
2489
|
+
}];
|
|
2490
|
+
}, {
|
|
2491
|
+
readonly internalType: "bytes";
|
|
2492
|
+
readonly name: "signature";
|
|
2493
|
+
readonly type: "bytes";
|
|
2494
|
+
}, {
|
|
2495
|
+
readonly internalType: "uint256";
|
|
2496
|
+
readonly name: "makingAmount";
|
|
2497
|
+
readonly type: "uint256";
|
|
2498
|
+
}];
|
|
2499
|
+
}, {
|
|
2500
|
+
readonly internalType: "bytes";
|
|
2501
|
+
readonly name: "optData";
|
|
2502
|
+
readonly type: "bytes";
|
|
2503
|
+
}];
|
|
2504
|
+
}];
|
|
2505
|
+
readonly name: "addLiquiditySingleSy";
|
|
2506
|
+
readonly outputs: readonly [{
|
|
2507
|
+
readonly internalType: "uint256";
|
|
2508
|
+
readonly name: "netLpOut";
|
|
2509
|
+
readonly type: "uint256";
|
|
2510
|
+
}, {
|
|
2511
|
+
readonly internalType: "uint256";
|
|
2512
|
+
readonly name: "netPtFromSwap";
|
|
2513
|
+
readonly type: "uint256";
|
|
2514
|
+
}, {
|
|
2515
|
+
readonly internalType: "uint256";
|
|
2516
|
+
readonly name: "netSyFee";
|
|
2517
|
+
readonly type: "uint256";
|
|
2518
|
+
}];
|
|
2519
|
+
readonly stateMutability: "nonpayable";
|
|
2520
|
+
readonly type: "function";
|
|
2521
|
+
}, {
|
|
2522
|
+
readonly inputs: readonly [{
|
|
2523
|
+
readonly internalType: "address";
|
|
2524
|
+
readonly name: "receiver";
|
|
2525
|
+
readonly type: "address";
|
|
2526
|
+
}, {
|
|
2527
|
+
readonly internalType: "address";
|
|
2528
|
+
readonly name: "market";
|
|
2529
|
+
readonly type: "address";
|
|
2530
|
+
}, {
|
|
2531
|
+
readonly internalType: "uint256";
|
|
2532
|
+
readonly name: "netPtIn";
|
|
2533
|
+
readonly type: "uint256";
|
|
2534
|
+
}, {
|
|
2535
|
+
readonly internalType: "uint256";
|
|
2536
|
+
readonly name: "minLpOut";
|
|
2537
|
+
readonly type: "uint256";
|
|
2538
|
+
}, {
|
|
2539
|
+
readonly internalType: "struct ApproxParams";
|
|
2540
|
+
readonly name: "guess";
|
|
2541
|
+
readonly type: "tuple";
|
|
2542
|
+
readonly components: readonly [{
|
|
2543
|
+
readonly internalType: "uint256";
|
|
2544
|
+
readonly name: "guessMin";
|
|
2545
|
+
readonly type: "uint256";
|
|
2546
|
+
}, {
|
|
2547
|
+
readonly internalType: "uint256";
|
|
2548
|
+
readonly name: "guessMax";
|
|
2549
|
+
readonly type: "uint256";
|
|
2550
|
+
}, {
|
|
2551
|
+
readonly internalType: "uint256";
|
|
2552
|
+
readonly name: "guessOffchain";
|
|
2553
|
+
readonly type: "uint256";
|
|
2554
|
+
}, {
|
|
2555
|
+
readonly internalType: "uint256";
|
|
2556
|
+
readonly name: "maxIteration";
|
|
2557
|
+
readonly type: "uint256";
|
|
2558
|
+
}, {
|
|
2559
|
+
readonly internalType: "uint256";
|
|
2560
|
+
readonly name: "eps";
|
|
2561
|
+
readonly type: "uint256";
|
|
2562
|
+
}];
|
|
2563
|
+
}, {
|
|
2564
|
+
readonly internalType: "struct LimitOrderData";
|
|
2565
|
+
readonly name: "limit";
|
|
2566
|
+
readonly type: "tuple";
|
|
2567
|
+
readonly components: readonly [{
|
|
2568
|
+
readonly internalType: "address";
|
|
2569
|
+
readonly name: "limitRouter";
|
|
2570
|
+
readonly type: "address";
|
|
2571
|
+
}, {
|
|
2572
|
+
readonly internalType: "uint256";
|
|
2573
|
+
readonly name: "epsSkipMarket";
|
|
2574
|
+
readonly type: "uint256";
|
|
2575
|
+
}, {
|
|
2576
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
2577
|
+
readonly name: "normalFills";
|
|
2578
|
+
readonly type: "tuple[]";
|
|
2579
|
+
readonly components: readonly [{
|
|
2580
|
+
readonly internalType: "struct Order";
|
|
2581
|
+
readonly name: "order";
|
|
2582
|
+
readonly type: "tuple";
|
|
2583
|
+
readonly components: readonly [{
|
|
2584
|
+
readonly internalType: "uint256";
|
|
2585
|
+
readonly name: "salt";
|
|
2586
|
+
readonly type: "uint256";
|
|
2587
|
+
}, {
|
|
2588
|
+
readonly internalType: "uint256";
|
|
2589
|
+
readonly name: "expiry";
|
|
2590
|
+
readonly type: "uint256";
|
|
2591
|
+
}, {
|
|
2592
|
+
readonly internalType: "uint256";
|
|
2593
|
+
readonly name: "nonce";
|
|
2594
|
+
readonly type: "uint256";
|
|
2595
|
+
}, {
|
|
2596
|
+
readonly internalType: "enum OrderType";
|
|
2597
|
+
readonly name: "orderType";
|
|
2598
|
+
readonly type: "uint8";
|
|
2599
|
+
}, {
|
|
2600
|
+
readonly internalType: "address";
|
|
2601
|
+
readonly name: "token";
|
|
2602
|
+
readonly type: "address";
|
|
2603
|
+
}, {
|
|
2604
|
+
readonly internalType: "address";
|
|
2605
|
+
readonly name: "YT";
|
|
2606
|
+
readonly type: "address";
|
|
2607
|
+
}, {
|
|
2608
|
+
readonly internalType: "address";
|
|
2609
|
+
readonly name: "maker";
|
|
2610
|
+
readonly type: "address";
|
|
2611
|
+
}, {
|
|
2612
|
+
readonly internalType: "address";
|
|
2613
|
+
readonly name: "receiver";
|
|
2614
|
+
readonly type: "address";
|
|
2615
|
+
}, {
|
|
2616
|
+
readonly internalType: "uint256";
|
|
2617
|
+
readonly name: "makingAmount";
|
|
2618
|
+
readonly type: "uint256";
|
|
2619
|
+
}, {
|
|
2620
|
+
readonly internalType: "uint256";
|
|
2621
|
+
readonly name: "lnImpliedRate";
|
|
2622
|
+
readonly type: "uint256";
|
|
2623
|
+
}, {
|
|
2624
|
+
readonly internalType: "uint256";
|
|
2625
|
+
readonly name: "failSafeRate";
|
|
2626
|
+
readonly type: "uint256";
|
|
2627
|
+
}, {
|
|
2628
|
+
readonly internalType: "bytes";
|
|
2629
|
+
readonly name: "permit";
|
|
2630
|
+
readonly type: "bytes";
|
|
2631
|
+
}];
|
|
2632
|
+
}, {
|
|
2633
|
+
readonly internalType: "bytes";
|
|
2634
|
+
readonly name: "signature";
|
|
2635
|
+
readonly type: "bytes";
|
|
2636
|
+
}, {
|
|
2637
|
+
readonly internalType: "uint256";
|
|
2638
|
+
readonly name: "makingAmount";
|
|
2639
|
+
readonly type: "uint256";
|
|
2640
|
+
}];
|
|
2641
|
+
}, {
|
|
2642
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
2643
|
+
readonly name: "flashFills";
|
|
2644
|
+
readonly type: "tuple[]";
|
|
2645
|
+
readonly components: readonly [{
|
|
2646
|
+
readonly internalType: "struct Order";
|
|
2647
|
+
readonly name: "order";
|
|
2648
|
+
readonly type: "tuple";
|
|
2649
|
+
readonly components: readonly [{
|
|
2650
|
+
readonly internalType: "uint256";
|
|
2651
|
+
readonly name: "salt";
|
|
2652
|
+
readonly type: "uint256";
|
|
2653
|
+
}, {
|
|
2654
|
+
readonly internalType: "uint256";
|
|
2655
|
+
readonly name: "expiry";
|
|
2656
|
+
readonly type: "uint256";
|
|
2657
|
+
}, {
|
|
2658
|
+
readonly internalType: "uint256";
|
|
2659
|
+
readonly name: "nonce";
|
|
2660
|
+
readonly type: "uint256";
|
|
2661
|
+
}, {
|
|
2662
|
+
readonly internalType: "enum OrderType";
|
|
2663
|
+
readonly name: "orderType";
|
|
2664
|
+
readonly type: "uint8";
|
|
2665
|
+
}, {
|
|
2666
|
+
readonly internalType: "address";
|
|
2667
|
+
readonly name: "token";
|
|
2668
|
+
readonly type: "address";
|
|
2669
|
+
}, {
|
|
2670
|
+
readonly internalType: "address";
|
|
2671
|
+
readonly name: "YT";
|
|
2672
|
+
readonly type: "address";
|
|
2673
|
+
}, {
|
|
2674
|
+
readonly internalType: "address";
|
|
2675
|
+
readonly name: "maker";
|
|
2676
|
+
readonly type: "address";
|
|
2677
|
+
}, {
|
|
2678
|
+
readonly internalType: "address";
|
|
2679
|
+
readonly name: "receiver";
|
|
2680
|
+
readonly type: "address";
|
|
2681
|
+
}, {
|
|
2682
|
+
readonly internalType: "uint256";
|
|
2683
|
+
readonly name: "makingAmount";
|
|
2684
|
+
readonly type: "uint256";
|
|
2685
|
+
}, {
|
|
2686
|
+
readonly internalType: "uint256";
|
|
2687
|
+
readonly name: "lnImpliedRate";
|
|
2688
|
+
readonly type: "uint256";
|
|
2689
|
+
}, {
|
|
2690
|
+
readonly internalType: "uint256";
|
|
2691
|
+
readonly name: "failSafeRate";
|
|
2692
|
+
readonly type: "uint256";
|
|
2693
|
+
}, {
|
|
2694
|
+
readonly internalType: "bytes";
|
|
2695
|
+
readonly name: "permit";
|
|
2696
|
+
readonly type: "bytes";
|
|
2697
|
+
}];
|
|
2698
|
+
}, {
|
|
2699
|
+
readonly internalType: "bytes";
|
|
2700
|
+
readonly name: "signature";
|
|
2701
|
+
readonly type: "bytes";
|
|
2702
|
+
}, {
|
|
2703
|
+
readonly internalType: "uint256";
|
|
2704
|
+
readonly name: "makingAmount";
|
|
2705
|
+
readonly type: "uint256";
|
|
2706
|
+
}];
|
|
2707
|
+
}, {
|
|
2708
|
+
readonly internalType: "bytes";
|
|
2709
|
+
readonly name: "optData";
|
|
2710
|
+
readonly type: "bytes";
|
|
2711
|
+
}];
|
|
2712
|
+
}];
|
|
2713
|
+
readonly name: "addLiquiditySinglePt";
|
|
2714
|
+
readonly outputs: readonly [{
|
|
2715
|
+
readonly internalType: "uint256";
|
|
2716
|
+
readonly name: "netLpOut";
|
|
2717
|
+
readonly type: "uint256";
|
|
2718
|
+
}, {
|
|
2719
|
+
readonly internalType: "uint256";
|
|
2720
|
+
readonly name: "netSyFromSwap";
|
|
2721
|
+
readonly type: "uint256";
|
|
2722
|
+
}, {
|
|
2723
|
+
readonly internalType: "uint256";
|
|
2724
|
+
readonly name: "netSyFee";
|
|
2725
|
+
readonly type: "uint256";
|
|
2726
|
+
}];
|
|
2727
|
+
readonly stateMutability: "nonpayable";
|
|
2728
|
+
readonly type: "function";
|
|
2729
|
+
}, {
|
|
2730
|
+
readonly inputs: readonly [{
|
|
2731
|
+
readonly internalType: "address";
|
|
2732
|
+
readonly name: "receiver";
|
|
2733
|
+
readonly type: "address";
|
|
2734
|
+
}, {
|
|
2735
|
+
readonly internalType: "address";
|
|
2736
|
+
readonly name: "market";
|
|
2737
|
+
readonly type: "address";
|
|
2738
|
+
}, {
|
|
2739
|
+
readonly internalType: "uint256";
|
|
2740
|
+
readonly name: "minLpOut";
|
|
2741
|
+
readonly type: "uint256";
|
|
2742
|
+
}, {
|
|
2743
|
+
readonly internalType: "uint256";
|
|
2744
|
+
readonly name: "minYtOut";
|
|
2745
|
+
readonly type: "uint256";
|
|
2746
|
+
}, {
|
|
2747
|
+
readonly internalType: "struct TokenInput";
|
|
2748
|
+
readonly name: "input";
|
|
2749
|
+
readonly type: "tuple";
|
|
2750
|
+
readonly components: readonly [{
|
|
2751
|
+
readonly internalType: "address";
|
|
2752
|
+
readonly name: "tokenIn";
|
|
2753
|
+
readonly type: "address";
|
|
2754
|
+
}, {
|
|
2755
|
+
readonly internalType: "uint256";
|
|
2756
|
+
readonly name: "netTokenIn";
|
|
2757
|
+
readonly type: "uint256";
|
|
2758
|
+
}, {
|
|
2759
|
+
readonly internalType: "address";
|
|
2760
|
+
readonly name: "tokenMintSy";
|
|
2761
|
+
readonly type: "address";
|
|
2762
|
+
}, {
|
|
2763
|
+
readonly internalType: "address";
|
|
2764
|
+
readonly name: "pendleSwap";
|
|
2765
|
+
readonly type: "address";
|
|
2766
|
+
}, {
|
|
2767
|
+
readonly internalType: "struct SwapData";
|
|
2768
|
+
readonly name: "swapData";
|
|
2769
|
+
readonly type: "tuple";
|
|
2770
|
+
readonly components: readonly [{
|
|
2771
|
+
readonly internalType: "enum SwapType";
|
|
2772
|
+
readonly name: "swapType";
|
|
2773
|
+
readonly type: "uint8";
|
|
2774
|
+
}, {
|
|
2775
|
+
readonly internalType: "address";
|
|
2776
|
+
readonly name: "extRouter";
|
|
2777
|
+
readonly type: "address";
|
|
2778
|
+
}, {
|
|
2779
|
+
readonly internalType: "bytes";
|
|
2780
|
+
readonly name: "extCalldata";
|
|
2781
|
+
readonly type: "bytes";
|
|
2782
|
+
}, {
|
|
2783
|
+
readonly internalType: "bool";
|
|
2784
|
+
readonly name: "needScale";
|
|
2785
|
+
readonly type: "bool";
|
|
2786
|
+
}];
|
|
2787
|
+
}];
|
|
2788
|
+
}];
|
|
2789
|
+
readonly name: "addLiquiditySingleTokenKeepYt";
|
|
2790
|
+
readonly outputs: readonly [{
|
|
2791
|
+
readonly internalType: "uint256";
|
|
2792
|
+
readonly name: "netLpOut";
|
|
2793
|
+
readonly type: "uint256";
|
|
2794
|
+
}, {
|
|
2795
|
+
readonly internalType: "uint256";
|
|
2796
|
+
readonly name: "netYtOut";
|
|
2797
|
+
readonly type: "uint256";
|
|
2798
|
+
}, {
|
|
2799
|
+
readonly internalType: "uint256";
|
|
2800
|
+
readonly name: "netSyInterm";
|
|
2801
|
+
readonly type: "uint256";
|
|
2802
|
+
}];
|
|
2803
|
+
readonly stateMutability: "payable";
|
|
2804
|
+
readonly type: "function";
|
|
2805
|
+
}, {
|
|
2806
|
+
readonly inputs: readonly [{
|
|
2807
|
+
readonly internalType: "address";
|
|
2808
|
+
readonly name: "receiver";
|
|
2809
|
+
readonly type: "address";
|
|
2810
|
+
}, {
|
|
2811
|
+
readonly internalType: "address";
|
|
2812
|
+
readonly name: "market";
|
|
2813
|
+
readonly type: "address";
|
|
2814
|
+
}, {
|
|
2815
|
+
readonly internalType: "uint256";
|
|
2816
|
+
readonly name: "netSyIn";
|
|
2817
|
+
readonly type: "uint256";
|
|
2818
|
+
}, {
|
|
2819
|
+
readonly internalType: "uint256";
|
|
2820
|
+
readonly name: "minLpOut";
|
|
2821
|
+
readonly type: "uint256";
|
|
2822
|
+
}, {
|
|
2823
|
+
readonly internalType: "uint256";
|
|
2824
|
+
readonly name: "minYtOut";
|
|
2825
|
+
readonly type: "uint256";
|
|
2826
|
+
}];
|
|
2827
|
+
readonly name: "addLiquiditySingleSyKeepYt";
|
|
2828
|
+
readonly outputs: readonly [{
|
|
2829
|
+
readonly internalType: "uint256";
|
|
2830
|
+
readonly name: "netLpOut";
|
|
2831
|
+
readonly type: "uint256";
|
|
2832
|
+
}, {
|
|
2833
|
+
readonly internalType: "uint256";
|
|
2834
|
+
readonly name: "netYtOut";
|
|
2835
|
+
readonly type: "uint256";
|
|
2836
|
+
}];
|
|
2837
|
+
readonly stateMutability: "nonpayable";
|
|
2838
|
+
readonly type: "function";
|
|
2839
|
+
}, {
|
|
2840
|
+
readonly inputs: readonly [{
|
|
2841
|
+
readonly internalType: "address";
|
|
2842
|
+
readonly name: "receiver";
|
|
2843
|
+
readonly type: "address";
|
|
2844
|
+
}, {
|
|
2845
|
+
readonly internalType: "address";
|
|
2846
|
+
readonly name: "market";
|
|
2847
|
+
readonly type: "address";
|
|
2848
|
+
}, {
|
|
2849
|
+
readonly internalType: "struct TokenInput";
|
|
2850
|
+
readonly name: "input";
|
|
2851
|
+
readonly type: "tuple";
|
|
2852
|
+
readonly components: readonly [{
|
|
2853
|
+
readonly internalType: "address";
|
|
2854
|
+
readonly name: "tokenIn";
|
|
2855
|
+
readonly type: "address";
|
|
2856
|
+
}, {
|
|
2857
|
+
readonly internalType: "uint256";
|
|
2858
|
+
readonly name: "netTokenIn";
|
|
2859
|
+
readonly type: "uint256";
|
|
2860
|
+
}, {
|
|
2861
|
+
readonly internalType: "address";
|
|
2862
|
+
readonly name: "tokenMintSy";
|
|
2863
|
+
readonly type: "address";
|
|
2864
|
+
}, {
|
|
2865
|
+
readonly internalType: "address";
|
|
2866
|
+
readonly name: "pendleSwap";
|
|
2867
|
+
readonly type: "address";
|
|
2868
|
+
}, {
|
|
2869
|
+
readonly internalType: "struct SwapData";
|
|
2870
|
+
readonly name: "swapData";
|
|
2871
|
+
readonly type: "tuple";
|
|
2872
|
+
readonly components: readonly [{
|
|
2873
|
+
readonly internalType: "enum SwapType";
|
|
2874
|
+
readonly name: "swapType";
|
|
2875
|
+
readonly type: "uint8";
|
|
2876
|
+
}, {
|
|
2877
|
+
readonly internalType: "address";
|
|
2878
|
+
readonly name: "extRouter";
|
|
2879
|
+
readonly type: "address";
|
|
2880
|
+
}, {
|
|
2881
|
+
readonly internalType: "bytes";
|
|
2882
|
+
readonly name: "extCalldata";
|
|
2883
|
+
readonly type: "bytes";
|
|
2884
|
+
}, {
|
|
2885
|
+
readonly internalType: "bool";
|
|
2886
|
+
readonly name: "needScale";
|
|
2887
|
+
readonly type: "bool";
|
|
2888
|
+
}];
|
|
2889
|
+
}];
|
|
2890
|
+
}, {
|
|
2891
|
+
readonly internalType: "uint256";
|
|
2892
|
+
readonly name: "netPtDesired";
|
|
2893
|
+
readonly type: "uint256";
|
|
2894
|
+
}, {
|
|
2895
|
+
readonly internalType: "uint256";
|
|
2896
|
+
readonly name: "minLpOut";
|
|
2897
|
+
readonly type: "uint256";
|
|
2898
|
+
}];
|
|
2899
|
+
readonly name: "addLiquidityDualTokenAndPt";
|
|
2900
|
+
readonly outputs: readonly [{
|
|
2901
|
+
readonly internalType: "uint256";
|
|
2902
|
+
readonly name: "netLpOut";
|
|
2903
|
+
readonly type: "uint256";
|
|
2904
|
+
}, {
|
|
2905
|
+
readonly internalType: "uint256";
|
|
2906
|
+
readonly name: "netSyUsed";
|
|
2907
|
+
readonly type: "uint256";
|
|
2908
|
+
}, {
|
|
2909
|
+
readonly internalType: "uint256";
|
|
2910
|
+
readonly name: "netPtUsed";
|
|
2911
|
+
readonly type: "uint256";
|
|
2912
|
+
}, {
|
|
2913
|
+
readonly internalType: "uint256";
|
|
2914
|
+
readonly name: "netSyInterm";
|
|
2915
|
+
readonly type: "uint256";
|
|
2916
|
+
}];
|
|
2917
|
+
readonly stateMutability: "payable";
|
|
2918
|
+
readonly type: "function";
|
|
2919
|
+
}, {
|
|
2920
|
+
readonly inputs: readonly [{
|
|
2921
|
+
readonly internalType: "address";
|
|
2922
|
+
readonly name: "receiver";
|
|
2923
|
+
readonly type: "address";
|
|
2924
|
+
}, {
|
|
2925
|
+
readonly internalType: "address";
|
|
2926
|
+
readonly name: "market";
|
|
2927
|
+
readonly type: "address";
|
|
2928
|
+
}, {
|
|
2929
|
+
readonly internalType: "uint256";
|
|
2930
|
+
readonly name: "netSyDesired";
|
|
2931
|
+
readonly type: "uint256";
|
|
2932
|
+
}, {
|
|
2933
|
+
readonly internalType: "uint256";
|
|
2934
|
+
readonly name: "netPtDesired";
|
|
2935
|
+
readonly type: "uint256";
|
|
2936
|
+
}, {
|
|
2937
|
+
readonly internalType: "uint256";
|
|
2938
|
+
readonly name: "minLpOut";
|
|
2939
|
+
readonly type: "uint256";
|
|
2940
|
+
}];
|
|
2941
|
+
readonly name: "addLiquidityDualSyAndPt";
|
|
2942
|
+
readonly outputs: readonly [{
|
|
2943
|
+
readonly internalType: "uint256";
|
|
2944
|
+
readonly name: "netLpOut";
|
|
2945
|
+
readonly type: "uint256";
|
|
2946
|
+
}, {
|
|
2947
|
+
readonly internalType: "uint256";
|
|
2948
|
+
readonly name: "netSyUsed";
|
|
2949
|
+
readonly type: "uint256";
|
|
2950
|
+
}, {
|
|
2951
|
+
readonly internalType: "uint256";
|
|
2952
|
+
readonly name: "netPtUsed";
|
|
2953
|
+
readonly type: "uint256";
|
|
2954
|
+
}];
|
|
2955
|
+
readonly stateMutability: "nonpayable";
|
|
2956
|
+
readonly type: "function";
|
|
2957
|
+
}, {
|
|
2958
|
+
readonly inputs: readonly [{
|
|
2959
|
+
readonly internalType: "address";
|
|
2960
|
+
readonly name: "receiver";
|
|
2961
|
+
readonly type: "address";
|
|
2962
|
+
}, {
|
|
2963
|
+
readonly internalType: "address";
|
|
2964
|
+
readonly name: "market";
|
|
2965
|
+
readonly type: "address";
|
|
2966
|
+
}, {
|
|
2967
|
+
readonly internalType: "uint256";
|
|
2968
|
+
readonly name: "netLpToRemove";
|
|
2969
|
+
readonly type: "uint256";
|
|
2970
|
+
}, {
|
|
2971
|
+
readonly internalType: "struct TokenOutput";
|
|
2972
|
+
readonly name: "output";
|
|
2973
|
+
readonly type: "tuple";
|
|
2974
|
+
readonly components: readonly [{
|
|
2975
|
+
readonly internalType: "address";
|
|
2976
|
+
readonly name: "tokenOut";
|
|
2977
|
+
readonly type: "address";
|
|
2978
|
+
}, {
|
|
2979
|
+
readonly internalType: "uint256";
|
|
2980
|
+
readonly name: "minTokenOut";
|
|
2981
|
+
readonly type: "uint256";
|
|
2982
|
+
}, {
|
|
2983
|
+
readonly internalType: "address";
|
|
2984
|
+
readonly name: "tokenRedeemSy";
|
|
2985
|
+
readonly type: "address";
|
|
2986
|
+
}, {
|
|
2987
|
+
readonly internalType: "address";
|
|
2988
|
+
readonly name: "pendleSwap";
|
|
2989
|
+
readonly type: "address";
|
|
2990
|
+
}, {
|
|
2991
|
+
readonly internalType: "struct SwapData";
|
|
2992
|
+
readonly name: "swapData";
|
|
2993
|
+
readonly type: "tuple";
|
|
2994
|
+
readonly components: readonly [{
|
|
2995
|
+
readonly internalType: "enum SwapType";
|
|
2996
|
+
readonly name: "swapType";
|
|
2997
|
+
readonly type: "uint8";
|
|
2998
|
+
}, {
|
|
2999
|
+
readonly internalType: "address";
|
|
3000
|
+
readonly name: "extRouter";
|
|
3001
|
+
readonly type: "address";
|
|
3002
|
+
}, {
|
|
3003
|
+
readonly internalType: "bytes";
|
|
3004
|
+
readonly name: "extCalldata";
|
|
3005
|
+
readonly type: "bytes";
|
|
3006
|
+
}, {
|
|
3007
|
+
readonly internalType: "bool";
|
|
3008
|
+
readonly name: "needScale";
|
|
3009
|
+
readonly type: "bool";
|
|
3010
|
+
}];
|
|
3011
|
+
}];
|
|
3012
|
+
}, {
|
|
3013
|
+
readonly internalType: "struct LimitOrderData";
|
|
3014
|
+
readonly name: "limit";
|
|
3015
|
+
readonly type: "tuple";
|
|
3016
|
+
readonly components: readonly [{
|
|
3017
|
+
readonly internalType: "address";
|
|
3018
|
+
readonly name: "limitRouter";
|
|
3019
|
+
readonly type: "address";
|
|
3020
|
+
}, {
|
|
3021
|
+
readonly internalType: "uint256";
|
|
3022
|
+
readonly name: "epsSkipMarket";
|
|
3023
|
+
readonly type: "uint256";
|
|
3024
|
+
}, {
|
|
3025
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
3026
|
+
readonly name: "normalFills";
|
|
3027
|
+
readonly type: "tuple[]";
|
|
3028
|
+
readonly components: readonly [{
|
|
3029
|
+
readonly internalType: "struct Order";
|
|
3030
|
+
readonly name: "order";
|
|
3031
|
+
readonly type: "tuple";
|
|
3032
|
+
readonly components: readonly [{
|
|
3033
|
+
readonly internalType: "uint256";
|
|
3034
|
+
readonly name: "salt";
|
|
3035
|
+
readonly type: "uint256";
|
|
3036
|
+
}, {
|
|
3037
|
+
readonly internalType: "uint256";
|
|
3038
|
+
readonly name: "expiry";
|
|
3039
|
+
readonly type: "uint256";
|
|
3040
|
+
}, {
|
|
3041
|
+
readonly internalType: "uint256";
|
|
3042
|
+
readonly name: "nonce";
|
|
3043
|
+
readonly type: "uint256";
|
|
3044
|
+
}, {
|
|
3045
|
+
readonly internalType: "enum OrderType";
|
|
3046
|
+
readonly name: "orderType";
|
|
3047
|
+
readonly type: "uint8";
|
|
3048
|
+
}, {
|
|
3049
|
+
readonly internalType: "address";
|
|
3050
|
+
readonly name: "token";
|
|
3051
|
+
readonly type: "address";
|
|
3052
|
+
}, {
|
|
3053
|
+
readonly internalType: "address";
|
|
3054
|
+
readonly name: "YT";
|
|
3055
|
+
readonly type: "address";
|
|
3056
|
+
}, {
|
|
3057
|
+
readonly internalType: "address";
|
|
3058
|
+
readonly name: "maker";
|
|
3059
|
+
readonly type: "address";
|
|
3060
|
+
}, {
|
|
3061
|
+
readonly internalType: "address";
|
|
3062
|
+
readonly name: "receiver";
|
|
3063
|
+
readonly type: "address";
|
|
3064
|
+
}, {
|
|
3065
|
+
readonly internalType: "uint256";
|
|
3066
|
+
readonly name: "makingAmount";
|
|
3067
|
+
readonly type: "uint256";
|
|
3068
|
+
}, {
|
|
3069
|
+
readonly internalType: "uint256";
|
|
3070
|
+
readonly name: "lnImpliedRate";
|
|
3071
|
+
readonly type: "uint256";
|
|
3072
|
+
}, {
|
|
3073
|
+
readonly internalType: "uint256";
|
|
3074
|
+
readonly name: "failSafeRate";
|
|
3075
|
+
readonly type: "uint256";
|
|
3076
|
+
}, {
|
|
3077
|
+
readonly internalType: "bytes";
|
|
3078
|
+
readonly name: "permit";
|
|
3079
|
+
readonly type: "bytes";
|
|
3080
|
+
}];
|
|
3081
|
+
}, {
|
|
3082
|
+
readonly internalType: "bytes";
|
|
3083
|
+
readonly name: "signature";
|
|
3084
|
+
readonly type: "bytes";
|
|
3085
|
+
}, {
|
|
3086
|
+
readonly internalType: "uint256";
|
|
3087
|
+
readonly name: "makingAmount";
|
|
3088
|
+
readonly type: "uint256";
|
|
3089
|
+
}];
|
|
3090
|
+
}, {
|
|
3091
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
3092
|
+
readonly name: "flashFills";
|
|
3093
|
+
readonly type: "tuple[]";
|
|
3094
|
+
readonly components: readonly [{
|
|
3095
|
+
readonly internalType: "struct Order";
|
|
3096
|
+
readonly name: "order";
|
|
3097
|
+
readonly type: "tuple";
|
|
3098
|
+
readonly components: readonly [{
|
|
3099
|
+
readonly internalType: "uint256";
|
|
3100
|
+
readonly name: "salt";
|
|
3101
|
+
readonly type: "uint256";
|
|
3102
|
+
}, {
|
|
3103
|
+
readonly internalType: "uint256";
|
|
3104
|
+
readonly name: "expiry";
|
|
3105
|
+
readonly type: "uint256";
|
|
3106
|
+
}, {
|
|
3107
|
+
readonly internalType: "uint256";
|
|
3108
|
+
readonly name: "nonce";
|
|
3109
|
+
readonly type: "uint256";
|
|
3110
|
+
}, {
|
|
3111
|
+
readonly internalType: "enum OrderType";
|
|
3112
|
+
readonly name: "orderType";
|
|
3113
|
+
readonly type: "uint8";
|
|
3114
|
+
}, {
|
|
3115
|
+
readonly internalType: "address";
|
|
3116
|
+
readonly name: "token";
|
|
3117
|
+
readonly type: "address";
|
|
3118
|
+
}, {
|
|
3119
|
+
readonly internalType: "address";
|
|
3120
|
+
readonly name: "YT";
|
|
3121
|
+
readonly type: "address";
|
|
3122
|
+
}, {
|
|
3123
|
+
readonly internalType: "address";
|
|
3124
|
+
readonly name: "maker";
|
|
3125
|
+
readonly type: "address";
|
|
3126
|
+
}, {
|
|
3127
|
+
readonly internalType: "address";
|
|
3128
|
+
readonly name: "receiver";
|
|
3129
|
+
readonly type: "address";
|
|
3130
|
+
}, {
|
|
3131
|
+
readonly internalType: "uint256";
|
|
3132
|
+
readonly name: "makingAmount";
|
|
3133
|
+
readonly type: "uint256";
|
|
3134
|
+
}, {
|
|
3135
|
+
readonly internalType: "uint256";
|
|
3136
|
+
readonly name: "lnImpliedRate";
|
|
3137
|
+
readonly type: "uint256";
|
|
3138
|
+
}, {
|
|
3139
|
+
readonly internalType: "uint256";
|
|
3140
|
+
readonly name: "failSafeRate";
|
|
3141
|
+
readonly type: "uint256";
|
|
3142
|
+
}, {
|
|
3143
|
+
readonly internalType: "bytes";
|
|
3144
|
+
readonly name: "permit";
|
|
3145
|
+
readonly type: "bytes";
|
|
3146
|
+
}];
|
|
3147
|
+
}, {
|
|
3148
|
+
readonly internalType: "bytes";
|
|
3149
|
+
readonly name: "signature";
|
|
3150
|
+
readonly type: "bytes";
|
|
3151
|
+
}, {
|
|
3152
|
+
readonly internalType: "uint256";
|
|
3153
|
+
readonly name: "makingAmount";
|
|
3154
|
+
readonly type: "uint256";
|
|
3155
|
+
}];
|
|
3156
|
+
}, {
|
|
3157
|
+
readonly internalType: "bytes";
|
|
3158
|
+
readonly name: "optData";
|
|
3159
|
+
readonly type: "bytes";
|
|
3160
|
+
}];
|
|
3161
|
+
}];
|
|
3162
|
+
readonly name: "removeLiquiditySingleToken";
|
|
3163
|
+
readonly outputs: readonly [{
|
|
3164
|
+
readonly internalType: "uint256";
|
|
3165
|
+
readonly name: "netTokenOut";
|
|
3166
|
+
readonly type: "uint256";
|
|
3167
|
+
}, {
|
|
3168
|
+
readonly internalType: "uint256";
|
|
3169
|
+
readonly name: "netSyFee";
|
|
3170
|
+
readonly type: "uint256";
|
|
3171
|
+
}, {
|
|
3172
|
+
readonly internalType: "uint256";
|
|
3173
|
+
readonly name: "netSyInterm";
|
|
3174
|
+
readonly type: "uint256";
|
|
3175
|
+
}];
|
|
3176
|
+
readonly stateMutability: "nonpayable";
|
|
3177
|
+
readonly type: "function";
|
|
3178
|
+
}, {
|
|
3179
|
+
readonly inputs: readonly [{
|
|
3180
|
+
readonly internalType: "address";
|
|
3181
|
+
readonly name: "receiver";
|
|
3182
|
+
readonly type: "address";
|
|
3183
|
+
}, {
|
|
3184
|
+
readonly internalType: "address";
|
|
3185
|
+
readonly name: "market";
|
|
3186
|
+
readonly type: "address";
|
|
3187
|
+
}, {
|
|
3188
|
+
readonly internalType: "uint256";
|
|
3189
|
+
readonly name: "netLpToRemove";
|
|
3190
|
+
readonly type: "uint256";
|
|
3191
|
+
}, {
|
|
3192
|
+
readonly internalType: "uint256";
|
|
3193
|
+
readonly name: "minSyOut";
|
|
3194
|
+
readonly type: "uint256";
|
|
3195
|
+
}, {
|
|
3196
|
+
readonly internalType: "struct LimitOrderData";
|
|
3197
|
+
readonly name: "limit";
|
|
3198
|
+
readonly type: "tuple";
|
|
3199
|
+
readonly components: readonly [{
|
|
3200
|
+
readonly internalType: "address";
|
|
3201
|
+
readonly name: "limitRouter";
|
|
3202
|
+
readonly type: "address";
|
|
3203
|
+
}, {
|
|
3204
|
+
readonly internalType: "uint256";
|
|
3205
|
+
readonly name: "epsSkipMarket";
|
|
3206
|
+
readonly type: "uint256";
|
|
3207
|
+
}, {
|
|
3208
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
3209
|
+
readonly name: "normalFills";
|
|
3210
|
+
readonly type: "tuple[]";
|
|
3211
|
+
readonly components: readonly [{
|
|
3212
|
+
readonly internalType: "struct Order";
|
|
3213
|
+
readonly name: "order";
|
|
3214
|
+
readonly type: "tuple";
|
|
3215
|
+
readonly components: readonly [{
|
|
3216
|
+
readonly internalType: "uint256";
|
|
3217
|
+
readonly name: "salt";
|
|
3218
|
+
readonly type: "uint256";
|
|
3219
|
+
}, {
|
|
3220
|
+
readonly internalType: "uint256";
|
|
3221
|
+
readonly name: "expiry";
|
|
3222
|
+
readonly type: "uint256";
|
|
3223
|
+
}, {
|
|
3224
|
+
readonly internalType: "uint256";
|
|
3225
|
+
readonly name: "nonce";
|
|
3226
|
+
readonly type: "uint256";
|
|
3227
|
+
}, {
|
|
3228
|
+
readonly internalType: "enum OrderType";
|
|
3229
|
+
readonly name: "orderType";
|
|
3230
|
+
readonly type: "uint8";
|
|
3231
|
+
}, {
|
|
3232
|
+
readonly internalType: "address";
|
|
3233
|
+
readonly name: "token";
|
|
3234
|
+
readonly type: "address";
|
|
3235
|
+
}, {
|
|
3236
|
+
readonly internalType: "address";
|
|
3237
|
+
readonly name: "YT";
|
|
3238
|
+
readonly type: "address";
|
|
3239
|
+
}, {
|
|
3240
|
+
readonly internalType: "address";
|
|
3241
|
+
readonly name: "maker";
|
|
3242
|
+
readonly type: "address";
|
|
3243
|
+
}, {
|
|
3244
|
+
readonly internalType: "address";
|
|
3245
|
+
readonly name: "receiver";
|
|
3246
|
+
readonly type: "address";
|
|
3247
|
+
}, {
|
|
3248
|
+
readonly internalType: "uint256";
|
|
3249
|
+
readonly name: "makingAmount";
|
|
3250
|
+
readonly type: "uint256";
|
|
3251
|
+
}, {
|
|
3252
|
+
readonly internalType: "uint256";
|
|
3253
|
+
readonly name: "lnImpliedRate";
|
|
3254
|
+
readonly type: "uint256";
|
|
3255
|
+
}, {
|
|
3256
|
+
readonly internalType: "uint256";
|
|
3257
|
+
readonly name: "failSafeRate";
|
|
3258
|
+
readonly type: "uint256";
|
|
3259
|
+
}, {
|
|
3260
|
+
readonly internalType: "bytes";
|
|
3261
|
+
readonly name: "permit";
|
|
3262
|
+
readonly type: "bytes";
|
|
3263
|
+
}];
|
|
3264
|
+
}, {
|
|
3265
|
+
readonly internalType: "bytes";
|
|
3266
|
+
readonly name: "signature";
|
|
3267
|
+
readonly type: "bytes";
|
|
3268
|
+
}, {
|
|
3269
|
+
readonly internalType: "uint256";
|
|
3270
|
+
readonly name: "makingAmount";
|
|
3271
|
+
readonly type: "uint256";
|
|
3272
|
+
}];
|
|
3273
|
+
}, {
|
|
3274
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
3275
|
+
readonly name: "flashFills";
|
|
3276
|
+
readonly type: "tuple[]";
|
|
3277
|
+
readonly components: readonly [{
|
|
3278
|
+
readonly internalType: "struct Order";
|
|
3279
|
+
readonly name: "order";
|
|
3280
|
+
readonly type: "tuple";
|
|
3281
|
+
readonly components: readonly [{
|
|
3282
|
+
readonly internalType: "uint256";
|
|
3283
|
+
readonly name: "salt";
|
|
3284
|
+
readonly type: "uint256";
|
|
3285
|
+
}, {
|
|
3286
|
+
readonly internalType: "uint256";
|
|
3287
|
+
readonly name: "expiry";
|
|
3288
|
+
readonly type: "uint256";
|
|
3289
|
+
}, {
|
|
3290
|
+
readonly internalType: "uint256";
|
|
3291
|
+
readonly name: "nonce";
|
|
3292
|
+
readonly type: "uint256";
|
|
3293
|
+
}, {
|
|
3294
|
+
readonly internalType: "enum OrderType";
|
|
3295
|
+
readonly name: "orderType";
|
|
3296
|
+
readonly type: "uint8";
|
|
3297
|
+
}, {
|
|
3298
|
+
readonly internalType: "address";
|
|
3299
|
+
readonly name: "token";
|
|
3300
|
+
readonly type: "address";
|
|
3301
|
+
}, {
|
|
3302
|
+
readonly internalType: "address";
|
|
3303
|
+
readonly name: "YT";
|
|
3304
|
+
readonly type: "address";
|
|
3305
|
+
}, {
|
|
3306
|
+
readonly internalType: "address";
|
|
3307
|
+
readonly name: "maker";
|
|
3308
|
+
readonly type: "address";
|
|
3309
|
+
}, {
|
|
3310
|
+
readonly internalType: "address";
|
|
3311
|
+
readonly name: "receiver";
|
|
3312
|
+
readonly type: "address";
|
|
3313
|
+
}, {
|
|
3314
|
+
readonly internalType: "uint256";
|
|
3315
|
+
readonly name: "makingAmount";
|
|
3316
|
+
readonly type: "uint256";
|
|
3317
|
+
}, {
|
|
3318
|
+
readonly internalType: "uint256";
|
|
3319
|
+
readonly name: "lnImpliedRate";
|
|
3320
|
+
readonly type: "uint256";
|
|
3321
|
+
}, {
|
|
3322
|
+
readonly internalType: "uint256";
|
|
3323
|
+
readonly name: "failSafeRate";
|
|
3324
|
+
readonly type: "uint256";
|
|
3325
|
+
}, {
|
|
3326
|
+
readonly internalType: "bytes";
|
|
3327
|
+
readonly name: "permit";
|
|
3328
|
+
readonly type: "bytes";
|
|
3329
|
+
}];
|
|
3330
|
+
}, {
|
|
3331
|
+
readonly internalType: "bytes";
|
|
3332
|
+
readonly name: "signature";
|
|
3333
|
+
readonly type: "bytes";
|
|
3334
|
+
}, {
|
|
3335
|
+
readonly internalType: "uint256";
|
|
3336
|
+
readonly name: "makingAmount";
|
|
3337
|
+
readonly type: "uint256";
|
|
3338
|
+
}];
|
|
3339
|
+
}, {
|
|
3340
|
+
readonly internalType: "bytes";
|
|
3341
|
+
readonly name: "optData";
|
|
3342
|
+
readonly type: "bytes";
|
|
3343
|
+
}];
|
|
3344
|
+
}];
|
|
3345
|
+
readonly name: "removeLiquiditySingleSy";
|
|
3346
|
+
readonly outputs: readonly [{
|
|
3347
|
+
readonly internalType: "uint256";
|
|
3348
|
+
readonly name: "netSyOut";
|
|
3349
|
+
readonly type: "uint256";
|
|
3350
|
+
}, {
|
|
3351
|
+
readonly internalType: "uint256";
|
|
3352
|
+
readonly name: "netSyFee";
|
|
3353
|
+
readonly type: "uint256";
|
|
3354
|
+
}];
|
|
3355
|
+
readonly stateMutability: "nonpayable";
|
|
3356
|
+
readonly type: "function";
|
|
3357
|
+
}, {
|
|
3358
|
+
readonly inputs: readonly [{
|
|
3359
|
+
readonly internalType: "address";
|
|
3360
|
+
readonly name: "receiver";
|
|
3361
|
+
readonly type: "address";
|
|
3362
|
+
}, {
|
|
3363
|
+
readonly internalType: "address";
|
|
3364
|
+
readonly name: "market";
|
|
3365
|
+
readonly type: "address";
|
|
3366
|
+
}, {
|
|
3367
|
+
readonly internalType: "uint256";
|
|
3368
|
+
readonly name: "netLpToRemove";
|
|
3369
|
+
readonly type: "uint256";
|
|
3370
|
+
}, {
|
|
3371
|
+
readonly internalType: "uint256";
|
|
3372
|
+
readonly name: "minPtOut";
|
|
3373
|
+
readonly type: "uint256";
|
|
3374
|
+
}, {
|
|
3375
|
+
readonly internalType: "struct ApproxParams";
|
|
3376
|
+
readonly name: "guess";
|
|
3377
|
+
readonly type: "tuple";
|
|
3378
|
+
readonly components: readonly [{
|
|
3379
|
+
readonly internalType: "uint256";
|
|
3380
|
+
readonly name: "guessMin";
|
|
3381
|
+
readonly type: "uint256";
|
|
3382
|
+
}, {
|
|
3383
|
+
readonly internalType: "uint256";
|
|
3384
|
+
readonly name: "guessMax";
|
|
3385
|
+
readonly type: "uint256";
|
|
3386
|
+
}, {
|
|
3387
|
+
readonly internalType: "uint256";
|
|
3388
|
+
readonly name: "guessOffchain";
|
|
3389
|
+
readonly type: "uint256";
|
|
3390
|
+
}, {
|
|
3391
|
+
readonly internalType: "uint256";
|
|
3392
|
+
readonly name: "maxIteration";
|
|
3393
|
+
readonly type: "uint256";
|
|
3394
|
+
}, {
|
|
3395
|
+
readonly internalType: "uint256";
|
|
3396
|
+
readonly name: "eps";
|
|
3397
|
+
readonly type: "uint256";
|
|
3398
|
+
}];
|
|
3399
|
+
}, {
|
|
3400
|
+
readonly internalType: "struct LimitOrderData";
|
|
3401
|
+
readonly name: "limit";
|
|
3402
|
+
readonly type: "tuple";
|
|
3403
|
+
readonly components: readonly [{
|
|
3404
|
+
readonly internalType: "address";
|
|
3405
|
+
readonly name: "limitRouter";
|
|
3406
|
+
readonly type: "address";
|
|
3407
|
+
}, {
|
|
3408
|
+
readonly internalType: "uint256";
|
|
3409
|
+
readonly name: "epsSkipMarket";
|
|
3410
|
+
readonly type: "uint256";
|
|
3411
|
+
}, {
|
|
3412
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
3413
|
+
readonly name: "normalFills";
|
|
3414
|
+
readonly type: "tuple[]";
|
|
3415
|
+
readonly components: readonly [{
|
|
3416
|
+
readonly internalType: "struct Order";
|
|
3417
|
+
readonly name: "order";
|
|
3418
|
+
readonly type: "tuple";
|
|
3419
|
+
readonly components: readonly [{
|
|
3420
|
+
readonly internalType: "uint256";
|
|
3421
|
+
readonly name: "salt";
|
|
3422
|
+
readonly type: "uint256";
|
|
3423
|
+
}, {
|
|
3424
|
+
readonly internalType: "uint256";
|
|
3425
|
+
readonly name: "expiry";
|
|
3426
|
+
readonly type: "uint256";
|
|
3427
|
+
}, {
|
|
3428
|
+
readonly internalType: "uint256";
|
|
3429
|
+
readonly name: "nonce";
|
|
3430
|
+
readonly type: "uint256";
|
|
3431
|
+
}, {
|
|
3432
|
+
readonly internalType: "enum OrderType";
|
|
3433
|
+
readonly name: "orderType";
|
|
3434
|
+
readonly type: "uint8";
|
|
3435
|
+
}, {
|
|
3436
|
+
readonly internalType: "address";
|
|
3437
|
+
readonly name: "token";
|
|
3438
|
+
readonly type: "address";
|
|
3439
|
+
}, {
|
|
3440
|
+
readonly internalType: "address";
|
|
3441
|
+
readonly name: "YT";
|
|
3442
|
+
readonly type: "address";
|
|
3443
|
+
}, {
|
|
3444
|
+
readonly internalType: "address";
|
|
3445
|
+
readonly name: "maker";
|
|
3446
|
+
readonly type: "address";
|
|
3447
|
+
}, {
|
|
3448
|
+
readonly internalType: "address";
|
|
3449
|
+
readonly name: "receiver";
|
|
3450
|
+
readonly type: "address";
|
|
3451
|
+
}, {
|
|
3452
|
+
readonly internalType: "uint256";
|
|
3453
|
+
readonly name: "makingAmount";
|
|
3454
|
+
readonly type: "uint256";
|
|
3455
|
+
}, {
|
|
3456
|
+
readonly internalType: "uint256";
|
|
3457
|
+
readonly name: "lnImpliedRate";
|
|
3458
|
+
readonly type: "uint256";
|
|
3459
|
+
}, {
|
|
3460
|
+
readonly internalType: "uint256";
|
|
3461
|
+
readonly name: "failSafeRate";
|
|
3462
|
+
readonly type: "uint256";
|
|
3463
|
+
}, {
|
|
3464
|
+
readonly internalType: "bytes";
|
|
3465
|
+
readonly name: "permit";
|
|
3466
|
+
readonly type: "bytes";
|
|
3467
|
+
}];
|
|
3468
|
+
}, {
|
|
3469
|
+
readonly internalType: "bytes";
|
|
3470
|
+
readonly name: "signature";
|
|
3471
|
+
readonly type: "bytes";
|
|
3472
|
+
}, {
|
|
3473
|
+
readonly internalType: "uint256";
|
|
3474
|
+
readonly name: "makingAmount";
|
|
3475
|
+
readonly type: "uint256";
|
|
3476
|
+
}];
|
|
3477
|
+
}, {
|
|
3478
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
3479
|
+
readonly name: "flashFills";
|
|
3480
|
+
readonly type: "tuple[]";
|
|
3481
|
+
readonly components: readonly [{
|
|
3482
|
+
readonly internalType: "struct Order";
|
|
3483
|
+
readonly name: "order";
|
|
3484
|
+
readonly type: "tuple";
|
|
3485
|
+
readonly components: readonly [{
|
|
3486
|
+
readonly internalType: "uint256";
|
|
3487
|
+
readonly name: "salt";
|
|
3488
|
+
readonly type: "uint256";
|
|
3489
|
+
}, {
|
|
3490
|
+
readonly internalType: "uint256";
|
|
3491
|
+
readonly name: "expiry";
|
|
3492
|
+
readonly type: "uint256";
|
|
3493
|
+
}, {
|
|
3494
|
+
readonly internalType: "uint256";
|
|
3495
|
+
readonly name: "nonce";
|
|
3496
|
+
readonly type: "uint256";
|
|
3497
|
+
}, {
|
|
3498
|
+
readonly internalType: "enum OrderType";
|
|
3499
|
+
readonly name: "orderType";
|
|
3500
|
+
readonly type: "uint8";
|
|
3501
|
+
}, {
|
|
3502
|
+
readonly internalType: "address";
|
|
3503
|
+
readonly name: "token";
|
|
3504
|
+
readonly type: "address";
|
|
3505
|
+
}, {
|
|
3506
|
+
readonly internalType: "address";
|
|
3507
|
+
readonly name: "YT";
|
|
3508
|
+
readonly type: "address";
|
|
3509
|
+
}, {
|
|
3510
|
+
readonly internalType: "address";
|
|
3511
|
+
readonly name: "maker";
|
|
3512
|
+
readonly type: "address";
|
|
3513
|
+
}, {
|
|
3514
|
+
readonly internalType: "address";
|
|
3515
|
+
readonly name: "receiver";
|
|
3516
|
+
readonly type: "address";
|
|
3517
|
+
}, {
|
|
3518
|
+
readonly internalType: "uint256";
|
|
3519
|
+
readonly name: "makingAmount";
|
|
3520
|
+
readonly type: "uint256";
|
|
3521
|
+
}, {
|
|
3522
|
+
readonly internalType: "uint256";
|
|
3523
|
+
readonly name: "lnImpliedRate";
|
|
3524
|
+
readonly type: "uint256";
|
|
3525
|
+
}, {
|
|
3526
|
+
readonly internalType: "uint256";
|
|
3527
|
+
readonly name: "failSafeRate";
|
|
3528
|
+
readonly type: "uint256";
|
|
3529
|
+
}, {
|
|
3530
|
+
readonly internalType: "bytes";
|
|
3531
|
+
readonly name: "permit";
|
|
3532
|
+
readonly type: "bytes";
|
|
3533
|
+
}];
|
|
3534
|
+
}, {
|
|
3535
|
+
readonly internalType: "bytes";
|
|
3536
|
+
readonly name: "signature";
|
|
3537
|
+
readonly type: "bytes";
|
|
3538
|
+
}, {
|
|
3539
|
+
readonly internalType: "uint256";
|
|
3540
|
+
readonly name: "makingAmount";
|
|
3541
|
+
readonly type: "uint256";
|
|
3542
|
+
}];
|
|
3543
|
+
}, {
|
|
3544
|
+
readonly internalType: "bytes";
|
|
3545
|
+
readonly name: "optData";
|
|
3546
|
+
readonly type: "bytes";
|
|
3547
|
+
}];
|
|
3548
|
+
}];
|
|
3549
|
+
readonly name: "removeLiquiditySinglePt";
|
|
3550
|
+
readonly outputs: readonly [{
|
|
3551
|
+
readonly internalType: "uint256";
|
|
3552
|
+
readonly name: "netPtOut";
|
|
3553
|
+
readonly type: "uint256";
|
|
3554
|
+
}, {
|
|
3555
|
+
readonly internalType: "uint256";
|
|
3556
|
+
readonly name: "netSyFee";
|
|
3557
|
+
readonly type: "uint256";
|
|
3558
|
+
}];
|
|
3559
|
+
readonly stateMutability: "nonpayable";
|
|
3560
|
+
readonly type: "function";
|
|
3561
|
+
}, {
|
|
3562
|
+
readonly inputs: readonly [{
|
|
3563
|
+
readonly internalType: "address";
|
|
3564
|
+
readonly name: "receiver";
|
|
3565
|
+
readonly type: "address";
|
|
3566
|
+
}, {
|
|
3567
|
+
readonly internalType: "address";
|
|
3568
|
+
readonly name: "market";
|
|
3569
|
+
readonly type: "address";
|
|
3570
|
+
}, {
|
|
3571
|
+
readonly internalType: "uint256";
|
|
3572
|
+
readonly name: "netLpToRemove";
|
|
3573
|
+
readonly type: "uint256";
|
|
3574
|
+
}, {
|
|
3575
|
+
readonly internalType: "struct TokenOutput";
|
|
3576
|
+
readonly name: "output";
|
|
3577
|
+
readonly type: "tuple";
|
|
3578
|
+
readonly components: readonly [{
|
|
3579
|
+
readonly internalType: "address";
|
|
3580
|
+
readonly name: "tokenOut";
|
|
3581
|
+
readonly type: "address";
|
|
3582
|
+
}, {
|
|
3583
|
+
readonly internalType: "uint256";
|
|
3584
|
+
readonly name: "minTokenOut";
|
|
3585
|
+
readonly type: "uint256";
|
|
3586
|
+
}, {
|
|
3587
|
+
readonly internalType: "address";
|
|
3588
|
+
readonly name: "tokenRedeemSy";
|
|
3589
|
+
readonly type: "address";
|
|
3590
|
+
}, {
|
|
3591
|
+
readonly internalType: "address";
|
|
3592
|
+
readonly name: "pendleSwap";
|
|
3593
|
+
readonly type: "address";
|
|
3594
|
+
}, {
|
|
3595
|
+
readonly internalType: "struct SwapData";
|
|
3596
|
+
readonly name: "swapData";
|
|
3597
|
+
readonly type: "tuple";
|
|
3598
|
+
readonly components: readonly [{
|
|
3599
|
+
readonly internalType: "enum SwapType";
|
|
3600
|
+
readonly name: "swapType";
|
|
3601
|
+
readonly type: "uint8";
|
|
3602
|
+
}, {
|
|
3603
|
+
readonly internalType: "address";
|
|
3604
|
+
readonly name: "extRouter";
|
|
3605
|
+
readonly type: "address";
|
|
3606
|
+
}, {
|
|
3607
|
+
readonly internalType: "bytes";
|
|
3608
|
+
readonly name: "extCalldata";
|
|
3609
|
+
readonly type: "bytes";
|
|
3610
|
+
}, {
|
|
3611
|
+
readonly internalType: "bool";
|
|
3612
|
+
readonly name: "needScale";
|
|
3613
|
+
readonly type: "bool";
|
|
3614
|
+
}];
|
|
3615
|
+
}];
|
|
3616
|
+
}, {
|
|
3617
|
+
readonly internalType: "uint256";
|
|
3618
|
+
readonly name: "minPtOut";
|
|
3619
|
+
readonly type: "uint256";
|
|
3620
|
+
}];
|
|
3621
|
+
readonly name: "removeLiquidityDualTokenAndPt";
|
|
3622
|
+
readonly outputs: readonly [{
|
|
3623
|
+
readonly internalType: "uint256";
|
|
3624
|
+
readonly name: "netTokenOut";
|
|
3625
|
+
readonly type: "uint256";
|
|
3626
|
+
}, {
|
|
3627
|
+
readonly internalType: "uint256";
|
|
3628
|
+
readonly name: "netPtOut";
|
|
3629
|
+
readonly type: "uint256";
|
|
3630
|
+
}, {
|
|
3631
|
+
readonly internalType: "uint256";
|
|
3632
|
+
readonly name: "netSyFee";
|
|
3633
|
+
readonly type: "uint256";
|
|
3634
|
+
}, {
|
|
3635
|
+
readonly internalType: "uint256";
|
|
3636
|
+
readonly name: "netSyInterm";
|
|
3637
|
+
readonly type: "uint256";
|
|
3638
|
+
}];
|
|
3639
|
+
readonly stateMutability: "nonpayable";
|
|
3640
|
+
readonly type: "function";
|
|
3641
|
+
}, {
|
|
3642
|
+
readonly inputs: readonly [{
|
|
3643
|
+
readonly internalType: "address";
|
|
3644
|
+
readonly name: "receiver";
|
|
3645
|
+
readonly type: "address";
|
|
3646
|
+
}, {
|
|
3647
|
+
readonly internalType: "address";
|
|
3648
|
+
readonly name: "market";
|
|
3649
|
+
readonly type: "address";
|
|
3650
|
+
}, {
|
|
3651
|
+
readonly internalType: "uint256";
|
|
3652
|
+
readonly name: "netLpToRemove";
|
|
3653
|
+
readonly type: "uint256";
|
|
3654
|
+
}, {
|
|
3655
|
+
readonly internalType: "uint256";
|
|
3656
|
+
readonly name: "minSyOut";
|
|
3657
|
+
readonly type: "uint256";
|
|
3658
|
+
}, {
|
|
3659
|
+
readonly internalType: "uint256";
|
|
3660
|
+
readonly name: "minPtOut";
|
|
3661
|
+
readonly type: "uint256";
|
|
3662
|
+
}];
|
|
3663
|
+
readonly name: "removeLiquidityDualSyAndPt";
|
|
3664
|
+
readonly outputs: readonly [{
|
|
3665
|
+
readonly internalType: "uint256";
|
|
3666
|
+
readonly name: "netSyOut";
|
|
3667
|
+
readonly type: "uint256";
|
|
3668
|
+
}, {
|
|
3669
|
+
readonly internalType: "uint256";
|
|
3670
|
+
readonly name: "netPtOut";
|
|
3671
|
+
readonly type: "uint256";
|
|
3672
|
+
}, {
|
|
3673
|
+
readonly internalType: "uint256";
|
|
3674
|
+
readonly name: "netSyFee";
|
|
3675
|
+
readonly type: "uint256";
|
|
3676
|
+
}];
|
|
3677
|
+
readonly stateMutability: "nonpayable";
|
|
3678
|
+
readonly type: "function";
|
|
29
3679
|
}];
|
|
30
3680
|
export default _default;
|
|
31
3681
|
//# sourceMappingURL=pendle.router.abi.d.ts.map
|