@curvefi/api 2.51.0 → 2.51.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,1236 @@
1
- [{ "name": "Transfer", "inputs": [{ "name": "sender", "type": "address", "indexed": true }, { "name": "receiver", "type": "address", "indexed": true }, { "name": "value", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "Approval", "inputs": [{ "name": "owner", "type": "address", "indexed": true }, { "name": "spender", "type": "address", "indexed": true }, { "name": "value", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "TokenExchange", "inputs": [{ "name": "buyer", "type": "address", "indexed": true }, { "name": "sold_id", "type": "int128", "indexed": false }, { "name": "tokens_sold", "type": "uint256", "indexed": false }, { "name": "bought_id", "type": "int128", "indexed": false }, { "name": "tokens_bought", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "TokenExchangeUnderlying", "inputs": [{ "name": "buyer", "type": "address", "indexed": true }, { "name": "sold_id", "type": "int128", "indexed": false }, { "name": "tokens_sold", "type": "uint256", "indexed": false }, { "name": "bought_id", "type": "int128", "indexed": false }, { "name": "tokens_bought", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "AddLiquidity", "inputs": [{ "name": "provider", "type": "address", "indexed": true }, { "name": "token_amounts", "type": "uint256[]", "indexed": false }, { "name": "fees", "type": "uint256[]", "indexed": false }, { "name": "invariant", "type": "uint256", "indexed": false }, { "name": "token_supply", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "RemoveLiquidity", "inputs": [{ "name": "provider", "type": "address", "indexed": true }, { "name": "token_amounts", "type": "uint256[]", "indexed": false }, { "name": "fees", "type": "uint256[]", "indexed": false }, { "name": "token_supply", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "RemoveLiquidityOne", "inputs": [{ "name": "provider", "type": "address", "indexed": true }, { "name": "token_id", "type": "int128", "indexed": false }, { "name": "token_amount", "type": "uint256", "indexed": false }, { "name": "coin_amount", "type": "uint256", "indexed": false }, { "name": "token_supply", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "RemoveLiquidityImbalance", "inputs": [{ "name": "provider", "type": "address", "indexed": true }, { "name": "token_amounts", "type": "uint256[]", "indexed": false }, { "name": "fees", "type": "uint256[]", "indexed": false }, { "name": "invariant", "type": "uint256", "indexed": false }, { "name": "token_supply", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "RampA", "inputs": [{ "name": "old_A", "type": "uint256", "indexed": false }, { "name": "new_A", "type": "uint256", "indexed": false }, { "name": "initial_time", "type": "uint256", "indexed": false }, { "name": "future_time", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "StopRampA", "inputs": [{ "name": "A", "type": "uint256", "indexed": false }, { "name": "t", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "ApplyNewFee", "inputs": [{ "name": "fee", "type": "uint256", "indexed": false }, { "name": "offpeg_fee_multiplier", "type": "uint256", "indexed": false }], "anonymous": false, "type": "event" }, { "stateMutability": "nonpayable", "type": "constructor", "inputs": [{ "name": "_name", "type": "string" }, { "name": "_symbol", "type": "string" }, { "name": "_A", "type": "uint256" }, { "name": "_fee", "type": "uint256" }, { "name": "_offpeg_fee_multiplier", "type": "uint256" }, { "name": "_ma_exp_time", "type": "uint256" }, { "name": "_coins", "type": "address[]" }, { "name": "_rate_multipliers", "type": "uint256[]" }, { "name": "_asset_types", "type": "uint8[]" }, { "name": "_method_ids", "type": "bytes4[]" }, { "name": "_oracles", "type": "address[]" }], "outputs": [] }, { "stateMutability": "nonpayable", "type": "function", "name": "exchange", "inputs": [{ "name": "i", "type": "int128" }, { "name": "j", "type": "int128" }, { "name": "_dx", "type": "uint256" }, { "name": "_min_dy", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "exchange", "inputs": [{ "name": "i", "type": "int128" }, { "name": "j", "type": "int128" }, { "name": "_dx", "type": "uint256" }, { "name": "_min_dy", "type": "uint256" }, { "name": "_receiver", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "exchange_received", "inputs": [{ "name": "i", "type": "int128" }, { "name": "j", "type": "int128" }, { "name": "_dx", "type": "uint256" }, { "name": "_min_dy", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "exchange_received", "inputs": [{ "name": "i", "type": "int128" }, { "name": "j", "type": "int128" }, { "name": "_dx", "type": "uint256" }, { "name": "_min_dy", "type": "uint256" }, { "name": "_receiver", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "add_liquidity", "inputs": [{ "name": "_amounts", "type": "uint256[]" }, { "name": "_min_mint_amount", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "add_liquidity", "inputs": [{ "name": "_amounts", "type": "uint256[]" }, { "name": "_min_mint_amount", "type": "uint256" }, { "name": "_receiver", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "remove_liquidity_one_coin", "inputs": [{ "name": "_burn_amount", "type": "uint256" }, { "name": "i", "type": "int128" }, { "name": "_min_received", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "remove_liquidity_one_coin", "inputs": [{ "name": "_burn_amount", "type": "uint256" }, { "name": "i", "type": "int128" }, { "name": "_min_received", "type": "uint256" }, { "name": "_receiver", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "remove_liquidity_imbalance", "inputs": [{ "name": "_amounts", "type": "uint256[]" }, { "name": "_max_burn_amount", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "remove_liquidity_imbalance", "inputs": [{ "name": "_amounts", "type": "uint256[]" }, { "name": "_max_burn_amount", "type": "uint256" }, { "name": "_receiver", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "remove_liquidity", "inputs": [{ "name": "_burn_amount", "type": "uint256" }, { "name": "_min_amounts", "type": "uint256[]" }], "outputs": [{ "name": "", "type": "uint256[]" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "remove_liquidity", "inputs": [{ "name": "_burn_amount", "type": "uint256" }, { "name": "_min_amounts", "type": "uint256[]" }, { "name": "_receiver", "type": "address" }], "outputs": [{ "name": "", "type": "uint256[]" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "remove_liquidity", "inputs": [{ "name": "_burn_amount", "type": "uint256" }, { "name": "_min_amounts", "type": "uint256[]" }, { "name": "_receiver", "type": "address" }, { "name": "_claim_admin_fees", "type": "bool" }], "outputs": [{ "name": "", "type": "uint256[]" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "withdraw_admin_fees", "inputs": [], "outputs": [] }, { "stateMutability": "view", "type": "function", "name": "last_price", "inputs": [{ "name": "i", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "ema_price", "inputs": [{ "name": "i", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "get_p", "inputs": [{ "name": "i", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "price_oracle", "inputs": [{ "name": "i", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "D_oracle", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "transfer", "inputs": [{ "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], "outputs": [{ "name": "", "type": "bool" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "transferFrom", "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], "outputs": [{ "name": "", "type": "bool" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "approve", "inputs": [{ "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" }], "outputs": [{ "name": "", "type": "bool" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "permit", "inputs": [{ "name": "_owner", "type": "address" }, { "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" }, { "name": "_deadline", "type": "uint256" }, { "name": "_v", "type": "uint8" }, { "name": "_r", "type": "bytes32" }, { "name": "_s", "type": "bytes32" }], "outputs": [{ "name": "", "type": "bool" }] }, { "stateMutability": "view", "type": "function", "name": "DOMAIN_SEPARATOR", "inputs": [], "outputs": [{ "name": "", "type": "bytes32" }] }, { "stateMutability": "view", "type": "function", "name": "get_dx", "inputs": [{ "name": "i", "type": "int128" }, { "name": "j", "type": "int128" }, { "name": "dy", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "get_dy", "inputs": [{ "name": "i", "type": "int128" }, { "name": "j", "type": "int128" }, { "name": "dx", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "calc_withdraw_one_coin", "inputs": [{ "name": "_burn_amount", "type": "uint256" }, { "name": "i", "type": "int128" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "totalSupply", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "get_virtual_price", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "calc_token_amount", "inputs": [{ "name": "_amounts", "type": "uint256[]" }, { "name": "_is_deposit", "type": "bool" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "A", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "A_precise", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "balances", "inputs": [{ "name": "i", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "get_balances", "inputs": [], "outputs": [{ "name": "", "type": "uint256[]" }] }, { "stateMutability": "view", "type": "function", "name": "stored_rates", "inputs": [], "outputs": [{ "name": "", "type": "uint256[]" }] }, { "stateMutability": "view", "type": "function", "name": "dynamic_fee", "inputs": [{ "name": "i", "type": "int128" }, { "name": "j", "type": "int128" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "nonpayable", "type": "function", "name": "ramp_A", "inputs": [{ "name": "_future_A", "type": "uint256" }, { "name": "_future_time", "type": "uint256" }], "outputs": [] }, { "stateMutability": "nonpayable", "type": "function", "name": "stop_ramp_A", "inputs": [], "outputs": [] }, { "stateMutability": "nonpayable", "type": "function", "name": "set_new_fee", "inputs": [{ "name": "_new_fee", "type": "uint256" }, { "name": "_new_offpeg_fee_multiplier", "type": "uint256" }], "outputs": [] }, { "stateMutability": "nonpayable", "type": "function", "name": "set_ma_exp_time", "inputs": [{ "name": "_ma_exp_time", "type": "uint256" }, { "name": "_D_ma_time", "type": "uint256" }], "outputs": [] }, { "stateMutability": "view", "type": "function", "name": "N_COINS", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "coins", "inputs": [{ "name": "arg0", "type": "uint256" }], "outputs": [{ "name": "", "type": "address" }] }, { "stateMutability": "view", "type": "function", "name": "fee", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "offpeg_fee_multiplier", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "admin_fee", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "initial_A", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "future_A", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "initial_A_time", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "future_A_time", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "admin_balances", "inputs": [{ "name": "arg0", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "ma_exp_time", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "D_ma_time", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "ma_last_time", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "name", "inputs": [], "outputs": [{ "name": "", "type": "string" }] }, { "stateMutability": "view", "type": "function", "name": "symbol", "inputs": [], "outputs": [{ "name": "", "type": "string" }] }, { "stateMutability": "view", "type": "function", "name": "decimals", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }] }, { "stateMutability": "view", "type": "function", "name": "version", "inputs": [], "outputs": [{ "name": "", "type": "string" }] }, { "stateMutability": "view", "type": "function", "name": "balanceOf", "inputs": [{ "name": "arg0", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "allowance", "inputs": [{ "name": "arg0", "type": "address" }, { "name": "arg1", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "nonces", "inputs": [{ "name": "arg0", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }] }, { "stateMutability": "view", "type": "function", "name": "salt", "inputs": [], "outputs": [{ "name": "", "type": "bytes32" }] }]
1
+ [
2
+ {
3
+ "name": "Transfer",
4
+ "inputs": [
5
+ {
6
+ "name": "sender",
7
+ "type": "address",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "name": "receiver",
12
+ "type": "address",
13
+ "indexed": true
14
+ },
15
+ {
16
+ "name": "value",
17
+ "type": "uint256",
18
+ "indexed": false
19
+ }
20
+ ],
21
+ "anonymous": false,
22
+ "type": "event"
23
+ },
24
+ {
25
+ "name": "Approval",
26
+ "inputs": [
27
+ {
28
+ "name": "owner",
29
+ "type": "address",
30
+ "indexed": true
31
+ },
32
+ {
33
+ "name": "spender",
34
+ "type": "address",
35
+ "indexed": true
36
+ },
37
+ {
38
+ "name": "value",
39
+ "type": "uint256",
40
+ "indexed": false
41
+ }
42
+ ],
43
+ "anonymous": false,
44
+ "type": "event"
45
+ },
46
+ {
47
+ "name": "TokenExchange",
48
+ "inputs": [
49
+ {
50
+ "name": "buyer",
51
+ "type": "address",
52
+ "indexed": true
53
+ },
54
+ {
55
+ "name": "sold_id",
56
+ "type": "int128",
57
+ "indexed": false
58
+ },
59
+ {
60
+ "name": "tokens_sold",
61
+ "type": "uint256",
62
+ "indexed": false
63
+ },
64
+ {
65
+ "name": "bought_id",
66
+ "type": "int128",
67
+ "indexed": false
68
+ },
69
+ {
70
+ "name": "tokens_bought",
71
+ "type": "uint256",
72
+ "indexed": false
73
+ }
74
+ ],
75
+ "anonymous": false,
76
+ "type": "event"
77
+ },
78
+ {
79
+ "name": "TokenExchangeUnderlying",
80
+ "inputs": [
81
+ {
82
+ "name": "buyer",
83
+ "type": "address",
84
+ "indexed": true
85
+ },
86
+ {
87
+ "name": "sold_id",
88
+ "type": "int128",
89
+ "indexed": false
90
+ },
91
+ {
92
+ "name": "tokens_sold",
93
+ "type": "uint256",
94
+ "indexed": false
95
+ },
96
+ {
97
+ "name": "bought_id",
98
+ "type": "int128",
99
+ "indexed": false
100
+ },
101
+ {
102
+ "name": "tokens_bought",
103
+ "type": "uint256",
104
+ "indexed": false
105
+ }
106
+ ],
107
+ "anonymous": false,
108
+ "type": "event"
109
+ },
110
+ {
111
+ "name": "AddLiquidity",
112
+ "inputs": [
113
+ {
114
+ "name": "provider",
115
+ "type": "address",
116
+ "indexed": true
117
+ },
118
+ {
119
+ "name": "token_amounts",
120
+ "type": "uint256[]",
121
+ "indexed": false
122
+ },
123
+ {
124
+ "name": "fees",
125
+ "type": "uint256[]",
126
+ "indexed": false
127
+ },
128
+ {
129
+ "name": "invariant",
130
+ "type": "uint256",
131
+ "indexed": false
132
+ },
133
+ {
134
+ "name": "token_supply",
135
+ "type": "uint256",
136
+ "indexed": false
137
+ }
138
+ ],
139
+ "anonymous": false,
140
+ "type": "event"
141
+ },
142
+ {
143
+ "name": "RemoveLiquidity",
144
+ "inputs": [
145
+ {
146
+ "name": "provider",
147
+ "type": "address",
148
+ "indexed": true
149
+ },
150
+ {
151
+ "name": "token_amounts",
152
+ "type": "uint256[]",
153
+ "indexed": false
154
+ },
155
+ {
156
+ "name": "fees",
157
+ "type": "uint256[]",
158
+ "indexed": false
159
+ },
160
+ {
161
+ "name": "token_supply",
162
+ "type": "uint256",
163
+ "indexed": false
164
+ }
165
+ ],
166
+ "anonymous": false,
167
+ "type": "event"
168
+ },
169
+ {
170
+ "name": "RemoveLiquidityOne",
171
+ "inputs": [
172
+ {
173
+ "name": "provider",
174
+ "type": "address",
175
+ "indexed": true
176
+ },
177
+ {
178
+ "name": "token_id",
179
+ "type": "int128",
180
+ "indexed": false
181
+ },
182
+ {
183
+ "name": "token_amount",
184
+ "type": "uint256",
185
+ "indexed": false
186
+ },
187
+ {
188
+ "name": "coin_amount",
189
+ "type": "uint256",
190
+ "indexed": false
191
+ },
192
+ {
193
+ "name": "token_supply",
194
+ "type": "uint256",
195
+ "indexed": false
196
+ }
197
+ ],
198
+ "anonymous": false,
199
+ "type": "event"
200
+ },
201
+ {
202
+ "name": "RemoveLiquidityImbalance",
203
+ "inputs": [
204
+ {
205
+ "name": "provider",
206
+ "type": "address",
207
+ "indexed": true
208
+ },
209
+ {
210
+ "name": "token_amounts",
211
+ "type": "uint256[]",
212
+ "indexed": false
213
+ },
214
+ {
215
+ "name": "fees",
216
+ "type": "uint256[]",
217
+ "indexed": false
218
+ },
219
+ {
220
+ "name": "invariant",
221
+ "type": "uint256",
222
+ "indexed": false
223
+ },
224
+ {
225
+ "name": "token_supply",
226
+ "type": "uint256",
227
+ "indexed": false
228
+ }
229
+ ],
230
+ "anonymous": false,
231
+ "type": "event"
232
+ },
233
+ {
234
+ "name": "RampA",
235
+ "inputs": [
236
+ {
237
+ "name": "old_A",
238
+ "type": "uint256",
239
+ "indexed": false
240
+ },
241
+ {
242
+ "name": "new_A",
243
+ "type": "uint256",
244
+ "indexed": false
245
+ },
246
+ {
247
+ "name": "initial_time",
248
+ "type": "uint256",
249
+ "indexed": false
250
+ },
251
+ {
252
+ "name": "future_time",
253
+ "type": "uint256",
254
+ "indexed": false
255
+ }
256
+ ],
257
+ "anonymous": false,
258
+ "type": "event"
259
+ },
260
+ {
261
+ "name": "StopRampA",
262
+ "inputs": [
263
+ {
264
+ "name": "A",
265
+ "type": "uint256",
266
+ "indexed": false
267
+ },
268
+ {
269
+ "name": "t",
270
+ "type": "uint256",
271
+ "indexed": false
272
+ }
273
+ ],
274
+ "anonymous": false,
275
+ "type": "event"
276
+ },
277
+ {
278
+ "name": "ApplyNewFee",
279
+ "inputs": [
280
+ {
281
+ "name": "fee",
282
+ "type": "uint256",
283
+ "indexed": false
284
+ },
285
+ {
286
+ "name": "offpeg_fee_multiplier",
287
+ "type": "uint256",
288
+ "indexed": false
289
+ }
290
+ ],
291
+ "anonymous": false,
292
+ "type": "event"
293
+ },
294
+ {
295
+ "stateMutability": "nonpayable",
296
+ "type": "constructor",
297
+ "inputs": [
298
+ {
299
+ "name": "_name",
300
+ "type": "string"
301
+ },
302
+ {
303
+ "name": "_symbol",
304
+ "type": "string"
305
+ },
306
+ {
307
+ "name": "_A",
308
+ "type": "uint256"
309
+ },
310
+ {
311
+ "name": "_fee",
312
+ "type": "uint256"
313
+ },
314
+ {
315
+ "name": "_offpeg_fee_multiplier",
316
+ "type": "uint256"
317
+ },
318
+ {
319
+ "name": "_ma_exp_time",
320
+ "type": "uint256"
321
+ },
322
+ {
323
+ "name": "_coins",
324
+ "type": "address[]"
325
+ },
326
+ {
327
+ "name": "_rate_multipliers",
328
+ "type": "uint256[]"
329
+ },
330
+ {
331
+ "name": "_asset_types",
332
+ "type": "uint8[]"
333
+ },
334
+ {
335
+ "name": "_method_ids",
336
+ "type": "bytes4[]"
337
+ },
338
+ {
339
+ "name": "_oracles",
340
+ "type": "address[]"
341
+ }
342
+ ],
343
+ "outputs": []
344
+ },
345
+ {
346
+ "stateMutability": "nonpayable",
347
+ "type": "function",
348
+ "name": "exchange",
349
+ "inputs": [
350
+ {
351
+ "name": "i",
352
+ "type": "int128"
353
+ },
354
+ {
355
+ "name": "j",
356
+ "type": "int128"
357
+ },
358
+ {
359
+ "name": "_dx",
360
+ "type": "uint256"
361
+ },
362
+ {
363
+ "name": "_min_dy",
364
+ "type": "uint256"
365
+ }
366
+ ],
367
+ "outputs": [
368
+ {
369
+ "name": "",
370
+ "type": "uint256"
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "stateMutability": "nonpayable",
376
+ "type": "function",
377
+ "name": "exchange_received",
378
+ "inputs": [
379
+ {
380
+ "name": "i",
381
+ "type": "int128"
382
+ },
383
+ {
384
+ "name": "j",
385
+ "type": "int128"
386
+ },
387
+ {
388
+ "name": "_dx",
389
+ "type": "uint256"
390
+ },
391
+ {
392
+ "name": "_min_dy",
393
+ "type": "uint256"
394
+ }
395
+ ],
396
+ "outputs": [
397
+ {
398
+ "name": "",
399
+ "type": "uint256"
400
+ }
401
+ ]
402
+ },
403
+ {
404
+ "stateMutability": "nonpayable",
405
+ "type": "function",
406
+ "name": "add_liquidity",
407
+ "inputs": [
408
+ {
409
+ "name": "_amounts",
410
+ "type": "uint256[]"
411
+ },
412
+ {
413
+ "name": "_min_mint_amount",
414
+ "type": "uint256"
415
+ }
416
+ ],
417
+ "outputs": [
418
+ {
419
+ "name": "",
420
+ "type": "uint256"
421
+ }
422
+ ]
423
+ },
424
+ {
425
+ "stateMutability": "nonpayable",
426
+ "type": "function",
427
+ "name": "remove_liquidity_one_coin",
428
+ "inputs": [
429
+ {
430
+ "name": "_burn_amount",
431
+ "type": "uint256"
432
+ },
433
+ {
434
+ "name": "i",
435
+ "type": "int128"
436
+ },
437
+ {
438
+ "name": "_min_received",
439
+ "type": "uint256"
440
+ }
441
+ ],
442
+ "outputs": [
443
+ {
444
+ "name": "",
445
+ "type": "uint256"
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "stateMutability": "nonpayable",
451
+ "type": "function",
452
+ "name": "remove_liquidity_imbalance",
453
+ "inputs": [
454
+ {
455
+ "name": "_amounts",
456
+ "type": "uint256[]"
457
+ },
458
+ {
459
+ "name": "_max_burn_amount",
460
+ "type": "uint256"
461
+ }
462
+ ],
463
+ "outputs": [
464
+ {
465
+ "name": "",
466
+ "type": "uint256"
467
+ }
468
+ ]
469
+ },
470
+ {
471
+ "stateMutability": "nonpayable",
472
+ "type": "function",
473
+ "name": "remove_liquidity",
474
+ "inputs": [
475
+ {
476
+ "name": "_burn_amount",
477
+ "type": "uint256"
478
+ },
479
+ {
480
+ "name": "_min_amounts",
481
+ "type": "uint256[]"
482
+ }
483
+ ],
484
+ "outputs": [
485
+ {
486
+ "name": "",
487
+ "type": "uint256[]"
488
+ }
489
+ ]
490
+ },
491
+ {
492
+ "stateMutability": "nonpayable",
493
+ "type": "function",
494
+ "name": "withdraw_admin_fees",
495
+ "inputs": [],
496
+ "outputs": []
497
+ },
498
+ {
499
+ "stateMutability": "view",
500
+ "type": "function",
501
+ "name": "last_price",
502
+ "inputs": [
503
+ {
504
+ "name": "i",
505
+ "type": "uint256"
506
+ }
507
+ ],
508
+ "outputs": [
509
+ {
510
+ "name": "",
511
+ "type": "uint256"
512
+ }
513
+ ]
514
+ },
515
+ {
516
+ "stateMutability": "view",
517
+ "type": "function",
518
+ "name": "ema_price",
519
+ "inputs": [
520
+ {
521
+ "name": "i",
522
+ "type": "uint256"
523
+ }
524
+ ],
525
+ "outputs": [
526
+ {
527
+ "name": "",
528
+ "type": "uint256"
529
+ }
530
+ ]
531
+ },
532
+ {
533
+ "stateMutability": "view",
534
+ "type": "function",
535
+ "name": "get_p",
536
+ "inputs": [
537
+ {
538
+ "name": "i",
539
+ "type": "uint256"
540
+ }
541
+ ],
542
+ "outputs": [
543
+ {
544
+ "name": "",
545
+ "type": "uint256"
546
+ }
547
+ ]
548
+ },
549
+ {
550
+ "stateMutability": "view",
551
+ "type": "function",
552
+ "name": "price_oracle",
553
+ "inputs": [
554
+ {
555
+ "name": "i",
556
+ "type": "uint256"
557
+ }
558
+ ],
559
+ "outputs": [
560
+ {
561
+ "name": "",
562
+ "type": "uint256"
563
+ }
564
+ ]
565
+ },
566
+ {
567
+ "stateMutability": "view",
568
+ "type": "function",
569
+ "name": "D_oracle",
570
+ "inputs": [],
571
+ "outputs": [
572
+ {
573
+ "name": "",
574
+ "type": "uint256"
575
+ }
576
+ ]
577
+ },
578
+ {
579
+ "stateMutability": "nonpayable",
580
+ "type": "function",
581
+ "name": "transfer",
582
+ "inputs": [
583
+ {
584
+ "name": "_to",
585
+ "type": "address"
586
+ },
587
+ {
588
+ "name": "_value",
589
+ "type": "uint256"
590
+ }
591
+ ],
592
+ "outputs": [
593
+ {
594
+ "name": "",
595
+ "type": "bool"
596
+ }
597
+ ]
598
+ },
599
+ {
600
+ "stateMutability": "nonpayable",
601
+ "type": "function",
602
+ "name": "transferFrom",
603
+ "inputs": [
604
+ {
605
+ "name": "_from",
606
+ "type": "address"
607
+ },
608
+ {
609
+ "name": "_to",
610
+ "type": "address"
611
+ },
612
+ {
613
+ "name": "_value",
614
+ "type": "uint256"
615
+ }
616
+ ],
617
+ "outputs": [
618
+ {
619
+ "name": "",
620
+ "type": "bool"
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "stateMutability": "nonpayable",
626
+ "type": "function",
627
+ "name": "approve",
628
+ "inputs": [
629
+ {
630
+ "name": "_spender",
631
+ "type": "address"
632
+ },
633
+ {
634
+ "name": "_value",
635
+ "type": "uint256"
636
+ }
637
+ ],
638
+ "outputs": [
639
+ {
640
+ "name": "",
641
+ "type": "bool"
642
+ }
643
+ ]
644
+ },
645
+ {
646
+ "stateMutability": "nonpayable",
647
+ "type": "function",
648
+ "name": "permit",
649
+ "inputs": [
650
+ {
651
+ "name": "_owner",
652
+ "type": "address"
653
+ },
654
+ {
655
+ "name": "_spender",
656
+ "type": "address"
657
+ },
658
+ {
659
+ "name": "_value",
660
+ "type": "uint256"
661
+ },
662
+ {
663
+ "name": "_deadline",
664
+ "type": "uint256"
665
+ },
666
+ {
667
+ "name": "_v",
668
+ "type": "uint8"
669
+ },
670
+ {
671
+ "name": "_r",
672
+ "type": "bytes32"
673
+ },
674
+ {
675
+ "name": "_s",
676
+ "type": "bytes32"
677
+ }
678
+ ],
679
+ "outputs": [
680
+ {
681
+ "name": "",
682
+ "type": "bool"
683
+ }
684
+ ]
685
+ },
686
+ {
687
+ "stateMutability": "view",
688
+ "type": "function",
689
+ "name": "DOMAIN_SEPARATOR",
690
+ "inputs": [],
691
+ "outputs": [
692
+ {
693
+ "name": "",
694
+ "type": "bytes32"
695
+ }
696
+ ]
697
+ },
698
+ {
699
+ "stateMutability": "view",
700
+ "type": "function",
701
+ "name": "get_dx",
702
+ "inputs": [
703
+ {
704
+ "name": "i",
705
+ "type": "int128"
706
+ },
707
+ {
708
+ "name": "j",
709
+ "type": "int128"
710
+ },
711
+ {
712
+ "name": "dy",
713
+ "type": "uint256"
714
+ }
715
+ ],
716
+ "outputs": [
717
+ {
718
+ "name": "",
719
+ "type": "uint256"
720
+ }
721
+ ]
722
+ },
723
+ {
724
+ "stateMutability": "view",
725
+ "type": "function",
726
+ "name": "get_dy",
727
+ "inputs": [
728
+ {
729
+ "name": "i",
730
+ "type": "int128"
731
+ },
732
+ {
733
+ "name": "j",
734
+ "type": "int128"
735
+ },
736
+ {
737
+ "name": "dx",
738
+ "type": "uint256"
739
+ }
740
+ ],
741
+ "outputs": [
742
+ {
743
+ "name": "",
744
+ "type": "uint256"
745
+ }
746
+ ]
747
+ },
748
+ {
749
+ "stateMutability": "view",
750
+ "type": "function",
751
+ "name": "calc_withdraw_one_coin",
752
+ "inputs": [
753
+ {
754
+ "name": "_burn_amount",
755
+ "type": "uint256"
756
+ },
757
+ {
758
+ "name": "i",
759
+ "type": "int128"
760
+ }
761
+ ],
762
+ "outputs": [
763
+ {
764
+ "name": "",
765
+ "type": "uint256"
766
+ }
767
+ ]
768
+ },
769
+ {
770
+ "stateMutability": "view",
771
+ "type": "function",
772
+ "name": "totalSupply",
773
+ "inputs": [],
774
+ "outputs": [
775
+ {
776
+ "name": "",
777
+ "type": "uint256"
778
+ }
779
+ ]
780
+ },
781
+ {
782
+ "stateMutability": "view",
783
+ "type": "function",
784
+ "name": "get_virtual_price",
785
+ "inputs": [],
786
+ "outputs": [
787
+ {
788
+ "name": "",
789
+ "type": "uint256"
790
+ }
791
+ ]
792
+ },
793
+ {
794
+ "stateMutability": "view",
795
+ "type": "function",
796
+ "name": "calc_token_amount",
797
+ "inputs": [
798
+ {
799
+ "name": "_amounts",
800
+ "type": "uint256[]"
801
+ },
802
+ {
803
+ "name": "_is_deposit",
804
+ "type": "bool"
805
+ }
806
+ ],
807
+ "outputs": [
808
+ {
809
+ "name": "",
810
+ "type": "uint256"
811
+ }
812
+ ]
813
+ },
814
+ {
815
+ "stateMutability": "view",
816
+ "type": "function",
817
+ "name": "A",
818
+ "inputs": [],
819
+ "outputs": [
820
+ {
821
+ "name": "",
822
+ "type": "uint256"
823
+ }
824
+ ]
825
+ },
826
+ {
827
+ "stateMutability": "view",
828
+ "type": "function",
829
+ "name": "A_precise",
830
+ "inputs": [],
831
+ "outputs": [
832
+ {
833
+ "name": "",
834
+ "type": "uint256"
835
+ }
836
+ ]
837
+ },
838
+ {
839
+ "stateMutability": "view",
840
+ "type": "function",
841
+ "name": "balances",
842
+ "inputs": [
843
+ {
844
+ "name": "i",
845
+ "type": "uint256"
846
+ }
847
+ ],
848
+ "outputs": [
849
+ {
850
+ "name": "",
851
+ "type": "uint256"
852
+ }
853
+ ]
854
+ },
855
+ {
856
+ "stateMutability": "view",
857
+ "type": "function",
858
+ "name": "get_balances",
859
+ "inputs": [],
860
+ "outputs": [
861
+ {
862
+ "name": "",
863
+ "type": "uint256[]"
864
+ }
865
+ ]
866
+ },
867
+ {
868
+ "stateMutability": "view",
869
+ "type": "function",
870
+ "name": "stored_rates",
871
+ "inputs": [],
872
+ "outputs": [
873
+ {
874
+ "name": "",
875
+ "type": "uint256[]"
876
+ }
877
+ ]
878
+ },
879
+ {
880
+ "stateMutability": "view",
881
+ "type": "function",
882
+ "name": "dynamic_fee",
883
+ "inputs": [
884
+ {
885
+ "name": "i",
886
+ "type": "int128"
887
+ },
888
+ {
889
+ "name": "j",
890
+ "type": "int128"
891
+ }
892
+ ],
893
+ "outputs": [
894
+ {
895
+ "name": "",
896
+ "type": "uint256"
897
+ }
898
+ ]
899
+ },
900
+ {
901
+ "stateMutability": "nonpayable",
902
+ "type": "function",
903
+ "name": "ramp_A",
904
+ "inputs": [
905
+ {
906
+ "name": "_future_A",
907
+ "type": "uint256"
908
+ },
909
+ {
910
+ "name": "_future_time",
911
+ "type": "uint256"
912
+ }
913
+ ],
914
+ "outputs": []
915
+ },
916
+ {
917
+ "stateMutability": "nonpayable",
918
+ "type": "function",
919
+ "name": "stop_ramp_A",
920
+ "inputs": [],
921
+ "outputs": []
922
+ },
923
+ {
924
+ "stateMutability": "nonpayable",
925
+ "type": "function",
926
+ "name": "set_new_fee",
927
+ "inputs": [
928
+ {
929
+ "name": "_new_fee",
930
+ "type": "uint256"
931
+ },
932
+ {
933
+ "name": "_new_offpeg_fee_multiplier",
934
+ "type": "uint256"
935
+ }
936
+ ],
937
+ "outputs": []
938
+ },
939
+ {
940
+ "stateMutability": "nonpayable",
941
+ "type": "function",
942
+ "name": "set_ma_exp_time",
943
+ "inputs": [
944
+ {
945
+ "name": "_ma_exp_time",
946
+ "type": "uint256"
947
+ },
948
+ {
949
+ "name": "_D_ma_time",
950
+ "type": "uint256"
951
+ }
952
+ ],
953
+ "outputs": []
954
+ },
955
+ {
956
+ "stateMutability": "view",
957
+ "type": "function",
958
+ "name": "N_COINS",
959
+ "inputs": [],
960
+ "outputs": [
961
+ {
962
+ "name": "",
963
+ "type": "uint256"
964
+ }
965
+ ]
966
+ },
967
+ {
968
+ "stateMutability": "view",
969
+ "type": "function",
970
+ "name": "coins",
971
+ "inputs": [
972
+ {
973
+ "name": "arg0",
974
+ "type": "uint256"
975
+ }
976
+ ],
977
+ "outputs": [
978
+ {
979
+ "name": "",
980
+ "type": "address"
981
+ }
982
+ ]
983
+ },
984
+ {
985
+ "stateMutability": "view",
986
+ "type": "function",
987
+ "name": "fee",
988
+ "inputs": [],
989
+ "outputs": [
990
+ {
991
+ "name": "",
992
+ "type": "uint256"
993
+ }
994
+ ]
995
+ },
996
+ {
997
+ "stateMutability": "view",
998
+ "type": "function",
999
+ "name": "offpeg_fee_multiplier",
1000
+ "inputs": [],
1001
+ "outputs": [
1002
+ {
1003
+ "name": "",
1004
+ "type": "uint256"
1005
+ }
1006
+ ]
1007
+ },
1008
+ {
1009
+ "stateMutability": "view",
1010
+ "type": "function",
1011
+ "name": "admin_fee",
1012
+ "inputs": [],
1013
+ "outputs": [
1014
+ {
1015
+ "name": "",
1016
+ "type": "uint256"
1017
+ }
1018
+ ]
1019
+ },
1020
+ {
1021
+ "stateMutability": "view",
1022
+ "type": "function",
1023
+ "name": "initial_A",
1024
+ "inputs": [],
1025
+ "outputs": [
1026
+ {
1027
+ "name": "",
1028
+ "type": "uint256"
1029
+ }
1030
+ ]
1031
+ },
1032
+ {
1033
+ "stateMutability": "view",
1034
+ "type": "function",
1035
+ "name": "future_A",
1036
+ "inputs": [],
1037
+ "outputs": [
1038
+ {
1039
+ "name": "",
1040
+ "type": "uint256"
1041
+ }
1042
+ ]
1043
+ },
1044
+ {
1045
+ "stateMutability": "view",
1046
+ "type": "function",
1047
+ "name": "initial_A_time",
1048
+ "inputs": [],
1049
+ "outputs": [
1050
+ {
1051
+ "name": "",
1052
+ "type": "uint256"
1053
+ }
1054
+ ]
1055
+ },
1056
+ {
1057
+ "stateMutability": "view",
1058
+ "type": "function",
1059
+ "name": "future_A_time",
1060
+ "inputs": [],
1061
+ "outputs": [
1062
+ {
1063
+ "name": "",
1064
+ "type": "uint256"
1065
+ }
1066
+ ]
1067
+ },
1068
+ {
1069
+ "stateMutability": "view",
1070
+ "type": "function",
1071
+ "name": "admin_balances",
1072
+ "inputs": [
1073
+ {
1074
+ "name": "arg0",
1075
+ "type": "uint256"
1076
+ }
1077
+ ],
1078
+ "outputs": [
1079
+ {
1080
+ "name": "",
1081
+ "type": "uint256"
1082
+ }
1083
+ ]
1084
+ },
1085
+ {
1086
+ "stateMutability": "view",
1087
+ "type": "function",
1088
+ "name": "ma_exp_time",
1089
+ "inputs": [],
1090
+ "outputs": [
1091
+ {
1092
+ "name": "",
1093
+ "type": "uint256"
1094
+ }
1095
+ ]
1096
+ },
1097
+ {
1098
+ "stateMutability": "view",
1099
+ "type": "function",
1100
+ "name": "D_ma_time",
1101
+ "inputs": [],
1102
+ "outputs": [
1103
+ {
1104
+ "name": "",
1105
+ "type": "uint256"
1106
+ }
1107
+ ]
1108
+ },
1109
+ {
1110
+ "stateMutability": "view",
1111
+ "type": "function",
1112
+ "name": "ma_last_time",
1113
+ "inputs": [],
1114
+ "outputs": [
1115
+ {
1116
+ "name": "",
1117
+ "type": "uint256"
1118
+ }
1119
+ ]
1120
+ },
1121
+ {
1122
+ "stateMutability": "view",
1123
+ "type": "function",
1124
+ "name": "name",
1125
+ "inputs": [],
1126
+ "outputs": [
1127
+ {
1128
+ "name": "",
1129
+ "type": "string"
1130
+ }
1131
+ ]
1132
+ },
1133
+ {
1134
+ "stateMutability": "view",
1135
+ "type": "function",
1136
+ "name": "symbol",
1137
+ "inputs": [],
1138
+ "outputs": [
1139
+ {
1140
+ "name": "",
1141
+ "type": "string"
1142
+ }
1143
+ ]
1144
+ },
1145
+ {
1146
+ "stateMutability": "view",
1147
+ "type": "function",
1148
+ "name": "decimals",
1149
+ "inputs": [],
1150
+ "outputs": [
1151
+ {
1152
+ "name": "",
1153
+ "type": "uint8"
1154
+ }
1155
+ ]
1156
+ },
1157
+ {
1158
+ "stateMutability": "view",
1159
+ "type": "function",
1160
+ "name": "version",
1161
+ "inputs": [],
1162
+ "outputs": [
1163
+ {
1164
+ "name": "",
1165
+ "type": "string"
1166
+ }
1167
+ ]
1168
+ },
1169
+ {
1170
+ "stateMutability": "view",
1171
+ "type": "function",
1172
+ "name": "balanceOf",
1173
+ "inputs": [
1174
+ {
1175
+ "name": "arg0",
1176
+ "type": "address"
1177
+ }
1178
+ ],
1179
+ "outputs": [
1180
+ {
1181
+ "name": "",
1182
+ "type": "uint256"
1183
+ }
1184
+ ]
1185
+ },
1186
+ {
1187
+ "stateMutability": "view",
1188
+ "type": "function",
1189
+ "name": "allowance",
1190
+ "inputs": [
1191
+ {
1192
+ "name": "arg0",
1193
+ "type": "address"
1194
+ },
1195
+ {
1196
+ "name": "arg1",
1197
+ "type": "address"
1198
+ }
1199
+ ],
1200
+ "outputs": [
1201
+ {
1202
+ "name": "",
1203
+ "type": "uint256"
1204
+ }
1205
+ ]
1206
+ },
1207
+ {
1208
+ "stateMutability": "view",
1209
+ "type": "function",
1210
+ "name": "nonces",
1211
+ "inputs": [
1212
+ {
1213
+ "name": "arg0",
1214
+ "type": "address"
1215
+ }
1216
+ ],
1217
+ "outputs": [
1218
+ {
1219
+ "name": "",
1220
+ "type": "uint256"
1221
+ }
1222
+ ]
1223
+ },
1224
+ {
1225
+ "stateMutability": "view",
1226
+ "type": "function",
1227
+ "name": "salt",
1228
+ "inputs": [],
1229
+ "outputs": [
1230
+ {
1231
+ "name": "",
1232
+ "type": "bytes32"
1233
+ }
1234
+ ]
1235
+ }
1236
+ ]