@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/dist/index.mjs CHANGED
@@ -1281,7 +1281,8 @@ var ASSET_LOGO_SRCS = {
1281
1281
  WMON: "https://sdk-cdn.fun.xyz/images/wmon.svg",
1282
1282
  AUSD: "https://sdk-cdn.fun.xyz/images/ausd.svg",
1283
1283
  SUSHI: "https://sdk-cdn.fun.xyz/images/sushi.svg",
1284
- SKY: "https://sdk-cdn.fun.xyz/images/sky.svg"
1284
+ SKY: "https://sdk-cdn.fun.xyz/images/sky.svg",
1285
+ LIT: "https://sdk-cdn.fun.xyz/images/lit.svg"
1285
1286
  };
1286
1287
 
1287
1288
  // src/dynamicRoutes/consts.ts
@@ -1296,7 +1297,6 @@ var tokenAddresses = {
1296
1297
  USDC: {
1297
1298
  [mainnet.id]: getAddress("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48")
1298
1299
  },
1299
- // LIT is currently unused
1300
1300
  LIT: {
1301
1301
  [mainnet.id]: getAddress("0x232CE3bd40fCd6f80f3d55A522d03f25Df784Ee2")
1302
1302
  },
@@ -1474,6 +1474,7 @@ var UNI_SPOT_SYMBOL = "UNI (Spot)";
1474
1474
  var AAVE_SPOT_SYMBOL = "AAVE (Spot)";
1475
1475
  var SKY_SPOT_SYMBOL = "SKY (Spot)";
1476
1476
  var LDO_SPOT_SYMBOL = "LDO (Spot)";
1477
+ var LIT_SPOT_SYMBOL = "LIT (Spot)";
1477
1478
  var generateLighterMainnetDepositActions = ({
1478
1479
  address,
1479
1480
  assetIndex,
@@ -1610,6 +1611,25 @@ var LIGHTER_ETH_SPOT_FUN_MAINNET_DEPOSIT = createPath({
1610
1611
  });
1611
1612
  }
1612
1613
  });
1614
+ var LIGHTER_LIT_SPOT_FUN_MAINNET_DEPOSIT = createPath({
1615
+ targetChain: mainnet3.id.toString(),
1616
+ targetAsset: tokenAddresses.LIT[mainnet3.id],
1617
+ targetAssetTicker: LIT_SPOT_SYMBOL,
1618
+ iconSrc: ASSET_LOGO_SRCS.LIT,
1619
+ generateActionsParams: (address) => async (_finalTargetAssetAmount, outputConfig) => {
1620
+ if (!outputConfig) {
1621
+ return [];
1622
+ }
1623
+ if (outputConfig.targetChain !== mainnet3.id.toString()) {
1624
+ return [];
1625
+ }
1626
+ return generateLighterMainnetDepositActions({
1627
+ address,
1628
+ assetIndex: 2 /* LIT */,
1629
+ routeType: 1 /* Spot */
1630
+ });
1631
+ }
1632
+ });
1613
1633
  var LIGHTER_LINK_SPOT_FUN_MAINNET_DEPOSIT = createPath({
1614
1634
  targetChain: mainnet3.id.toString(),
1615
1635
  targetAsset: tokenAddresses.LINK[mainnet3.id],
@@ -1749,6 +1769,12 @@ var LIGHTER_DYNAMIC_ROUTES = [
1749
1769
  }
1750
1770
  }),
1751
1771
  // LINK, UNI, AAVE, SKY, LDO tokens
1772
+ createRoute({
1773
+ id: "LIGHTER_LIT_SPOT_NEW_USER",
1774
+ paths: {
1775
+ FUN_MAINNET_DEPOSIT: LIGHTER_LIT_SPOT_FUN_MAINNET_DEPOSIT
1776
+ }
1777
+ }),
1752
1778
  createRoute({
1753
1779
  id: "LIGHTER_LINK_SPOT_NEW_USER",
1754
1780
  paths: {