@orbs-network/spot-react 1.1.3 → 1.1.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.
@@ -1,4 +1,4 @@
1
- import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-D0bC_6pz.js";
1
+ import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-Bw6dzQ4r.js";
2
2
  class S extends p {
3
3
  constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
4
4
  var o;
@@ -3248,7 +3248,7 @@ const Tb = async ({
3248
3248
  }) => (await Promise.all([
3249
3249
  s ? Tb({ chainId: n, signal: e, page: t, limit: r, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
3250
3250
  yb({ chainId: n, signal: e, account: a, exchange: s == null ? void 0 : s.adapter, isDev: o })
3251
- ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Ub = "1.1.3", Ib = {
3251
+ ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Ub = "1.1.4", Ib = {
3252
3252
  version: Ub
3253
3253
  };
3254
3254
  var us = class {
@@ -11568,7 +11568,7 @@ async function xi(e, t) {
11568
11568
  });
11569
11569
  return J === "0x" ? { data: void 0 } : { data: J };
11570
11570
  } catch (F) {
11571
- const S = kx(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-xeRGYaqM.js");
11571
+ const S = kx(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-Bt3q5bGo.js");
11572
11572
  if (e.ccipRead !== !1 && (S == null ? void 0 : S.slice(0, 10)) === L && k)
11573
11573
  return { data: await M(e, { data: S, to: k }) };
11574
11574
  throw C && (S == null ? void 0 : S.slice(0, 10)) === "0x101bb98d" ? new Q2({ factory: f }) : uu(F, {
@@ -35835,7 +35835,7 @@ const kh = $p(null), GI = new ey({
35835
35835
  };
35836
35836
  if (_(e.value || 0).isZero() || _(s || 0).isZero())
35837
35837
  return e;
35838
- const a = _(e.value || 0).dividedBy(s || 0).toFixed();
35838
+ const a = _(e.value || 0).dividedBy(s || 0).decimalPlaces(0).toFixed();
35839
35839
  return {
35840
35840
  ...e,
35841
35841
  value: a
@@ -36760,8 +36760,8 @@ const wD = () => {
36760
36760
  amountUI: g,
36761
36761
  usd: P
36762
36762
  } = Fi(), {
36763
- pricePerChunkWei: B,
36764
- amountUI: v,
36763
+ amountUI: B,
36764
+ amountWei: v,
36765
36765
  usd: U
36766
36766
  } = vr(), { milliseconds: k } = Cr(), { amountWei: O, amountUI: N } = ws(), { srcAmountUsd: R, dstAmountUsd: h } = hF(), { amount: b, percent: x, usd: C } = bF(), E = xF(), T = ne((L) => L.state.isMarketOrder), D = ne((L) => L.state.currentTime), w = ei(), A = aF(), F = $a((t == null ? void 0 : t.decimals) || 0, r), S = W(() => A === de.TAKE_PROFIT || A === de.STOP_LOSS_LIMIT || A === de.STOP_LOSS_MARKET, [A]), M = yF({
36767
36767
  srcToken: w.srcToken || e,
@@ -36787,8 +36787,8 @@ const wD = () => {
36787
36787
  minDestAmountPerTrade: y,
36788
36788
  minDestAmountPerTradeUI: g,
36789
36789
  minDestAmountPerTradeUsd: P,
36790
- triggerPrice: B,
36791
- triggerPriceUI: v,
36790
+ triggerPrice: v,
36791
+ triggerPriceUI: B,
36792
36792
  triggerPriceUsd: U
36793
36793
  });
36794
36794
  return W(() => ({
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "@orbs-network/spot-react",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Spot React Components - React components for Spot SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/spot-react.umd.cjs",
@@ -1,4 +1,4 @@
1
- import { D as e, a8 as r, af as t, ae as i, V as u, O as n, ab as o, aa as l, a9 as d, ac as O, Q as P, P as S, R as T, U as R, ag as m, a7 as p, S as g, aj as A, ai as E, ah as _, T as I, Z as D, ao as U, a2 as c, W as y, au as C, Y as L, $ as B, a3 as k, a5 as F, a4 as M, ar as b, a0 as h, X as W, a6 as w, a1 as x, an as N, ap as v, aq as f, ad as j, am as q, at as H, as as Q, _ as z, al as G, ak as V, w as J, I as K, E as X, z as Y, L as Z, J as $, A as aa, y as sa, q as ea, m as ra, h as ta, K as ia, j as ua, G as na, t as oa, r as la, k as da, M as Oa, o as Pa, v as Sa, F as Ta, x as Ra, C as ma, p as pa, N as ga, u as Aa, n as Ea } from "./index-D0bC_6pz.js";
1
+ import { D as e, a8 as r, af as t, ae as i, V as u, O as n, ab as o, aa as l, a9 as d, ac as O, Q as P, P as S, R as T, U as R, ag as m, a7 as p, S as g, aj as A, ai as E, ah as _, T as I, Z as D, ao as U, a2 as c, W as y, au as C, Y as L, $ as B, a3 as k, a5 as F, a4 as M, ar as b, a0 as h, X as W, a6 as w, a1 as x, an as N, ap as v, aq as f, ad as j, am as q, at as H, as as Q, _ as z, al as G, ak as V, w as J, I as K, E as X, z as Y, L as Z, J as $, A as aa, y as sa, q as ea, m as ra, h as ta, K as ia, j as ua, G as na, t as oa, r as la, k as da, M as Oa, o as Pa, v as Sa, F as Ta, x as Ra, C as ma, p as pa, N as ga, u as Aa, n as Ea } from "./index-Bw6dzQ4r.js";
2
2
  export {
3
3
  e as DEFAULT_DURATIONS,
4
4
  r as DISCLAIMER_URL,