@funkit/fun-relay 2.2.0 → 2.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @funkit/fun-relay
2
2
 
3
+ ## 2.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 3e40d89: feat(connect,fun-relay): add LIT spot asset
8
+
3
9
  ## 2.2.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -1322,7 +1322,8 @@ var ASSET_LOGO_SRCS = {
1322
1322
  WMON: "https://sdk-cdn.fun.xyz/images/wmon.svg",
1323
1323
  AUSD: "https://sdk-cdn.fun.xyz/images/ausd.svg",
1324
1324
  SUSHI: "https://sdk-cdn.fun.xyz/images/sushi.svg",
1325
- SKY: "https://sdk-cdn.fun.xyz/images/sky.svg"
1325
+ SKY: "https://sdk-cdn.fun.xyz/images/sky.svg",
1326
+ LIT: "https://sdk-cdn.fun.xyz/images/lit.svg"
1326
1327
  };
1327
1328
 
1328
1329
  // src/dynamicRoutes/consts.ts
@@ -1337,7 +1338,6 @@ var tokenAddresses = {
1337
1338
  USDC: {
1338
1339
  [import_chains.mainnet.id]: (0, import_viem2.getAddress)("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48")
1339
1340
  },
1340
- // LIT is currently unused
1341
1341
  LIT: {
1342
1342
  [import_chains.mainnet.id]: (0, import_viem2.getAddress)("0x232CE3bd40fCd6f80f3d55A522d03f25Df784Ee2")
1343
1343
  },
@@ -1515,6 +1515,7 @@ var UNI_SPOT_SYMBOL = "UNI (Spot)";
1515
1515
  var AAVE_SPOT_SYMBOL = "AAVE (Spot)";
1516
1516
  var SKY_SPOT_SYMBOL = "SKY (Spot)";
1517
1517
  var LDO_SPOT_SYMBOL = "LDO (Spot)";
1518
+ var LIT_SPOT_SYMBOL = "LIT (Spot)";
1518
1519
  var generateLighterMainnetDepositActions = ({
1519
1520
  address,
1520
1521
  assetIndex,
@@ -1651,6 +1652,25 @@ var LIGHTER_ETH_SPOT_FUN_MAINNET_DEPOSIT = createPath({
1651
1652
  });
1652
1653
  }
1653
1654
  });
1655
+ var LIGHTER_LIT_SPOT_FUN_MAINNET_DEPOSIT = createPath({
1656
+ targetChain: import_chains3.mainnet.id.toString(),
1657
+ targetAsset: tokenAddresses.LIT[import_chains3.mainnet.id],
1658
+ targetAssetTicker: LIT_SPOT_SYMBOL,
1659
+ iconSrc: ASSET_LOGO_SRCS.LIT,
1660
+ generateActionsParams: (address) => async (_finalTargetAssetAmount, outputConfig) => {
1661
+ if (!outputConfig) {
1662
+ return [];
1663
+ }
1664
+ if (outputConfig.targetChain !== import_chains3.mainnet.id.toString()) {
1665
+ return [];
1666
+ }
1667
+ return generateLighterMainnetDepositActions({
1668
+ address,
1669
+ assetIndex: 2 /* LIT */,
1670
+ routeType: 1 /* Spot */
1671
+ });
1672
+ }
1673
+ });
1654
1674
  var LIGHTER_LINK_SPOT_FUN_MAINNET_DEPOSIT = createPath({
1655
1675
  targetChain: import_chains3.mainnet.id.toString(),
1656
1676
  targetAsset: tokenAddresses.LINK[import_chains3.mainnet.id],
@@ -1790,6 +1810,12 @@ var LIGHTER_DYNAMIC_ROUTES = [
1790
1810
  }
1791
1811
  }),
1792
1812
  // LINK, UNI, AAVE, SKY, LDO tokens
1813
+ createRoute({
1814
+ id: "LIGHTER_LIT_SPOT_NEW_USER",
1815
+ paths: {
1816
+ FUN_MAINNET_DEPOSIT: LIGHTER_LIT_SPOT_FUN_MAINNET_DEPOSIT
1817
+ }
1818
+ }),
1793
1819
  createRoute({
1794
1820
  id: "LIGHTER_LINK_SPOT_NEW_USER",
1795
1821
  paths: {