@curvefi/api 2.40.1 → 2.41.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.
- package/README.md +20 -0
- package/lib/constants/abis/eursusd2/swap.json +59 -59
- package/lib/constants/abis/eursusd2/zap.json +14 -14
- package/lib/constants/abis/factory-eywa.json +1057 -0
- package/lib/constants/abis/factory-v2/Plain6Balances.json +936 -0
- package/lib/constants/abis/factory-v2/Plain6Basic.json +936 -0
- package/lib/constants/abis/factory-v2/Plain6ETH.json +936 -0
- package/lib/constants/abis/factory-v2/Plain6Optimized.json +936 -0
- package/lib/constants/abis/fusdt/swap.json +44 -44
- package/lib/constants/abis/fusdt/zap.json +10 -10
- package/lib/constants/abis/ren-arbitrum/swap.json +43 -43
- package/lib/constants/abis/tricrypto/swapNoZap.json +60 -60
- package/lib/constants/aliases.js +11 -0
- package/lib/curve.d.ts +6 -1
- package/lib/curve.js +84 -24
- package/lib/external-api.js +1 -0
- package/lib/factory/constants.js +9 -0
- package/lib/factory/factory-api.d.ts +2 -2
- package/lib/factory/factory-crypto.js +1 -0
- package/lib/factory/factory.js +2 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.js +7 -0
- package/lib/interfaces.d.ts +2 -1
- package/lib/pools/PoolTemplate.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ import curve from "@curvefi/api";
|
|
|
25
25
|
// Fetch factory pools
|
|
26
26
|
await curve.factory.fetchPools();
|
|
27
27
|
await curve.crvUSDFactory.fetchPools();
|
|
28
|
+
await curve.EYWAFactory.fetchPools();
|
|
28
29
|
await curve.cryptoFactory.fetchPools();
|
|
29
30
|
await curve.tricryptoFactory.fetchPools();
|
|
30
31
|
})()
|
|
@@ -188,6 +189,7 @@ import curve from "@curvefi/api";
|
|
|
188
189
|
await curve.init('JsonRpc', {}, { gasPrice: 0, maxFeePerGas: 0, maxPriorityFeePerGas: 0 });
|
|
189
190
|
await curve.factory.fetchPools();
|
|
190
191
|
await curve.crvUSDFactory.fetchPools();
|
|
192
|
+
await curve.EYWAFactory.fetchPools();
|
|
191
193
|
await curve.cryptoFactory.fetchPools();
|
|
192
194
|
await curve.tricryptoFactory.fetchPools();
|
|
193
195
|
|
|
@@ -240,6 +242,10 @@ import curve from "@curvefi/api";
|
|
|
240
242
|
|
|
241
243
|
curve.crvUSDFactory.getPoolList();
|
|
242
244
|
// ['factory-crvusd-0', 'factory-crvusd-1', 'factory-crvusd-2', 'factory-crvusd-3']
|
|
245
|
+
|
|
246
|
+
// On Fantom network
|
|
247
|
+
curve.EYWAFactory.getPoolList();
|
|
248
|
+
// ['factory-eywa-0', 'factory-eywa-1', 'factory-eywa-2', 'factory-eywa-3']
|
|
243
249
|
|
|
244
250
|
curve.cryptoFactory.getPoolList();
|
|
245
251
|
// [
|
|
@@ -309,6 +315,7 @@ import curve from "@curvefi/api";
|
|
|
309
315
|
await curve.init('JsonRpc', {}, { gasPrice: 0, maxFeePerGas: 0, maxPriorityFeePerGas: 0 });
|
|
310
316
|
await curve.factory.fetchPools();
|
|
311
317
|
await curve.crvUSDFactory.fetchPools();
|
|
318
|
+
await curve.EYWAFactory.fetchPools();
|
|
312
319
|
await curve.cryptoFactory.fetchPools();
|
|
313
320
|
await curve.tricryptoFactory.fetchPools();
|
|
314
321
|
|
|
@@ -1016,6 +1023,7 @@ import curve from "@curvefi/api";
|
|
|
1016
1023
|
await curve.init('JsonRpc', {}, { gasPrice: 0, maxFeePerGas: 0, maxPriorityFeePerGas: 0 });
|
|
1017
1024
|
await curve.factory.fetchPools();
|
|
1018
1025
|
await curve.crvUSDFactory.fetchPools();
|
|
1026
|
+
await curve.EYWAFactory.fetchPools();
|
|
1019
1027
|
await curve.cryptoFactory.fetchPools();
|
|
1020
1028
|
await curve.tricryptoFactory.fetchPools();
|
|
1021
1029
|
|
|
@@ -1432,6 +1440,9 @@ import curve from "@curvefi/api";
|
|
|
1432
1440
|
|
|
1433
1441
|
// Deploy gauge
|
|
1434
1442
|
|
|
1443
|
+
console.log(curve.factory.gaugeImplementation());
|
|
1444
|
+
// 0x5aE854b098727a9f1603A1E21c50D52DC834D846
|
|
1445
|
+
|
|
1435
1446
|
const deployGaugeTx = await curve.factory.deployGauge(poolAddress);
|
|
1436
1447
|
// {
|
|
1437
1448
|
// hash: '0x8bb0eb63430e6c522c30922a833fee263816ebc0f30367d53ecfe52e17b7c3a0',
|
|
@@ -1478,6 +1489,9 @@ import curve from "@curvefi/api";
|
|
|
1478
1489
|
// 0xd87f26c2f658657779e452dd043df9b2751ae7c4
|
|
1479
1490
|
|
|
1480
1491
|
// Deploy gauge
|
|
1492
|
+
|
|
1493
|
+
console.log(curve.factory.gaugeImplementation());
|
|
1494
|
+
// 0x5aE854b098727a9f1603A1E21c50D52DC834D846
|
|
1481
1495
|
|
|
1482
1496
|
const deployGaugeTx = await curve.factory.deployGauge(poolAddress);
|
|
1483
1497
|
// {
|
|
@@ -1550,6 +1564,9 @@ import curve from "@curvefi/api";
|
|
|
1550
1564
|
// 0xe01a9ecdb0aaabe2f12a25a0d289480debf09e89
|
|
1551
1565
|
|
|
1552
1566
|
// Deploy gauge
|
|
1567
|
+
|
|
1568
|
+
console.log(curve.cryptoFactory.gaugeImplementation());
|
|
1569
|
+
// 0xdc892358d55d5Ae1Ec47a531130D62151EBA36E5
|
|
1553
1570
|
|
|
1554
1571
|
const deployGaugeTx = await curve.cryptoFactory.deployGauge(poolAddress);
|
|
1555
1572
|
// {
|
|
@@ -1615,6 +1632,9 @@ import curve from "@curvefi/api";
|
|
|
1615
1632
|
// 0x2889302a794dA87fBF1D6Db415C1492194663D13
|
|
1616
1633
|
|
|
1617
1634
|
// Deploy gauge
|
|
1635
|
+
|
|
1636
|
+
console.log(curve.tricryptoFactory.gaugeImplementation());
|
|
1637
|
+
// 0x5fC124a161d888893529f67580ef94C2784e9233
|
|
1618
1638
|
|
|
1619
1639
|
const deployGaugeTx = await curve.tricryptoFactory.deployGauge(poolAddress);
|
|
1620
1640
|
// ContractTransactionResponse {
|
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
"type": "address"
|
|
369
369
|
}
|
|
370
370
|
],
|
|
371
|
-
"gas": 426
|
|
371
|
+
"gas": "426"
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
"stateMutability": "view",
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
"type": "address"
|
|
387
387
|
}
|
|
388
388
|
],
|
|
389
|
-
"gas": 558
|
|
389
|
+
"gas": "558"
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
392
|
"stateMutability": "view",
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
"type": "uint256"
|
|
400
400
|
}
|
|
401
401
|
],
|
|
402
|
-
"gas": 595
|
|
402
|
+
"gas": "595"
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
405
|
"stateMutability": "view",
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"type": "uint256"
|
|
413
413
|
}
|
|
414
414
|
],
|
|
415
|
-
"gas": 6499
|
|
415
|
+
"gas": "6499"
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
"stateMutability": "view",
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
"type": "uint256"
|
|
426
426
|
}
|
|
427
427
|
],
|
|
428
|
-
"gas": 9743
|
|
428
|
+
"gas": "9743"
|
|
429
429
|
},
|
|
430
430
|
{
|
|
431
431
|
"stateMutability": "view",
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
"type": "uint256"
|
|
439
439
|
}
|
|
440
440
|
],
|
|
441
|
-
"gas": 360707
|
|
441
|
+
"gas": "360707"
|
|
442
442
|
},
|
|
443
443
|
{
|
|
444
444
|
"stateMutability": "nonpayable",
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
"type": "uint256"
|
|
469
469
|
}
|
|
470
470
|
],
|
|
471
|
-
"gas": 16670379
|
|
471
|
+
"gas": "16670379"
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
"stateMutability": "view",
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
"type": "uint256"
|
|
495
495
|
}
|
|
496
496
|
],
|
|
497
|
-
"gas": 4557895
|
|
497
|
+
"gas": "4557895"
|
|
498
498
|
},
|
|
499
499
|
{
|
|
500
500
|
"stateMutability": "nonpayable",
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
"type": "uint256"
|
|
517
517
|
}
|
|
518
518
|
],
|
|
519
|
-
"gas": 17621237
|
|
519
|
+
"gas": "17621237"
|
|
520
520
|
},
|
|
521
521
|
{
|
|
522
522
|
"stateMutability": "nonpayable",
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
}
|
|
534
534
|
],
|
|
535
535
|
"outputs": [],
|
|
536
|
-
"gas": 174292
|
|
536
|
+
"gas": "174292"
|
|
537
537
|
},
|
|
538
538
|
{
|
|
539
539
|
"stateMutability": "view",
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
"type": "uint256"
|
|
552
552
|
}
|
|
553
553
|
],
|
|
554
|
-
"gas": 5182497
|
|
554
|
+
"gas": "5182497"
|
|
555
555
|
},
|
|
556
556
|
{
|
|
557
557
|
"stateMutability": "view",
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
"type": "uint256"
|
|
574
574
|
}
|
|
575
575
|
],
|
|
576
|
-
"gas": 7264
|
|
576
|
+
"gas": "7264"
|
|
577
577
|
},
|
|
578
578
|
{
|
|
579
579
|
"stateMutability": "nonpayable",
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
"type": "uint256"
|
|
600
600
|
}
|
|
601
601
|
],
|
|
602
|
-
"gas": 16601846
|
|
602
|
+
"gas": "16601846"
|
|
603
603
|
},
|
|
604
604
|
{
|
|
605
605
|
"stateMutability": "nonpayable",
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
"name": "claim_admin_fees",
|
|
608
608
|
"inputs": [],
|
|
609
609
|
"outputs": [],
|
|
610
|
-
"gas": 3226971
|
|
610
|
+
"gas": "3226971"
|
|
611
611
|
},
|
|
612
612
|
{
|
|
613
613
|
"stateMutability": "nonpayable",
|
|
@@ -628,7 +628,7 @@
|
|
|
628
628
|
}
|
|
629
629
|
],
|
|
630
630
|
"outputs": [],
|
|
631
|
-
"gas": 153778
|
|
631
|
+
"gas": "153778"
|
|
632
632
|
},
|
|
633
633
|
{
|
|
634
634
|
"stateMutability": "nonpayable",
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
"name": "stop_ramp_A_gamma",
|
|
637
637
|
"inputs": [],
|
|
638
638
|
"outputs": [],
|
|
639
|
-
"gas": 150123
|
|
639
|
+
"gas": "150123"
|
|
640
640
|
},
|
|
641
641
|
{
|
|
642
642
|
"stateMutability": "nonpayable",
|
|
@@ -673,7 +673,7 @@
|
|
|
673
673
|
}
|
|
674
674
|
],
|
|
675
675
|
"outputs": [],
|
|
676
|
-
"gas": 293264
|
|
676
|
+
"gas": "293264"
|
|
677
677
|
},
|
|
678
678
|
{
|
|
679
679
|
"stateMutability": "nonpayable",
|
|
@@ -681,7 +681,7 @@
|
|
|
681
681
|
"name": "apply_new_parameters",
|
|
682
682
|
"inputs": [],
|
|
683
683
|
"outputs": [],
|
|
684
|
-
"gas": 3504861
|
|
684
|
+
"gas": "3504861"
|
|
685
685
|
},
|
|
686
686
|
{
|
|
687
687
|
"stateMutability": "nonpayable",
|
|
@@ -689,7 +689,7 @@
|
|
|
689
689
|
"name": "revert_new_parameters",
|
|
690
690
|
"inputs": [],
|
|
691
691
|
"outputs": [],
|
|
692
|
-
"gas": 21722
|
|
692
|
+
"gas": "21722"
|
|
693
693
|
},
|
|
694
694
|
{
|
|
695
695
|
"stateMutability": "nonpayable",
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
}
|
|
703
703
|
],
|
|
704
704
|
"outputs": [],
|
|
705
|
-
"gas": 76107
|
|
705
|
+
"gas": "76107"
|
|
706
706
|
},
|
|
707
707
|
{
|
|
708
708
|
"stateMutability": "nonpayable",
|
|
@@ -710,7 +710,7 @@
|
|
|
710
710
|
"name": "apply_transfer_ownership",
|
|
711
711
|
"inputs": [],
|
|
712
712
|
"outputs": [],
|
|
713
|
-
"gas": 61722
|
|
713
|
+
"gas": "61722"
|
|
714
714
|
},
|
|
715
715
|
{
|
|
716
716
|
"stateMutability": "nonpayable",
|
|
@@ -718,7 +718,7 @@
|
|
|
718
718
|
"name": "revert_transfer_ownership",
|
|
719
719
|
"inputs": [],
|
|
720
720
|
"outputs": [],
|
|
721
|
-
"gas": 21812
|
|
721
|
+
"gas": "21812"
|
|
722
722
|
},
|
|
723
723
|
{
|
|
724
724
|
"stateMutability": "nonpayable",
|
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
"name": "kill_me",
|
|
727
727
|
"inputs": [],
|
|
728
728
|
"outputs": [],
|
|
729
|
-
"gas": 37735
|
|
729
|
+
"gas": "37735"
|
|
730
730
|
},
|
|
731
731
|
{
|
|
732
732
|
"stateMutability": "nonpayable",
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
"name": "unkill_me",
|
|
735
735
|
"inputs": [],
|
|
736
736
|
"outputs": [],
|
|
737
|
-
"gas": 21872
|
|
737
|
+
"gas": "21872"
|
|
738
738
|
},
|
|
739
739
|
{
|
|
740
740
|
"stateMutability": "nonpayable",
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
}
|
|
748
748
|
],
|
|
749
749
|
"outputs": [],
|
|
750
|
-
"gas": 37062
|
|
750
|
+
"gas": "37062"
|
|
751
751
|
},
|
|
752
752
|
{
|
|
753
753
|
"stateMutability": "view",
|
|
@@ -760,7 +760,7 @@
|
|
|
760
760
|
"type": "uint256"
|
|
761
761
|
}
|
|
762
762
|
],
|
|
763
|
-
"gas": 1976
|
|
763
|
+
"gas": "1976"
|
|
764
764
|
},
|
|
765
765
|
{
|
|
766
766
|
"stateMutability": "view",
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
"type": "uint256"
|
|
774
774
|
}
|
|
775
775
|
],
|
|
776
|
-
"gas": 2006
|
|
776
|
+
"gas": "2006"
|
|
777
777
|
},
|
|
778
778
|
{
|
|
779
779
|
"stateMutability": "view",
|
|
@@ -786,7 +786,7 @@
|
|
|
786
786
|
"type": "uint256"
|
|
787
787
|
}
|
|
788
788
|
],
|
|
789
|
-
"gas": 2036
|
|
789
|
+
"gas": "2036"
|
|
790
790
|
},
|
|
791
791
|
{
|
|
792
792
|
"stateMutability": "view",
|
|
@@ -799,7 +799,7 @@
|
|
|
799
799
|
"type": "uint256"
|
|
800
800
|
}
|
|
801
801
|
],
|
|
802
|
-
"gas": 2066
|
|
802
|
+
"gas": "2066"
|
|
803
803
|
},
|
|
804
804
|
{
|
|
805
805
|
"stateMutability": "view",
|
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
"type": "uint256"
|
|
813
813
|
}
|
|
814
814
|
],
|
|
815
|
-
"gas": 2096
|
|
815
|
+
"gas": "2096"
|
|
816
816
|
},
|
|
817
817
|
{
|
|
818
818
|
"stateMutability": "view",
|
|
@@ -825,7 +825,7 @@
|
|
|
825
825
|
"type": "uint256"
|
|
826
826
|
}
|
|
827
827
|
],
|
|
828
|
-
"gas": 2126
|
|
828
|
+
"gas": "2126"
|
|
829
829
|
},
|
|
830
830
|
{
|
|
831
831
|
"stateMutability": "view",
|
|
@@ -838,7 +838,7 @@
|
|
|
838
838
|
"type": "uint256"
|
|
839
839
|
}
|
|
840
840
|
],
|
|
841
|
-
"gas": 2156
|
|
841
|
+
"gas": "2156"
|
|
842
842
|
},
|
|
843
843
|
{
|
|
844
844
|
"stateMutability": "view",
|
|
@@ -851,7 +851,7 @@
|
|
|
851
851
|
"type": "uint256"
|
|
852
852
|
}
|
|
853
853
|
],
|
|
854
|
-
"gas": 2186
|
|
854
|
+
"gas": "2186"
|
|
855
855
|
},
|
|
856
856
|
{
|
|
857
857
|
"stateMutability": "view",
|
|
@@ -864,7 +864,7 @@
|
|
|
864
864
|
"type": "uint256"
|
|
865
865
|
}
|
|
866
866
|
],
|
|
867
|
-
"gas": 2216
|
|
867
|
+
"gas": "2216"
|
|
868
868
|
},
|
|
869
869
|
{
|
|
870
870
|
"stateMutability": "view",
|
|
@@ -877,7 +877,7 @@
|
|
|
877
877
|
"type": "uint256"
|
|
878
878
|
}
|
|
879
879
|
],
|
|
880
|
-
"gas": 2246
|
|
880
|
+
"gas": "2246"
|
|
881
881
|
},
|
|
882
882
|
{
|
|
883
883
|
"stateMutability": "view",
|
|
@@ -890,7 +890,7 @@
|
|
|
890
890
|
"type": "uint256"
|
|
891
891
|
}
|
|
892
892
|
],
|
|
893
|
-
"gas": 2276
|
|
893
|
+
"gas": "2276"
|
|
894
894
|
},
|
|
895
895
|
{
|
|
896
896
|
"stateMutability": "view",
|
|
@@ -903,7 +903,7 @@
|
|
|
903
903
|
"type": "uint256"
|
|
904
904
|
}
|
|
905
905
|
],
|
|
906
|
-
"gas": 2306
|
|
906
|
+
"gas": "2306"
|
|
907
907
|
},
|
|
908
908
|
{
|
|
909
909
|
"stateMutability": "view",
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
"type": "uint256"
|
|
917
917
|
}
|
|
918
918
|
],
|
|
919
|
-
"gas": 2336
|
|
919
|
+
"gas": "2336"
|
|
920
920
|
},
|
|
921
921
|
{
|
|
922
922
|
"stateMutability": "view",
|
|
@@ -929,7 +929,7 @@
|
|
|
929
929
|
"type": "uint256"
|
|
930
930
|
}
|
|
931
931
|
],
|
|
932
|
-
"gas": 2366
|
|
932
|
+
"gas": "2366"
|
|
933
933
|
},
|
|
934
934
|
{
|
|
935
935
|
"stateMutability": "view",
|
|
@@ -942,7 +942,7 @@
|
|
|
942
942
|
"type": "uint256"
|
|
943
943
|
}
|
|
944
944
|
],
|
|
945
|
-
"gas": 2396
|
|
945
|
+
"gas": "2396"
|
|
946
946
|
},
|
|
947
947
|
{
|
|
948
948
|
"stateMutability": "view",
|
|
@@ -955,7 +955,7 @@
|
|
|
955
955
|
"type": "uint256"
|
|
956
956
|
}
|
|
957
957
|
],
|
|
958
|
-
"gas": 2426
|
|
958
|
+
"gas": "2426"
|
|
959
959
|
},
|
|
960
960
|
{
|
|
961
961
|
"stateMutability": "view",
|
|
@@ -968,7 +968,7 @@
|
|
|
968
968
|
"type": "uint256"
|
|
969
969
|
}
|
|
970
970
|
],
|
|
971
|
-
"gas": 2456
|
|
971
|
+
"gas": "2456"
|
|
972
972
|
},
|
|
973
973
|
{
|
|
974
974
|
"stateMutability": "view",
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
"type": "uint256"
|
|
982
982
|
}
|
|
983
983
|
],
|
|
984
|
-
"gas": 2486
|
|
984
|
+
"gas": "2486"
|
|
985
985
|
},
|
|
986
986
|
{
|
|
987
987
|
"stateMutability": "view",
|
|
@@ -994,7 +994,7 @@
|
|
|
994
994
|
"type": "uint256"
|
|
995
995
|
}
|
|
996
996
|
],
|
|
997
|
-
"gas": 2516
|
|
997
|
+
"gas": "2516"
|
|
998
998
|
},
|
|
999
999
|
{
|
|
1000
1000
|
"stateMutability": "view",
|
|
@@ -1007,7 +1007,7 @@
|
|
|
1007
1007
|
"type": "uint256"
|
|
1008
1008
|
}
|
|
1009
1009
|
],
|
|
1010
|
-
"gas": 2546
|
|
1010
|
+
"gas": "2546"
|
|
1011
1011
|
},
|
|
1012
1012
|
{
|
|
1013
1013
|
"stateMutability": "view",
|
|
@@ -1020,7 +1020,7 @@
|
|
|
1020
1020
|
"type": "uint256"
|
|
1021
1021
|
}
|
|
1022
1022
|
],
|
|
1023
|
-
"gas": 2576
|
|
1023
|
+
"gas": "2576"
|
|
1024
1024
|
},
|
|
1025
1025
|
{
|
|
1026
1026
|
"stateMutability": "view",
|
|
@@ -1033,7 +1033,7 @@
|
|
|
1033
1033
|
"type": "uint256"
|
|
1034
1034
|
}
|
|
1035
1035
|
],
|
|
1036
|
-
"gas": 2606
|
|
1036
|
+
"gas": "2606"
|
|
1037
1037
|
},
|
|
1038
1038
|
{
|
|
1039
1039
|
"stateMutability": "view",
|
|
@@ -1051,7 +1051,7 @@
|
|
|
1051
1051
|
"type": "uint256"
|
|
1052
1052
|
}
|
|
1053
1053
|
],
|
|
1054
|
-
"gas": 2681
|
|
1054
|
+
"gas": "2681"
|
|
1055
1055
|
},
|
|
1056
1056
|
{
|
|
1057
1057
|
"stateMutability": "view",
|
|
@@ -1064,7 +1064,7 @@
|
|
|
1064
1064
|
"type": "uint256"
|
|
1065
1065
|
}
|
|
1066
1066
|
],
|
|
1067
|
-
"gas": 2666
|
|
1067
|
+
"gas": "2666"
|
|
1068
1068
|
},
|
|
1069
1069
|
{
|
|
1070
1070
|
"stateMutability": "view",
|
|
@@ -1077,7 +1077,7 @@
|
|
|
1077
1077
|
"type": "address"
|
|
1078
1078
|
}
|
|
1079
1079
|
],
|
|
1080
|
-
"gas": 2696
|
|
1080
|
+
"gas": "2696"
|
|
1081
1081
|
},
|
|
1082
1082
|
{
|
|
1083
1083
|
"stateMutability": "view",
|
|
@@ -1090,7 +1090,7 @@
|
|
|
1090
1090
|
"type": "address"
|
|
1091
1091
|
}
|
|
1092
1092
|
],
|
|
1093
|
-
"gas": 2726
|
|
1093
|
+
"gas": "2726"
|
|
1094
1094
|
},
|
|
1095
1095
|
{
|
|
1096
1096
|
"stateMutability": "view",
|
|
@@ -1103,7 +1103,7 @@
|
|
|
1103
1103
|
"type": "uint256"
|
|
1104
1104
|
}
|
|
1105
1105
|
],
|
|
1106
|
-
"gas": 2756
|
|
1106
|
+
"gas": "2756"
|
|
1107
1107
|
},
|
|
1108
1108
|
{
|
|
1109
1109
|
"stateMutability": "view",
|
|
@@ -1116,7 +1116,7 @@
|
|
|
1116
1116
|
"type": "uint256"
|
|
1117
1117
|
}
|
|
1118
1118
|
],
|
|
1119
|
-
"gas": 2786
|
|
1119
|
+
"gas": "2786"
|
|
1120
1120
|
},
|
|
1121
1121
|
{
|
|
1122
1122
|
"stateMutability": "view",
|
|
@@ -1129,7 +1129,7 @@
|
|
|
1129
1129
|
"type": "uint256"
|
|
1130
1130
|
}
|
|
1131
1131
|
],
|
|
1132
|
-
"gas": 2816
|
|
1132
|
+
"gas": "2816"
|
|
1133
1133
|
},
|
|
1134
1134
|
{
|
|
1135
1135
|
"stateMutability": "view",
|
|
@@ -1142,7 +1142,7 @@
|
|
|
1142
1142
|
"type": "bool"
|
|
1143
1143
|
}
|
|
1144
1144
|
],
|
|
1145
|
-
"gas": 2846
|
|
1145
|
+
"gas": "2846"
|
|
1146
1146
|
},
|
|
1147
1147
|
{
|
|
1148
1148
|
"stateMutability": "view",
|
|
@@ -1155,7 +1155,7 @@
|
|
|
1155
1155
|
"type": "uint256"
|
|
1156
1156
|
}
|
|
1157
1157
|
],
|
|
1158
|
-
"gas": 2876
|
|
1158
|
+
"gas": "2876"
|
|
1159
1159
|
},
|
|
1160
1160
|
{
|
|
1161
1161
|
"stateMutability": "view",
|
|
@@ -1168,7 +1168,7 @@
|
|
|
1168
1168
|
"type": "uint256"
|
|
1169
1169
|
}
|
|
1170
1170
|
],
|
|
1171
|
-
"gas": 2906
|
|
1171
|
+
"gas": "2906"
|
|
1172
1172
|
},
|
|
1173
1173
|
{
|
|
1174
1174
|
"stateMutability": "view",
|
|
@@ -1181,7 +1181,7 @@
|
|
|
1181
1181
|
"type": "uint256"
|
|
1182
1182
|
}
|
|
1183
1183
|
],
|
|
1184
|
-
"gas": 2936
|
|
1184
|
+
"gas": "2936"
|
|
1185
1185
|
},
|
|
1186
1186
|
{
|
|
1187
1187
|
"stateMutability": "view",
|
|
@@ -1194,6 +1194,6 @@
|
|
|
1194
1194
|
"type": "address"
|
|
1195
1195
|
}
|
|
1196
1196
|
],
|
|
1197
|
-
"gas": 2966
|
|
1197
|
+
"gas": "2966"
|
|
1198
1198
|
}
|
|
1199
1199
|
]
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"name": "constructor"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"gas": 4244,
|
|
19
|
+
"gas": "4244",
|
|
20
20
|
"inputs": [],
|
|
21
21
|
"name": "price_oracle",
|
|
22
22
|
"outputs": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"type": "function"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"gas": 4274,
|
|
32
|
+
"gas": "4274",
|
|
33
33
|
"inputs": [],
|
|
34
34
|
"name": "price_scale",
|
|
35
35
|
"outputs": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"type": "function"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
"gas": 21320,
|
|
45
|
+
"gas": "21320",
|
|
46
46
|
"inputs": [
|
|
47
47
|
{
|
|
48
48
|
"name": "_amounts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"type": "function"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
"gas": 23822,
|
|
62
|
+
"gas": "23822",
|
|
63
63
|
"inputs": [
|
|
64
64
|
{
|
|
65
65
|
"name": "i",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"type": "function"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
"gas": 31724,
|
|
92
|
+
"gas": "31724",
|
|
93
93
|
"inputs": [
|
|
94
94
|
{
|
|
95
95
|
"name": "_amount",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"type": "function"
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
|
-
"gas": 14811,
|
|
109
|
+
"gas": "14811",
|
|
110
110
|
"inputs": [
|
|
111
111
|
{
|
|
112
112
|
"name": "_token_amount",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"type": "function"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
"gas": 9456,
|
|
130
|
+
"gas": "9456",
|
|
131
131
|
"inputs": [
|
|
132
132
|
{
|
|
133
133
|
"name": "i",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"type": "function"
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"gas": 4764,
|
|
156
|
+
"gas": "4764",
|
|
157
157
|
"inputs": [
|
|
158
158
|
{
|
|
159
159
|
"name": "_amounts",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"type": "function"
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
"gas": 6585,
|
|
174
|
+
"gas": "6585",
|
|
175
175
|
"inputs": [
|
|
176
176
|
{
|
|
177
177
|
"name": "token_amount",
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"type": "function"
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
|
-
"gas": 1535,
|
|
196
|
+
"gas": "1535",
|
|
197
197
|
"inputs": [
|
|
198
198
|
{
|
|
199
199
|
"name": "arg0",
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
"type": "function"
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
"gas": 1571,
|
|
214
|
+
"gas": "1571",
|
|
215
215
|
"inputs": [
|
|
216
216
|
{
|
|
217
217
|
"name": "arg0",
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"type": "function"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
|
-
"gas": 1556,
|
|
232
|
+
"gas": "1556",
|
|
233
233
|
"inputs": [],
|
|
234
234
|
"name": "pool",
|
|
235
235
|
"outputs": [
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"type": "function"
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
|
-
"gas": 1586,
|
|
245
|
+
"gas": "1586",
|
|
246
246
|
"inputs": [],
|
|
247
247
|
"name": "base_pool",
|
|
248
248
|
"outputs": [
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"type": "function"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
|
-
"gas": 1616,
|
|
258
|
+
"gas": "1616",
|
|
259
259
|
"inputs": [],
|
|
260
260
|
"name": "token",
|
|
261
261
|
"outputs": [
|