@vechain/vechain-kit 1.5.1 → 1.5.3

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.cjs CHANGED
@@ -2707,7 +2707,14 @@ var getVeDelegateBalance = async (thor, network, address) => {
2707
2707
  const functionFragment2 = ERC20Interface.getFunction("balanceOf").format("json");
2708
2708
  const res = await thor.account(chunkRUIC653T_cjs.getConfig(network).veDelegateTokenContractAddress).method(JSON.parse(functionFragment2)).call(address);
2709
2709
  if (res.reverted) throw new Error("Reverted");
2710
- return res.decoded[0];
2710
+ const original = res.decoded[0];
2711
+ const scaled = ethers.formatEther(original);
2712
+ const formatted = scaled === "0" ? "0" : chunkRUIC653T_cjs.humanNumber(scaled);
2713
+ return {
2714
+ original,
2715
+ scaled,
2716
+ formatted
2717
+ };
2711
2718
  };
2712
2719
  var getVeDelegateBalanceQueryKey = (address) => [
2713
2720
  "VECHAIN_KIT_VE_DELEGATE_BALANCE",
@@ -3574,40 +3581,44 @@ var useBalances = ({ address = "" }) => {
3574
3581
  const balances = [
3575
3582
  {
3576
3583
  address: contractAddresses.vet,
3577
- value: Number(vetData?.balance || 0),
3578
- symbol: "VET"
3584
+ value: vetData?.balance || "0",
3585
+ symbol: "VET",
3586
+ priceAddress: contractAddresses.vet
3579
3587
  },
3580
3588
  {
3581
3589
  address: contractAddresses.vtho,
3582
- value: Number(vetData?.energy || 0),
3583
- symbol: "VTHO"
3590
+ value: vetData?.energy || "0",
3591
+ symbol: "VTHO",
3592
+ priceAddress: contractAddresses.vtho
3584
3593
  },
3585
3594
  {
3586
3595
  address: contractAddresses.b3tr,
3587
- value: Number(
3588
- viem.formatEther(BigInt(b3trBalance?.original || "0"))
3589
- ),
3590
- symbol: "B3TR"
3596
+ value: b3trBalance?.scaled ?? "0",
3597
+ symbol: "B3TR",
3598
+ priceAddress: contractAddresses.b3tr
3591
3599
  },
3592
3600
  {
3593
3601
  address: contractAddresses.vot3,
3594
- value: Number(
3595
- viem.formatEther(BigInt(vot3Balance?.original || "0"))
3596
- ),
3597
- symbol: "VOT3"
3602
+ value: vot3Balance?.scaled ?? "0",
3603
+ symbol: "VOT3",
3604
+ priceAddress: contractAddresses.b3tr
3605
+ // using b3tr price for vot3
3598
3606
  },
3599
3607
  {
3600
3608
  address: contractAddresses.veDelegate,
3601
- value: Number(viem.formatEther(BigInt(veDelegateBalance || "0"))),
3602
- symbol: "veDelegate"
3609
+ value: veDelegateBalance?.scaled ?? "0",
3610
+ symbol: "veDelegate",
3611
+ priceAddress: contractAddresses.b3tr
3612
+ // using b3tr price for veDelegate
3603
3613
  }
3604
3614
  ];
3605
3615
  customTokenBalances.forEach((token) => {
3606
3616
  if (token) {
3607
3617
  balances.push({
3608
3618
  address: token.address,
3609
- value: Number(viem.formatEther(BigInt(token.original))),
3610
- symbol: token.symbol
3619
+ value: token.scaled,
3620
+ symbol: token.symbol,
3621
+ priceAddress: token.address
3611
3622
  });
3612
3623
  }
3613
3624
  });
@@ -3618,14 +3629,15 @@ var useBalances = ({ address = "" }) => {
3618
3629
  ];
3619
3630
  const totalBalance = balances.reduce((acc, { address: address2, value }) => {
3620
3631
  const price = prices.find((p) => p.address === address2)?.price || 0;
3621
- return acc + value * price;
3632
+ return acc + Number(value) * price;
3622
3633
  }, 0);
3623
3634
  const tokens = balances.reduce(
3624
3635
  (acc, balance) => {
3625
3636
  acc[balance.symbol] = {
3626
3637
  ...balance,
3627
- price: prices.find((p) => p.address === balance.address)?.price || 0,
3628
- usdValue: (prices.find((p) => p.address === balance.address)?.price || 0) * balance.value
3638
+ value: balance.value,
3639
+ price: prices.find((p) => p.address === balance.priceAddress)?.price || 0,
3640
+ usdValue: (prices.find((p) => p.address === balance.priceAddress)?.price || 0) * Number(balance.value)
3629
3641
  };
3630
3642
  return acc;
3631
3643
  },
@@ -4971,7 +4983,7 @@ var AddressDisplay = ({
4971
4983
  // package.json
4972
4984
  var package_default = {
4973
4985
  name: "@vechain/vechain-kit",
4974
- version: "1.5.1",
4986
+ version: "1.5.3",
4975
4987
  private: false,
4976
4988
  homepage: "https://github.com/vechain/vechain-kit",
4977
4989
  repository: "github:vechain/vechain-kit",
@@ -5105,7 +5117,8 @@ var VersionFooter = ({ ...props }) => {
5105
5117
  w: "70px",
5106
5118
  h: "auto",
5107
5119
  opacity: 0.4,
5108
- mr: 1
5120
+ mr: 1,
5121
+ ml: "-16px"
5109
5122
  }
5110
5123
  ),
5111
5124
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -5379,7 +5392,7 @@ var AddressDisplayCard = ({
5379
5392
  children: [
5380
5393
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", fontWeight: "medium", children: t("Balance") }),
5381
5394
  /* @__PURE__ */ jsxRuntime.jsx(react.Skeleton, { isLoaded: !isLoading, children: /* @__PURE__ */ jsxRuntime.jsxs(react.Text, { fontSize: "xs", opacity: 0.5, children: [
5382
- compactFormatter2.format(displayBalance),
5395
+ compactFormatter2.format(Number(displayBalance)),
5383
5396
  displaySymbol && ` ${displaySymbol}`
5384
5397
  ] }) })
5385
5398
  ]
@@ -6061,7 +6074,7 @@ var MainContent = ({ setCurrentContent, onClose }) => {
6061
6074
  ),
6062
6075
  /* @__PURE__ */ jsxRuntime.jsx(ConnectionOptionsStack, {})
6063
6076
  ] }),
6064
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(VersionFooter, {}) })
6077
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { pt: 0, pb: "5px", children: /* @__PURE__ */ jsxRuntime.jsx(VersionFooter, {}) })
6065
6078
  ] });
