@paraswap/dex-lib 2.20.3 → 2.21.1

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.
Files changed (111) hide show
  1. package/build/dex/aave-v3/tokens/arbitrum.json +50 -0
  2. package/build/dex/aave-v3/tokens/avalanche.json +74 -0
  3. package/build/dex/aave-v3/tokens/fantom.json +62 -0
  4. package/build/dex/aave-v3/tokens/optimism.json +50 -0
  5. package/build/dex/aave-v3/tokens/polygon.json +116 -0
  6. package/build/dex/curve-v1-factory/config.js +91 -9
  7. package/build/dex/curve-v1-factory/config.js.map +1 -1
  8. package/build/dex/curve-v1-factory/curve-v1-factory.js +9 -3
  9. package/build/dex/curve-v1-factory/curve-v1-factory.js.map +1 -1
  10. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js +2 -0
  11. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js.map +1 -1
  12. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.js +27 -3
  13. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.js.map +1 -1
  14. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.js +6 -0
  15. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.js.map +1 -1
  16. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.js +6 -0
  17. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.js.map +1 -1
  18. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.js +6 -0
  19. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.js.map +1 -1
  20. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.js +6 -0
  21. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.js.map +1 -1
  22. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.js +6 -0
  23. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.js.map +1 -1
  24. package/build/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.js +6 -0
  25. package/build/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.js.map +1 -1
  26. package/build/dex/curve-v1-factory/price-handlers/functions/constants.js +66 -0
  27. package/build/dex/curve-v1-factory/price-handlers/functions/constants.js.map +1 -1
  28. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.js +6 -0
  29. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.js.map +1 -1
  30. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.js +20 -0
  31. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.js.map +1 -1
  32. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.js +6 -0
  33. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.js.map +1 -1
  34. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.js +26 -3
  35. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.js.map +1 -1
  36. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.js +6 -0
  37. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.js.map +1 -1
  38. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.js +6 -0
  39. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.js.map +1 -1
  40. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.js +6 -0
  41. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.js.map +1 -1
  42. package/build/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.d.ts +1 -4
  43. package/build/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.js +2 -5
  44. package/build/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.js.map +1 -1
  45. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.d.ts +3 -1
  46. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js +22 -3
  47. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js.map +1 -1
  48. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.d.ts +1 -1
  49. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.js +28 -3
  50. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.js.map +1 -1
  51. package/build/dex/curve-v1-factory/state-polling-pools/pool-polling-base.d.ts +2 -1
  52. package/build/dex/curve-v1-factory/state-polling-pools/pool-polling-base.js +2 -1
  53. package/build/dex/curve-v1-factory/state-polling-pools/pool-polling-base.js.map +1 -1
  54. package/build/dex/curve-v1-factory/types.d.ts +16 -0
  55. package/build/dex/curve-v1-factory/types.js +6 -0
  56. package/build/dex/curve-v1-factory/types.js.map +1 -1
  57. package/build/dex/index.js +2 -0
  58. package/build/dex/index.js.map +1 -1
  59. package/build/dex/quickswap/camelot-v3.d.ts +6 -0
  60. package/build/dex/quickswap/camelot-v3.js +19 -0
  61. package/build/dex/quickswap/camelot-v3.js.map +1 -0
  62. package/build/dex/quickswap/config.js +8 -0
  63. package/build/dex/quickswap/config.js.map +1 -1
  64. package/build/dex/swaap-v2/rate-fetcher.js.map +1 -1
  65. package/build/dex/test-dex/config.d.ts +4 -0
  66. package/build/dex/test-dex/config.js +15 -0
  67. package/build/dex/test-dex/config.js.map +1 -0
  68. package/build/dex/test-dex/test-dex-pool.d.ts +39 -0
  69. package/build/dex/test-dex/test-dex-pool.js +63 -0
  70. package/build/dex/test-dex/test-dex-pool.js.map +1 -0
  71. package/build/dex/test-dex/test-dex.d.ts +37 -0
  72. package/build/dex/test-dex/test-dex.js +126 -0
  73. package/build/dex/test-dex/test-dex.js.map +1 -0
  74. package/build/dex/test-dex/types.d.ts +6 -0
  75. package/build/dex/test-dex/types.js +3 -0
  76. package/build/dex/test-dex/types.js.map +1 -0
  77. package/build/dex/woo-fi-v2/woo-fi-math.d.ts +16 -0
  78. package/build/dex/woo-fi-v2/woo-fi-math.js +137 -0
  79. package/build/dex/woo-fi-v2/woo-fi-math.js.map +1 -0
  80. package/package.json +1 -1
  81. package/src/dex/curve-v1-factory/config.ts +91 -9
  82. package/src/dex/curve-v1-factory/curve-v1-factory-e2e.test.ts +36 -0
  83. package/src/dex/curve-v1-factory/curve-v1-factory.ts +12 -1
  84. package/src/dex/curve-v1-factory/curve-v1-pool-manager.ts +6 -0
  85. package/src/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.ts +53 -6
  86. package/src/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.ts +7 -0
  87. package/src/dex/curve-v1-factory/price-handlers/functions/_rates.ts +7 -0
  88. package/src/dex/curve-v1-factory/price-handlers/functions/_xp.ts +7 -0
  89. package/src/dex/curve-v1-factory/price-handlers/functions/_xp_mem.ts +7 -0
  90. package/src/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.ts +7 -0
  91. package/src/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.ts +7 -0
  92. package/src/dex/curve-v1-factory/price-handlers/functions/constants.ts +78 -0
  93. package/src/dex/curve-v1-factory/price-handlers/functions/get_D.ts +13 -0
  94. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_mem.ts +40 -3
  95. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.ts +7 -0
  96. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy.ts +53 -4
  97. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.ts +7 -0
  98. package/src/dex/curve-v1-factory/price-handlers/functions/get_y.ts +7 -0
  99. package/src/dex/curve-v1-factory/price-handlers/functions/get_y_D.ts +7 -0
  100. package/src/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.ts +5 -3
  101. package/src/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.ts +42 -1
  102. package/src/dex/curve-v1-factory/state-polling-pools/polling-manager.ts +43 -9
  103. package/src/dex/curve-v1-factory/state-polling-pools/pool-polling-base.ts +1 -0
  104. package/src/dex/curve-v1-factory/types.ts +14 -0
  105. package/src/dex/index.ts +2 -0
  106. package/src/dex/quickswap/camelot-v3.ts +15 -0
  107. package/src/dex/quickswap/config.ts +9 -0
  108. package/src/dex/quickswap/quickswap-e2e.test.ts +109 -0
  109. package/src/dex/swaap-v2/rate-fetcher.ts +10 -10
  110. package/src/dex/swaap-v2/swaap-v2-e2e.test.ts +1 -4
  111. package/tests/constants-e2e.ts +6 -10
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "aSymbol": "aArbDAI",
4
+ "aAddress": "0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE",
5
+ "address": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
6
+ "decimals": 18
7
+ },
8
+ {
9
+ "aSymbol": "aArbEURS",
10
+ "aAddress": "0x6d80113e533a2C0fe82EaBD35f1875DcEA89Ea97",
11
+ "address": "0xd22a58f79e9481d1a88e00c343885a588b34b68b",
12
+ "decimals": 2
13
+ },
14
+ {
15
+ "aSymbol": "aArbUSDC",
16
+ "aAddress": "0x625E7708f30cA75bfd92586e17077590C60eb4cD",
17
+ "address": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
18
+ "decimals": 6
19
+ },
20
+ {
21
+ "aSymbol": "aArbUSDT",
22
+ "aAddress": "0x6ab707aca953edaefbc4fd23ba73294241490620",
23
+ "address": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
24
+ "decimals": 6
25
+ },
26
+ {
27
+ "aSymbol": "aArbAAVE",
28
+ "aAddress": "0xf329e36C7bF6E5E86ce2150875a84Ce77f477375",
29
+ "address": "0xba5ddd1f9d7f570dc94a51479a000e3bce967196",
30
+ "decimals": 18
31
+ },
32
+ {
33
+ "aSymbol": "aArbLINK",
34
+ "aAddress": "0x191c10Aa4AF7C30e871E70C95dB0E4eb77237530",
35
+ "address": "0xf97f4df75117a78c1a5a0dbb814af92458539fb4",
36
+ "decimals": 18
37
+ },
38
+ {
39
+ "aSymbol": "aArbWBTC",
40
+ "aAddress": "0x078f358208685046a11C85e8ad32895DED33A249",
41
+ "address": "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
42
+ "decimals": 8
43
+ },
44
+ {
45
+ "aSymbol": "aArbWETH",
46
+ "aAddress": "0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8",
47
+ "address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
48
+ "decimals": 18
49
+ }
50
+ ]
@@ -0,0 +1,74 @@
1
+ [
2
+ {
3
+ "aSymbol": "aAvaDAI",
4
+ "aAddress": "0x82e64f49ed5ec1bc6e43dad4fc8af9bb3a2312ee",
5
+ "address": "0xd586e7f844cea2f87f50152665bcbc2c279d8d70",
6
+ "decimals": 18
7
+ },
8
+ {
9
+ "aSymbol": "aAvaFRAX",
10
+ "aAddress": "0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA",
11
+ "address": "0xD24C2Ad096400B6FBcd2ad8B24E7acBc21A1da64",
12
+ "decimals": 18
13
+ },
14
+ {
15
+ "aSymbol": "aAvaMAI",
16
+ "aAddress": "0x8Eb270e296023E9D92081fdF967dDd7878724424",
17
+ "address": "0x5c49b268c9841AFF1Cc3B0a418ff5c3442eE3F3b",
18
+ "decimals": 18
19
+ },
20
+ {
21
+ "aSymbol": "aAvaUSDC",
22
+ "aAddress": "0x625e7708f30ca75bfd92586e17077590c60eb4cd",
23
+ "address": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
24
+ "decimals": 6
25
+ },
26
+ {
27
+ "aSymbol": "aAvaUSDT",
28
+ "aAddress": "0x6ab707aca953edaefbc4fd23ba73294241490620",
29
+ "address": "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7",
30
+ "decimals": 6
31
+ },
32
+ {
33
+ "aSymbol": "aAvaAAVE",
34
+ "aAddress": "0xf329e36c7bf6e5e86ce2150875a84ce77f477375",
35
+ "address": "0x63a72806098bd3d9520cc43356dd78afe5d386d9",
36
+ "decimals": 18
37
+ },
38
+ {
39
+ "aSymbol": "aAvaBTC.b",
40
+ "aAddress": "0x8ffDf2DE812095b1D19CB146E4c004587C0A0692",
41
+ "address": "0x152b9d0FdC40C096757F570A51E494bd4b943E50",
42
+ "decimals": 8
43
+ },
44
+ {
45
+ "aSymbol": "aAvaLINK",
46
+ "aAddress": "0x191c10aa4af7c30e871e70c95db0e4eb77237530",
47
+ "address": "0x5947bb275c521040051d82396192181b413227a3",
48
+ "decimals": 18
49
+ },
50
+ {
51
+ "aSymbol": "aAvaSAVAX",
52
+ "aAddress": "0x513c7E3a9c69cA3e22550eF58AC1C0088e918FFf",
53
+ "address": "0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE",
54
+ "decimals": 18
55
+ },
56
+ {
57
+ "aSymbol": "aAvaWAVAX",
58
+ "aAddress": "0x6d80113e533a2C0fe82EaBD35f1875DcEA89Ea97",
59
+ "address": "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
60
+ "decimals": 18
61
+ },
62
+ {
63
+ "aSymbol": "aAvaWBTC",
64
+ "aAddress": "0x078f358208685046a11c85e8ad32895ded33a249",
65
+ "address": "0x50b7545627a5162f82a992c33b87adc75187b218",
66
+ "decimals": 8
67
+ },
68
+ {
69
+ "aSymbol": "aAvaWETH",
70
+ "aAddress": "0xe50fa9b3c56ffb159cb0fca61f5c9d750e8128c8",
71
+ "address": "0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab",
72
+ "decimals": 18
73
+ }
74
+ ]
@@ -0,0 +1,62 @@
1
+ [
2
+ {
3
+ "aSymbol": "aFanAAVE",
4
+ "aAddress": "0xf329e36c7bf6e5e86ce2150875a84ce77f477375",
5
+ "address": "0x6a07a792ab2965c72a5b8088d3a069a7ac3a993b",
6
+ "decimals": 18
7
+ },
8
+ {
9
+ "aSymbol": "aFanDAI",
10
+ "aAddress": "0x82e64f49ed5ec1bc6e43dad4fc8af9bb3a2312ee",
11
+ "address": "0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e",
12
+ "decimals": 18
13
+ },
14
+ {
15
+ "aSymbol": "aFanUSDT",
16
+ "aAddress": "0x6ab707aca953edaefbc4fd23ba73294241490620",
17
+ "address": "0x049d68029688eabf473097a2fc38ef61633a3c7a",
18
+ "decimals": 6
19
+ },
20
+ {
21
+ "aSymbol": "aFanLINK",
22
+ "aAddress": "0x191c10aa4af7c30e871e70c95db0e4eb77237530",
23
+ "address": "0xb3654dc3d10ea7645f8319668e8f54d2574fbdc8",
24
+ "decimals": 18
25
+ },
26
+ {
27
+ "aSymbol": "aFanWFTM",
28
+ "aAddress": "0x6d80113e533a2c0fe82eabd35f1875dcea89ea97",
29
+ "address": "0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83",
30
+ "decimals": 18
31
+ },
32
+ {
33
+ "aSymbol": "aFanUSDC",
34
+ "aAddress": "0x625e7708f30ca75bfd92586e17077590c60eb4cd",
35
+ "address": "0x04068da6c83afcfa0e13ba15a6696662335d5b75",
36
+ "decimals": 6
37
+ },
38
+ {
39
+ "aSymbol": "aFanWBTC",
40
+ "aAddress": "0x078f358208685046a11c85e8ad32895ded33a249",
41
+ "address": "0x321162cd933e2be498cd2267a90534a804051b11",
42
+ "decimals": 8
43
+ },
44
+ {
45
+ "aSymbol": "aFanWETH",
46
+ "aAddress": "0xe50fa9b3c56ffb159cb0fca61f5c9d750e8128c8",
47
+ "address": "0x74b23882a30290451a17c44f4f05243b6b58c76d",
48
+ "decimals": 18
49
+ },
50
+ {
51
+ "aSymbol": "aFanCRV",
52
+ "aAddress": "0x513c7e3a9c69ca3e22550ef58ac1c0088e918fff",
53
+ "address": "0x1e4f97b9f9f913c46f1632781732927b9019c68b",
54
+ "decimals": 18
55
+ },
56
+ {
57
+ "aSymbol": "aFanSUSHI",
58
+ "aAddress": "0xc45a479877e1e9dfe9fcd4056c699575a1045daa",
59
+ "address": "0xae75a438b2e0cb8bb01ec1e1e376de11d44477cc",
60
+ "decimals": 18
61
+ }
62
+ ]
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "aSymbol": "aOptDAI",
4
+ "aAddress": "0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE",
5
+ "address": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
6
+ "decimals": 18
7
+ },
8
+ {
9
+ "aSymbol": "aOptSUSD",
10
+ "aAddress": "0x6d80113e533a2C0fe82EaBD35f1875DcEA89Ea97",
11
+ "address": "0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9",
12
+ "decimals": 18
13
+ },
14
+ {
15
+ "aSymbol": "aOptUSDC",
16
+ "aAddress": "0x625E7708f30cA75bfd92586e17077590C60eb4cD",
17
+ "address": "0x7f5c764cbc14f9669b88837ca1490cca17c31607",
18
+ "decimals": 6
19
+ },
20
+ {
21
+ "aSymbol": "aOptUSDT",
22
+ "aAddress": "0x6ab707aca953edaefbc4fd23ba73294241490620",
23
+ "address": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
24
+ "decimals": 6
25
+ },
26
+ {
27
+ "aSymbol": "aOptAAVE",
28
+ "aAddress": "0xf329e36C7bF6E5E86ce2150875a84Ce77f477375",
29
+ "address": "0x76fb31fb4af56892a25e32cfc43de717950c9278",
30
+ "decimals": 18
31
+ },
32
+ {
33
+ "aSymbol": "aOptLINK",
34
+ "aAddress": "0x191c10Aa4AF7C30e871E70C95dB0E4eb77237530",
35
+ "address": "0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6",
36
+ "decimals": 18
37
+ },
38
+ {
39
+ "aSymbol": "aOptWBTC",
40
+ "aAddress": "0x078f358208685046a11C85e8ad32895DED33A249",
41
+ "address": "0x68f180fcce6836688e9084f035309e29bf0a2095",
42
+ "decimals": 8
43
+ },
44
+ {
45
+ "aSymbol": "aOptWETH",
46
+ "aAddress": "0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8",
47
+ "address": "0x4200000000000000000000000000000000000006",
48
+ "decimals": 18
49
+ }
50
+ ]
@@ -0,0 +1,116 @@
1
+ [
2
+ {
3
+ "aSymbol": "aPolAGEUR",
4
+ "aAddress": "0x8437d7c167dfb82ed4cb79cd44b7a32a1dd95c77",
5
+ "address": "0xe0b52e49357fd4daf2c15e02058dce6bc0057db4",
6
+ "decimals": 18
7
+ },
8
+ {
9
+ "aSymbol": "aPolDAI",
10
+ "aAddress": "0x82e64f49ed5ec1bc6e43dad4fc8af9bb3a2312ee",
11
+ "address": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
12
+ "decimals": 18
13
+ },
14
+ {
15
+ "aSymbol": "aPolEURS",
16
+ "aAddress": "0x38d693ce1df5aadf7bc62595a37d667ad57922e5",
17
+ "address": "0xe111178a87a3bff0c8d18decba5798827539ae99",
18
+ "decimals": 2
19
+ },
20
+ {
21
+ "aSymbol": "aPolJEUR",
22
+ "aAddress": "0x6533afac2e7bccb20dca161449a13a32d391fb00",
23
+ "address": "0x4e3decbb3645551b8a19f0ea1678079fcb33fb4c",
24
+ "decimals": 18
25
+ },
26
+ {
27
+ "aSymbol": "aPolMIMATIC",
28
+ "aAddress": "0xeBe517846d0F36eCEd99C735cbF6131e1fEB775D",
29
+ "address": "0xa3Fa99A148fA48D14Ed51d610c367C61876997F1",
30
+ "decimals": 18
31
+ },
32
+ {
33
+ "aSymbol": "aPolUSDC",
34
+ "aAddress": "0x625e7708f30ca75bfd92586e17077590c60eb4cd",
35
+ "address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
36
+ "decimals": 6
37
+ },
38
+ {
39
+ "aSymbol": "aPolUSDT",
40
+ "aAddress": "0x6ab707aca953edaefbc4fd23ba73294241490620",
41
+ "address": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
42
+ "decimals": 6
43
+ },
44
+ {
45
+ "aSymbol": "aPolAAVE",
46
+ "aAddress": "0xf329e36c7bf6e5e86ce2150875a84ce77f477375",
47
+ "address": "0xd6df932a45c0f255f85145f286ea0b292b21c90b",
48
+ "decimals": 18
49
+ },
50
+ {
51
+ "aSymbol": "aPolBAL",
52
+ "aAddress": "0x8ffdf2de812095b1d19cb146e4c004587c0a0692",
53
+ "address": "0x9a71012b13ca4d3d0cdc72a177df3ef03b0e76a3",
54
+ "decimals": 18
55
+ },
56
+ {
57
+ "aSymbol": "aPolCRV",
58
+ "aAddress": "0x513c7e3a9c69ca3e22550ef58ac1c0088e918fff",
59
+ "address": "0x172370d5cd63279efa6d502dab29171933a610af",
60
+ "decimals": 18
61
+ },
62
+ {
63
+ "aSymbol": "aPolDPI",
64
+ "aAddress": "0x724dc807b04555b71ed48a6896b6f41593b8c637",
65
+ "address": "0x85955046df4668e1dd369d2de9f3aeb98dd2a369",
66
+ "decimals": 18
67
+ },
68
+ {
69
+ "aSymbol": "aPolGHST",
70
+ "aAddress": "0x8eb270e296023e9d92081fdf967ddd7878724424",
71
+ "address": "0x385eeac5cb85a38a9a07a70c73e0a3271cfb54a7",
72
+ "decimals": 18
73
+ },
74
+ {
75
+ "aSymbol": "aPolLINK",
76
+ "aAddress": "0x191c10aa4af7c30e871e70c95db0e4eb77237530",
77
+ "address": "0x53e0bca35ec356bd5dddfebbd1fc0fd03fabad39",
78
+ "decimals": 18
79
+ },
80
+ {
81
+ "aSymbol": "aPolMATICX",
82
+ "aAddress": "0x80cA0d8C38d2e2BcbaB66aA1648Bd1C7160500FE",
83
+ "address": "0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6",
84
+ "decimals": 18
85
+ },
86
+ {
87
+ "aSymbol": "aPolSTMATIC",
88
+ "aAddress": "0xEA1132120ddcDDA2F119e99Fa7A27a0d036F7Ac9",
89
+ "address": "0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4",
90
+ "decimals": 18
91
+ },
92
+ {
93
+ "aSymbol": "aPolSUSHI",
94
+ "aAddress": "0xc45a479877e1e9dfe9fcd4056c699575a1045daa",
95
+ "address": "0x0b3f868e0be5597d5db7feb59e1cadbb0fdda50a",
96
+ "decimals": 18
97
+ },
98
+ {
99
+ "aSymbol": "aPolWBTC",
100
+ "aAddress": "0x078f358208685046a11c85e8ad32895ded33a249",
101
+ "address": "0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6",
102
+ "decimals": 8
103
+ },
104
+ {
105
+ "aSymbol": "aPolWETH",
106
+ "aAddress": "0xe50fa9b3c56ffb159cb0fca61f5c9d750e8128c8",
107
+ "address": "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
108
+ "decimals": 18
109
+ },
110
+ {
111
+ "aSymbol": "aPolWMATIC",
112
+ "aAddress": "0x6d80113e533a2c0fe82eabd35f1875dcea89ea97",
113
+ "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
114
+ "decimals": 18
115
+ }
116
+ ]
@@ -9,7 +9,9 @@ const CurveV1FactoryConfig = {
9
9
  [constants_1.Network.MAINNET]: {
10
10
  factoryAddress: '0xB9fC157394Af804a3578134A6585C0dc9cc990d4',
11
11
  stateUpdatePeriodMs: 5 * 1000,
12
- disabledPools: new Set([]),
12
+ disabledPools: new Set([
13
+ '0x28B0Cf1baFB707F2c6826d10caf6DD901a6540C5', // It is rug pool token
14
+ ]),
13
15
  disabledImplementations: new Set([]),
14
16
  factoryPoolImplementations: {
15
17
  '0x2f956eee002b0debd468cf2e0490d1aec65e027f': {
@@ -62,6 +64,38 @@ const CurveV1FactoryConfig = {
62
64
  address: '0x2eb24483ef551da247ab87cf18e1cc980073032d',
63
65
  basePoolAddress: '0xDcEF968d416a41Cdac0ED8702fAC8128A64241A2',
64
66
  },
67
+ '0x008cfa89df5b0c780ca3462fc2602d7f8c7ac315': {
68
+ name: types_1.ImplementationNames.FACTORY_META_BTC_SBTC2,
69
+ address: '0x008cfa89df5b0c780ca3462fc2602d7f8c7ac315',
70
+ basePoolAddress: '0xf253f83AcA21aAbD2A20553AE0BF7F65C755A07F',
71
+ },
72
+ '0xabc533ebcdded41215c46ee078c5818b5b0a252f': {
73
+ name: types_1.ImplementationNames.FACTORY_META_BTC_BALANCES_SBTC2,
74
+ address: '0xabc533ebcdded41215c46ee078c5818b5b0a252f',
75
+ basePoolAddress: '0xf253f83AcA21aAbD2A20553AE0BF7F65C755A07F',
76
+ },
77
+ '0xc629a01ec23ab04e1050500a3717a2a5c0701497': {
78
+ name: types_1.ImplementationNames.FACTORY_PLAIN_2_BASIC_EMA,
79
+ address: '0xc629a01ec23ab04e1050500a3717a2a5c0701497',
80
+ customGasCost: 130000,
81
+ },
82
+ '0x94b4dfd9ba5865cc931195c99a2db42f3fc5d45b': {
83
+ name: types_1.ImplementationNames.FACTORY_PLAIN_2_ETH_EMA,
84
+ address: '0x94b4dfd9ba5865cc931195c99a2db42f3fc5d45b',
85
+ customGasCost: 130000,
86
+ },
87
+ '0x847ee1227a9900b73aeeb3a47fac92c52fd54ed9': {
88
+ name: types_1.ImplementationNames.FACTORY_PLAIN_2_ETH_EMA2,
89
+ address: '0x847ee1227a9900b73aeeb3a47fac92c52fd54ed9',
90
+ customGasCost: 130000,
91
+ isStoreRateSupported: true,
92
+ },
93
+ '0x1713141278648a4edd5b027fdbd448bb4a13ac0f': {
94
+ name: types_1.ImplementationNames.FACTORY_PLAIN_2_ETH_EMA2,
95
+ address: '0x1713141278648a4edd5b027fdbd448bb4a13ac0f',
96
+ customGasCost: 130000,
97
+ isStoreRateSupported: true,
98
+ },
65
99
  '0x24d937143d3f5cf04c72ba112735151a8cae2262': {
66
100
  name: types_1.ImplementationNames.FACTORY_PLAIN_2_BALANCES,
67
101
  address: '0x24d937143d3f5cf04c72ba112735151a8cae2262',
@@ -119,6 +153,7 @@ const CurveV1FactoryConfig = {
119
153
  liquidityApiSlug: '/main',
120
154
  coinsInputType: 'uint256',
121
155
  balancesInputType: 'uint256',
156
+ useForPricing: false,
122
157
  },
123
158
  '0x7fC77b5c7614E1533320Ea6DDc2Eb61fa00A9714': {
124
159
  name: types_1.CustomImplementationNames.CUSTOM_PLAIN_3COIN_SBTC,
@@ -127,6 +162,7 @@ const CurveV1FactoryConfig = {
127
162
  liquidityApiSlug: '/main',
128
163
  coinsInputType: 'int128',
129
164
  balancesInputType: 'int128',
165
+ useForPricing: false,
130
166
  },
131
167
  '0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7': {
132
168
  name: types_1.CustomImplementationNames.CUSTOM_PLAIN_3COIN_THREE,
@@ -135,6 +171,7 @@ const CurveV1FactoryConfig = {
135
171
  liquidityApiSlug: '/main',
136
172
  coinsInputType: 'uint256',
137
173
  balancesInputType: 'uint256',
174
+ useForPricing: false,
138
175
  },
139
176
  '0x93054188d876f558f4a66B2EF1d97d16eDf0895B': {
140
177
  name: types_1.CustomImplementationNames.CUSTOM_PLAIN_2COIN_RENBTC,
@@ -143,6 +180,16 @@ const CurveV1FactoryConfig = {
143
180
  liquidityApiSlug: '/main',
144
181
  coinsInputType: 'int128',
145
182
  balancesInputType: 'int128',
183
+ useForPricing: false,
184
+ },
185
+ '0xf253f83aca21aabd2a20553ae0bf7f65c755a07f': {
186
+ name: types_1.CustomImplementationNames.CUSTOM_PLAIN_2COIN_WBTC,
187
+ address: '0xf253f83aca21aabd2a20553ae0bf7f65c755a07f',
188
+ lpTokenAddress: '0x051d7e5609917Bd9b73f04BAc0DED8Dd46a74301',
189
+ liquidityApiSlug: '/main',
190
+ coinsInputType: 'uint256',
191
+ balancesInputType: 'uint256',
192
+ useForPricing: true,
146
193
  },
147
194
  },
148
195
  },
@@ -239,6 +286,7 @@ const CurveV1FactoryConfig = {
239
286
  liquidityApiSlug: '/main',
240
287
  coinsInputType: 'uint256',
241
288
  balancesInputType: 'uint256',
289
+ useForPricing: false,
242
290
  },
243
291
  '0xC2d95EEF97Ec6C17551d45e77B590dc1F9117C67': {
244
292
  name: types_1.CustomImplementationNames.CUSTOM_POLYGON_2COIN_LENDING,
@@ -247,6 +295,7 @@ const CurveV1FactoryConfig = {
247
295
  liquidityApiSlug: '/main',
248
296
  coinsInputType: 'uint256',
249
297
  balancesInputType: 'uint256',
298
+ useForPricing: false,
250
299
  },
251
300
  },
252
301
  },
@@ -343,6 +392,7 @@ const CurveV1FactoryConfig = {
343
392
  liquidityApiSlug: '/main',
344
393
  coinsInputType: 'uint256',
345
394
  balancesInputType: 'uint256',
395
+ useForPricing: false,
346
396
  },
347
397
  '0x3eF6A01A0f81D6046290f3e2A8c5b843e738E604': {
348
398
  name: types_1.CustomImplementationNames.CUSTOM_FANTOM_2COIN_BTC,
@@ -351,15 +401,17 @@ const CurveV1FactoryConfig = {
351
401
  liquidityApiSlug: '/main',
352
402
  coinsInputType: 'uint256',
353
403
  balancesInputType: 'uint256',
404
+ useForPricing: false,
405
+ },
406
+ '0x0fa949783947Bf6c1b171DB13AEACBB488845B3f': {
407
+ name: types_1.CustomImplementationNames.CUSTOM_FANTOM_3COIN_LENDING,
408
+ address: '0x0fa949783947Bf6c1b171DB13AEACBB488845B3f',
409
+ lpTokenAddress: '0xD02a30d33153877BC20e5721ee53DeDEE0422B2F',
410
+ liquidityApiSlug: '/main',
411
+ coinsInputType: 'uint256',
412
+ balancesInputType: 'uint256',
413
+ useForPricing: false,
354
414
  },
355
- // '0x0fa949783947Bf6c1b171DB13AEACBB488845B3f': {
356
- // name: CustomImplementationNames.CUSTOM_FANTOM_3COIN_LENDING,
357
- // address: '0x0fa949783947Bf6c1b171DB13AEACBB488845B3f',
358
- // lpTokenAddress: '0xD02a30d33153877BC20e5721ee53DeDEE0422B2F',
359
- // liquidityApiSlug: '/main',
360
- // coinsInputType: 'uint256',
361
- // balancesInputType: 'uint256',
362
- // },
363
415
  },
364
416
  },
365
417
  [constants_1.Network.AVALANCHE]: {
@@ -448,6 +500,7 @@ const CurveV1FactoryConfig = {
448
500
  liquidityApiSlug: '/main',
449
501
  coinsInputType: 'uint256',
450
502
  balancesInputType: 'uint256',
503
+ useForPricing: false,
451
504
  },
452
505
  // This contract is not verified. I think it is just abandoned. I am commenting both related
453
506
  // btc meta pools
@@ -543,6 +596,17 @@ const CurveV1FactoryConfig = {
543
596
  address: '0xF1f85a74AD6c64315F85af52d3d46bF715236ADc',
544
597
  basePoolAddress: '0x3E01dD8a5E1fb3481F0F589056b428Fc308AF0Fb',
545
598
  },
599
+ '0x73ec37618683c274d0bbf5f5726aa856b2bdab81': {
600
+ name: types_1.ImplementationNames.FACTORY_PLAIN_2_BASIC_EMA,
601
+ address: '0x73ec37618683c274d0bbf5f5726aa856b2bdab81',
602
+ customGasCost: 130000,
603
+ },
604
+ '0x6f9fb833501f46cbe6f6a4b6cf32c834e5a5e8c5': {
605
+ name: types_1.ImplementationNames.FACTORY_PLAIN_2_ETH_EMA2,
606
+ address: '0x6f9fb833501f46cbe6f6a4b6cf32c834e5a5e8c5',
607
+ customGasCost: 130000,
608
+ isStoreRateSupported: true,
609
+ },
546
610
  },
547
611
  customPools: {
548
612
  '0x7f90122BF0700F9E7e1F688fe926940E8839F353': {
@@ -552,6 +616,7 @@ const CurveV1FactoryConfig = {
552
616
  liquidityApiSlug: '/main',
553
617
  coinsInputType: 'uint256',
554
618
  balancesInputType: 'uint256',
619
+ useForPricing: false,
555
620
  },
556
621
  '0xC9B8a3FDECB9D5b218d02555a8Baf332E5B740d5': {
557
622
  name: types_1.FactoryImplementationNames.FACTORY_PLAIN_2_BASIC,
@@ -560,6 +625,7 @@ const CurveV1FactoryConfig = {
560
625
  liquidityApiSlug: '/factory',
561
626
  coinsInputType: 'uint256',
562
627
  balancesInputType: 'uint256',
628
+ useForPricing: false,
563
629
  },
564
630
  '0x3E01dD8a5E1fb3481F0F589056b428Fc308AF0Fb': {
565
631
  name: types_1.CustomImplementationNames.CUSTOM_ARBITRUM_2COIN_BTC,
@@ -568,6 +634,7 @@ const CurveV1FactoryConfig = {
568
634
  liquidityApiSlug: '/main',
569
635
  coinsInputType: 'uint256',
570
636
  balancesInputType: 'uint256',
637
+ useForPricing: false,
571
638
  },
572
639
  },
573
640
  },
@@ -645,6 +712,17 @@ const CurveV1FactoryConfig = {
645
712
  address: '0x114C4042B11a2b16F58Fe1BFe847589a122F678a',
646
713
  basePoolAddress: '0x29A3d66B30Bc4AD674A4FDAF27578B64f6afbFe7',
647
714
  },
715
+ '0x73ec37618683c274d0bbf5f5726aa856b2bdab81': {
716
+ name: types_1.ImplementationNames.FACTORY_PLAIN_2_BASIC_EMA,
717
+ address: '0x73ec37618683c274d0bbf5f5726aa856b2bdab81',
718
+ customGasCost: 130000,
719
+ },
720
+ '0x6f9fb833501f46cbe6f6a4b6cf32c834e5a5e8c5': {
721
+ name: types_1.ImplementationNames.FACTORY_PLAIN_2_ETH_EMA2,
722
+ address: '0x6f9fb833501f46cbe6f6a4b6cf32c834e5a5e8c5',
723
+ customGasCost: 130000,
724
+ isStoreRateSupported: true,
725
+ },
648
726
  },
649
727
  customPools: {
650
728
  '0x1337BedC9D22ecbe766dF105c9623922A27963EC': {
@@ -654,6 +732,7 @@ const CurveV1FactoryConfig = {
654
732
  liquidityApiSlug: '/main',
655
733
  coinsInputType: 'uint256',
656
734
  balancesInputType: 'uint256',
735
+ useForPricing: false,
657
736
  },
658
737
  '0x29A3d66B30Bc4AD674A4FDAF27578B64f6afbFe7': {
659
738
  name: types_1.FactoryImplementationNames.FACTORY_PLAIN_2_BASIC,
@@ -662,6 +741,7 @@ const CurveV1FactoryConfig = {
662
741
  liquidityApiSlug: '/factory',
663
742
  coinsInputType: 'uint256',
664
743
  balancesInputType: 'uint256',
744
+ useForPricing: false,
665
745
  },
666
746
  },
667
747
  },
@@ -748,6 +828,7 @@ const configAddressesNormalizer = (config) => {
748
828
  balancesInputType: customPoolConfig.balancesInputType,
749
829
  address: (0, utils_1.normalizeAddress)(customPoolConfig.address),
750
830
  lpTokenAddress: (0, utils_1.normalizeAddress)(customPoolConfig.lpTokenAddress),
831
+ useForPricing: customPoolConfig.useForPricing,
751
832
  };
752
833
  acc[(0, utils_1.normalizeAddress)(customPoolAddress)] = normalizedImplementation;
753
834
  return acc;
@@ -760,6 +841,7 @@ const configAddressesNormalizer = (config) => {
760
841
  basePoolAddress: implementationConfig.basePoolAddress
761
842
  ? (0, utils_1.normalizeAddress)(implementationConfig.basePoolAddress)
762
843
  : undefined,
844
+ isStoreRateSupported: implementationConfig.isStoreRateSupported,
763
845
  };
764
846
  acc[(0, utils_1.normalizeAddress)(implementationAddress)] =
765
847
  normalizedImplementation;