@curvefi/api 2.53.4 → 2.53.6

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.
@@ -1671,4 +1671,134 @@ export var LLAMMAS_DATA_ETHEREUM = lowerCasePoolDataAddresses({
1671
1671
  swap_abi: LlammaABI,
1672
1672
  gauge_abi: gaugeV5ABI,
1673
1673
  },
1674
+ "wsteth-llamma": {
1675
+ name: "wsteth",
1676
+ full_name: "wsteth",
1677
+ symbol: "wsteth",
1678
+ reference_asset: "CRYPTO",
1679
+ swap_address: '0x37417b2238aa52d0dd2d6252d989e728e8f706e4',
1680
+ token_address: '0x0000000000000000000000000000000000000000',
1681
+ gauge_address: '0x0000000000000000000000000000000000000000',
1682
+ is_crypto: true,
1683
+ is_plain: true,
1684
+ is_llamma: true,
1685
+ underlying_coins: ['crvUSD', 'wstETH'],
1686
+ wrapped_coins: ['crvUSD', 'wstETH'],
1687
+ underlying_coin_addresses: [
1688
+ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
1689
+ '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
1690
+ ],
1691
+ wrapped_coin_addresses: [
1692
+ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
1693
+ '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
1694
+ ],
1695
+ underlying_decimals: [18, 18],
1696
+ wrapped_decimals: [18, 18],
1697
+ swap_abi: LlammaABI,
1698
+ gauge_abi: gaugeV5ABI,
1699
+ },
1700
+ "wbtc-llamma": {
1701
+ name: "wbtc",
1702
+ full_name: "wbtc",
1703
+ symbol: "wbtc",
1704
+ reference_asset: "CRYPTO",
1705
+ swap_address: '0xe0438eb3703bf871e31ce639bd351109c88666ea',
1706
+ token_address: '0x0000000000000000000000000000000000000000',
1707
+ gauge_address: '0x0000000000000000000000000000000000000000',
1708
+ is_crypto: true,
1709
+ is_plain: true,
1710
+ is_llamma: true,
1711
+ underlying_coins: ['crvUSD', 'WBTC'],
1712
+ wrapped_coins: ['crvUSD', 'WBTC'],
1713
+ underlying_coin_addresses: [
1714
+ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
1715
+ '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599',
1716
+ ],
1717
+ wrapped_coin_addresses: [
1718
+ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
1719
+ '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599',
1720
+ ],
1721
+ underlying_decimals: [18, 8],
1722
+ wrapped_decimals: [18, 8],
1723
+ swap_abi: LlammaABI,
1724
+ gauge_abi: gaugeV5ABI,
1725
+ },
1726
+ "weth-llamma": {
1727
+ name: "weth",
1728
+ full_name: "weth",
1729
+ symbol: "weth",
1730
+ reference_asset: "CRYPTO",
1731
+ swap_address: '0x1681195c176239ac5e72d9aebacf5b2492e0c4ee',
1732
+ token_address: '0x0000000000000000000000000000000000000000',
1733
+ gauge_address: '0x0000000000000000000000000000000000000000',
1734
+ is_crypto: true,
1735
+ is_plain: true,
1736
+ is_llamma: true,
1737
+ underlying_coins: ['crvUSD', 'WETH'],
1738
+ wrapped_coins: ['crvUSD', 'WETH'],
1739
+ underlying_coin_addresses: [
1740
+ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
1741
+ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
1742
+ ],
1743
+ wrapped_coin_addresses: [
1744
+ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
1745
+ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
1746
+ ],
1747
+ underlying_decimals: [18, 18],
1748
+ wrapped_decimals: [18, 18],
1749
+ swap_abi: LlammaABI,
1750
+ gauge_abi: gaugeV5ABI,
1751
+ },
1752
+ "sfrxeth2-llamma": {
1753
+ name: "sfrxeth2",
1754
+ full_name: "sfrxeth2",
1755
+ symbol: "sfrxeth2",
1756
+ reference_asset: 'CRYPTO',
1757
+ swap_address: '0xfa96ad0a9e64261db86950e2da362f5572c5c6fd',
1758
+ token_address: '0x0000000000000000000000000000000000000000',
1759
+ gauge_address: '0x0000000000000000000000000000000000000000',
1760
+ is_crypto: true,
1761
+ is_plain: true,
1762
+ is_llamma: true,
1763
+ underlying_coins: ['crvUSD', 'sfrxETH'],
1764
+ wrapped_coins: ['crvUSD', 'sfrxETH'],
1765
+ underlying_coin_addresses: [
1766
+ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
1767
+ '0xac3E018457B222d93114458476f3E3416Abbe38F',
1768
+ ],
1769
+ wrapped_coin_addresses: [
1770
+ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
1771
+ '0xac3E018457B222d93114458476f3E3416Abbe38F',
1772
+ ],
1773
+ underlying_decimals: [18, 18],
1774
+ wrapped_decimals: [18, 18],
1775
+ swap_abi: LlammaABI,
1776
+ gauge_abi: gaugeV5ABI,
1777
+ },
1778
+ "tbtc-llamma": {
1779
+ name: "tbtc",
1780
+ full_name: "tbtc",
1781
+ symbol: "tbtc",
1782
+ reference_asset: "CRYPTO",
1783
+ swap_address: '0xf9bd9da2427a50908c4c6d1599d8e62837c2bcb0',
1784
+ token_address: '0x0000000000000000000000000000000000000000',
1785
+ gauge_address: '0x0000000000000000000000000000000000000000',
1786
+ is_crypto: true,
1787
+ is_plain: true,
1788
+ is_llamma: true,
1789
+ underlying_coins: ['crvUSD', 'tBTC'],
1790
+ wrapped_coins: ['crvUSD', 'tBTC'],
1791
+ underlying_coin_addresses: [
1792
+ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
1793
+ '0x18084fba666a33d37592fa2633fd49a74dd93a88',
1794
+ ],
1795
+ wrapped_coin_addresses: [
1796
+ '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
1797
+ '0x18084fba666a33d37592fa2633fd49a74dd93a88',
1798
+ ],
1799
+ underlying_decimals: [18, 18],
1800
+ wrapped_decimals: [18, 18],
1801
+ swap_abi: LlammaABI,
1802
+ gauge_abi: gaugeV5ABI,
1803
+ },
1674
1804
  });