6066
6079
  };
6067
6080
  var useFeatureAnnouncement = () => {
@@ -6167,7 +6180,7 @@ var DomainRequiredAlert = () => {
6167
6180
  var AccountMainContent = ({ setCurrentContent, wallet }) => {
6168
6181
  const { t } = reactI18next.useTranslation();
6169
6182
  const { network } = useVeChainKitConfig();
6170
- const { connection, account } = useWallet();
6183
+ const { account } = useWallet();
6171
6184
  return /* @__PURE__ */ jsxRuntime.jsxs(ScrollToTopWrapper, { children: [
6172
6185
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
6173
6186
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -6181,7 +6194,7 @@ var AccountMainContent = ({ setCurrentContent, wallet }) => {
6181
6194
  })
6182
6195
  }
6183
6196
  ),
6184
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: connection.isConnectedWithPrivy ? t("Account") : t("Wallet") }),
6197
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: t("Wallet") }),
6185
6198
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
6186
6199
  ] }),
6187
6200
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { w: "full", children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -6209,14 +6222,23 @@ var AccountMainContent = ({ setCurrentContent, wallet }) => {
6209
6222
  }
6210
6223
  ),
6211
6224
  network?.type !== "main" && /* @__PURE__ */ jsxRuntime.jsx(
6212
- react.Tag,
6225
+ react.HStack,
6213
6226
  {
6214
- size: "xl",
6215
- colorScheme: "orange",
6216
- fontSize: "xs",
6217
- p: 2,
6218
- textTransform: "capitalize",
6219
- children: `${network?.type} network`
6227
+ w: "full",
6228
+ justifyContent: "flex-start",
6229
+ mt: "-10px",
6230
+ mb: "-10px",
6231
+ children: /* @__PURE__ */ jsxRuntime.jsx(
6232
+ react.Tag,
6233
+ {
6234
+ size: "xl",
6235
+ colorScheme: "orange",
6236
+ fontSize: "xs",
6237
+ p: 2,
6238
+ textTransform: "capitalize",
6239
+ children: `${network?.type} network`
6240
+ }
6241
+ )
6220
6242
  }
6221
6243
  ),
