Zach Pomerantz
cee4b8c77a
fix: disable swap button w/o account ( #3177 )
...
* fix: disable swap button w/o account
* nit: indent less
2022-01-24 15:28:48 -08:00
Tina
3153db9f73
feat: add chainId (network) as url parameter ( #3057 )
...
* 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
2022-01-24 15:23:34 -08:00
Ian Lapham
bbdb5f3f56
feat: update slippage tolerance to use auto or custom ( #3166 )
...
* 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
2022-01-24 17:56:12 -05:00
Crowdin Bot
7f9c56b68c
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-24 20:08:12 +00:00
Crowdin Bot
2b69974fdc
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-24 19:06:44 +00:00
Zach Pomerantz
5236065769
refactor: isolate approval callback hooks ( #3172 )
...
* refactor: isolate approval callback hooks
* fix: use approval callback from trade
2022-01-24 10:56:24 -08:00
Justin Domingue
52128a2dcd
chore: reset local tick data state on input change ( #3176 )
2022-01-24 11:10:33 -05:00
Justin Domingue
c9642c6cd0
feat: use TickLens on chains where subgraph is not functional ( #3149 )
2022-01-24 09:12:07 -05:00
Crowdin Bot
b878d764e5
chore(i18n): synchronize translations from crowdin [skip ci]
v4.36.0
2022-01-23 18:09:33 +00:00
Will Hennessy
6a4f067ac0
Display message if not mainnet ( #3151 )
2022-01-23 12:31:40 -05:00
Crowdin Bot
e9407bb6bd
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-22 15:07:19 +00:00
Crowdin Bot
8d822fd0e0
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-22 10:08:02 +00:00
Zach Pomerantz
6404ee6e0b
fix: default tokens on chainId change only ( #3169 )
2022-01-21 13:14:50 -08:00
Crowdin Bot
8ac3ed1128
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-21 10:07:23 +00:00
Zach Pomerantz
b501974a76
feat: polish select ( #3160 )
...
* 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
2022-01-20 16:15:23 -08:00
Zach Pomerantz
567fb0181c
fix: chain mismatched currencies ( #3163 )
2022-01-20 16:12:42 -08:00
Crowdin Bot
8a37c427e6
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-21 00:11:38 +00:00
Ian Lapham
034b3e3e58
feat: Update swap state structure and attach to UI ( #3155 )
...
* 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>
2022-01-20 18:51:45 -05:00
Ian Lapham
053000e5fc
fix: update address listt ( #3159 )
2022-01-20 14:50:27 -05:00
Crowdin Bot
b77e7deb49
chore(i18n): synchronize translations from crowdin [skip ci]
v4.35.0
2022-01-20 03:06:53 +00:00
Crowdin Bot
c3321ae793
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-19 22:06:45 +00:00
Jordan Frankfurt
5dec0cf72b
show wrong chain message instead of throwing on incorrect chain connection ( #3153 )
2022-01-19 15:52:41 -06:00
Zach Pomerantz
1efda07e7a
refactor: mv try parse currency amount to lib utils ( #3152 )
2022-01-19 14:34:01 -05:00
Crowdin Bot
fd819260f9
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-19 16:11:52 +00:00
Jordan Frankfurt
8e3b2cb4b8
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
2022-01-19 09:38:21 -06:00
Zach Pomerantz
d54783a324
fix: memoize more swap ( #2950 )
...
* fix: memoize derived swap info
* fix: memoize current block timestamp
* fix: memoize price impact
* fix: memoize debounced value updates
* fix: nits
v4.34.0
2022-01-18 18:40:23 -05:00
Zach Pomerantz
850a20f6ad
feat: include native currency in widget select ( #3124 )
...
* 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
2022-01-18 12:11:22 -08:00
Zach Pomerantz
99f681818f
refactor: mv token hooks to lib ( #3122 )
...
* refactor: mv useNativeCurrency to lib/hooks
* refactor: mv useCurrency logic to lib/hooks
2022-01-14 11:30:04 -08:00
Crowdin Bot
1127e74357
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-14 19:07:20 +00:00
Ian Lapham
27843f6189
update end timestamp for survey ( #3121 )
v4.33.0
2022-01-14 11:46:13 -07:00
Ian Lapham
1b10c88c51
feat: add survey popup for survey monkey ( #3116 )
...
* add survey popup for survey monkey
* update useEffect and add 24 hour window
* upate % logic
* update logic to show after duration
* update timestamp conditional
* small changes
2022-01-14 11:33:31 -07:00
Crowdin Bot
5d97cbf6ad
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-14 08:11:26 +00:00
Crowdin Bot
064a73ca1b
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-14 07:07:17 +00:00
Zach Pomerantz
e5a1cb4276
chore: replace microbundle with rollup ( #3115 )
...
* refactor: mv gas estimate chains out of component
* chore: replace microbundle with rollup
* chore: use ts rollup config
* chore: rename lib to widgets
* chore: add rollup doc comment
* feat: rollup typings
* fix: retain tsconfig decl dir
2022-01-13 17:11:27 -08:00
Zach Pomerantz
e68e1afd9d
feat: sort the widget token select ( #3114 )
...
* refactor: mv token list utils to lib
* refactor: mv balance hooks to lib
* feat: interactive token select
2022-01-13 14:37:47 -08:00
Zach Pomerantz
8784a761d6
feat: add multicall to widget ( #3112 )
...
* feat: mv block number to atom
* fix: add block updater
* fix: fast forward dep
* refactor: mv multicall to lib
* feat: add multicall to widget
* chore: update widget deps
* nit: pluralize updaters
* chore: minimize deps
2022-01-13 08:54:08 -08:00
Zach Pomerantz
7aa0f500d6
feat: mv block number to atom ( #3108 )
...
* feat: mv block number to atom
* fix: add block updater
* fix: fast forward dep
v4.32.0
2022-01-12 19:36:08 -08:00
Jordan Frankfurt
06a8151ede
Revert "add error reporting component, INTEGRATION ERROR type, and Missing provider error ( #3107 )" ( #3109 )
...
This reverts commit ac2642fedc8be9ea85201d341b3933983ab2ad36.
2022-01-12 14:24:23 -06:00
Jordan Frankfurt
ac2642fedc
add error reporting component, INTEGRATION ERROR type, and Missing provider error ( #3107 )
2022-01-12 13:29:59 -06:00
Zach Pomerantz
ac962fb00d
refactor: separate useActiveWeb3React ( #3106 )
2022-01-12 11:18:11 -08:00
Zach Pomerantz
f3bcf64144
refactor: split chain info from chains ( #3105 )
2022-01-12 10:46:41 -08:00
Zach Pomerantz
711b2ca85c
chore: import @ethersprojects directly ( #3104 )
...
* Revert "chore: import from ethers"
This reverts commit 6d9c0855d261679c316307ea3f668869c90e63a2.
* Revert "fix: use provider JsonRpcProvider"
This reverts commit dcbbab5e4d6458a11c38582388a7cb5b12691188.
* chore: depend on @ethersprojects directly
2022-01-12 10:06:22 -08:00
willpote
aa97ec01d3
chore: bump sor to 2.5.10 ( #3091 )
2022-01-11 17:26:42 -05:00
Crowdin Bot
83b70f3aa6
chore(i18n): synchronize translations from crowdin [skip ci]
2022-01-11 21:06:53 +00:00
Noah Zinsmeister
e37dd77680
Revert "bump to beta ( #3090 )"
...
This reverts commit aa37b231268d60ae9e625006f5d078e77ad4c0f5.
2022-01-11 16:00:52 -05:00
Noah Zinsmeister
aa37b23126
bump to beta ( #3090 )
2022-01-11 15:30:45 -05:00
Jordan Frankfurt
5a90f13a03
chore(deps): bump walletconnect ( #3097 )
v4.31.0
2022-01-11 14:16:35 -06:00
Will Hennessy
8c213f9001
Update wrong network message ( #3089 )
...
fixes https://github.com/Uniswap/interface/issues/2740
2022-01-11 14:16:19 -06:00
Jordan Frankfurt
5722902f96
add polygon to supported walletlink chainIds ( #3096 )
2022-01-11 14:15:09 -06:00
Zach Pomerantz
27412e49d5
chore: import from ethers ( #3094 )
...
* chore: rm lodash
* chore: improve styled-components lint
* chore: import from ethers
* fix: use provider JsonRpcProvider
2022-01-11 11:32:20 -08:00