Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@lifi/widget

lifinance23.8kApache-2.03.21.3TypeScript support: included

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.

widget, lifi-widget, bridge, swap, cross-chain, multi-chain, metamask, ethereum, web3, lifi

readme

license npm latest package npm downloads Crowdin Follow on Twitter

LI.FI Widget

GitHub_Repo_Card

LI.FI Widget is a set of prebuilt UI components that will help you integrate a secure cross-chain bridging and swapping experience that can be styled to match your web app design perfectly and helps drive your multi-chain strategy and attract new users from everywhere.

LI.FI Widget features include:

  • All ecosystems, chains, bridges, exchanges, and solvers that LI.FI supports
  • Embeddable variants - compact, wide, and drawer
  • Options to allow or deny certain chains, tokens, bridges, and exchanges
  • Pre-configured themes and lots of customization options with dark mode support so you can match the look and feel of your web app
  • Wallet management UI with the option to opt-out and use your own (Wagmi, Bigmi and Wallet Standard support)
  • Supports widely adopted industry standards, including EIP-5792, ERC-2612, EIP-712, EIP-6963, and Permit2
  • View of transactions in progress and transaction history
  • Curated wallet lists and wallet bookmarks
  • Route settings for advanced users (stored locally)
  • Complete UI translations to match your customer’s preferred language
  • Compatibility tested with React, Next.js, Vue, Nuxt.js, Svelte, Remix, Gatsby, Vite, RainbowKit, Privy, Dynamic

Installation

LI.FI Widget

LI.FI Widget is available as an npm package.

pnpm:

pnpm add @lifi/widget wagmi @bigmi/react @solana/wallet-adapter-react @tanstack/react-query

npm:

npm install @lifi/widget wagmi @bigmi/react @solana/wallet-adapter-react @tanstack/react-query

yarn:

yarn add @lifi/widget wagmi @bigmi/react @solana/wallet-adapter-react @tanstack/react-query
  • Wagmi is type safe, extensible, and modular library for building Ethereum apps.
  • Bigmi is modular TypeScript library that provides reactive primitives for building Bitcoin applications.
  • @solana/wallet-adapter-react is modular TypeScript wallet adapters and components for Solana applications.
  • TanStack Query is an async state manager that handles requests, caching, and more.

LI.FI Wallet Management

LI.FI Wallet Management is available as an npm package.

pnpm:

pnpm add @lifi/wallet-management

npm:

npm install @lifi/wallet-management

yarn:

yarn add @lifi/wallet-management

Getting started with LI.FI Widget

Here is an example of a basic app using LI.FI Widget:

import { LiFiWidget, WidgetConfig } from '@lifi/widget';

const widgetConfig: WidgetConfig = {
  theme: {
    container: {
      border: '1px solid rgb(234, 234, 234)',
      borderRadius: '16px',
    },
  },
};

export const WidgetPage = () => {
  return (
    <LiFiWidget integrator="Your dApp/company name" config={widgetConfig} />
  );
};

Examples

Visit our playground to see how you can customize your LI.FI Widget experience. Additionally, see examples folder in this repository.

Documentation

Please visit LI.FI Widget Documentation.

Contributing Translations

We appreciate your interest in helping translate our project!

If you'd like to contribute translations, please visit our Crowdin project page at Crowdin LI.FI Widget. Register on Crowdin and you can start translating the project into your preferred language. Your contributions will help make our project accessible to a wider audience around the world.

Thank you for your support!

Changelog

The changelog is regularly updated to reflect what's changed in each new release.

License

This project is licensed under the terms of the Apache-2.0.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.21.3 (2025-05-21)

Bug Fixes

  • update collapse logic in SendToWalletButton component (ccbb69b)

3.21.2 (2025-05-21)

3.21.1 (2025-05-20)

