@vechain/vechain-kit 1.5.2 → 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.2",
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",
@@ -5380,7 +5392,7 @@ var AddressDisplayCard = ({
5380
5392
  children: [
5381
5393
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", fontWeight: "medium", children: t("Balance") }),
5382
5394
  /* @__PURE__ */ jsxRuntime.jsx(react.Skeleton, { isLoaded: !isLoading, children: /* @__PURE__ */ jsxRuntime.jsxs(react.Text, { fontSize: "xs", opacity: 0.5, children: [
5383
- compactFormatter2.format(displayBalance),
5395
+ compactFormatter2.format(Number(displayBalance)),
5384
5396
  displaySymbol && ` ${displaySymbol}`
5385
5397
  ] }) })
5386
5398
  ]
@@ -6168,7 +6180,7 @@ var DomainRequiredAlert = () => {
6168
6180
  var AccountMainContent = ({ setCurrentContent, wallet }) => {
6169
6181
  const { t } = reactI18next.useTranslation();
6170
6182
  const { network } = useVeChainKitConfig();
6171
- const { connection, account } = useWallet();
6183
+ const { account } = useWallet();
6172
6184
  return /* @__PURE__ */ jsxRuntime.jsxs(ScrollToTopWrapper, { children: [
6173
6185
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
6174
6186
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -6182,7 +6194,7 @@ var AccountMainContent = ({ setCurrentContent, wallet }) => {
6182
6194
  })
6183
6195
  }
6184
6196
  ),
6185
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: connection.isConnectedWithPrivy ? t("Account") : t("Wallet") }),
6197
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: t("Wallet") }),
6186
6198
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
6187
6199
  ] }),
6188
6200
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { w: "full", children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -6210,14 +6222,23 @@ var AccountMainContent = ({ setCurrentContent, wallet }) => {
6210
6222
  }
6211
6223
  ),
6212
6224
  network?.type !== "main" && /* @__PURE__ */ jsxRuntime.jsx(
6213
- react.Tag,
6225
+ react.HStack,
6214
6226
  {
6215
- size: "xl",
6216
- colorScheme: "orange",
6217
- fontSize: "xs",
6218
- p: 2,
6219
- textTransform: "capitalize",
6220
- 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
+ )
6221
6242
  }
6222
6243
  ),
