@paraswap/dex-lib 3.8.13 → 3.8.14
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/.vscode/launch.json +53 -0
- package/.vscode/settings.json +2 -0
- package/.vscode/tasks.json +15 -0
- package/build/abi/maverick-v2/MaverickV2Router.json +778 -0
- package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
- package/build/abi/{fx-protocol/FxUSD.json → wombat/pool.json} +604 -542
- package/build/dex/aave-v1/aave-v1.js +1 -0
- package/build/dex/aave-v1/aave-v1.js.map +1 -1
- package/build/dex/aave-v2/tokens-avalanche.json +44 -0
- package/build/dex/aave-v2/tokens-mainnet.json +188 -0
- package/build/dex/aave-v2/tokens-polygon.json +44 -0
- package/build/dex/bProtocol.d.ts +18 -0
- package/build/dex/bProtocol.js +39 -0
- package/build/dex/bProtocol.js.map +1 -0
- package/build/dex/bancor.d.ts +26 -0
- package/build/dex/bancor.js +58 -0
- package/build/dex/bancor.js.map +1 -0
- package/build/dex/compound.d.ts +18 -0
- package/build/dex/compound.js +46 -0
- package/build/dex/compound.js.map +1 -0
- package/build/dex/curve-v2.d.ts +58 -0
- package/build/dex/curve-v2.js +180 -0
- package/build/dex/curve-v2.js.map +1 -0
- package/build/dex/dodo-v1.d.ts +33 -0
- package/build/dex/dodo-v1.js +63 -0
- package/build/dex/dodo-v1.js.map +1 -0
- package/build/dex/lido.d.ts +19 -0
- package/build/dex/lido.js +42 -0
- package/build/dex/lido.js.map +1 -0
- package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
- package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
- package/build/dex/maker-psm/scripts/validate-state.js +185 -0
- package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
- package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
- package/build/dex/onebit.d.ts +25 -0
- package/build/dex/onebit.js +42 -0
- package/build/dex/onebit.js.map +1 -0
- package/build/dex/platypus/platypus.js +17 -3
- package/build/dex/platypus/platypus.js.map +1 -1
- package/build/dex/smoothy.d.ts +26 -0
- package/build/dex/smoothy.js +48 -0
- package/build/dex/smoothy.js.map +1 -0
- package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
- package/build/dex/stable-pool.d.ts +28 -0
- package/build/dex/stable-pool.js +55 -0
- package/build/dex/stable-pool.js.map +1 -0
- package/build/dex/swaap-v1/swaap-v1.js +4 -0
- package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
- package/build/dex/trader-joe-v2.1/base.d.ts +18 -0
- package/build/dex/trader-joe-v2.1/base.js +99 -0
- package/build/dex/trader-joe-v2.1/base.js.map +1 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.2.d.ts +7 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js +20 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js.map +1 -0
- package/build/dex/trader-joe-v2.1.d.ts +43 -0
- package/build/dex/trader-joe-v2.1.js +79 -0
- package/build/dex/trader-joe-v2.1.js.map +1 -0
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
- package/build/executor/Executor01BytecodeBuilder.js +4 -5
- package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
- package/build/executor/Executor02BytecodeBuilder.js +2 -3
- package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
- package/build/executor/Executor03BytecodeBuilder.js +24 -14
- package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
- package/build/generic-swap-transaction-builder.d.ts +1 -1
- package/build/generic-swap-transaction-builder.js +10 -10
- package/build/generic-swap-transaction-builder.js.map +1 -1
- package/config.ts +1946 -0
- package/package.json +1 -1
- package/src/dex/dexs.txt +58 -0
- package/src/executor/Executor01BytecodeBuilder.ts +4 -8
- package/src/executor/Executor02BytecodeBuilder.ts +2 -7
- package/src/executor/Executor03BytecodeBuilder.ts +34 -19
- package/src/generic-swap-transaction-builder.ts +3 -5
- package/build/abi/concentrator/arUSD.json +0 -568
- package/build/abi/inception/inception-ineth-pool.json +0 -1062
- package/build/abi/inception/inception-ineth.json +0 -609
- package/build/abi/inception/inception-ratio-feed.json +0 -93
- package/build/abi/inception/inception-vault.json +0 -991
- package/build/abi/infusion/InfusionFactory.json +0 -147
- package/build/abi/infusion/InfusionPair.json +0 -658
- package/build/abi/infusion/InfusionRouter.json +0 -442
- package/build/abi/oswap/oswap.abi.json +0 -452
- package/build/dex/concentrator-arusd/concentrator-arusd.d.ts +0 -38
- package/build/dex/concentrator-arusd/concentrator-arusd.js +0 -184
- package/build/dex/concentrator-arusd/concentrator-arusd.js.map +0 -1
- package/build/dex/concentrator-arusd/config.d.ts +0 -4
- package/build/dex/concentrator-arusd/config.js +0 -18
- package/build/dex/concentrator-arusd/config.js.map +0 -1
- package/build/dex/concentrator-arusd/types.d.ts +0 -10
- package/build/dex/concentrator-arusd/types.js +0 -3
- package/build/dex/concentrator-arusd/types.js.map +0 -1
- package/build/dex/fx-protocol-rusd/config.d.ts +0 -4
- package/build/dex/fx-protocol-rusd/config.js +0 -18
- package/build/dex/fx-protocol-rusd/config.js.map +0 -1
- package/build/dex/fx-protocol-rusd/fx-protocol-rusd.d.ts +0 -39
- package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js +0 -196
- package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js.map +0 -1
- package/build/dex/fx-protocol-rusd/types.d.ts +0 -10
- package/build/dex/fx-protocol-rusd/types.js +0 -3
- package/build/dex/fx-protocol-rusd/types.js.map +0 -1
- package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
- package/build/dex/idle-dao/idle-dao-pool.js +0 -176
- package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
- package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
- package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
- package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
- package/build/dex/idle-dao/scripts.d.ts +0 -9
- package/build/dex/idle-dao/scripts.js +0 -552
- package/build/dex/idle-dao/scripts.js.map +0 -1
- package/build/dex/inception/config.d.ts +0 -5
- package/build/dex/inception/config.js +0 -112
- package/build/dex/inception/config.js.map +0 -1
- package/build/dex/inception/inception-event-pool.d.ts +0 -23
- package/build/dex/inception/inception-event-pool.js +0 -34
- package/build/dex/inception/inception-event-pool.js.map +0 -1
- package/build/dex/inception/inception-native.d.ts +0 -43
- package/build/dex/inception/inception-native.js +0 -131
- package/build/dex/inception/inception-native.js.map +0 -1
- package/build/dex/inception/inception-pool.d.ts +0 -18
- package/build/dex/inception/inception-pool.js +0 -32
- package/build/dex/inception/inception-pool.js.map +0 -1
- package/build/dex/inception/inception-price-feed.d.ts +0 -19
- package/build/dex/inception/inception-price-feed.js +0 -51
- package/build/dex/inception/inception-price-feed.js.map +0 -1
- package/build/dex/inception/inception.d.ts +0 -44
- package/build/dex/inception/inception.js +0 -162
- package/build/dex/inception/inception.js.map +0 -1
- package/build/dex/inception/tokens.d.ts +0 -9
- package/build/dex/inception/tokens.js +0 -28
- package/build/dex/inception/tokens.js.map +0 -1
- package/build/dex/inception/types.d.ts +0 -22
- package/build/dex/inception/types.js +0 -3
- package/build/dex/inception/types.js.map +0 -1
- package/build/dex/inception/utils.d.ts +0 -7
- package/build/dex/inception/utils.js +0 -58
- package/build/dex/inception/utils.js.map +0 -1
- package/build/dex/infusion/config.d.ts +0 -4
- package/build/dex/infusion/config.js +0 -25
- package/build/dex/infusion/config.js.map +0 -1
- package/build/dex/infusion/infusion-stable-pool.d.ts +0 -4
- package/build/dex/infusion/infusion-stable-pool.js +0 -74
- package/build/dex/infusion/infusion-stable-pool.js.map +0 -1
- package/build/dex/infusion/infusion.d.ts +0 -54
- package/build/dex/infusion/infusion.js +0 -532
- package/build/dex/infusion/infusion.js.map +0 -1
- package/build/dex/infusion/types.d.ts +0 -47
- package/build/dex/infusion/types.js +0 -3
- package/build/dex/infusion/types.js.map +0 -1
- package/build/dex/infusion/utils/isStablePair.d.ts +0 -2
- package/build/dex/infusion/utils/isStablePair.js +0 -18
- package/build/dex/infusion/utils/isStablePair.js.map +0 -1
- package/build/dex/oswap/config.d.ts +0 -5
- package/build/dex/oswap/config.js +0 -31
- package/build/dex/oswap/config.js.map +0 -1
- package/build/dex/oswap/oswap-pool.d.ts +0 -51
- package/build/dex/oswap/oswap-pool.js +0 -150
- package/build/dex/oswap/oswap-pool.js.map +0 -1
- package/build/dex/oswap/oswap.d.ts +0 -46
- package/build/dex/oswap/oswap.js +0 -263
- package/build/dex/oswap/oswap.js.map +0 -1
- package/build/dex/oswap/types.d.ts +0 -20
- package/build/dex/oswap/types.js +0 -3
- package/build/dex/oswap/types.js.map +0 -1
|
@@ -1,452 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"inputs": [],
|
|
4
|
-
"stateMutability": "nonpayable",
|
|
5
|
-
"type": "constructor"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"anonymous": false,
|
|
9
|
-
"inputs": [
|
|
10
|
-
{
|
|
11
|
-
"indexed": false,
|
|
12
|
-
"internalType": "address",
|
|
13
|
-
"name": "previousAdmin",
|
|
14
|
-
"type": "address"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"indexed": false,
|
|
18
|
-
"internalType": "address",
|
|
19
|
-
"name": "newAdmin",
|
|
20
|
-
"type": "address"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"name": "AdminChanged",
|
|
24
|
-
"type": "event"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"anonymous": false,
|
|
28
|
-
"inputs": [
|
|
29
|
-
{
|
|
30
|
-
"indexed": false,
|
|
31
|
-
"internalType": "address",
|
|
32
|
-
"name": "previousAdmin",
|
|
33
|
-
"type": "address"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"indexed": false,
|
|
37
|
-
"internalType": "address",
|
|
38
|
-
"name": "newAdmin",
|
|
39
|
-
"type": "address"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"name": "OperatorChanged",
|
|
43
|
-
"type": "event"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"anonymous": false,
|
|
47
|
-
"inputs": [
|
|
48
|
-
{
|
|
49
|
-
"indexed": false,
|
|
50
|
-
"internalType": "uint256",
|
|
51
|
-
"name": "traderate0",
|
|
52
|
-
"type": "uint256"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"indexed": false,
|
|
56
|
-
"internalType": "uint256",
|
|
57
|
-
"name": "traderate1",
|
|
58
|
-
"type": "uint256"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"name": "TraderateChanged",
|
|
62
|
-
"type": "event"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"inputs": [],
|
|
66
|
-
"name": "approveStETH",
|
|
67
|
-
"outputs": [],
|
|
68
|
-
"stateMutability": "nonpayable",
|
|
69
|
-
"type": "function"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"inputs": [
|
|
73
|
-
{
|
|
74
|
-
"internalType": "uint256[]",
|
|
75
|
-
"name": "requestIds",
|
|
76
|
-
"type": "uint256[]"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"name": "claimStETHWithdrawalForETH",
|
|
80
|
-
"outputs": [],
|
|
81
|
-
"stateMutability": "nonpayable",
|
|
82
|
-
"type": "function"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"inputs": [
|
|
86
|
-
{
|
|
87
|
-
"internalType": "uint256[]",
|
|
88
|
-
"name": "requestIds",
|
|
89
|
-
"type": "uint256[]"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"name": "claimStETHWithdrawalForWETH",
|
|
93
|
-
"outputs": [],
|
|
94
|
-
"stateMutability": "nonpayable",
|
|
95
|
-
"type": "function"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"inputs": [
|
|
99
|
-
{
|
|
100
|
-
"internalType": "uint256",
|
|
101
|
-
"name": "amount",
|
|
102
|
-
"type": "uint256"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"name": "depositETHForStETH",
|
|
106
|
-
"outputs": [],
|
|
107
|
-
"stateMutability": "nonpayable",
|
|
108
|
-
"type": "function"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"inputs": [
|
|
112
|
-
{
|
|
113
|
-
"internalType": "uint256",
|
|
114
|
-
"name": "amount",
|
|
115
|
-
"type": "uint256"
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
"name": "depositWETHForStETH",
|
|
119
|
-
"outputs": [],
|
|
120
|
-
"stateMutability": "nonpayable",
|
|
121
|
-
"type": "function"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"inputs": [],
|
|
125
|
-
"name": "minimumFunds",
|
|
126
|
-
"outputs": [
|
|
127
|
-
{
|
|
128
|
-
"internalType": "uint256",
|
|
129
|
-
"name": "",
|
|
130
|
-
"type": "uint256"
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"stateMutability": "view",
|
|
134
|
-
"type": "function"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"inputs": [],
|
|
138
|
-
"name": "operator",
|
|
139
|
-
"outputs": [
|
|
140
|
-
{
|
|
141
|
-
"internalType": "address",
|
|
142
|
-
"name": "",
|
|
143
|
-
"type": "address"
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
"stateMutability": "view",
|
|
147
|
-
"type": "function"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"inputs": [],
|
|
151
|
-
"name": "owner",
|
|
152
|
-
"outputs": [
|
|
153
|
-
{
|
|
154
|
-
"internalType": "address",
|
|
155
|
-
"name": "",
|
|
156
|
-
"type": "address"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"stateMutability": "view",
|
|
160
|
-
"type": "function"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"inputs": [
|
|
164
|
-
{
|
|
165
|
-
"internalType": "uint256[]",
|
|
166
|
-
"name": "amounts",
|
|
167
|
-
"type": "uint256[]"
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
"name": "requestStETHWithdrawalForETH",
|
|
171
|
-
"outputs": [
|
|
172
|
-
{
|
|
173
|
-
"internalType": "uint256[]",
|
|
174
|
-
"name": "requestIds",
|
|
175
|
-
"type": "uint256[]"
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
"stateMutability": "nonpayable",
|
|
179
|
-
"type": "function"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"inputs": [
|
|
183
|
-
{
|
|
184
|
-
"internalType": "uint256",
|
|
185
|
-
"name": "_minimumFunds",
|
|
186
|
-
"type": "uint256"
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"name": "setMinimumFunds",
|
|
190
|
-
"outputs": [],
|
|
191
|
-
"stateMutability": "nonpayable",
|
|
192
|
-
"type": "function"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"inputs": [
|
|
196
|
-
{
|
|
197
|
-
"internalType": "address",
|
|
198
|
-
"name": "newOperator",
|
|
199
|
-
"type": "address"
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
"name": "setOperator",
|
|
203
|
-
"outputs": [],
|
|
204
|
-
"stateMutability": "nonpayable",
|
|
205
|
-
"type": "function"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"inputs": [
|
|
209
|
-
{
|
|
210
|
-
"internalType": "address",
|
|
211
|
-
"name": "newOwner",
|
|
212
|
-
"type": "address"
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
"name": "setOwner",
|
|
216
|
-
"outputs": [],
|
|
217
|
-
"stateMutability": "nonpayable",
|
|
218
|
-
"type": "function"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"inputs": [
|
|
222
|
-
{
|
|
223
|
-
"internalType": "uint256",
|
|
224
|
-
"name": "buyT1",
|
|
225
|
-
"type": "uint256"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"internalType": "uint256",
|
|
229
|
-
"name": "sellT1",
|
|
230
|
-
"type": "uint256"
|
|
231
|
-
}
|
|
232
|
-
],
|
|
233
|
-
"name": "setPrices",
|
|
234
|
-
"outputs": [],
|
|
235
|
-
"stateMutability": "nonpayable",
|
|
236
|
-
"type": "function"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"inputs": [],
|
|
240
|
-
"name": "steth",
|
|
241
|
-
"outputs": [
|
|
242
|
-
{
|
|
243
|
-
"internalType": "contract IERC20",
|
|
244
|
-
"name": "",
|
|
245
|
-
"type": "address"
|
|
246
|
-
}
|
|
247
|
-
],
|
|
248
|
-
"stateMutability": "view",
|
|
249
|
-
"type": "function"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"inputs": [
|
|
253
|
-
{
|
|
254
|
-
"internalType": "uint256",
|
|
255
|
-
"name": "amountIn",
|
|
256
|
-
"type": "uint256"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"internalType": "uint256",
|
|
260
|
-
"name": "amountOutMin",
|
|
261
|
-
"type": "uint256"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"internalType": "address[]",
|
|
265
|
-
"name": "path",
|
|
266
|
-
"type": "address[]"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"internalType": "address",
|
|
270
|
-
"name": "to",
|
|
271
|
-
"type": "address"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"internalType": "uint256",
|
|
275
|
-
"name": "deadline",
|
|
276
|
-
"type": "uint256"
|
|
277
|
-
}
|
|
278
|
-
],
|
|
279
|
-
"name": "swapExactTokensForTokens",
|
|
280
|
-
"outputs": [
|
|
281
|
-
{
|
|
282
|
-
"internalType": "uint256[]",
|
|
283
|
-
"name": "amounts",
|
|
284
|
-
"type": "uint256[]"
|
|
285
|
-
}
|
|
286
|
-
],
|
|
287
|
-
"stateMutability": "nonpayable",
|
|
288
|
-
"type": "function"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"inputs": [
|
|
292
|
-
{
|
|
293
|
-
"internalType": "uint256",
|
|
294
|
-
"name": "amountOut",
|
|
295
|
-
"type": "uint256"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"internalType": "uint256",
|
|
299
|
-
"name": "amountInMax",
|
|
300
|
-
"type": "uint256"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"internalType": "address[]",
|
|
304
|
-
"name": "path",
|
|
305
|
-
"type": "address[]"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"internalType": "address",
|
|
309
|
-
"name": "to",
|
|
310
|
-
"type": "address"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"internalType": "uint256",
|
|
314
|
-
"name": "deadline",
|
|
315
|
-
"type": "uint256"
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"name": "swapTokensForExactTokens",
|
|
319
|
-
"outputs": [
|
|
320
|
-
{
|
|
321
|
-
"internalType": "uint256[]",
|
|
322
|
-
"name": "amounts",
|
|
323
|
-
"type": "uint256[]"
|
|
324
|
-
}
|
|
325
|
-
],
|
|
326
|
-
"stateMutability": "nonpayable",
|
|
327
|
-
"type": "function"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"inputs": [],
|
|
331
|
-
"name": "token0",
|
|
332
|
-
"outputs": [
|
|
333
|
-
{
|
|
334
|
-
"internalType": "contract IERC20",
|
|
335
|
-
"name": "",
|
|
336
|
-
"type": "address"
|
|
337
|
-
}
|
|
338
|
-
],
|
|
339
|
-
"stateMutability": "view",
|
|
340
|
-
"type": "function"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"inputs": [],
|
|
344
|
-
"name": "token1",
|
|
345
|
-
"outputs": [
|
|
346
|
-
{
|
|
347
|
-
"internalType": "contract IERC20",
|
|
348
|
-
"name": "",
|
|
349
|
-
"type": "address"
|
|
350
|
-
}
|
|
351
|
-
],
|
|
352
|
-
"stateMutability": "view",
|
|
353
|
-
"type": "function"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"inputs": [],
|
|
357
|
-
"name": "traderate0",
|
|
358
|
-
"outputs": [
|
|
359
|
-
{
|
|
360
|
-
"internalType": "uint256",
|
|
361
|
-
"name": "",
|
|
362
|
-
"type": "uint256"
|
|
363
|
-
}
|
|
364
|
-
],
|
|
365
|
-
"stateMutability": "view",
|
|
366
|
-
"type": "function"
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
"inputs": [],
|
|
370
|
-
"name": "traderate1",
|
|
371
|
-
"outputs": [
|
|
372
|
-
{
|
|
373
|
-
"internalType": "uint256",
|
|
374
|
-
"name": "",
|
|
375
|
-
"type": "uint256"
|
|
376
|
-
}
|
|
377
|
-
],
|
|
378
|
-
"stateMutability": "view",
|
|
379
|
-
"type": "function"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"inputs": [
|
|
383
|
-
{
|
|
384
|
-
"internalType": "address",
|
|
385
|
-
"name": "to",
|
|
386
|
-
"type": "address"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
"internalType": "uint256",
|
|
390
|
-
"name": "amount",
|
|
391
|
-
"type": "uint256"
|
|
392
|
-
}
|
|
393
|
-
],
|
|
394
|
-
"name": "transferEth",
|
|
395
|
-
"outputs": [],
|
|
396
|
-
"stateMutability": "nonpayable",
|
|
397
|
-
"type": "function"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
"inputs": [
|
|
401
|
-
{
|
|
402
|
-
"internalType": "address",
|
|
403
|
-
"name": "token",
|
|
404
|
-
"type": "address"
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
"internalType": "address",
|
|
408
|
-
"name": "to",
|
|
409
|
-
"type": "address"
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
"internalType": "uint256",
|
|
413
|
-
"name": "amount",
|
|
414
|
-
"type": "uint256"
|
|
415
|
-
}
|
|
416
|
-
],
|
|
417
|
-
"name": "transferToken",
|
|
418
|
-
"outputs": [],
|
|
419
|
-
"stateMutability": "nonpayable",
|
|
420
|
-
"type": "function"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
"inputs": [],
|
|
424
|
-
"name": "weth",
|
|
425
|
-
"outputs": [
|
|
426
|
-
{
|
|
427
|
-
"internalType": "contract IWEth",
|
|
428
|
-
"name": "",
|
|
429
|
-
"type": "address"
|
|
430
|
-
}
|
|
431
|
-
],
|
|
432
|
-
"stateMutability": "view",
|
|
433
|
-
"type": "function"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"inputs": [],
|
|
437
|
-
"name": "withdrawal",
|
|
438
|
-
"outputs": [
|
|
439
|
-
{
|
|
440
|
-
"internalType": "contract IStETHWithdrawal",
|
|
441
|
-
"name": "",
|
|
442
|
-
"type": "address"
|
|
443
|
-
}
|
|
444
|
-
],
|
|
445
|
-
"stateMutability": "view",
|
|
446
|
-
"type": "function"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"stateMutability": "payable",
|
|
450
|
-
"type": "receive"
|
|
451
|
-
}
|
|
452
|
-
]
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Token, Address, ExchangePrices, PoolPrices, AdapterExchangeParam, PoolLiquidity, Logger, NumberAsString, DexExchangeParam } from '../../types';
|
|
2
|
-
import { SwapSide, Network } from '../../constants';
|
|
3
|
-
import { Context, IDex } from '../../dex/idex';
|
|
4
|
-
import { IDexHelper } from '../../dex-helper/idex-helper';
|
|
5
|
-
import { ConcentratorArusdData, DexParams } from './types';
|
|
6
|
-
import { SimpleExchange } from '../simple-exchange';
|
|
7
|
-
import { Interface } from '@ethersproject/abi';
|
|
8
|
-
export declare class ConcentratorArusd extends SimpleExchange implements IDex<ConcentratorArusdData> {
|
|
9
|
-
readonly network: Network;
|
|
10
|
-
readonly dexKey: string;
|
|
11
|
-
readonly dexHelper: IDexHelper;
|
|
12
|
-
protected adapters: import("../../types").AdapterMappings;
|
|
13
|
-
static readonly arUSDIface: Interface;
|
|
14
|
-
protected config: DexParams;
|
|
15
|
-
readonly hasConstantPriceLargeAmounts = true;
|
|
16
|
-
readonly needWrapNative = true;
|
|
17
|
-
readonly isFeeOnTransferSupported = false;
|
|
18
|
-
static dexKeysWithNetwork: {
|
|
19
|
-
key: string;
|
|
20
|
-
networks: Network[];
|
|
21
|
-
}[];
|
|
22
|
-
logger: Logger;
|
|
23
|
-
constructor(network: Network, dexKey: string, dexHelper: IDexHelper, adapters?: import("../../types").AdapterMappings);
|
|
24
|
-
is_arUSD(token: string): boolean;
|
|
25
|
-
is_rUSD(token: string): boolean;
|
|
26
|
-
is_weETH(token: string): boolean;
|
|
27
|
-
is_arUSD_swap_token(srcToken: string, destToken: string): boolean;
|
|
28
|
-
getAdapters(side: SwapSide): {
|
|
29
|
-
name: string;
|
|
30
|
-
index: number;
|
|
31
|
-
}[] | null;
|
|
32
|
-
getPoolIdentifiers(srcToken: Token, destToken: Token, side: SwapSide, blockNumber: number): Promise<string[]>;
|
|
33
|
-
getPricesVolume(srcToken: Token, destToken: Token, amounts: bigint[], side: SwapSide, blockNumber: number, limitPools?: string[]): Promise<null | ExchangePrices<ConcentratorArusdData>>;
|
|
34
|
-
getCalldataGasCost(poolPrices: PoolPrices<ConcentratorArusdData>): number | number[];
|
|
35
|
-
getAdapterParam(srcToken: string, destToken: string, srcAmount: string, destAmount: string, data: ConcentratorArusdData, side: SwapSide): AdapterExchangeParam;
|
|
36
|
-
getDexParam(srcToken: Address, destToken: Address, srcAmount: NumberAsString, destAmount: NumberAsString, recipient: Address, data: ConcentratorArusdData, side: SwapSide, context: Context, executorAddress: Address): Promise<DexExchangeParam>;
|
|
37
|
-
getTopPoolsForToken(tokenAddress: Address, limit: number): Promise<PoolLiquidity[]>;
|
|
38
|
-
}
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ConcentratorArusd = void 0;
|
|
30
|
-
const CALLDATA_GAS_COST = __importStar(require("../../calldata-gas-cost"));
|
|
31
|
-
const utils_1 = require("../../utils");
|
|
32
|
-
const simple_exchange_1 = require("../simple-exchange");
|
|
33
|
-
const config_1 = require("./config");
|
|
34
|
-
const abi_1 = require("@ethersproject/abi");
|
|
35
|
-
const arUSD_json_1 = __importDefault(require("../../abi/concentrator/arUSD.json"));
|
|
36
|
-
const utils_2 = require("../../executor/utils");
|
|
37
|
-
class ConcentratorArusd extends simple_exchange_1.SimpleExchange {
|
|
38
|
-
constructor(network, dexKey, dexHelper, adapters = config_1.Adapters[network] || {}) {
|
|
39
|
-
super(dexHelper, dexKey);
|
|
40
|
-
this.network = network;
|
|
41
|
-
this.dexKey = dexKey;
|
|
42
|
-
this.dexHelper = dexHelper;
|
|
43
|
-
this.adapters = adapters;
|
|
44
|
-
this.hasConstantPriceLargeAmounts = true;
|
|
45
|
-
this.needWrapNative = true;
|
|
46
|
-
this.isFeeOnTransferSupported = false;
|
|
47
|
-
const config = config_1.ConcentratorArusdConfig[dexKey][network];
|
|
48
|
-
this.config = {
|
|
49
|
-
rUSDAddress: config.rUSDAddress.toLowerCase(),
|
|
50
|
-
arUSDAddress: config.arUSDAddress.toLowerCase(),
|
|
51
|
-
weETHAddress: config.weETHAddress.toLowerCase(),
|
|
52
|
-
};
|
|
53
|
-
this.logger = dexHelper.getLogger(dexKey);
|
|
54
|
-
}
|
|
55
|
-
is_arUSD(token) {
|
|
56
|
-
return token.toLowerCase() === this.config.arUSDAddress;
|
|
57
|
-
}
|
|
58
|
-
is_rUSD(token) {
|
|
59
|
-
return token.toLowerCase() === this.config.rUSDAddress;
|
|
60
|
-
}
|
|
61
|
-
is_weETH(token) {
|
|
62
|
-
return token.toLowerCase() === this.config.weETHAddress;
|
|
63
|
-
}
|
|
64
|
-
is_arUSD_swap_token(srcToken, destToken) {
|
|
65
|
-
if (this.is_rUSD(srcToken) && this.is_arUSD(destToken)) {
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
if (this.is_arUSD(srcToken) && this.is_rUSD(destToken)) {
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
if (this.is_arUSD(srcToken) && this.is_weETH(destToken)) {
|
|
72
|
-
return true;
|
|
73
|
-
}
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
getAdapters(side) {
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
async getPoolIdentifiers(srcToken, destToken, side, blockNumber) {
|
|
80
|
-
if (!this.is_arUSD_swap_token(srcToken.address, destToken.address)) {
|
|
81
|
-
return [];
|
|
82
|
-
}
|
|
83
|
-
return [this.dexKey];
|
|
84
|
-
}
|
|
85
|
-
async getPricesVolume(srcToken, destToken, amounts, side, blockNumber, limitPools) {
|
|
86
|
-
const isArUSDSwapToken = this.is_arUSD_swap_token(srcToken.address, destToken.address);
|
|
87
|
-
if (!isArUSDSwapToken) {
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
// const readerCallData = [
|
|
91
|
-
// {
|
|
92
|
-
// target: this.config.arUSDAddress,
|
|
93
|
-
// callData: ConcentratorArusd.arUSDIface.encodeFunctionData('nav'),
|
|
94
|
-
// decodeFunction: uint256ToBigInt,
|
|
95
|
-
// },
|
|
96
|
-
// ];
|
|
97
|
-
// const results = await this.dexHelper.multiWrapper.tryAggregate<bigint>(
|
|
98
|
-
// true,
|
|
99
|
-
// readerCallData,
|
|
100
|
-
// blockNumber,
|
|
101
|
-
// );
|
|
102
|
-
return [
|
|
103
|
-
{
|
|
104
|
-
unit: 1000000000000000000n,
|
|
105
|
-
prices: amounts,
|
|
106
|
-
data: {},
|
|
107
|
-
poolAddresses: [this.config.arUSDAddress],
|
|
108
|
-
exchange: this.dexKey,
|
|
109
|
-
gasCost: 70000,
|
|
110
|
-
},
|
|
111
|
-
];
|
|
112
|
-
}
|
|
113
|
-
// Returns estimated gas cost of calldata for this DEX in multiSwap
|
|
114
|
-
getCalldataGasCost(poolPrices) {
|
|
115
|
-
return CALLDATA_GAS_COST.DEX_NO_PAYLOAD;
|
|
116
|
-
}
|
|
117
|
-
getAdapterParam(srcToken, destToken, srcAmount, destAmount, data, side) {
|
|
118
|
-
const payload = '0x';
|
|
119
|
-
return {
|
|
120
|
-
targetExchange: this.config.rUSDAddress,
|
|
121
|
-
payload,
|
|
122
|
-
networkFee: '0',
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
async getDexParam(srcToken, destToken, srcAmount, destAmount, recipient, data, side, context, executorAddress) {
|
|
126
|
-
const is_rUSD_src = this.is_rUSD(srcToken);
|
|
127
|
-
const is_arUSD_src = this.is_arUSD(srcToken);
|
|
128
|
-
const is_rUSD_dest = this.is_rUSD(destToken);
|
|
129
|
-
const is_arUSD_dest = this.is_arUSD(destToken);
|
|
130
|
-
const is_weETH_dest = this.is_weETH(destToken);
|
|
131
|
-
if (is_rUSD_src && is_arUSD_dest) {
|
|
132
|
-
const exchangeData = ConcentratorArusd.arUSDIface.encodeFunctionData('deposit', [srcAmount, recipient]);
|
|
133
|
-
return {
|
|
134
|
-
needWrapNative: false,
|
|
135
|
-
dexFuncHasRecipient: true,
|
|
136
|
-
exchangeData,
|
|
137
|
-
targetExchange: this.config.arUSDAddress,
|
|
138
|
-
returnAmountPos: (0, utils_2.extractReturnAmountPosition)(ConcentratorArusd.arUSDIface, 'deposit', 'shares'),
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
if (is_arUSD_src && is_rUSD_dest) {
|
|
142
|
-
const exchangeData = ConcentratorArusd.arUSDIface.encodeFunctionData('redeem', [srcAmount, recipient, executorAddress]);
|
|
143
|
-
return {
|
|
144
|
-
needWrapNative: false,
|
|
145
|
-
dexFuncHasRecipient: true,
|
|
146
|
-
exchangeData,
|
|
147
|
-
targetExchange: this.config.arUSDAddress,
|
|
148
|
-
returnAmountPos: (0, utils_2.extractReturnAmountPosition)(ConcentratorArusd.arUSDIface, 'redeem', 'assets'),
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
if (is_arUSD_src && is_weETH_dest) {
|
|
152
|
-
const exchangeData = ConcentratorArusd.arUSDIface.encodeFunctionData('redeemToBaseToken', [srcAmount, recipient, executorAddress, 0]);
|
|
153
|
-
return {
|
|
154
|
-
needWrapNative: false,
|
|
155
|
-
dexFuncHasRecipient: true,
|
|
156
|
-
exchangeData,
|
|
157
|
-
targetExchange: this.config.arUSDAddress,
|
|
158
|
-
returnAmountPos: (0, utils_2.extractReturnAmountPosition)(ConcentratorArusd.arUSDIface, 'redeemToBaseToken', 'assets'),
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
throw new Error('LOGIC ERROR');
|
|
162
|
-
}
|
|
163
|
-
// Returns list of top pools based on liquidity. Max
|
|
164
|
-
// limit number pools should be returned.
|
|
165
|
-
async getTopPoolsForToken(tokenAddress, limit) {
|
|
166
|
-
return [
|
|
167
|
-
{
|
|
168
|
-
exchange: this.dexKey,
|
|
169
|
-
address: this.config.arUSDAddress,
|
|
170
|
-
connectorTokens: [
|
|
171
|
-
{
|
|
172
|
-
decimals: 18,
|
|
173
|
-
address: this.config.arUSDAddress,
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
liquidityUSD: 1000000000, // Just returning a big number so this DEX will be preferred
|
|
177
|
-
},
|
|
178
|
-
];
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
exports.ConcentratorArusd = ConcentratorArusd;
|
|
182
|
-
ConcentratorArusd.arUSDIface = new abi_1.Interface(arUSD_json_1.default);
|
|
183
|
-
ConcentratorArusd.dexKeysWithNetwork = (0, utils_1.getDexKeysWithNetwork)(config_1.ConcentratorArusdConfig);
|
|
184
|
-
//# sourceMappingURL=concentrator-arusd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"concentrator-arusd.js","sourceRoot":"","sources":["../../../src/dex/concentrator-arusd/concentrator-arusd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,2EAA6D;AAC7D,uCAAoD;AAIpD,wDAAoD;AACpD,qCAA6D;AAC7D,4CAA+C;AAC/C,mFAA0D;AAC1D,gDAAmE;AAEnE,MAAa,iBACX,SAAQ,gCAAc;IAiBtB,YACW,OAAgB,EAChB,MAAc,EACd,SAAqB,EACpB,WAAW,iBAAQ,CAAC,OAAO,CAAC,IAAI,EAAE;QAE5C,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QALhB,YAAO,GAAP,OAAO,CAAS;QAChB,WAAM,GAAN,MAAM,CAAQ;QACd,cAAS,GAAT,SAAS,CAAY;QACpB,aAAQ,GAAR,QAAQ,CAA0B;QAdrC,iCAA4B,GAAG,IAAI,CAAC;QACpC,mBAAc,GAAG,IAAI,CAAC;QAEtB,6BAAwB,GAAG,KAAK,CAAC;QAcxC,MAAM,MAAM,GAAG,gCAAuB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,CAAC,MAAM,GAAG;YACZ,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,WAAW,EAAE;YAC7C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,WAAW,EAAE;YAC/C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,WAAW,EAAE;SAChD,CAAC;QACF,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAED,QAAQ,CAAC,KAAa;QACpB,OAAO,KAAK,CAAC,WAAW,EAAE,KAAK,IAAI,CAAC,MA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