Bug Fixes

  • allow to create txs without enough gas (#395) (61ea1d0)

3.21.0 (2025-05-15)

Features

3.20.5 (2025-05-12)

Bug Fixes

  • add timeout for getCapabilities call (#392) (2b73bf6)
  • avatar-icon: add skeleton for token image (#390) (d9054ce)
  • should not require destination address for 7702 accounts (#393) (00faad2)

3.20.4 (2025-05-06)

Bug Fixes

  • add new error messages for rate limits and third-party tools (#391) (da820be)
  • prevent unnecessary capabilities requests (d0dca6b)

3.20.3 (2025-05-06)

Bug Fixes

  • button color for text variant should respect vars (5efc9fd)

3.20.2 (2025-05-05)

Bug Fixes

  • should only hide bridge settings when hidden UI is applied (8898a67)

3.20.1 (2025-05-05)

Bug Fixes

  • add new default UI and hidden UI options (#389) (b9579ad)

3.20.0 (2025-05-05)

Features

3.19.2 (2025-04-29)

Bug Fixes

  • improve used tool retrieval in transaction history (cba3ed6)

3.19.1 (2025-04-29)

Bug Fixes

3.19.0 (2025-04-28)

Features

3.18.9 (2025-04-28)

Bug Fixes

3.18.8 (2025-04-28)

3.18.7 (2025-04-17)

Bug Fixes

  • add support for displaying positive price impacts with a plus sign (#378) (be3a23d)
  • enable _vcComponent (#382) (fd37fa4)

3.18.6 (2025-04-17)

Bug Fixes

3.18.5 (2025-04-15)

Bug Fixes

  • make transaction execution timer count down (#376) (0595587)

3.18.4 (2025-04-08)

Bug Fixes

  • we should correctly track routes when there is a relayer one (#370) (a64390c)

3.18.3 (2025-04-07)

Bug Fixes

  • update routes incrementally as they're ready (#367) (fafe735)

3.18.2 (2025-04-01)

Bug Fixes

  • use auto slippage in transaction details (32551e2)

3.18.1 (2025-03-13)

Bug Fixes

  • update permit handling with standardized EIP-712 typed data (#365) (77cf606)

3.18.0 (2025-03-10)

Features

  • add Permit (ERC-2612), Permit2 and Wallet Call API (EIP-5792) support (#331) (1ec9786)
  • add RouteTokenDescription hidden option (#361) (bb3e047)

Bug Fixes

  • enable undeployed sca transfers (#362) (4038d7f)
  • timers: display hours and days section of timers, and update copy (#358) (0654c20)

3.17.1 (2025-02-16)

3.17.0 (2025-02-16)

Features

Bug Fixes

  • transaction history page virtualization (#351) (257a581)

3.16.1 (2025-02-11)

Bug Fixes

  • improve SCA as destination flow (#350) (c58e5dd)
  • replace lifuel protocol with gasZip (#347) (8b4bdf2)
  • restrict 2-step routes if account is not deployed on destination… (#346) (bf48c3c)

3.16.0 (2025-02-01)

Features

  • add low activity wallet warning (fb69217)

3.15.2 (2025-01-31)

Bug Fixes

  • hide required wallet info message when wallet is present (#345) (88b5e18)

3.15.1 (2025-01-31)

Bug Fixes

  • improve funds loss warning message (317f8b1)
  • include gas sufficiency message props (2b29bd8)

3.15.0 (2025-01-30)

Features

3.14.2 (2025-01-28)

Bug Fixes

  • validate address from URL params and bookmark it (#343) (688236e)

3.14.1 (2025-01-23)

Bug Fixes

  • address confirmation bottom sheet height (59d034b)

3.14.0 (2025-01-22)

Features

  • add configurable route labels/badges (#338) (f6fe53e)
  • add more UTXO wallets (d787698)
  • add smart contract account info message for destination wallets (#340) (ba57082)

Bug Fixes

  • improve step titles in custom steps (825856c)
  • improve token amount formatting (#339) (a6a3d10)

3.13.2 (2024-12-27)

Bug Fixes

  • support loadable wallets (783ed97)

3.13.1 (2024-12-20)

Bug Fixes

3.13.0 (2024-12-20)

Features

Bug Fixes

  • improve deposit flow card titles (#328) (9eb9a20)
  • prepare for react router v7 (43d27a1)
  • should show wallet menu in split mode (7ca782c)

3.12.5 (2024-12-13)

3.12.4 (2024-12-12)

Bug Fixes

  • improve powered by with dynamic configuration (#332) (6ae3abb)
  • keep previous data only when wallet is connected (1b4df34)

3.12.3 (2024-12-05)

3.12.2 (2024-11-19)

3.12.1 (2024-11-08)

3.12.0 (2024-11-06)

Features

  • add TokenSearch and RouteSelected events (#324) (9165dd0)

Bug Fixes

  • improve token balance and transaction history invalidation (#325) (5bcf6dc)

3.11.0 (2024-11-01)

Features

3.10.0 (2024-10-30)

Features

  • add support for partial wallet management (#320) (e3b919b)

Bug Fixes

  • correct jumping title for in progress transfers (3d0a607)

3.9.0 (2024-10-28)

Features

  • add active account tracking to the internal wallet management (0872fe2)
  • add support for okx bitcoin wallet (175c5fb)
  • try to auto-populate destination address for cross-ecosystem transfers (323d3a1)

Bug Fixes

  • always update the destination chain to match the source one (4d428ea)
  • make destination address required if source address is a smart contract wallet (34d8528)

3.8.2 (2024-10-24)

Bug Fixes

  • avoid gas check for smart contract wallets (1bd956d)
  • improve safe wallet connectivity (df5ded3)
  • replace first-child with first-of-type to avoid warning (d098a7c)
  • solana providers doesn't update accounts sometimes (e911bea)

3.8.1 (2024-10-21)

Bug Fixes

  • add auto focus for search input field (#314) (01c1b49)
  • increase fractional and significant digits (#313) (06e4df6)

3.8.0 (2024-10-18)

Features

Bug Fixes

3.7.0 (2024-10-02)

Features

  • add emitter event on location change (#304) (d6146f8)
  • add search input to chain, bridges and exchanges pages (#305) (5504d95)

3.6.2 (2024-09-24)

Bug Fixes

  • status sheet buttons and height adjustment (#303) (56db5e4)

3.6.1 (2024-09-18)

Bug Fixes

3.6.0 (2024-09-18)

Features

  • add voluntary contribution component (#301) (d0453a7)

Bug Fixes

  • factor external wallet management into header height calculations (#300) (b31aaa7)
  • reactive chain and token properties from config (#294) (1ff7cfc)
  • use process tx link if no tx hash is available (#299) (8c59d31)

3.5.3 (2024-09-12)

3.5.2 (2024-09-11)

Bug Fixes

3.5.1 (2024-09-10)

Bug Fixes

  • make internal explorer optional (a0f51c6)

3.5.0 (2024-09-10)

Features

  • add explorer link to the support card (#292) (0792c15)
  • allow configuration of explorer links (#293) (c173546)

Bug Fixes

  • add percent formatter to improve display of price impact (#287) (2061012)
  • allow the token list to fill the full height available and default max height to 686px (#289) (4882755)
  • container should not forward prop (6e326cd)
  • prevent sending a request for the same chain token combinations (282bdf0)

3.4.4 (2024-08-15)

Bug Fixes

  • improve deposit flow text (ee5f178)

3.4.3 (2024-08-15)

Bug Fixes

3.4.2 (2024-08-14)

Bug Fixes

  • check for window in next.js (f9a134f)

3.4.1 (2024-08-14)

Bug Fixes

  • check for window in next.js (d873c49)

3.4.0 (2024-08-14)

Features

Bug Fixes

  • add subvariant deposit key (abe9ba0)
  • avoid from amount/token reset if they are disabled (#285) (86820c9)

3.3.0 (2024-07-30)

Features

  • improve the display of estimated duration and fees (#278) (5180526)

Bug Fixes

3.2.2 (2024-07-24)

Bug Fixes

3.2.1 (2024-07-22)

Bug Fixes

  • add slippage tooltip (9624fd1)
  • change send and receive wording (6585723)
  • refuel variant should show get gas review button (587bbda)
  • show correct number of available tools (da893cc)

3.2.0 (2024-07-19)

Features

3.1.1 (2024-07-19)

Bug Fixes

  • add new error messages for Solana (3370507)
  • adjust fees amount USD calculation (d479ecd)
  • adjust get gas title (ccc11e1)
  • adjust step connector color (f8694cc)

3.1.0 (2024-07-15)

Features

  • add price impact to transaction details (#273) (d983b91)
  • improve review page with route tracker, added new fee card and improved route card (#268) (258c5d3)

Bug Fixes

3.0.2 (2024-07-08)

Bug Fixes

  • allowed bridges option doesn't applied correctly (1e00fb4)

3.0.0 (2024-06-26)

2.8.0 (2023-10-30)

Features

  • add walletConnected event (f916940)

2.7.1 (2023-10-19)

Bug Fixes

  • remove xmlns:xodm attribute (b64757e)

2.7.0 (2023-10-19)

Features

Bug Fixes

  • allow lower mobile view min-width (6d05d54)

2.6.3 (2023-10-18)

Bug Fixes

  • remove quotes from inside string template (9fa27a9)

2.6.2 (2023-10-16)

Bug Fixes

  • enable gas sufficiency check for SAFE (#142) (a2030cf)

2.6.1 (2023-10-13)

Bug Fixes

  • use keyframes in string templates (6799aaf)

2.6.0 (2023-10-11)

Features

  • add ReviewTransactionPageEntered event (b09cfee)

Bug Fixes

  • use object syntax for keyframes (8c2032f)

2.5.1 (2023-10-03)

Bug Fixes

2.5.0 (2023-10-03)

Features

  • add apiKey configuration option (6948dd6)

Bug Fixes

  • improve fee costs handling (d5e8c53)

2.4.6 (2023-10-02)

Bug Fixes

2.4.5 (2023-09-20)

Bug Fixes

  • hide browser wallets for mobile and tablets (#131) (bd07ca6)
  • remove empty spaces from ens- or walletAddress input (LF-3268) (#121) (d28cbc5)

2.4.4 (2023-09-14)

Bug Fixes

2.4.3 (2023-09-13)

2.4.2 (2023-09-12)

Bug Fixes

2.4.1 (2023-09-11)

Bug Fixes

  • remove unnecessary svg tags (a33c294)

2.4.0 (2023-09-11)

Features

2.3.0 (2023-08-25)

Features

  • add SendToWalletToggled event (e6bffcf)

2.2.8 (2023-08-18)

Bug Fixes

  • remove Huobi, MeetOne, AToken and MyKey wallets (LF-4489) (#120) (3f52729)

2.2.7 (2023-08-14)

Bug Fixes

  • chain order for multiple widget instances (4255ea3)

2.2.6 (2023-08-02)

Bug Fixes

  • partially bridged tokens are not displayed correctly (2a94b8d)

2.2.5 (2023-07-25)

Bug Fixes

  • add element ids to containers (6ba591c)

2.2.4 (2023-07-25)

Bug Fixes

  • allow header transparent background (b40d773)

2.2.3 (2023-07-24)

2.2.2 (2023-07-24)

2.2.1 (2023-07-12)

Bug Fixes

2.2.0 (2023-07-11)

Features

  • add Safe Wallet to wallet management (#100) (ba1b483)

2.1.4 (2023-07-05)

Bug Fixes

  • make chain filtering available for multiple instances (b2c9083)
  • unknown account #0 (LF-3621) (6f67d4f)

2.1.3 (2023-07-03)

2.1.2 (2023-06-28)

Bug Fixes

  • WalletConnect multiple instances + increase z-index (e69a3a1)

2.1.0 (2023-06-27)

Features

  • add emitter-event for contact support button (192140a)
  • support WalletConnect v2 (#89) (5c8cd6d)

Bug Fixes

  • add header store context (5274705)

2.0.1 (2023-06-16)

Bug Fixes

  • don't modify estimations for contract calls (23f8997)
  • warning color in dark theme (bf3aeac)

2.0.0 (2023-06-15)

2.0.0-beta.16 (2023-06-14)

Bug Fixes

  • drawer button icon color in dark theme (dcbe962)

2.0.0-beta.15 (2023-06-14)

Features

  • update nft subvariant to support drawer and send to another wallet (87d8927)

Bug Fixes

  • adjust swap/bridge terminology across the widget (ca69314)
  • don't disable button when refreshing routes (398e70b)
  • don't gray out button on loading state (af2220e)
  • don't throw if autoConnect fails (7dc4578)
  • make button gray in loading state (d64220e)
  • request additional route for insurance only when bridging (84a9bae)
  • translation tags should work inside tooltip (afbf669)
  • update progress text (5d7030d)
  • use subvariant split state for button text (1cb952c)

2.0.0-beta.14 (2023-06-02)

Bug Fixes

  • make icon as a link to address explorer (e173400)
  • tabs background color within split subvariant (beb78c6)

2.0.0-beta.13 (2023-05-25)

Bug Fixes

  • prevent decimals removal if no tokens are selected (b78066e)

2.0.0-beta.12 (2023-05-25)

Features

  • add option to include additional tokens (e2040bb)

Bug Fixes

  • limit decimals for swap input amount (93973d8)
  • trigger gas suggestion only for supported chains (d5f5750)

2.0.0-beta.11 (2023-05-23)

Bug Fixes

  • fix tab radius in split mode (24fa80b)

2.0.0-beta.10 (2023-05-23)

Features

Bug Fixes

  • max button should return full amount (64e0592)
  • remove direct @mui/system import (39080e4)
  • wagmi can't switch chain (2a708c2)

2.0.0-beta.9 (2023-05-15)

Bug Fixes

  • add insufficient funds error handling (6991ee4)
  • include auto refuel into gas sufficiency check (d31f7e4)
  • insurance card isn't shown in some cases (a8eb1ef)

2.0.0-beta.8 (2023-05-11)

Features

  • add hiddenUI toToken option (4e5376b)
  • show token address in token list items (e5d6411)

Bug Fixes

  • adjust token search field text (4aa5cef)
  • apply auto refuel when swapping to native tokens (14d5a1a)
  • handle duplicates in token list (ee804da)
  • handle undefined current wallet (#87) (5b37b6f)
  • replace support link (55a04df)

2.0.0-beta.7 (2023-05-04)

Bug Fixes

  • widget drawer types for refs (0168ff7)

2.0.0-beta.6 (2023-05-04)

Features

Bug Fixes

2.0.0-beta.5 (2023-04-28)

Features

Bug Fixes

  • exchange rate hook is undefined on first render (6fd0c06)

2.0.0-beta.4 (2023-04-27)

Features

  • add tooltip for insurance badge (9ac2a76)

Bug Fixes

  • correctly return balances on first call (0b9b30e)
  • hide history icon when HiddenUI.History is provided (748c6cd)
  • insurance card should expand when enabled (d6f47e7)
  • show fallback token step when present (8a19cb8)
  • update powered by look (cccd168)

2.0.0-beta.3 (2023-04-21)

Features

  • update insurance card and text (c623d11)

Bug Fixes

  • remove svg icons unnecessary attributes (#75) (ee12534)

2.0.0-beta.2 (2023-04-20)

Features

  • rename disableI18n -> disableLanguageDetector (186d28c)

Bug Fixes

2.0.0-beta.1 (2023-04-19)

Features

2.0.0-beta.0 (2023-04-18)

Features

  • add link to insurance coverage (f8a9df6)

Bug Fixes

  • transaction support id should be swap or bridge source one (d9c7e14)

2.0.0-alpha.4 (2023-04-13)

2.0.0-alpha.3 (2023-04-13)

2.0.0-alpha.2 (2023-04-13)

Bug Fixes

  • make config integrator optional (7b983de)

2.0.0-alpha.1 (2023-04-12)

Bug Fixes

2.0.0-alpha.0 (2023-03-28)

⚠ BREAKING CHANGES

  • remove deprecations
  • make integrator property required

Features

Bug Fixes

  • add insurable route id (79e838e)
  • adjust card title to protocol steps (670f67f)
  • check for ENS name while looking for balances (ace7070)
  • check for funds sufficiency as soon as it becomes possible (cd1ef6e)
  • don't apply auto refuel when swapping to native tokens (fe85b38)
  • possible duplicate keys (6d294ed)
  • reduce max price impact to 40% (4b2a718)
  • route priority tags now lowercased (c93ca15)
  • support input when it starts with a dot (80857dd)

1.32.8 (2023-03-06)

Bug Fixes

  • add actions permissions (a8dcf18)
  • only reset appearance if not set via config (bc5f164)
  • TextFitter visibility when using display: none (05eb5aa)
  • use iam role in github actions (d663c7e)

1.32.7 (2023-03-03)

1.32.6 (2023-03-01)

1.32.5 (2023-03-01)

Bug Fixes

  • provider destructuring doesn't work for WalletConnect (76647ed)
  • update local tokens cache to keep priceUSD in sync (#61) (d3f4d87)

1.32.4 (2023-02-24)

1.32.3 (2023-02-22)

Bug Fixes

  • drawer variant isn't wrapped in i18n provider (c33f0ce)
  • fetch balance more often (7a7d574)

1.32.2 (2023-02-20)

Bug Fixes

  • refine ripple effect usage and colors (#57) (c9eaa91)

1.32.1 (2023-02-15)

Bug Fixes

  • add provider for recommended route store (e31da8f)

1.32.0 (2023-02-15)

Features

1.31.1 (2023-02-10)

Bug Fixes

1.31.0 (2023-02-06)

Features

  • add requiredUI config option (61a7960)
  • update wallet menu UI and add view on explorer link (3eb822f)

Bug Fixes

  • accept comma as valid decimal delimiter (9af2686)
  • show more decimal places for exchange rate bottom sheet (88b7f6a)

1.30.0 (2023-02-02)

Features

  • add requiredUI config option (61a7960)

Bug Fixes

  • show more decimal places for exchange rate bottom sheet (88b7f6a)

1.29.6 (2023-01-30)

Bug Fixes

  • preserve old routes while the new ones are loading (13998ad)
  • WalletConnect does not connect a second time (#44) (72b5373)

1.29.5 (2023-01-25)

Bug Fixes

  • adjust token avatar skeleton badge to match with background (333b3c3)

1.29.4 (2023-01-24)

Bug Fixes

  • rename gas start and review buttons (3285151)

1.29.3 (2023-01-24)

Bug Fixes

  • add id prefix to all ids in case of multiple instances of the widget in a page (684f6d8)

1.29.2 (2023-01-23)

Bug Fixes

  • remove namePrefix for chain order (6e42e76)

1.29.1 (2023-01-23)

Bug Fixes

  • use main border radius in list items (09a4a4a)

1.29.0 (2023-01-23)

Features

  • add StoreProvider and localStorageKeyPrefix config option (709aa0a)

Bug Fixes

  • improve dark theme colors (7dff268)
  • remove settings provider namePrefix (0503922)

1.28.4 (2023-01-10)

Bug Fixes

  • bump zustand + fix imports (4914880)

1.28.3 (2023-01-06)

Bug Fixes

  • bignumber conversion (a0e6221)
  • make square icon button possible (9ce176d)

1.28.2 (2023-01-06)

Bug Fixes

  • expanded view background has no z-index (f5a955f)

1.28.1 (2023-01-05)

Bug Fixes

1.28.0 (2023-01-05)

Features

Bug Fixes

1.27.2 (2022-12-15)

Bug Fixes

  • allow adding crossOrigin tag to avatar props (d7aff7e)

1.27.1 (2022-12-13)

1.27.0 (2022-12-13)

Features

  • add hiddenUI and extend disabledUI options (6aea124)
  • add more palette customization options (2794190)
  • move failed swaps to hisory after one day (63bf2d2)

Bug Fixes

  • menu should use main border radius (2a78952)
  • remove box shadow from swap input (a93b64b)
  • unblock Review swap button if other routes are possible for execution (85bb861)

1.26.5 (2022-12-06)

Bug Fixes

1.26.4 (2022-12-01)

Bug Fixes

  • add referrer as top level option (3a5ac47)
  • remove blankwallet (d62c35d)

1.26.3 (2022-11-29)

1.26.2 (2022-11-28)

Bug Fixes

  • bottom sheet closing (f34b0b8)
  • clean the cache of available routes after starting the execution (f60a0dd)

1.26.1 (2022-11-24)

Bug Fixes

  • cancelation on backdrop click (7d648ad)

1.26.0 (2022-11-24)

Features

  • add acceptExchangeRateUpdateHook and improve substatus handling (2a70a88)
  • add destination wallet address to swap details (4214577)
  • add estimated and paid gas fees to swap details page (be4f613)

Bug Fixes

  • add refresh time for tools and chains (0a2e4c0)
  • add retry exception for not found routes (afe2415)
  • adjust connect button color (68b45a9)
  • change sentry sample rate (f960704)
  • correct step title (5024614)
  • make main page sticky (7466c8f)
  • make support id a source tx hash (d837b47)
  • not found routes padding (57d54b2)
  • reduce refresh time for token balance (e5bd5af)

1.25.1 (2022-11-17)

Bug Fixes

  • add fee option to top level config (4ce4d7d)

1.25.0 (2022-11-16)

Features

  • add swap partially successful message (9c3be1e)

Bug Fixes

  • ability to set default slippage and route priority (594c427)
  • eagerConnect (#36) (b2b7dde)
  • network error when switching chains (#37) (cb2b691)
  • update chain value if config did not provide it (8394cd9)
  • updating widget config options in runtime (75eb492)

1.24.0 (2022-11-11)

Features

  • allow for alternative wallet injections (#34) (f7790b4)

Bug Fixes

  • bridges types (ac21920)
  • use toToken from execution if present (3afa3e5)

1.23.1 (2022-11-09)

Bug Fixes

  • adjust button text for refuel mode (e4ce0ef)
  • adjust margin in refuel mode (7a47bfc)
  • re-export wallet icons with names (1bedc9e)
  • reduce initialization requests in strict mode (1892674)
  • wallets import (6b20491)

1.23.0 (2022-11-08)

Features

  • add token avatar skeletons (c118e8e)
  • show token price in route cards (e1380f8)

Bug Fixes

  • disable background refetch (b96ec48)
  • use execution token if present (4e71609)

1.22.1 (2022-11-07)

Bug Fixes

  • correctly fit swap input text (9288b58)
  • fix circular component reference issue (e3f3209)

1.22.0 (2022-10-27)

Features

Bug Fixes

  • allow using symbols in url builder (f84b340)
  • correct execution time ceiling (c6cecbd)
  • format numbers (fe63cdd)

1.21.0 (2022-10-13)

Features

  • add drawer variant to main config (5407a34)

Bug Fixes

1.20.3 (2022-10-12)

Bug Fixes

  • allow integrator option override (170d604)

1.20.2 (2022-10-12)

Bug Fixes

  • load only supported chains tokens (882beb7)

1.20.1 (2022-10-10)

Bug Fixes

1.20.0 (2022-10-10)

Features

  • add high value loss consent bottom sheet (f588b43)

Bug Fixes

1.19.0 (2022-10-10)

Features

  • add delete active swaps button (3365ed8)
  • add tooltips to cards and header (5b88a93)
  • add URL search params builder (9e9c396)

Bug Fixes

  • dark theme card and button adjustments (06905c4)
  • disable expandable variant on small devices (d03c4c8)
  • don't keep bottom sheet mounted (861bec5)
  • make action buttons variant contained (74eb1c6)
  • preserve history state (8662e37)
  • prevent using fromToken/toToken params if chain is not selected (2e21b9e)
  • set only right border width (6f09075)
  • show time and gas cost default values (7d9c220)

1.18.9 (2022-09-30)

Bug Fixes

  • add ScopedCssBaseline to expandable view (a81c216)
  • enable color scheme for container (d2c2416)
  • improve token layout for longer bridge names (36c341c)
  • provide default values if execution time or gas cost are too small (6bb908b)
  • query for tokens if not present in local cache (d809d8e)
  • reduce default slippage (292c2db)
  • remove old routes history object after merge (487c990)
  • use i18n for execution time (7c9a188)

1.18.8 (2022-09-28)

Bug Fixes

  • debouncing should work from the first value (e288dcf)
  • query tokens only if no local ones are found (25225fd)

1.18.7 (2022-09-28)

Bug Fixes

  • process type may not exists (eb44846)

1.18.6 (2022-09-28)

Bug Fixes

1.18.5 (2022-09-28)

Bug Fixes

  • set box-sizing to content-box (2e1319d)

1.18.4 (2022-09-28)

Bug Fixes

  • remove box-sizing for container (c56ba98)

1.18.3 (2022-09-27)

Bug Fixes

  • add retry to token balance checking (50e2915)
  • add tooltip to chain buttons (0fd9626)
  • adjust wallet address shortening (d12d4a7)
  • auto focus and clean send wallet field (a983ca4)
  • improve funds received message to include wallet address (5829e64)

1.18.2 (2022-09-23)

Bug Fixes

  • always expand cards if there are one or two (5c0b3a3)
  • disable route cards if form is not valid (7165164)

1.18.1 (2022-09-23)

Bug Fixes

  • remove show all button background (9990fcc)

1.18.0 (2022-09-23)

Features

  • add new route selection UI (beb780c)

Bug Fixes

  • hide powered by section on token page (41cd261)
  • improve path parsing (c9e1a28)
  • show delete only if history exist (dd34a1d)
  • temp fix for MemoryRouter (555a7d2)

1.17.2 (2022-09-14)

Bug Fixes

  • navigate to home page if no routes are found on a page (4f22c8c)
  • only check route data for gas sufficiency (d2b08be)

1.17.1 (2022-09-13)

Bug Fixes

  • add chain check to find correct token balance (cff5de2)
  • reset insufficient gas check (4afe42a)

1.17.0 (2022-09-12)

Features

  • add bridges, exchanges, tokens and chains config options (457ffb7)

1.16.1 (2022-09-06)

Bug Fixes

  • move sdk initialization to provider (882e02a)

1.16.0 (2022-09-06)

Features

  • add active swaps page and live updates (4d470b5)
  • add checkboxes to bridges and exchanges selection (88a4e5d)
  • add new chain selection view (3c4d3fe)
  • add sdk configuration option (74aaead)
  • add swap completed and failed events (69ff4bc)
  • add widget events (7c0857e)
  • sort executing routes (f9fecac)

Bug Fixes

  • better handle chain switch rejection (48d34ce)
  • correctly disable button if form is not valid (2a536d9)
  • filter tools we no longer have (edc5fb8)
  • set fromAmount to 0 after starting the swap (9493fed)

1.15.1 (2022-08-25)

1.15.0 (2022-08-24)

Features

  • add send to wallet field (9f23752)

Bug Fixes

  • better handle go back navigation (c0840a4)
  • check if value compatible with Big.js (4617954)

1.14.1 (2022-08-22)

Bug Fixes

  • increase token list overscan (440aabd)

1.14.0 (2022-08-22)

Features

  • check for new package versions (573f639)

1.13.7 (2022-08-22)

Bug Fixes

1.13.6 (2022-08-19)

1.13.5 (2022-08-19)

1.13.4 (2022-08-19)

1.13.3 (2022-08-19)

1.13.2 (2022-08-17)

Bug Fixes

1.13.1 (2022-08-11)

Bug Fixes

1.13.0 (2022-08-11)

Features

  • add advanced token search (4e4068a)
  • add featured tokens (a941359)
  • parse config from search params (f01f333)
  • set wallet chain as default if config option is not provided (d04285d)

1.12.1 (2022-08-06)

Bug Fixes

  • fromTokenAmount prevents showing routes on initial load (ffcd4fd)
  • gas sufficiency message appears after reloading while executing the route (e281787)
  • remove resuming route after switching chain (7e3be5c)
  • switch chain only if route exists (cf3c7d6)
  • sync drawer animation with button (858c3b5)
  • underlying network changed error (fa1ebee)
  • wait for balances to load before showing warning (58ae002)

1.12.0 (2022-07-28)

Features

  • add delete swap history button (91f6642)

1.11.4 (2022-07-27)

Bug Fixes

  • add missing translations (8fc5cbe)
  • show skeletons while loading after not found routes state (3960544)

1.11.3 (2022-07-27)

Bug Fixes

  • add hover state for disabled button (917560c)
  • add missing currentRoute (ac9df1e)

1.11.2 (2022-07-27)

Bug Fixes

  • shape and color theme inconsistency (2701476)

1.11.1 (2022-07-27)

Bug Fixes

  • gas message is not shown in some cases (52fcfaf)
  • header action is not shown in some cases (d5840e8)
  • missing routes (c8ee71d)

1.11.0 (2022-07-26)

Features

  • add chain icons to token avatars (5cb5343)
  • add swap history (00f6fd7)
  • add tools icons to swap details (5b652d7)
  • connect executing routes to wallet address (37a736b)

Bug Fixes

  • add keys (e381f06)
  • disable when no routes found (9ee7c3a)
  • improve gas sufficiency handling (164501c)
  • lower font in headers (66fc7d9)
  • make formattedTools persistent (8fde026)
  • make icons outlined (91495a9)
  • minor layout issues (adad66a)
  • remove attemptEagerConnect (61506cf)
  • remove border if no routes found (99d3355)
  • reverse chain and token if only one selected (43462cd)
  • show more than one route on the main page (bd7c8dd)
  • show swap routes progress during initial loading (911a5c5)
  • show tool names in settings (297fa96)
  • swap button wording (66879a6)
  • title (fc21139)

1.10.4 (2022-07-18)

Bug Fixes

  • networkChanged is deprecated (d901074)
  • show correct final toAmount (4a64558)
  • show warning only in production build (4e34b3b)

1.10.3 (2022-07-18)

Bug Fixes

  • disable sentry if widget is not mounted (cccb78d)

1.10.2 (2022-07-18)

Bug Fixes

  • don't show routes with 0 fromAmount (e2a4473)
  • insufficient gas message (0b24868)
  • NaN when no gas cost is provided (2adea9a)
  • too many re-renders (c68c558)

1.10.1 (2022-07-15)

Bug Fixes

  • propagate width props to drawer mode (8d36f1c)
  • show correct step details label (931a67d)

1.10.0 (2022-07-15)

Features

  • add and always include integrator option (9e57ee3)

Bug Fixes

  • better handle gas check with disconnected wallet (432ebf4)
  • handle disconnected wallet and switch chain on the swap page (08ceb08)
  • show routes with disconnected wallet (f875f4e)
  • use default readme across packages (db69a26)

1.9.0 (2022-07-14)

Features

  • add no routes available message (797db9c)

Bug Fixes

1.8.1 (2022-07-12)

Bug Fixes

1.8.0 (2022-07-12)

Features

  • add page not found message (2c1b381)
  • show insufficient gas error messages on swap page (0152fd1)

Bug Fixes

  • check gas sufficiency for chain native tokens (9deea31)
  • current route is not always updated (ebd11cc)
  • current route is not always updated (d291348)
  • insert empty box to center the header (674bf90)
  • make cursor pointer (54f32ff)
  • update insufficient gas error messages look (3172f9a)
  • warning message colors (19652bf)
  • wording for token allowance (a81a9c7)

1.7.0 (2022-07-06)

Features

  • deactivate metamask provider check (#8) (d34eba3)

Bug Fixes

  • Safari: overlapping issue (f2590e2)

1.6.1 (2022-07-06)

Bug Fixes

  • fix styles for mobile (c3930ca)
  • Safari: top border radius and right scrollbar are hidden by overlapping element (ff4f2a6)
  • show only if amount is present (fa5c590)

1.6.0 (2022-07-05)

Features

  • add insufficient gas and funds messages (c016e15)
  • add slippage too large error (17b0780)

Bug Fixes

  • handle replaced transaction (2a0674d)
  • sometimes account signer is not found after page refresh (054648e)

1.5.0 (2022-07-01)

Features

  • add crash reports and diagnostic data collection (276f624)

Bug Fixes

  • can't select tokens with the same address (60e6b44)
  • PoweredBy hover color (e6b75d1)

1.4.0 (2022-06-27)

Features

  • hide internal wallet UI if walletManagement is provided (68dd45f)

1.3.2 (2022-06-27)

Bug Fixes

  • handleSwapButtonClick for external wallet menagement (9d680a8)

1.3.1 (2022-06-22)

1.3.0 (2022-06-22)

Features

  • add external wallet management functionality (#9) (459589b)

Bug Fixes

1.2.0 (2022-06-13)

Features

  • save settings to localStorage (ee4a9d1)

Bug Fixes

  • always initialize tools (2d2be1a)
  • font size in some circumstances (35ac8c8)
  • make tools optional on first load (4b8ab69)
  • remove home route (2085bc6)
  • restrict variations of config usage (5ec0fcc)

1.1.3 (2022-06-08)

Bug Fixes

  • usage inside nested routers (0cc9835)

1.1.2 (2022-06-08)

Bug Fixes

1.1.1 (2022-06-08)

Bug Fixes

  • enable all default chains (0215034)

1.1.0 (2022-06-08)

Features

  • add route priority badges (tags) to route cards (31e18ea)

Bug Fixes

  • auto calculate header hight (80b317e)
  • disable selection of the same tokens (9fb33e9)
  • remove delay when pressing the max button (70a1691)
  • routes are not always refreshed correctly after time was elapsed (67058c6)

1.0.1 (2022-06-06)

1.0.0 (2022-06-06)

⚠ BREAKING CHANGES

  • prepare to publish

Features

  • ability to remove active route (f4e5c32)
  • add appearance settings (7d36597)
  • add arrow to swap routes (11f154e)
  • add auto color scheme checkbox (75eddcc)
  • add border radius customization (779b935)
  • add CardTitle (260339a)
  • add connect wallet button (4e93bcc)
  • add ContainerDrawer (ba19dac)
  • add dark color scheme support (b70526a)
  • add dark mode switch (b66eabc)
  • add details to route cards (bbd5926)
  • add different layout presentations (e7c495e)
  • add different layout presentations (05cbcb6)
  • add error appearance (095a39f)
  • add error messages for process (20542bc)
  • add font family customization (ea46d79)
  • add header, add form draft (4ee2615)
  • add i18n support, upgrade to React 18 (54ef854)
  • add Inter font (f814b3a)
  • add LI.FI as a tool (a637ca0)
  • add link (acd71c0)
  • add link to block explorer (69c2ee1)
  • add powered by section (0226495)
  • add react-scripts with support of monorepo (fae05f5)
  • add reverse tokens button (b0f826d)
  • add secondary color customization (471cd93)
  • add select chain and token compact layout (66d0beb)
  • add select token drawer, header improvements (00c28a9)
  • add send to recipient switch, refine colors (d674546)
  • add settings components (a9d4175)
  • add settings page draft (2370a30)
  • add skeleton to chain select (af62515)
  • add skeleton while loading balances with all tokens filter set (5e486cd)
  • add step and execution items (b715bed)
  • add step divider (05e76d6)
  • add stepper draft (91677e7)
  • add sticky header (ffade59)
  • add sufficient balance check (f96b472)
  • add supported chains to drawer (913db7f)
  • add swap execution logic draft + minor improvements (9fb867f)
  • add swap in progress draft (ffbd288)
  • add swap route card draft (14df8c3)
  • add swap routes page (72415c3)
  • add swap routes update progress circle (25acb5e)
  • add swap status bottom sheet (83575c9)
  • add swap step timer (24b52f9)
  • add SwapButton, small fixes (dad26dc)
  • add swapping page draft (1c387ab)
  • add text fitter (ad1e272)
  • add token list draft (a318735)
  • add token price to token list (7171135)
  • add ToolItem draft (167dd4b)
  • add tooltip and refetch (89b91c3)
  • add translations and more status handling (2b0af0b)
  • add useChain(s) hooks (d74140b)
  • add useSwapRoutes hook draft (239c2f7)
  • add useToken and useTokenBalance hooks, update SwapInput (be17b6d)
  • add validation to slippage input (fa14a49)
  • add you pay token price (5a6fddf)
  • beautiful wallet extension not found dialog (ecdc8e2)
  • blockwallet support (#7) (1f5a508)
  • don't show circle when loading (fa832a4)
  • enable gas and funds check (c105766)
  • get and display routes (#3) (91565b4)
  • handle long amounts (a1c9454)
  • improve send to recipient form, add route priority select (52d91ca)
  • improve token selection (5a87346)
  • move customization to sidebar (f4664e7)
  • move settings to drawer (9c6adcc)
  • move to monorepo (fe7e24b)
  • move token amount formatting to hook (ec55aa1)
  • restructure swap execution logic (74ebf3d)
  • show amount to receive (5c76104)
  • stepper improvements (4589d4d)
  • stop timer when action is required (482bddb)
  • transaction stepper with all states (34a2278)
  • update chain selection (a9261f0)
  • update icons and colors (52eb4b8)
  • update swap form layout (7f9b3b6)
  • update to new SDK status handling (cb87f62)
  • update token drawer (52a17ec)
  • use getTokens endpoint (5e4f86a)
  • use route from location state (5050cd6)

Bug Fixes

  • fix useTokens typo (e71ad88)
  • add inputMode search (17c22bd)
  • add keys and loading states (c576101)
  • add possibility topic (d564803)
  • adjust padding (626acf0)
  • adjust typography (8edfecf)
  • change wording (f3b9498)
  • clear from amount on close (e3fda8c)
  • debounce only when has value (0a18dc2)
  • disable bridge prioritization (aea18ea)
  • disable default tokens (0e95966)
  • disable swap chains when they are not selected (8531863)
  • disable token loading while wallet disconnected (be23def)
  • EIP1193 provider not found (68d3829)
  • execution route mutability hotfix (375e575)
  • fix dark theme logo (effa1d4)
  • fix eslint, bump packages (1bc3a61)
  • fix external theme control (8ae3848)
  • fix input field not resetting after changing chain (cf4b715)
  • fix layout margins (4bbe4a1)
  • fix navigation to swapping page (3316bff)
  • fix skeleton width (56dfbae)
  • header not sticky sometimes (f045008)
  • heavy re-renders on every amount change (62f725a)
  • hide empty scrollbar (cc2a2fe)
  • improve dark theme support (fea0977)
  • improve formatting, add max handler (45b12f8)
  • improve outlined button dark mode support (eaa65bc)
  • improve token filtering perfomance (383a8a5)
  • increase refetchTime (91fb903)
  • input shrinks (e390016)
  • lower font weight when not selected (7223873)
  • lower item height (cb67308)
  • make title match others (085d20b)
  • make token selection smoother (51ef8ed)
  • make webpack 5 work with crypto libs (6106b95)
  • migrate old appearance settings (dfd92fe)
  • missed loading state (36b3535)
  • missing packages and types (49260fb)
  • not found dom route (e3c961f)
  • optimize wallet interface usage (b8716e6)
  • p nesting (ee519d2)
  • postcss-normalize module not found (fd0afa3)
  • prevent running on mount (acd8389)
  • proper avatar colors for dark mode (88df9ff)
  • props forwarding error (5a1f110)
  • reduce max width (4d3432d)
  • reduce max width (233a1f3)
  • remove backgroundImage (a395b48)
  • remove default tokens (1428e75)
  • remove notched prop (272dae6)
  • remove scripts (a133696)
  • remove testing steps (a7f16ac)
  • rename route priority (833cfa9)
  • return debounced value immediately on mount (247fd9e)
  • scroll to top after changing chain (bc772ab)
  • set correct header name for token selection (68d20e9)
  • set gas price default value (ff777d4)
  • show meesage only if no gas (ddb0702)
  • style adjustments (ccbeb51)
  • switch to using chain ids (d6dceea)
  • theme adjustments (526de7f)
  • title jump when progress is empty (8d8fdc9)
  • walleticon import (ec58843)