package/lib/router.js CHANGED
@@ -264,7 +264,7 @@ var _buildRouteGraph = memoize(function () { return __awaiter(void 0, void 0, vo
264
264
  }
265
265
  ALL_POOLS = Object.entries(curve.getPoolsData()).filter(function (_a) {
266
266
  var id = _a[0], _ = _a[1];
267
- return id !== "crveth";
267
+ return !["crveth", "y", "busd", "pax"].includes(id);
268
268
  });
269
269
  return [4 /*yield*/, _getAmplificationCoefficientsFromApi()];
270
270
  case 1:
@@ -300,7 +300,7 @@ var _buildRouteGraph = memoize(function () { return __awaiter(void 0, void 0, vo
300
300
  return [3 /*break*/, 4];
301
301
  if (curve.chainId !== 1 && tvl < 100)
302
302
  return [3 /*break*/, 4];
303
- excludedUnderlyingSwaps = (poolId === 'aave' && curve.chainId === 1) || (poolId === 'geist' && curve.chainId === 250);
303
+ excludedUnderlyingSwaps = (poolId === 'ib' && curve.chainId === 1) || (poolId === 'geist' && curve.chainId === 250);
304
304
  // Wrapped coin <-> LP "swaps" (actually add_liquidity/remove_liquidity_one_coin)
305
305
  if (!poolData.is_fake && !poolData.is_llamma && wrappedCoinAddresses.length < 6) {
306
306
  coins = __spreadArray([tokenAddress], wrappedCoinAddresses, true);
package/lib/utils.js CHANGED
@@ -638,7 +638,7 @@ export var _getUsdRate = function (assetId) { return __awaiter(void 0, void 0, v
638
638
  nativeTokenName = {
639
639
  1: 'ethereum',
640
640
  10: 'ethereum',
641
- 56: 'bnb',
641
+ 56: 'binancecoin',
642
642
  100: 'xdai',
643
643
  137: 'matic-network',
644
644
  250: 'fantom',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.53.4",
3
+ "version": "2.53.6",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",