- 26 Jan, 2022 10 commits
-
-
Jordan Frankfurt authored
* feat: use default input/output on chain switch * feat(widgets): ErrorGenerator -> PropValidator * default prop validation * useDefaults hook * pr feedback * fix cosmos * drop token map changes * add default inputs to cosmos fixture * set up different validation layers for widget and swap * split widget/swap prop types * cleanup * pr feedback * clear defaults when they're no longer valid on the current chain * remove state checks on validators * stop using address in cosmos fixture * pr feedback * useMemo on useSwapDefaults args * tell the user what they gave to error'd props Co-authored-by:
Zach Pomerantz <zzmp@uniswap.org>
-
Tina authored
* fix switch network on load * dont run useeffect when chainId isnt defined yet * remove newline
-
Crowdin Bot authored
-
Zach Pomerantz authored
This reverts commit 9fb0d424.
-
Crowdin Bot authored
-
Zach Pomerantz authored
* feat: track approval txs * refactor: update transactions * feat: pending approval ui * chore: fix pending approval doc * fix: clarify optimized trade * fix: use relative path for data uri assets
-
Zach Pomerantz authored
* feat: track approval txs * refactor: update transactions * chore: add ms to deps * test: rm stale test * fix: comment usage of trade for optimized trade
-
Crowdin Bot authored
-
Crowdin Bot authored
-
Zach Pomerantz authored
* refactor: isolate approval callback hooks * fix: use approval callback from trade * chore: pass optimized trade to summary * start review screen UI updates * chore: pass optimized trade to summary * fix: pass Trade to summary * remove uneeded value type * remove uneeded styling * code cleanup * code styling, update props * fix fixture bug, code style updates * bug fix in details array * update logic in details Co-authored-by:
ianlapham <ianlapham@gmail.com>
-
- 25 Jan, 2022 7 commits
-
-
Zach Pomerantz authored
* fix: track swap approvals * fix: type ambiguous return value
-
Zach Pomerantz authored
* fix: disable swap button w/o account * nit: indent less
-
Tina authored
* read from query param and change networks if necessary * dont open network selector menu on url param change * prompt network change when url changes * keep url, network in sync * use chain name instead of id in url param * only prompt network switch if url chain doesnt match
-
Ian Lapham authored
* update slippage tolerance to use auto or custom * remove attempted styling for other PR * back out UI changes, small naming updates * remove UI work * small code style changes, fix typo * update comment to doc comment
-
Crowdin Bot authored
-
Crowdin Bot authored
-
Zach Pomerantz authored
* refactor: isolate approval callback hooks * fix: use approval callback from trade
-
- 24 Jan, 2022 2 commits
-
-
Justin Domingue authored
-
Justin Domingue authored
-
- 23 Jan, 2022 2 commits
-
-
Crowdin Bot authored
-
Will Hennessy authored
-
- 22 Jan, 2022 3 commits
-
-
Crowdin Bot authored
-
Crowdin Bot authored
-
Zach Pomerantz authored
-
- 21 Jan, 2022 6 commits
-
-
Crowdin Bot authored
-
Zach Pomerantz authored
* feat: filter selected currency from select * test: use infura urls * fix: load native with chain * fix: use currencyId for key * feat: switch currencies when selecting other * fix: resolve merge conflict name
-
Zach Pomerantz authored
-
Crowdin Bot authored
-
Ian Lapham authored
* refactor: mv settings state to own file * chore: add default exports * refactor: update swap state to match biz logic * feat: copy biz logic to widgets * Hook up UI to updated swap state * fix: decimal inputs * fix max slippage * fix error in settings * fix: typing errors * revert: useBestTrade changes * fix: use client side trade for widgets * fix: exhaustive deps * chore: add router-sdk * fix: gate old web3 on widget env * fix building errors * update trade imports * update hook naming for swap amount and currencies * small changes Co-authored-by:
Zach Pomerantz <zzmp@uniswap.org>
-
Ian Lapham authored
-
- 20 Jan, 2022 4 commits
-
-
Crowdin Bot authored
-
Crowdin Bot authored
-
Jordan Frankfurt authored
-
Zach Pomerantz authored
-
- 19 Jan, 2022 4 commits
-
-
Crowdin Bot authored
-
Jordan Frankfurt authored
feat(widgets): add error reporting component, INTEGRATION ERROR type, and Missing provider error (#3110) * add error reporting component, INTEGRATION ERROR type, and Missing provider error * rename reporter to generator * pr feedback * refactor provider check * add chainId, convenienceFee, and width errors * pr feedback and convenienceFeeRecipient address enforcement * fix imports for utils
-
Zach Pomerantz authored
* fix: memoize derived swap info * fix: memoize current block timestamp * fix: memoize price impact * fix: memoize debounced value updates * fix: nits
-
Zach Pomerantz authored
* fix: token image for chains / natives * feat: include native currency in select - Updates widgets swap state to use Currency (and deals with downstream updates) - Refactors logoURI code to a new lib/hooks/useCurrencyLogoURIs - Adds native currency to useQueryTokenList NB: This does not build because tests must be updated to use Currency (they currently use mock tokens) * test: update fixtures to use real currency * fix: data uri color extraction * fix: token img state * fix: use new array
-
- 15 Jan, 2022 2 commits
-
-
Zach Pomerantz authored
* refactor: mv useNativeCurrency to lib/hooks * refactor: mv useCurrency logic to lib/hooks
-
Crowdin Bot authored
-