@curvefi/api 2.13.0 → 2.14.0

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.
@@ -0,0 +1,483 @@
1
+ [
2
+ {
3
+ "name": "CommitAdmin",
4
+ "inputs": [
5
+ {
6
+ "type": "address",
7
+ "name": "admin",
8
+ "indexed": false
9
+ }
10
+ ],
11
+ "anonymous": false,
12
+ "type": "event"
13
+ },
14
+ {
15
+ "name": "ApplyAdmin",
16
+ "inputs": [
17
+ {
18
+ "type": "address",
19
+ "name": "admin",
20
+ "indexed": false
21
+ }
22
+ ],
23
+ "anonymous": false,
24
+ "type": "event"
25
+ },
26
+ {
27
+ "name": "ToggleAllowCheckpointToken",
28
+ "inputs": [
29
+ {
30
+ "type": "bool",
31
+ "name": "toggle_flag",
32
+ "indexed": false
33
+ }
34
+ ],
35
+ "anonymous": false,
36
+ "type": "event"
37
+ },
38
+ {
39
+ "name": "CheckpointToken",
40
+ "inputs": [
41
+ {
42
+ "type": "uint256",
43
+ "name": "time",
44
+ "indexed": false
45
+ },
46
+ {
47
+ "type": "uint256",
48
+ "name": "tokens",
49
+ "indexed": false
50
+ }
51
+ ],
52
+ "anonymous": false,
53
+ "type": "event"
54
+ },
55
+ {
56
+ "name": "Claimed",
57
+ "inputs": [
58
+ {
59
+ "type": "address",
60
+ "name": "recipient",
61
+ "indexed": true
62
+ },
63
+ {
64
+ "type": "uint256",
65
+ "name": "amount",
66
+ "indexed": false
67
+ },
68
+ {
69
+ "type": "uint256",
70
+ "name": "claim_epoch",
71
+ "indexed": false
72
+ },
73
+ {
74
+ "type": "uint256",
75
+ "name": "max_epoch",
76
+ "indexed": false
77
+ }
78
+ ],
79
+ "anonymous": false,
80
+ "type": "event"
81
+ },
82
+ {
83
+ "outputs": [],
84
+ "inputs": [
85
+ {
86
+ "type": "address",
87
+ "name": "_voting_escrow"
88
+ },
89
+ {
90
+ "type": "uint256",
91
+ "name": "_start_time"
92
+ },
93
+ {
94
+ "type": "address",
95
+ "name": "_token"
96
+ },
97
+ {
98
+ "type": "address",
99
+ "name": "_admin"
100
+ },
101
+ {
102
+ "type": "address",
103
+ "name": "_emergency_return"
104
+ }
105
+ ],
106
+ "stateMutability": "nonpayable",
107
+ "type": "constructor"
108
+ },
109
+ {
110
+ "name": "checkpoint_token",
111
+ "outputs": [],
112
+ "inputs": [],
113
+ "stateMutability": "nonpayable",
114
+ "type": "function",
115
+ "gas": "820723"
116
+ },
117
+ {
118
+ "name": "ve_for_at",
119
+ "outputs": [
120
+ {
121
+ "type": "uint256",
122
+ "name": ""
123
+ }
124
+ ],
125
+ "inputs": [
126
+ {
127
+ "type": "address",
128
+ "name": "_user"
129
+ },
130
+ {
131
+ "type": "uint256",
132
+ "name": "_timestamp"
133
+ }
134
+ ],
135
+ "stateMutability": "view",
136
+ "type": "function",
137
+ "gas": "249417"
138
+ },
139
+ {
140
+ "name": "checkpoint_total_supply",
141
+ "outputs": [],
142
+ "inputs": [],
143
+ "stateMutability": "nonpayable",
144
+ "type": "function",
145
+ "gas": "10592405"
146
+ },
147
+ {
148
+ "name": "claim",
149
+ "outputs": [
150
+ {
151
+ "type": "uint256",
152
+ "name": ""
153
+ }
154
+ ],
155
+ "inputs": [
156
+ {
157
+ "type": "address",
158
+ "name": "_addr"
159
+ }
160
+ ],
161
+ "stateMutability": "view",
162
+ "type": "function"
163
+ },
164
+ {
165
+ "name": "claim_many",
166
+ "outputs": [
167
+ {
168
+ "type": "bool",
169
+ "name": ""
170
+ }
171
+ ],
172
+ "inputs": [
173
+ {
174
+ "type": "address[20]",
175
+ "name": "_receivers"
176
+ }
177
+ ],
178
+ "stateMutability": "nonpayable",
179
+ "type": "function",
180
+ "gas": "26281905"
181
+ },
182
+ {
183
+ "name": "burn",
184
+ "outputs": [
185
+ {
186
+ "type": "bool",
187
+ "name": ""
188
+ }
189
+ ],
190
+ "inputs": [
191
+ {
192
+ "type": "address",
193
+ "name": "_coin"
194
+ }
195
+ ],
196
+ "stateMutability": "nonpayable",
197
+ "type": "function",
198
+ "gas": "823450"
199
+ },
200
+ {
201
+ "name": "commit_admin",
202
+ "outputs": [],
203
+ "inputs": [
204
+ {
205
+ "type": "address",
206
+ "name": "_addr"
207
+ }
208
+ ],
209
+ "stateMutability": "nonpayable",
210
+ "type": "function",
211
+ "gas": "37898"
212
+ },
213
+ {
214
+ "name": "apply_admin",
215
+ "outputs": [],
216
+ "inputs": [],
217
+ "stateMutability": "nonpayable",
218
+ "type": "function",
219
+ "gas": "39534"
220
+ },
221
+ {
222
+ "name": "toggle_allow_checkpoint_token",
223
+ "outputs": [],
224
+ "inputs": [],
225
+ "stateMutability": "nonpayable",
226
+ "type": "function",
227
+ "gas": "38673"
228
+ },
229
+ {
230
+ "name": "kill_me",
231
+ "outputs": [],
232
+ "inputs": [],
233
+ "stateMutability": "nonpayable",
234
+ "type": "function",
235
+ "gas": "39587"
236
+ },
237
+ {
238
+ "name": "recover_balance",
239
+ "outputs": [
240
+ {
241
+ "type": "bool",
242
+ "name": ""
243
+ }
244
+ ],
245
+ "inputs": [
246
+ {
247
+ "type": "address",
248
+ "name": "_coin"
249
+ }
250
+ ],
251
+ "stateMutability": "nonpayable",
252
+ "type": "function",
253
+ "gas": "7778"
254
+ },
255
+ {
256
+ "name": "start_time",
257
+ "outputs": [
258
+ {
259
+ "type": "uint256",
260
+ "name": ""
261
+ }
262
+ ],
263
+ "inputs": [],
264
+ "stateMutability": "view",
265
+ "type": "function",
266
+ "gas": "1541"
267
+ },
268
+ {
269
+ "name": "time_cursor",
270
+ "outputs": [
271
+ {
272
+ "type": "uint256",
273
+ "name": ""
274
+ }
275
+ ],
276
+ "inputs": [],
277
+ "stateMutability": "view",
278
+ "type": "function",
279
+ "gas": "1571"
280
+ },
281
+ {
282
+ "name": "time_cursor_of",
283
+ "outputs": [
284
+ {
285
+ "type": "uint256",
286
+ "name": ""
287
+ }
288
+ ],
289
+ "inputs": [
290
+ {
291
+ "type": "address",
292
+ "name": "arg0"
293
+ }
294
+ ],
295
+ "stateMutability": "view",
296
+ "type": "function",
297
+ "gas": "1816"
298
+ },
299
+ {
300
+ "name": "user_epoch_of",
301
+ "outputs": [
302
+ {
303
+ "type": "uint256",
304
+ "name": ""
305
+ }
306
+ ],
307
+ "inputs": [
308
+ {
309
+ "type": "address",
310
+ "name": "arg0"
311
+ }
312
+ ],
313
+ "stateMutability": "view",
314
+ "type": "function",
315
+ "gas": "1846"
316
+ },
317
+ {
318
+ "name": "last_token_time",
319
+ "outputs": [
320
+ {
321
+ "type": "uint256",
322
+ "name": ""
323
+ }
324
+ ],
325
+ "inputs": [],
326
+ "stateMutability": "view",
327
+ "type": "function",
328
+ "gas": "1661"
329
+ },
330
+ {
331
+ "name": "tokens_per_week",
332
+ "outputs": [
333
+ {
334
+ "type": "uint256",
335
+ "name": ""
336
+ }
337
+ ],
338
+ "inputs": [
339
+ {
340
+ "type": "uint256",
341
+ "name": "arg0"
342
+ }
343
+ ],
344
+ "stateMutability": "view",
345
+ "type": "function",
346
+ "gas": "1800"
347
+ },
348
+ {
349
+ "name": "voting_escrow",
350
+ "outputs": [
351
+ {
352
+ "type": "address",
353
+ "name": ""
354
+ }
355
+ ],
356
+ "inputs": [],
357
+ "stateMutability": "view",
358
+ "type": "function",
359
+ "gas": "1721"
360
+ },
361
+ {
362
+ "name": "token",
363
+ "outputs": [
364
+ {
365
+ "type": "address",
366
+ "name": ""
367
+ }
368
+ ],
369
+ "inputs": [],
370
+ "stateMutability": "view",
371
+ "type": "function",
372
+ "gas": "1751"
373
+ },
374
+ {
375
+ "name": "total_received",
376
+ "outputs": [
377
+ {
378
+ "type": "uint256",
379
+ "name": ""
380
+ }
381
+ ],
382
+ "inputs": [],
383
+ "stateMutability": "view",
384
+ "type": "function",
385
+ "gas": "1781"
386
+ },
387
+ {
388
+ "name": "token_last_balance",
389
+ "outputs": [
390
+ {
391
+ "type": "uint256",
392
+ "name": ""
393
+ }
394
+ ],
395
+ "inputs": [],
396
+ "stateMutability": "view",
397
+ "type": "function",
398
+ "gas": "1811"
399
+ },
400
+ {
401
+ "name": "ve_supply",
402
+ "outputs": [
403
+ {
404
+ "type": "uint256",
405
+ "name": ""
406
+ }
407
+ ],
408
+ "inputs": [
409
+ {
410
+ "type": "uint256",
411
+ "name": "arg0"
412
+ }
413
+ ],
414
+ "stateMutability": "view",
415
+ "type": "function",
416
+ "gas": "1950"
417
+ },
418
+ {
419
+ "name": "admin",
420
+ "outputs": [
421
+ {
422
+ "type": "address",
423
+ "name": ""
424
+ }
425
+ ],
426
+ "inputs": [],
427
+ "stateMutability": "view",
428
+ "type": "function",
429
+ "gas": "1871"
430
+ },
431
+ {
432
+ "name": "future_admin",
433
+ "outputs": [
434
+ {
435
+ "type": "address",
436
+ "name": ""
437
+ }
438
+ ],
439
+ "inputs": [],
440
+ "stateMutability": "view",
441
+ "type": "function",
442
+ "gas": "1901"
443
+ },
444
+ {
445
+ "name": "can_checkpoint_token",
446
+ "outputs": [
447
+ {
448
+ "type": "bool",
449
+ "name": ""
450
+ }
451
+ ],
452
+ "inputs": [],
453
+ "stateMutability": "view",
454
+ "type": "function",
455
+ "gas": "1931"
456
+ },
457
+ {
458
+ "name": "emergency_return",
459
+ "outputs": [
460
+ {
461
+ "type": "address",
462
+ "name": ""
463
+ }
464
+ ],
465
+ "inputs": [],
466
+ "stateMutability": "view",
467
+ "type": "function",
468
+ "gas": "1961"
469
+ },
470
+ {
471
+ "name": "is_killed",
472
+ "outputs": [
473
+ {
474
+ "type": "bool",
475
+ "name": ""
476
+ }
477
+ ],
478
+ "inputs": [],
479
+ "stateMutability": "view",
480
+ "type": "function",
481
+ "gas": "1991"
482
+ }
483
+ ]
@@ -6,6 +6,7 @@ exports.ALIASES_ETHEREUM = (0, utils_1.lowerCaseValues)({
6
6
  "crv": "0xD533a949740bb3306d119CC777fa900bA034cd52",
7
7
  "minter": "0xd061D61a4d941c39E5453435B6345Dc261C2fcE0",
8
8
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
9
+ "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
9
10
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
10
11
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
11
12
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
@@ -18,6 +19,7 @@ exports.ALIASES_POLYGON = (0, utils_1.lowerCaseValues)({
18
19
  "crv": "0x172370d5cd63279efa6d502dab29171933a610af",
19
20
  "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
20
21
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
22
+ "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
21
23
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
22
24
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
23
25
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
@@ -30,6 +32,7 @@ exports.ALIASES_FANTOM = (0, utils_1.lowerCaseValues)({
30
32
  "crv": "0x1E4F97b9f9F913c46F1632781732927B9019C68b",
31
33
  "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
32
34
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
35
+ "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
33
36
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
34
37
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
35
38
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
@@ -42,6 +45,7 @@ exports.ALIASES_AVALANCHE = (0, utils_1.lowerCaseValues)({
42
45
  "crv": "0x47536F17F4fF30e64A96a7555826b8f9e66ec468",
43
46
  "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
44
47
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
48
+ "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
45
49
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
46
50
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
47
51
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
@@ -54,6 +58,7 @@ exports.ALIASES_ARBITRUM = (0, utils_1.lowerCaseValues)({
54
58
  "crv": "0x11cDb42B0EB46D95f990BeDD4695A6e3fA034978",
55
59
  "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
56
60
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
61
+ "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
57
62
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
58
63
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
59
64
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
@@ -66,6 +71,7 @@ exports.ALIASES_OPTIMISM = (0, utils_1.lowerCaseValues)({
66
71
  "crv": "0x0994206dfE8De6Ec6920FF4D779B0d950605Fb53",
67
72
  "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
68
73
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
74
+ "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
69
75
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
70
76
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
71
77
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
@@ -78,6 +84,7 @@ exports.ALIASES_XDAI = (0, utils_1.lowerCaseValues)({
78
84
  "crv": "0x712b3d230f3c1c19db860d80619288b1f0bdd0bd",
79
85
  "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
80
86
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
87
+ "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
81
88
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
82
89
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
83
90
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
@@ -90,6 +97,7 @@ exports.ALIASES_MOONBEAM = (0, utils_1.lowerCaseValues)({
90
97
  "crv": "0x7C598c96D02398d89FbCb9d41Eab3DF0C16F227D",
91
98
  "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
92
99
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
100
+ "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
93
101
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
94
102
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
95
103
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
@@ -102,6 +110,7 @@ exports.ALIASES_AURORA = (0, utils_1.lowerCaseValues)({
102
110
  "crv": "0x64D5BaF5ac030e2b7c435aDD967f787ae94D0205",
103
111
  "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
104
112
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
113
+ "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
105
114
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
106
115
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
107
116
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
@@ -114,6 +123,7 @@ exports.ALIASES_KAVA = (0, utils_1.lowerCaseValues)({
114
123
  "crv": "0x64D5BaF5ac030e2b7c435aDD967f787ae94D0205",
115
124
  "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
116
125
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
126
+ "fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
117
127
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
118
128
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
119
129
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
package/lib/curve.js CHANGED
@@ -71,6 +71,7 @@ var yERC20_json_1 = __importDefault(require("./constants/abis/yERC20.json"));
71
71
  var minter_json_1 = __importDefault(require("./constants/abis/minter.json"));
72
72
  var minter_child_json_1 = __importDefault(require("./constants/abis/minter_child.json"));
73
73
  var votingescrow_json_1 = __importDefault(require("./constants/abis/votingescrow.json"));
74
+ var fee_distributor_json_1 = __importDefault(require("./constants/abis/fee_distributor.json"));
74
75
  var address_provider_json_1 = __importDefault(require("./constants/abis/address_provider.json"));
75
76
  var gaugecontroller_json_1 = __importDefault(require("./constants/abis/gaugecontroller.json"));
76
77
  var router_json_1 = __importDefault(require("./constants/abis/router.json"));
@@ -504,6 +505,7 @@ var Curve = /** @class */ (function () {
504
505
  contract: new ethers_1.Contract(this.constants.ALIASES.voting_escrow, votingescrow_json_1.default, this.signer || this.provider),
505
506
  multicallContract: new ethcall_1.Contract(this.constants.ALIASES.voting_escrow, votingescrow_json_1.default),
506
507
  };
508
+ this.setContract(this.constants.ALIASES.fee_distributor, fee_distributor_json_1.default);
507
509
  this.contracts[this.constants.ALIASES.address_provider] = {
508
510
  contract: new ethers_1.Contract(this.constants.ALIASES.address_provider, address_provider_json_1.default, this.signer || this.provider),
509
511
  multicallContract: new ethcall_1.Contract(this.constants.ALIASES.address_provider, address_provider_json_1.default),
package/lib/index.d.ts CHANGED
@@ -61,12 +61,15 @@ declare const curve: {
61
61
  increaseAmount: (amount: string | number) => Promise<string>;
62
62
  increaseUnlockTime: (days: number) => Promise<string>;
63
63
  withdrawLockedCrv: () => Promise<string>;
64
+ claimableFees: (address?: string) => Promise<string>;
65
+ claimFees: (address?: string) => Promise<string>;
64
66
  estimateGas: {
65
67
  approve: (amount: string | number) => Promise<number>;
66
68
  createLock: (amount: string | number, days: number) => Promise<number>;
67
69
  increaseAmount: (amount: string | number) => Promise<number>;
68
70
  increaseUnlockTime: (days: number) => Promise<number>;
69
71
  withdrawLockedCrv: () => Promise<number>;
72
+ claimFees: (address?: string) => Promise<number>;
70
73
  };
71
74
  };
72
75
  router: {
@@ -75,7 +78,7 @@ declare const curve: {
75
78
  output: string;
76
79
  }>;
77
80
  expected: (inputCoin: string, outputCoin: string, amount: string | number) => Promise<string>;
78
- priceImpact: (inputCoin: string, outputCoin: string, amount: string | number) => Promise<string>;
81
+ priceImpact: (inputCoin: string, outputCoin: string, amount: string | number) => Promise<number>;
79
82
  isApproved: (inputCoin: string, amount: string | number) => Promise<boolean>;
80
83
  approve: (inputCoin: string, amount: string | number) => Promise<string[]>;
81
84
  swap: (inputCoin: string, outputCoin: string, amount: string | number, slippage?: number) => Promise<string>;
package/lib/index.js CHANGED
@@ -121,12 +121,15 @@ var curve = {
121
121
  increaseAmount: boosting_1.increaseAmount,
122
122
  increaseUnlockTime: boosting_1.increaseUnlockTime,
123
123
  withdrawLockedCrv: boosting_1.withdrawLockedCrv,
124
+ claimableFees: boosting_1.claimableFees,
125
+ claimFees: boosting_1.claimFees,
124
126
  estimateGas: {
125
127
  approve: boosting_1.approveEstimateGas,
126
128
  createLock: boosting_1.createLockEstimateGas,
127
129
  increaseAmount: boosting_1.increaseAmountEstimateGas,
128
130
  increaseUnlockTime: boosting_1.increaseUnlockTimeEstimateGas,
129
131
  withdrawLockedCrv: boosting_1.withdrawLockedCrvEstimateGas,
132
+ claimFees: boosting_1.claimFeesEstimateGas,
130
133
  },
131
134
  },
132
135
  router: {
@@ -219,7 +219,7 @@ export declare class PoolTemplate {
219
219
  }>;
220
220
  private _swapExpected;
221
221
  swapExpected(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<string>;
222
- swapPriceImpact(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<string>;
222
+ swapPriceImpact(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<number>;
223
223
  private _swapContractAddress;
224
224
  swapIsApproved(inputCoin: string | number, amount: number | string): Promise<boolean>;
225
225
  private swapApproveEstimateGas;
@@ -228,7 +228,7 @@ export declare class PoolTemplate {
228
228
  swap(inputCoin: string | number, outputCoin: string | number, amount: number | string, slippage?: number): Promise<string>;
229
229
  private _swapWrappedExpected;
230
230
  swapWrappedExpected(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<string>;
231
- swapWrappedPriceImpact(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<string>;
231
+ swapWrappedPriceImpact(inputCoin: string | number, outputCoin: string | number, amount: number | string): Promise<number>;
232
232
  swapWrappedIsApproved(inputCoin: string | number, amount: number | string): Promise<boolean>;
233
233
  private swapWrappedApproveEstimateGas;
234
234
  swapWrappedApprove(inputCoin: string | number, amount: number | string): Promise<string[]>;