6222
6244
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -6321,7 +6343,7 @@ var ActionButton = ({
6321
6343
  }) => {
6322
6344
  const { t } = reactI18next.useTranslation();
6323
6345
  const { colorMode } = react.useColorMode();
6324
- const baseBackgroundColor = backgroundColor ?? colorMode === "dark" ? "#ffffff05" : "#00000005";
6346
+ const baseBackgroundColor = backgroundColor ?? colorMode === "dark" ? "#ffffff0a" : "#00000005";
6325
6347
  return /* @__PURE__ */ jsxRuntime.jsx(
6326
6348
  react.Button,
6327
6349
  {
@@ -6336,7 +6358,7 @@ var ActionButton = ({
6336
6358
  loadingText,
6337
6359
  bgColor: baseBackgroundColor,
6338
6360
  _hover: _hover ?? {
6339
- backgroundColor: colorMode === "dark" ? "#ffffff0d" : "blackAlpha.200"
6361
+ backgroundColor: colorMode === "dark" ? "#ffffff12" : "blackAlpha.200"
6340
6362
  },
6341
6363
  ...style,
6342
6364
  children: /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { w: "full", justify: "space-between", children: [
@@ -6558,6 +6580,7 @@ var AssetIcons = ({
6558
6580
  var compactFormatter3 = new Intl.NumberFormat("en-US", {
6559
6581
  notation: "compact",
6560
6582
  compactDisplay: "short",
6583
+ minimumFractionDigits: 2,
6561
6584
  maximumFractionDigits: 2
6562
6585
  });
6563
6586
  var BalanceSection = ({
@@ -6648,12 +6671,12 @@ var BalanceSection = ({
6648
6671
  style: {
6649
6672
  width: "100%",
6650
6673
  mt: 2,
6651
- backgroundColor: isDark ? "#ffffff05" : "blackAlpha.50",
6674
+ backgroundColor: isDark ? "#ffffff0a" : "blackAlpha.50",
6652
6675
  borderRadius: "xl",
6653
6676
  p: 3,
6654
6677
  cursor: "pointer",
6655
6678
  _hover: {
6656
- backgroundColor: isDark ? "#ffffff0d" : "blackAlpha.200"
6679
+ backgroundColor: isDark ? "#ffffff12" : "blackAlpha.200"
6657
6680
  },
6658
6681
  justifyContent: "space-between"
6659
6682
  }
@@ -7784,10 +7807,10 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
7784
7807
  const filteredTokens = allTokens.filter(
7785
7808
  ({ symbol }) => symbol.toLowerCase().includes(searchQuery.toLowerCase())
7786
7809
  ).sort((a, b) => {
7787
- if (a.numericBalance > 0 !== b.numericBalance > 0) {
7788
- return b.numericBalance > 0 ? 1 : -1;
7810
+ if (Number(a.numericBalance) > 0 !== Number(b.numericBalance) > 0) {
7811
+ return Number(b.numericBalance) > 0 ? 1 : -1;
7789
7812
  }
7790
- return b.numericBalance * b.price - a.numericBalance * a.price;
7813
+ return Number(b.numericBalance) * b.price - Number(a.numericBalance) * a.price;
7791
7814
  });
7792
7815
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7793
7816
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
@@ -7839,13 +7862,13 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
7839
7862
  ]
7840
7863
  }
7841
7864
  ) : /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { spacing: 2, align: "stretch", children: filteredTokens.map((token) => {
7842
- const hasBalance = token.numericBalance > 0;
7843
- const usdValue = token.numericBalance * token.price;
7865
+ const hasBalance = Number(token.numericBalance) > 0;
7866
+ const usdValue = Number(token.numericBalance) * token.price;
7844
7867
  return /* @__PURE__ */ jsxRuntime.jsx(
7845
7868
  AssetButton,
7846
7869
  {
7847
7870
  symbol: token.symbol,
7848
- amount: token.numericBalance,
7871
+ amount: Number(token.numericBalance),
7849
7872
  usdValue,
7850
7873
  onClick: () => onSelectToken(token),
7851
7874
  isDisabled: !hasBalance
@@ -7899,7 +7922,7 @@ var SendTokenContent = ({
7899
7922
  } = dappKitReact.useVechainDomain({ addressOrDomain: toAddressOrDomain });
7900
7923
  const handleSetMaxAmount = () => {
7901
7924
  if (selectedToken) {
7902
- setValue("amount", selectedToken.numericBalance.toString());
7925
+ setValue("amount", selectedToken.numericBalance);
7903
7926
  }
7904
7927
  };
7905
7928
  const onSubmit = async (data) => {
@@ -7913,8 +7936,8 @@ var SendTokenContent = ({
7913
7936
  return;
7914
7937
  }
7915
7938
  if (selectedToken) {
7916
- const numericAmount = parseFloat(data.amount);
7917
- if (numericAmount > selectedToken.numericBalance) {
7939
+ const numericAmount = ethers.parseEther(data.amount);
7940
+ if (numericAmount > ethers.parseEther(selectedToken.numericBalance)) {
7918
7941
  setError("amount", {
7919
7942
  type: "manual",
7920
7943
  message: t(`Insufficient {{symbol}} balance`, {
@@ -8100,7 +8123,9 @@ var SendTokenContent = ({
8100
8123
  overflow: "hidden",
8101
8124
  textOverflow: "ellipsis",
8102
8125
  children: compactFormatter4.format(
8103
- selectedToken.numericBalance
8126
+ Number(
8127
+ selectedToken.numericBalance
8128
+ )
8104
8129
  )
8105
8130
  }
8106
8131
  )
@@ -8317,7 +8342,7 @@ var SendTokenSummaryContent = ({
8317
8342
  domain: account?.domain,
8318
8343
  imageSrc: account?.image ?? "",
8319
8344
  imageAlt: "From account",
8320
- balance: selectedToken.numericBalance,
8345
+ balance: Number(selectedToken.numericBalance),
8321
8346
  tokenAddress: selectedToken.address
8322
8347
  }
8323
8348
  ),
@@ -8620,7 +8645,7 @@ var ExistingDomainsList = ({
8620
8645
  react.Tag,
8621
8646
  {
8622
8647
  size: "sm",
8623
- bg: isDark ? "#ffffff05" : "whiteAlpha.100",
8648
+ bg: isDark ? "#ffffff0a" : "whiteAlpha.100",
8624
8649
  color: isDark ? "whiteAlpha.900" : "blackAlpha.600",
8625
8650
  px: 3,
8626
8651
  py: 1,
@@ -9362,6 +9387,7 @@ var en_default = {
9362
9387
  "Search dApps": "Search dApps",
9363
9388
  "Search for a domain": "Search for a domain",
9364
9389
  "Secured by": "Secured by",
9390
+ "Select Additional Login Method": "Select Additional Login Method",
9365
9391
  "Select Token": "Select Token",
9366
9392
  "Select an app": "Select an app",
9367
9393
  "Select token": "Select token",
@@ -9841,6 +9867,7 @@ var de_default = {
9841
9867
  "Search dApps": "dApps durchsuchen",
9842
9868
  "Search for a domain": "Nach einer Domain suchen",
9843
9869
  "Secured by": "Gesichert durch",
9870
+ "Select Additional Login Method": "Zus\xE4tzliche Anmeldemethode ausw\xE4hlen",
9844
9871
  "Select Token": "Token ausw\xE4hlen",
9845
9872
  "Select an app": "W\xE4hlen Sie eine App",
9846
9873
  "Select token": "Token ausw\xE4hlen",
@@ -10320,6 +10347,7 @@ var it_default = {
10320
10347
  "Search dApps": "Cerca dApp",
10321
10348
  "Search for a domain": "Cerca un dominio",
10322
10349
  "Secured by": "Protetto da",
10350
+ "Select Additional Login Method": "Seleziona metodo di accesso aggiuntivo",
10323
10351
  "Select Token": "Seleziona Token",
10324
10352
  "Select an app": "Seleziona un'app",
10325
10353
  "Select token": "Seleziona",
@@ -10799,6 +10827,7 @@ var fr_default = {
10799
10827
  "Search dApps": "Rechercher des dApps",
10800
10828
  "Search for a domain": "Rechercher un domaine",
10801
10829
  "Secured by": "S\xE9curis\xE9 par",
10830
+ "Select Additional Login Method": "S\xE9lectionner une m\xE9thode de connexion suppl\xE9mentaire",
10802
10831
  "Select Token": "S\xE9lectionner un jeton",
10803
10832
  "Select an app": "S\xE9lectionnez une application",
10804
10833
  "Select token": "S\xE9lectionner un jeton",
@@ -11278,6 +11307,7 @@ var es_default = {
11278
11307
  "Search dApps": "Buscar dApps",
11279
11308
  "Search for a domain": "Buscar un dominio",
11280
11309
  "Secured by": "Asegurado por",
11310
+ "Select Additional Login Method": "Seleccionar M\xE9todo de Inicio de Sesi\xF3n Adicional",
11281
11311
  "Select Token": "Seleccionar Token",
11282
11312
  "Select an app": "Seleccionar una aplicaci\xF3n",
11283
11313
  "Select token": "Seleccionar token",
@@ -11757,6 +11787,7 @@ var zh_default = {
11757
11787
  "Search dApps": "\u641C\u7D22 dApps",
11758
11788
  "Search for a domain": "\u641C\u7D22\u57DF\u540D",
11759
11789
  "Secured by": "\u5B89\u5168\u4FDD\u969C",
11790
+ "Select Additional Login Method": "\u9009\u62E9\u5176\u4ED6\u767B\u5F55\u65B9\u5F0F",
11760
11791
  "Select Token": "\u9009\u62E9\u4EE3\u5E01",
11761
11792
  "Select an app": "\u9009\u62E9\u4E00\u4E2A\u5E94\u7528",
11762
11793
  "Select token": "\u9009\u62E9\u4EE3\u5E01",
@@ -12236,6 +12267,7 @@ var ja_default = {
12236
12267
  "Search dApps": "dApps\u3092\u691C\u7D22",
12237
12268
  "Search for a domain": "\u30C9\u30E1\u30A4\u30F3\u3092\u691C\u7D22",
12238
12269
  "Secured by": "\u306B\u3088\u3063\u3066\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u4FDD\u8B77\u3055\u308C\u3066\u3044\u307E\u3059",
12270
+ "Select Additional Login Method": "\u8FFD\u52A0\u306E\u30ED\u30B0\u30A4\u30F3\u65B9\u6CD5\u3092\u9078\u629E",
12239
12271
  "Select Token": "\u30C8\u30FC\u30AF\u30F3\u3092\u9078\u629E",
12240
12272
  "Select an app": "\u30A2\u30D7\u30EA\u3092\u9078\u629E",
12241
12273
  "Select token": "\u30C8\u30FC\u30AF\u30F3\u3092\u9078\u629E",
@@ -13157,6 +13189,7 @@ var ProfileContent = ({
13157
13189
  {
13158
13190
  onEditClick: () => setCurrentContent("account-customization"),
13159
13191
  address: account?.address ?? "",
13192
+ showHeader: false,
13160
13193
  onLogout: () => {
13161
13194
  setCurrentContent?.({
13162
13195
  type: "disconnect-confirm",
@@ -13354,14 +13387,14 @@ var AssetsContent = ({ setCurrentContent }) => {
13354
13387
  value: tokens[token.symbol]?.value ?? 0,
13355
13388
  price: tokens[token.symbol]?.price ?? 0
13356
13389
  }))
13357
- ].sort((a, b) => b.value * b.price - a.value * a.price);
13390
+ ].sort((a, b) => Number(b.value) * b.price - Number(a.value) * a.price);
13358
13391
  const filteredTokens = allTokens.filter(
13359
13392
  ({ symbol }) => symbol.toLowerCase().includes(searchQuery.toLowerCase())
13360
13393
  ).sort((a, b) => {
13361
- if (a.value > 0 !== b.value > 0) {
13362
- return b.value > 0 ? 1 : -1;
13394
+ if (Number(a.value) > 0 !== Number(b.value) > 0) {
13395
+ return Number(b.value) > 0 ? 1 : -1;
13363
13396
  }
13364
- return b.value * b.price - a.value * a.price;
13397
+ return Number(b.value) * b.price - Number(a.value) * a.price;
13365
13398
  });
13366
13399
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
13367
13400
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
@@ -13369,48 +13402,50 @@ var AssetsContent = ({ setCurrentContent }) => {
13369
13402
  /* @__PURE__ */ jsxRuntime.jsx(ModalBackButton, { onClick: () => setCurrentContent("main") }),
13370
13403
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
13371
13404
  ] }),
13372
- /* @__PURE__ */ jsxRuntime.jsxs(react.ModalBody, { children: [
13373
- /* @__PURE__ */ jsxRuntime.jsxs(react.InputGroup, { size: "lg", children: [
13374
- /* @__PURE__ */ jsxRuntime.jsx(
13375
- react.Input,
13376
- {
13377
- placeholder: "Search token",
13378
- bg: darkMode ? "#00000038" : "gray.50",
13379
- borderRadius: "xl",
13380
- height: "56px",
13381
- pl: 12,
13382
- value: searchQuery,
13383
- onChange: (e) => setSearchQuery(e.target.value)
13384
- }
13385
- ),
13386
- /* @__PURE__ */ jsxRuntime.jsx(react.InputLeftElement, { h: "56px", w: "56px", pl: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
13387
- ci.CiSearch,
13405
+ /* @__PURE__ */ jsxRuntime.jsxs(react.Container, { h: ["540px", "auto"], p: 0, children: [
13406
+ /* @__PURE__ */ jsxRuntime.jsxs(react.ModalBody, { children: [
13407
+ /* @__PURE__ */ jsxRuntime.jsxs(react.InputGroup, { size: "lg", children: [
13408
+ /* @__PURE__ */ jsxRuntime.jsx(
13409
+ react.Input,
13410
+ {
13411
+ placeholder: "Search token",
13412
+ bg: darkMode ? "#00000038" : "gray.50",
13413
+ borderRadius: "xl",
13414
+ height: "56px",
13415
+ pl: 12,
13416
+ value: searchQuery,
13417
+ onChange: (e) => setSearchQuery(e.target.value)
13418
+ }
13419
+ ),
13420
+ /* @__PURE__ */ jsxRuntime.jsx(react.InputLeftElement, { h: "56px", w: "56px", pl: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
13421
+ ci.CiSearch,
13422
+ {
13423
+ color: darkMode ? "whiteAlpha.400" : "gray.400"
13424
+ }
13425
+ ) })
13426
+ ] }),
13427
+ /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { spacing: 2, align: "stretch", mt: 2, children: filteredTokens.map((token) => /* @__PURE__ */ jsxRuntime.jsx(
13428
+ AssetButton,
13388
13429
  {
13389
- color: darkMode ? "whiteAlpha.400" : "gray.400"
13390
- }
13391
- ) })
13430
+ symbol: token.symbol,
13431
+ amount: Number(token.value),
13432
+ usdValue: Number(token.value) * token.price,
13433
+ isDisabled: Number(token.value) === 0,
13434
+ onClick: () => handleTokenSelect(token)
13435
+ },
13436
+ token.address
13437
+ )) })
13392
13438
  ] }),
13393
- /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { spacing: 2, align: "stretch", mt: 2, children: filteredTokens.map((token) => /* @__PURE__ */ jsxRuntime.jsx(
13394
- AssetButton,
13439
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { children: allowCustomTokens && /* @__PURE__ */ jsxRuntime.jsx(
13440
+ react.Button,
13395
13441
  {
13396
- symbol: token.symbol,
13397
- amount: token.value,
13398
- usdValue: token.value * token.price,
13399
- isDisabled: token.value === 0,
13400
- onClick: () => handleTokenSelect(token)
13401
- },
13402
- token.address
13403
- )) })
13404
- ] }),
13405
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { children: allowCustomTokens && /* @__PURE__ */ jsxRuntime.jsx(
13406
- react.Button,
13407
- {
13408
- variant: "vechainKitSecondary",
13409
- leftIcon: /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: ri.RiEdit2Line, boxSize: 4 }),
13410
- onClick: () => setCurrentContent("add-custom-token"),
13411
- children: t("Manage Custom Tokens")
13412
- }
13413
- ) })
13442
+ variant: "vechainKitSecondary",
13443
+ leftIcon: /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: ri.RiEdit2Line, boxSize: 4 }),
13444
+ onClick: () => setCurrentContent("add-custom-token"),
13445
+ children: t("Manage Custom Tokens")
13446
+ }
13447
+ ) })
13448
+ ] })
13414
13449
  ] });
13415
13450
  };
13416
13451
  var ManageCustomTokenContent = ({
@@ -13867,7 +13902,7 @@ var PrivyLinkedAccounts = ({ onBack }) => {
13867
13902
  if (showLinkOptions) {
13868
13903
  return /* @__PURE__ */ jsxRuntime.jsxs(ScrollToTopWrapper, { children: [
13869
13904
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
13870
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: t("Add Login Method") }),
13905
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: t("Select Additional Login Method") }),
13871
13906
  /* @__PURE__ */ jsxRuntime.jsx(
13872
13907
  ModalBackButton,
13873
13908
  {
@@ -14172,7 +14207,7 @@ var PrivyLinkedAccounts = ({ onBack }) => {
14172
14207
  ]
14173
14208
  }
14174
14209
  ) }),
14175
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
14210
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { w: "full", children: /* @__PURE__ */ jsxRuntime.jsx(
14176
14211
  react.Button,
14177
14212
  {
14178
14213
  w: "full",
@@ -14298,8 +14333,8 @@ var NotificationsContent = ({ setCurrentContent }) => {
14298
14333
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: isArchiveView ? t("Archived Notifications") : t("Notifications") }),
14299
14334
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
14300
14335
  ] }),
14301
- /* @__PURE__ */ jsxRuntime.jsxs(react.Container, { maxW: "container.lg", h: ["auto", "540px"], children: [
14302
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { w: "full", children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 4, align: "stretch", w: "full", children: [
14336
+ /* @__PURE__ */ jsxRuntime.jsxs(react.Container, { h: ["540px", "auto"], p: 0, children: [
14337
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 4, align: "stretch", w: "full", children: [
14303
14338
  /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { justify: "space-between", children: [
14304
14339
  /* @__PURE__ */ jsxRuntime.jsx(
14305
14340
  react.Button,
@@ -16840,7 +16875,7 @@ var useTransferERC20 = ({
16840
16875
  return clausesArray;
16841
16876
  }, [receiverAddress, amount]);
16842
16877
  const handleOnSuccess = React10.useCallback(async () => {
16843
- await refresh();
16878
+ refresh();
16844
16879
  onSuccess?.();
16845
16880
  }, [onSuccess, fromAddress, queryClient]);
16846
16881
  const result = useSendTransaction({
@@ -16903,7 +16938,7 @@ var useTransferVET = ({
16903
16938
  buttonText: "Sign to continue"
16904
16939
  },
16905
16940
  onTxConfirmed: async () => {
16906
- await refresh();
16941
+ refresh();
16907
16942
  onSuccess?.();
16908
16943
  },
16909
16944
  onTxFailedOrCancelled: async () => {
@@ -17980,12 +18015,12 @@ var variants3 = {
17980
18015
  })),
17981
18016
  mainContentButton: react.defineStyle(({ colorMode }) => ({
17982
18017
  width: "100%",
17983
- backgroundColor: colorMode === "dark" ? "#ffffff05" : "blackAlpha.50",
18018
+ backgroundColor: colorMode === "dark" ? "#ffffff0a" : "blackAlpha.50",
17984
18019
  borderRadius: "xl",
17985
18020
  p: 3,
17986
18021
  cursor: "pointer",
17987
18022
  _hover: {
17988
- backgroundColor: colorMode === "dark" ? "#ffffff0d" : "blackAlpha.200"
18023
+ backgroundColor: colorMode === "dark" ? "#ffffff12" : "blackAlpha.200"
17989
18024
  }
17990
18025
  }))
17991
18026
  };