@skip-go/widget 3.14.3 → 3.14.4

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.
@@ -45679,7 +45679,7 @@ function walletConnect(parameters) {
45679
45679
  const optionalChains = config2.chains.map((x2) => x2.id);
45680
45680
  if (!optionalChains.length)
45681
45681
  return;
45682
- const { EthereumProvider } = await import("./index.es-DpbMTIAc.js");
45682
+ const { EthereumProvider } = await import("./index.es-D8nY1geH.js");
45683
45683
  return await EthereumProvider.init({
45684
45684
  ...parameters,
45685
45685
  disableProviderPing: true,
@@ -46096,9 +46096,9 @@ const gasOnReceiveRouteRequestAtom = atom$1((get) => {
46096
46096
  if (!(sourceAsset == null ? void 0 : sourceAsset.chainId) || !sourceAsset.denom || !destinationFeeAssets) return;
46097
46097
  const sourceAssetUsdPrice = (_f = (_e2 = (_d = (_c = (_b = balances2 == null ? void 0 : balances2.data) == null ? void 0 : _b.chains) == null ? void 0 : _c[sourceAsset == null ? void 0 : sourceAsset.chainId]) == null ? void 0 : _d.denoms) == null ? void 0 : _e2[sourceAsset == null ? void 0 : sourceAsset.denom]) == null ? void 0 : _f.price;
46098
46098
  if (!sourceAssetUsdPrice) return;
46099
- const amount = BigNumber(sourceAssetUsdPrice).multipliedBy(amountUsd).toString();
46099
+ const amount = BigNumber(amountUsd).dividedBy(sourceAssetUsdPrice).toString();
46100
46100
  return {
46101
- amountIn: convertHumanReadableAmountToCryptoAmount(amount, destinationAsset == null ? void 0 : destinationAsset.decimals),
46101
+ amountIn: convertHumanReadableAmountToCryptoAmount(amount, sourceAsset == null ? void 0 : sourceAsset.decimals),
46102
46102
  sourceAssetChainId: sourceAsset.chainId,
46103
46103
  sourceAssetDenom: sourceAsset.denom,
46104
46104
  destAssetChainId: destinationAsset == null ? void 0 : destinationAsset.chainId,
@@ -53664,7 +53664,7 @@ const useConnectToMissingCosmosChain = () => {
53664
53664
  };
53665
53665
  const name = "@skip-go/widget";
53666
53666
  const description = "Swap widget";
53667
- const version = "3.14.3";
53667
+ const version = "3.14.4";
53668
53668
  const repository = {
53669
53669
  url: "https://github.com/skip-mev/skip-go",
53670
53670
  directory: "packages/widget"
@@ -1,4 +1,4 @@
1
- import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-dsbVbl47.js";
1
+ import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-Be7LbriZ.js";
2
2
  import qg, { PROPOSAL_EXPIRY_MESSAGE } from "@walletconnect/sign-client";
3
3
  const global = globalThis || void 0 || self;
4
4
  var buffer$1 = {};
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { W, d, l, o, r, s } from "./index-dsbVbl47.js";
1
+ import { W, d, l, o, r, s } from "./index-Be7LbriZ.js";
2
2
  export {
3
3
  W as Widget,
4
4
  d as defaultTheme,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skip-go/widget",
3
3
  "description": "Swap widget",
4
- "version": "3.14.3",
4
+ "version": "3.14.4",
5
5
  "repository": {
6
6
  "url": "https://github.com/skip-mev/skip-go",
7
7
  "directory": "packages/widget"