6223
6244
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -6322,7 +6343,7 @@ var ActionButton = ({
6322
6343
  }) => {
6323
6344
  const { t } = reactI18next.useTranslation();
6324
6345
  const { colorMode } = react.useColorMode();
6325
- const baseBackgroundColor = backgroundColor ?? colorMode === "dark" ? "#ffffff05" : "#00000005";
6346
+ const baseBackgroundColor = backgroundColor ?? colorMode === "dark" ? "#ffffff0a" : "#00000005";
6326
6347
  return /* @__PURE__ */ jsxRuntime.jsx(
6327
6348
  react.Button,
6328
6349
  {
@@ -6337,7 +6358,7 @@ var ActionButton = ({
6337
6358
  loadingText,
6338
6359
  bgColor: baseBackgroundColor,
6339
6360
  _hover: _hover ?? {
6340
- backgroundColor: colorMode === "dark" ? "#ffffff0d" : "blackAlpha.200"
6361
+ backgroundColor: colorMode === "dark" ? "#ffffff12" : "blackAlpha.200"
6341
6362
  },
6342
6363
  ...style,
6343
6364
  children: /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { w: "full", justify: "space-between", children: [
@@ -6559,6 +6580,7 @@ var AssetIcons = ({
6559
6580
  var compactFormatter3 = new Intl.NumberFormat("en-US", {
6560
6581
  notation: "compact",
6561
6582
  compactDisplay: "short",
6583
+ minimumFractionDigits: 2,
6562
6584
  maximumFractionDigits: 2
6563
6585
  });
6564
6586
  var BalanceSection = ({
@@ -6649,12 +6671,12 @@ var BalanceSection = ({
6649
6671
  style: {
6650
6672
  width: "100%",
6651
6673
  mt: 2,
6652
- backgroundColor: isDark ? "#ffffff05" : "blackAlpha.50",
6674
+ backgroundColor: isDark ? "#ffffff0a" : "blackAlpha.50",
6653
6675
  borderRadius: "xl",
6654
6676
  p: 3,
6655
6677
  cursor: "pointer",
6656
6678
  _hover: {
6657
- backgroundColor: isDark ? "#ffffff0d" : "blackAlpha.200"
6679
+ backgroundColor: isDark ? "#ffffff12" : "blackAlpha.200"
6658
6680
  },
6659
6681
  justifyContent: "space-between"
6660
6682
  }
@@ -7785,10 +7807,10 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
7785
7807
  const filteredTokens = allTokens.filter(
7786
7808
  ({ symbol }) => symbol.toLowerCase().includes(searchQuery.toLowerCase())
7787
7809
  ).sort((a, b) => {
7788
- if (a.numericBalance > 0 !== b.numericBalance > 0) {
7789
- return b.numericBalance > 0 ? 1 : -1;
7810
+ if (Number(a.numericBalance) > 0 !== Number(b.numericBalance) > 0) {
7811
+ return Number(b.numericBalance) > 0 ? 1 : -1;
7790
7812
  }
7791
- return b.numericBalance * b.price - a.numericBalance * a.price;
7813
+ return Number(b.numericBalance) * b.price - Number(a.numericBalance) * a.price;
7792
7814
  });
7793
7815
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7794
7816
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
@@ -7840,13 +7862,13 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
7840
7862
  ]
7841
7863
  }
7842
7864
  ) : /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { spacing: 2, align: "stretch", children: filteredTokens.map((token) => {
7843
- const hasBalance = token.numericBalance > 0;
7844
- const usdValue = token.numericBalance * token.price;
7865
+ const hasBalance = Number(token.numericBalance) > 0;
7866
+ const usdValue = Number(token.numericBalance) * token.price;
7845
7867
  return /* @__PURE__ */ jsxRuntime.jsx(
7846
7868
  AssetButton,
7847
7869
  {
7848
7870
  symbol: token.symbol,
7849
- amount: token.numericBalance,
7871
+ amount: Number(token.numericBalance),
7850
7872
  usdValue,
7851
7873
  onClick: () => onSelectToken(token),
7852
7874
  isDisabled: !hasBalance
@@ -7900,7 +7922,7 @@ var SendTokenContent = ({
7900
7922
  } = dappKitReact.useVechainDomain({ addressOrDomain: toAddressOrDomain });
7901
7923
  const handleSetMaxAmount = () => {
7902
7924
  if (selectedToken) {
7903
- setValue("amount", selectedToken.numericBalance.toString());
7925
+ setValue("amount", selectedToken.numericBalance);
7904
7926
  }
7905
7927
  };
7906
7928
  const onSubmit = async (data) => {
@@ -7914,8 +7936,8 @@ var SendTokenContent = ({
7914
7936
  return;
7915
7937
  }
7916
7938
  if (selectedToken) {
7917
- const numericAmount = parseFloat(data.amount);
7918
- if (numericAmount > selectedToken.numericBalance) {
7939
+ const numericAmount = ethers.parseEther(data.amount);
7940
+ if (numericAmount > ethers.parseEther(selectedToken.numericBalance)) {
7919
7941
  setError("amount", {
7920
7942
  type: "manual",
7921
7943
  message: t(`Insufficient {{symbol}} balance`, {
@@ -8101,7 +8123,9 @@ var SendTokenContent = ({
8101
8123
  overflow: "hidden",
8102
8124
  textOverflow: "ellipsis",
8103
8125
  children: compactFormatter4.format(
8104
- selectedToken.numericBalance
8126
+ Number(
8127
+ selectedToken.numericBalance
8128
+ )
8105
8129
  )
8106
8130
  }
8107
8131
  )
@@ -8318,7 +8342,7 @@ var SendTokenSummaryContent = ({
8318
8342
  domain: account?.domain,
8319
8343
  imageSrc: account?.image ?? "",
8320
8344
  imageAlt: "From account",
8321
- balance: selectedToken.numericBalance,
8345
+ balance: Number(selectedToken.numericBalance),
8322
8346
  tokenAddress: selectedToken.address
8323
8347
  }
8324
8348
  ),
@@ -8621,7 +8645,7 @@ var ExistingDomainsList = ({
8621
8645
  react.Tag,
8622
8646
  {
8623
8647
  size: "sm",
8624
- bg: isDark ? "#ffffff05" : "whiteAlpha.100",
8648
+ bg: isDark ? "#ffffff0a" : "whiteAlpha.100",
8625
8649
  color: isDark ? "whiteAlpha.900" : "blackAlpha.600",
8626
8650
  px: 3,
8627
8651
  py: 1,
@@ -9363,6 +9387,7 @@ var en_default = {
9363
9387
  "Search dApps": "Search dApps",
9364
9388
  "Search for a domain": "Search for a domain",
9365
9389
  "Secured by": "Secured by",
9390
+ "Select Additional Login Method": "Select Additional Login Method",
9366
9391
  "Select Token": "Select Token",
9367
9392
  "Select an app": "Select an app",
9368
9393
  "Select token": "Select token",
@@ -9842,6 +9867,7 @@ var de_default = {
9842
9867
  "Search dApps": "dApps durchsuchen",
9843
9868
  "Search for a domain": "Nach einer Domain suchen",
9844
9869
  "Secured by": "Gesichert durch",
9870
+ "Select Additional Login Method": "Zus\xE4tzliche Anmeldemethode ausw\xE4hlen",
9845
9871
  "Select Token": "Token ausw\xE4hlen",
9846
9872
  "Select an app": "W\xE4hlen Sie eine App",
9847
9873
  "Select token": "Token ausw\xE4hlen",
@@ -10321,6 +10347,7 @@ var it_default = {
10321
10347
  "Search dApps": "Cerca dApp",
10322
10348
  "Search for a domain": "Cerca un dominio",
10323
10349
  "Secured by": "Protetto da",
10350
+ "Select Additional Login Method": "Seleziona metodo di accesso aggiuntivo",
10324
10351
  "Select Token": "Seleziona Token",
10325
10352
  "Select an app": "Seleziona un'app",
10326
10353
  "Select token": "Seleziona",
@@ -10800,6 +10827,7 @@ var fr_default = {
10800
10827
  "Search dApps": "Rechercher des dApps",
10801
10828
  "Search for a domain": "Rechercher un domaine",
10802
10829
  "Secured by": "S\xE9curis\xE9 par",
10830
+ "Select Additional Login Method": "S\xE9lectionner une m\xE9thode de connexion suppl\xE9mentaire",
10803
10831
  "Select Token": "S\xE9lectionner un jeton",
10804
10832
  "Select an app": "S\xE9lectionnez une application",
10805
10833
  "Select token": "S\xE9lectionner un jeton",
@@ -11279,6 +11307,7 @@ var es_default = {
11279
11307
  "Search dApps": "Buscar dApps",
11280
11308
  "Search for a domain": "Buscar un dominio",
11281
11309
  "Secured by": "Asegurado por",
11310
+ "Select Additional Login Method": "Seleccionar M\xE9todo de Inicio de Sesi\xF3n Adicional",
11282
11311
  "Select Token": "Seleccionar Token",
11283
11312
  "Select an app": "Seleccionar una aplicaci\xF3n",
11284
11313
  "Select token": "Seleccionar token",
@@ -11758,6 +11787,7 @@ var zh_default = {
11758
11787
  "Search dApps": "\u641C\u7D22 dApps",
11759
11788
  "Search for a domain": "\u641C\u7D22\u57DF\u540D",
11760
11789
  "Secured by": "\u5B89\u5168\u4FDD\u969C",
11790
+ "Select Additional Login Method": "\u9009\u62E9\u5176\u4ED6\u767B\u5F55\u65B9\u5F0F",
11761
11791
  "Select Token": "\u9009\u62E9\u4EE3\u5E01",
11762
11792
  "Select an app": "\u9009\u62E9\u4E00\u4E2A\u5E94\u7528",
11763
11793
  "Select token": "\u9009\u62E9\u4EE3\u5E01",
@@ -12237,6 +12267,7 @@ var ja_default = {
12237
12267
  "Search dApps": "dApps\u3092\u691C\u7D22",
12238
12268
  "Search for a domain": "\u30C9\u30E1\u30A4\u30F3\u3092\u691C\u7D22",
12239
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",
12240
12271
  "Select Token": "\u30C8\u30FC\u30AF\u30F3\u3092\u9078\u629E",
12241
12272
  "Select an app": "\u30A2\u30D7\u30EA\u3092\u9078\u629E",
12242
12273
  "Select token": "\u30C8\u30FC\u30AF\u30F3\u3092\u9078\u629E",
@@ -13158,6 +13189,7 @@ var ProfileContent = ({
13158
13189
  {
13159
13190
  onEditClick: () => setCurrentContent("account-customization"),
13160
13191
  address: account?.address ?? "",
13192
+ showHeader: false,
13161
13193
  onLogout: () => {
13162
13194
  setCurrentContent?.({
13163
13195
  type: "disconnect-confirm",
@@ -13355,14 +13387,14 @@ var AssetsContent = ({ setCurrentContent }) => {
13355
13387
  value: tokens[token.symbol]?.value ?? 0,
13356
13388
  price: tokens[token.symbol]?.price ?? 0
13357
13389
  }))
13358
- ].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);
13359
13391
  const filteredTokens = allTokens.filter(
13360
13392
  ({ symbol }) => symbol.toLowerCase().includes(searchQuery.toLowerCase())
13361
13393
  ).sort((a, b) => {
13362
- if (a.value > 0 !== b.value > 0) {
13363
- return b.value > 0 ? 1 : -1;
13394
+ if (Number(a.value) > 0 !== Number(b.value) > 0) {
13395
+ return Number(b.value) > 0 ? 1 : -1;
13364
13396
  }
13365
- return b.value * b.price - a.value * a.price;
13397
+ return Number(b.value) * b.price - Number(a.value) * a.price;
13366
13398
  });
13367
13399
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
13368
13400
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
@@ -13370,48 +13402,50 @@ var AssetsContent = ({ setCurrentContent }) => {
13370
13402
  /* @__PURE__ */ jsxRuntime.jsx(ModalBackButton, { onClick: () => setCurrentContent("main") }),
13371
13403
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
13372
13404
  ] }),
13373
- /* @__PURE__ */ jsxRuntime.jsxs(react.ModalBody, { children: [
13374
- /* @__PURE__ */ jsxRuntime.jsxs(react.InputGroup, { size: "lg", children: [
13375
- /* @__PURE__ */ jsxRuntime.jsx(
13376
- react.Input,
13377
- {
13378
- placeholder: "Search token",
13379
- bg: darkMode ? "#00000038" : "gray.50",
13380
- borderRadius: "xl",
13381
- height: "56px",
13382
- pl: 12,
13383
- value: searchQuery,
13384
- onChange: (e) => setSearchQuery(e.target.value)
13385
- }
13386
- ),
13387
- /* @__PURE__ */ jsxRuntime.jsx(react.InputLeftElement, { h: "56px", w: "56px", pl: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
13388
- 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,
13389
13429
  {
13390
- color: darkMode ? "whiteAlpha.400" : "gray.400"
13391
- }
13392
- ) })
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
+ )) })
13393
13438
  ] }),
13394
- /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { spacing: 2, align: "stretch", mt: 2, children: filteredTokens.map((token) => /* @__PURE__ */ jsxRuntime.jsx(
13395
- AssetButton,
13439
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { children: allowCustomTokens && /* @__PURE__ */ jsxRuntime.jsx(
13440
+ react.Button,
13396
13441
  {
13397
- symbol: token.symbol,
13398
- amount: token.value,
13399
- usdValue: token.value * token.price,
13400
- isDisabled: token.value === 0,
13401
- onClick: () => handleTokenSelect(token)
13402
- },
13403
- token.address
13404
- )) })
13405
- ] }),
13406
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { children: allowCustomTokens && /* @__PURE__ */ jsxRuntime.jsx(
13407
- react.Button,
13408
- {
13409
- variant: "vechainKitSecondary",
13410
- leftIcon: /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: ri.RiEdit2Line, boxSize: 4 }),
13411
- onClick: () => setCurrentContent("add-custom-token"),
13412
- children: t("Manage Custom Tokens")
13413
- }
13414
- ) })
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
+ ] })
13415
13449
  ] });
13416
13450
  };
13417
13451
  var ManageCustomTokenContent = ({
@@ -13868,7 +13902,7 @@ var PrivyLinkedAccounts = ({ onBack }) => {
13868
13902
  if (showLinkOptions) {
13869
13903
  return /* @__PURE__ */ jsxRuntime.jsxs(ScrollToTopWrapper, { children: [
13870
13904
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
13871
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: t("Add Login Method") }),
13905
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: t("Select Additional Login Method") }),
13872
13906
  /* @__PURE__ */ jsxRuntime.jsx(
13873
13907
  ModalBackButton,
13874
13908
  {
@@ -14173,7 +14207,7 @@ var PrivyLinkedAccounts = ({ onBack }) => {
14173
14207
  ]
14174
14208
  }
14175
14209
  ) }),
14176
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
14210
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { w: "full", children: /* @__PURE__ */ jsxRuntime.jsx(
14177
14211
  react.Button,
14178
14212
  {
14179
14213
  w: "full",
@@ -14299,8 +14333,8 @@ var NotificationsContent = ({ setCurrentContent }) => {
14299
14333
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: isArchiveView ? t("Archived Notifications") : t("Notifications") }),
14300
14334
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
14301
14335
  ] }),
14302
- /* @__PURE__ */ jsxRuntime.jsxs(react.Container, { maxW: "container.lg", h: ["auto", "540px"], children: [
14303
- /* @__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: [
14304
14338
  /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { justify: "space-between", children: [
14305
14339
  /* @__PURE__ */ jsxRuntime.jsx(
14306
14340
  react.Button,
@@ -16841,7 +16875,7 @@ var useTransferERC20 = ({
16841
16875
  return clausesArray;
16842
16876
  }, [receiverAddress, amount]);
16843
16877
  const handleOnSuccess = React10.useCallback(async () => {
16844
- await refresh();
16878
+ refresh();
16845
16879
  onSuccess?.();
16846
16880
  }, [onSuccess, fromAddress, queryClient]);
16847
16881
  const result = useSendTransaction({
@@ -16904,7 +16938,7 @@ var useTransferVET = ({
16904
16938
  buttonText: "Sign to continue"
16905
16939
  },
16906
16940
  onTxConfirmed: async () => {
16907
- await refresh();
16941
+ refresh();
16908
16942
  onSuccess?.();
16909
16943
  },
16910
16944
  onTxFailedOrCancelled: async () => {
@@ -17981,12 +18015,12 @@ var variants3 = {
17981
18015
  })),
17982
18016
  mainContentButton: react.defineStyle(({ colorMode }) => ({
17983
18017
  width: "100%",
17984
- backgroundColor: colorMode === "dark" ? "#ffffff05" : "blackAlpha.50",
18018
+ backgroundColor: colorMode === "dark" ? "#ffffff0a" : "blackAlpha.50",
17985
18019
  borderRadius: "xl",
17986
18020
  p: 3,
17987
18021
  cursor: "pointer",
17988
18022
  _hover: {
17989
- backgroundColor: colorMode === "dark" ? "#ffffff0d" : "blackAlpha.200"
18023
+ backgroundColor: colorMode === "dark" ? "#ffffff12" : "blackAlpha.200"
17990
18024
  }
17991
18025
  }))
17992
18026
  };