@bluxcc/core 0.2.14 → 0.2.15

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.
@@ -8,5 +8,5 @@ interface ModalProps {
8
8
  appearance: IAppearance;
9
9
  isPersistent: boolean;
10
10
  }
11
- declare const Modal: ({ isOpen, onClose, children, isSticky, appearance, isPersistent, }: ModalProps) => import("react/jsx-runtime").JSX.Element | null;
11
+ declare const Modal: ({ isOpen, onClose, children, isSticky, appearance, isPersistent, }: ModalProps) => React.ReactPortal | null;
12
12
  export default Modal;
@@ -40,10 +40,13 @@ export type SwapOptions = {
40
40
  };
41
41
  /**
42
42
  * Swaps one asset for another through the Stellar DEX / liquidity pools using a
43
- * path payment, picking the best available path automatically. Defaults to a
44
- * self-swap; pass `to` to deliver the bought asset to another account. When the
45
- * recipient is the logged-in account and lacks a trustline for `toAsset`, the
46
- * required `changeTrust` is added automatically. Requires a logged-in account.
43
+ * path payment, picking the best available path automatically. Routes of at
44
+ * most 3 assets (one intermediary hop) are preferred, since longer chains are
45
+ * rejected by some Horizon nodes; a longer route is used only when no shorter
46
+ * one exists. Defaults to a self-swap; pass `to` to deliver the bought asset to
47
+ * another account. When the recipient is the logged-in account and lacks a
48
+ * trustline for `toAsset`, the required `changeTrust` is added automatically.
49
+ * Requires a logged-in account.
47
50
  *
48
51
  * @param options - What to swap and how — see {@link SwapOptions}.
49
52
  * @returns The submitted transaction.