Moody Salem
95db44e0fc
add a little state to the automatic issue body
2021-05-12 18:20:16 -05:00
Moody Salem
7d45ff5ca8
fix 0 decimal tokens error
2021-05-12 17:29:02 -05:00
Moody Salem
8964cf86aa
nit with how we convert percent to negative value
2021-05-12 17:13:40 -05:00
Moody Salem
0e9f23ed56
hover text nit
2021-05-12 17:12:16 -05:00
Moody Salem
e08e597655
show list in import token dialog
2021-05-12 17:01:20 -05:00
Moody Salem
744db49803
do not show duplicate token results, and stop searching as soon as possible
2021-05-12 16:54:05 -05:00
Moody Salem
54f59e02fd
add page url to the issue template
2021-05-12 16:17:46 -05:00
Ian Lapham
dd33205bf6
update string in token amount formatting ( #1539 )
2021-05-12 14:19:01 -04:00
Moody Salem
397a20b9ec
fix the issue title
2021-05-12 13:14:02 -05:00
Moody Salem
0aac0b43aa
clean up the error boundary
2021-05-12 13:11:10 -05:00
Ian Lapham
702500794d
truncate and format large numbers ( #1518 )
...
* truncate and format large numbers
* update truncation shorthand
* update logic for detecting small amount
2021-05-12 14:08:05 -04:00
Moody Salem
8bea95fab2
fix the transaction deadline errors
2021-05-12 13:01:31 -05:00
Moody Salem
27094c87f2
clean up price impact formatting
2021-05-12 12:39:21 -05:00
Justin Domingue
bede9171c3
add header background on scroll body overlap ( #1531 )
...
* add header background-color on scroll overlap
* slide background in/out on scroll
* remove unused import
Co-authored-by: Justin Domingue <domingue.justin@gmail.com>
2021-05-12 13:19:43 -04:00
Justin Domingue
251d7c0bc2
Fix NFT SVG performance issue in browser ( #1509 )
...
* only animate NFT SVG on hover by using a canvas
* handle high dpis
* animation transition between canvas and img
* set start state to not animated
* removed animations that were causing issues on Firefox
* simplify code
* remove debugger statement
* remove useEffect in favor of an event handler
* hide canvas without unmounting to avoid blinking
* fix lint error
* fix flicker on hover by leaving canvas always visible
* add comment about z-index
Co-authored-by: Justin Domingue <domingue.justin@gmail.com>
2021-05-12 13:02:52 -04:00
Moody Salem
285e4f28f5
fix bug in fiat value price impact display
2021-05-12 11:56:18 -05:00
Moody Salem
3aa045303a
remove a few unused isToken calls
2021-05-12 11:43:30 -05:00
Noah Zinsmeister
e0a7c3794e
bump gas margin to 20%
2021-05-12 12:35:46 -04:00
Noah Zinsmeister
f5fc5da341
fix erroneous addition of tokensOwned{0,1} ( #1533 )
...
only pass tokenId to useV3PositionFees
2021-05-12 12:20:20 -04:00
Moody Salem
bea5c0484b
fix lint errors, show source list in extra tokens
2021-05-12 09:32:24 -05:00
Moody Salem
27960532ca
refactor: use new sdk version ( #1472 )
...
* do not construct tokens for wrapped token info
* some cleanup of the wrapped token info
* back to extends, bump sdk core version via v2/v3 sdk updates
* Revert "back to extends, bump sdk core version via v2/v3 sdk updates"
This reverts commit 92cc5073
* update the sdk version
* fix some more uses of instanceof
* finish the refactor
* mess with the currency list performance
* start replacing with the latest v3/v2 sdks
* raw -> quotient
* more cleanup
* finish the refactor
* clean up currency list refactor
* fix list rendering
* perf(token lists): improve app performance when there are large inactive token lists (#1510 )
* improve inactive token lists performance
* cleanup before larger changes to combine inactive lists
* only do the search if the query does not match any active lists, limit the number of results
* more performance improvements
* search inactive lists more aggressively
2021-05-12 08:52:17 -05:00
Ian Lapham
37a4e2f6e3
More UI bug fixes ( #1515 )
...
* fix for error token map parsings
* update varios UI styles
* update padding on & amounts
2021-05-11 22:29:25 -04:00
Noah Zinsmeister
22c1ddf393
swaps to .5% slippage
2021-05-11 15:00:51 -04:00
Noah Zinsmeister
b44ae1a267
clean up parseCurrencyFromURLParameter
2021-05-11 14:19:56 -04:00
Ian Lapham
418dcf0cb2
Various bug fixes ( #1501 )
...
* fix for error token map parsings
* fix error on formatting sig figs
* fix various bugs
* no hover cursor
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-05-11 14:03:02 -04:00
Noah Zinsmeister
58a508c9d6
.25% -> .30% slippage for v3 swaps
2021-05-11 13:53:15 -04:00
Jorropo
3198129af2
feat(routing): support mirror protocol routing as additional bases ( #1375 )
...
* feat(routing): support mirror protocol routing as additional bases
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
2021-05-11 13:28:50 -04:00
John Shutt
89d484d882
feat(uma): uma call option routing ( #1385 )
...
* feat(uma): uma call option routing
Signed-off-by: John Shutt <john.d.shutt@gmail.com>
* Fix code style issues with ESLint
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: Moody Salem <moodysalem@users.noreply.github.com>
2021-05-11 13:25:51 -04:00
Callil Capuozzo
fa4688d96c
UI improvements ( #1505 )
...
* Change price ratio using slash to "per"
* Fix header, toggle copy and increase copy
* Add clearer V2 and migrate buttons
* Fix link
* fix account modal background color
* tweak sig figs
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-05-11 13:25:04 -04:00
Moody Salem
7ee761a59e
feat: automatic slippage tolerance ( #1463 )
...
* automatic slippage tolerance start
* get it compiling
* out of range/in range behavior of slippage tolerance in add
* small useDerivedSwapInfo refactor
* improve useSwapSlippageTolerance
* fix unit test
* thread placeholder slippage through
* small improvement to slippage input behavior
* fix the display bug
* fix tx settings modal ux
* don't pass props unnecessarily
* switch back to static swap slippage for now
bump migrate slippage to .75%
* fix font size
* add flag for auto slippage migration
validate version updates even more
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-05-11 13:00:42 -04:00
jochenboesmans
78e95f6073
Add App-level error boundary, referring users to GitHub issue creation ( #1464 )
...
* Add App-level error boundary, referring users to GitHub issue creation on page crashes. (#1452 )
* Class component is used as boundary since catching errors is apparently not yet possible with hooks.
* EventListener in window was removed and replaced by error boundary's error catch, which now fires a GA exception. The fields it passes are slightly different because React uses slightly different error types.
* Pre-filling issues with dynamic data is possible with POST requests to GitHub's API, but the GH web client seems to only support pre-fill based on templates. Therefore users still need to copy error info themselves.
* Prefill GitHub issues with crash data.
* Added package 'react-device-detect' to include device data such as OS, browser etc. in crash report.
* Included error stack in issue body.
* Used <code> html tag for displaying stack to user.
* Slightly reduce vertical padding on code block.
* Add ua-parser-js for parsing user agent.
* Revert react-device-detect to ^1.6.2 (which is used for mobile detection etc. in components)
2021-05-11 12:09:01 -04:00
Noah Zinsmeister
c67e57505a
make price sig figs more consistent
2021-05-11 10:17:06 -04:00
Justin Domingue
30f7385db7
optimize sandtexture.png with .webp ( #1502 )
...
Co-authored-by: Justin Domingue <domingue.justin@gmail.com>
2021-05-10 21:32:53 -04:00
Noah Zinsmeister
c0f58ae810
don't use a signer for callStatic contract
2021-05-10 16:59:11 -04:00
Noah Zinsmeister
54dd5476ca
fetch fees directly from collect via callStatic ( #1500 )
...
* fetch fees directly from collect via callStatic
* don't clear state
2021-05-10 16:30:02 -04:00
Moody Salem
57786335df
fix calculateSlippageAmount ( #1497 )
2021-05-10 14:22:26 -05:00
Joe Butler
948e01a196
Fix typo ( #1454 )
2021-05-10 14:01:35 -04:00
Moody Salem
4d3f870b93
add a test for calculating slippage amounts
2021-05-09 12:31:45 -05:00
Moody Salem
452f2dc3c0
fix slippage amount bug https://github.com/Uniswap/uniswap-interface/issues/1473
2021-05-09 11:30:56 -05:00
Ian Lapham
b6bd59f2b1
Fix bug on formatted token amounts when decimals < sig fig ( #1479 )
...
* fix for error token map parsings
* fix error on formatting sig figs
2021-05-07 16:52:00 -04:00
Noah Zinsmeister
0190b5a408
bump sdk to fix add/remove slippage
2021-05-06 18:20:36 -04:00
Noah Zinsmeister
d6030dcd45
add settings tab to migrate
2021-05-06 17:44:05 -04:00
Moody Salem
f0e2a491dc
fix(slippage settings): improve slippage tolerance warnings
2021-05-06 11:19:36 -04:00
Moody Salem
021aab6547
fix(wallet): workaround the ethers bug to fix other wallets
2021-05-06 11:10:45 -04:00
Noah Zinsmeister
81af31eec1
estimate gas in migrate v2
2021-05-06 10:40:19 -04:00
Moody Salem
d3898cf900
fix(wallet): workaround for coinbase wallet / fortmatic
2021-05-06 10:09:41 -04:00
Moody Salem
b8f61d5f90
fix(positions list): base/currency ordering
2021-05-06 09:57:12 -04:00
Moody Salem
6c880d29a6
fix(position fee computation): incorrect sub underflow
2021-05-05 22:54:30 -04:00
Lint Action
a8baa6d6a5
Fix code style issues with ESLint
2021-05-05 21:56:49 +00:00
Callil Capuozzo
00a1dee073
Merge branch 'main' of https://github.com/Uniswap/uniswap-interface into main
2021-05-05 17:54:47 -04:00
Callil Capuozzo
a6de7d7846
add links
2021-05-05 17:54:33 -04:00
Moody Salem
e1a81a9996
uniswap protocol disclaimer
2021-05-05 17:40:22 -04:00
Noah Zinsmeister
0770bab032
try manual approve if erc712 doesn't work ( #1397 )
...
* initial impl
* fix async logic
2021-05-05 17:36:07 -04:00
Callil Capuozzo
e5404dbf97
Fix some links
2021-05-05 16:04:40 -04:00
Noah Zinsmeister
78e41848f2
another copy fix
2021-05-05 14:26:53 -04:00
Noah Zinsmeister
77c090534b
copy hotfix
2021-05-05 14:26:02 -04:00
Moody Salem
05acbfee88
fix(swap): do not throw an error in the routing if we cannot construct a pool
2021-05-05 14:22:57 -04:00
Callil Capuozzo
64dd2f9ed1
update button styles
2021-05-05 13:58:37 -04:00
Callil Capuozzo
09f30ce0f7
Merge branch 'main' of https://github.com/Uniswap/v3-interface into main
2021-05-05 13:41:47 -04:00
Callil Capuozzo
a49d5382db
UI tweaks
2021-05-05 13:41:46 -04:00
Ian Lapham
3affcb8d32
small ux style updates ( #160 )
2021-05-05 13:18:47 -04:00
Moody Salem
56e759ff78
fix unit test
2021-05-05 13:10:19 -04:00
Callil Capuozzo
f73a166d92
Merge branch 'main' of https://github.com/Uniswap/v3-interface into main
2021-05-05 13:07:26 -04:00
Callil Capuozzo
e1e52c06db
update copy
2021-05-05 13:06:26 -04:00
Moody Salem
ca4d915903
fix it everywhere
2021-05-05 13:04:50 -04:00
Moody Salem
bdb6327c13
set initial allowed slippage to 10 bips instead of 50 bips
2021-05-05 13:03:39 -04:00
Noah Zinsmeister
ce81dd5a79
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-05-05 12:47:47 -04:00
Noah Zinsmeister
73f29eea2c
don't show approve for both assets...
...
...in the single-sided liquidity provision case
2021-05-05 12:47:41 -04:00
Moody Salem
92193076c5
fixes https://github.com/Uniswap/v3-interface/issues/161
2021-05-05 12:45:29 -04:00
Moody Salem
1aab086693
Swap interface tweaks ( #159 )
...
* fix some nits in the swap interface
* remove some unused css
* tweak the info icon a bit
2021-05-05 12:29:33 -04:00
Noah Zinsmeister
8057cb9fbe
fix rate toggle clearing add liquidity state
2021-05-05 12:19:21 -04:00
Ian Lapham
1b798889af
add default increment behavior ( #157 )
...
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-05-05 12:12:23 -04:00
Connor Martin
1e54b97693
changed to v3 docs links ( #138 )
2021-05-05 12:05:13 -04:00
Noah Zinsmeister
02c21ef720
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-05-05 12:03:29 -04:00
Noah Zinsmeister
b39aeeb805
fix for inactive positions
2021-05-05 12:03:20 -04:00
Callil Capuozzo
8401a4b9b4
Update styles, change warning modals
2021-05-05 11:43:47 -04:00
Callil Capuozzo
3b27ee94d7
Merge branch 'main' of https://github.com/Uniswap/v3-interface into main
2021-05-05 11:42:04 -04:00
Noah Zinsmeister
660c355273
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-05-05 11:19:02 -04:00
Noah Zinsmeister
cd3c48462d
separate v2 + v3 mint reducers
...
reset v3 mint state on migrate mount/unmount
2021-05-05 11:18:54 -04:00
Moody Salem
acfd5c2720
fixes https://github.com/Uniswap/v3-interface/issues/123
2021-05-05 10:23:45 -04:00
Callil Capuozzo
a5ed12bfc7
Merge branch 'main' of https://github.com/Uniswap/v3-interface into main
2021-05-05 00:08:15 -04:00
Noah Zinsmeister
40f0e619cc
fix additional base currency toggle bugs
2021-05-04 22:43:36 -04:00
Noah Zinsmeister
bd817083c9
actually fix isNotUniswap logic
2021-05-04 22:32:01 -04:00
Callil Capuozzo
699bcc25b6
Merge branch 'main' of https://github.com/Uniswap/v3-interface into main
2021-05-04 20:52:27 -04:00
Callil Capuozzo
e88a8effef
style tweaks
...
- bring back gradient background
- improve header
- improve light mode
2021-05-04 20:52:25 -04:00
Ian Lapham
2339817170
multiple bug fixes ( #141 )
...
* multiple bug fixes
* remove unused local
* disable currency select on bottom liquidity
2021-05-04 20:17:19 -04:00
Moody Salem
4220cafbd3
fix the usdc permit
2021-05-04 18:22:45 -05:00
Noah Zinsmeister
a61df58599
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-05-04 19:15:46 -04:00
Noah Zinsmeister
1b35128035
clarify migrate ui
2021-05-04 19:15:29 -04:00
Moody Salem
ab5114c5f5
move the compute price impact function out to a utility file
2021-05-04 17:55:51 -05:00
Moody Salem
28c7cfa1f1
formatted price impact
2021-05-04 17:52:23 -05:00
Moody Salem
509b307b67
show some price impact in the interface
2021-05-04 17:51:01 -05:00
Ian Lapham
1e5519de3f
add dark mdoe toggle, update some styles ( #134 )
2021-05-04 18:25:20 -04:00
Noah Zinsmeister
e8587396d3
hide collect fees if not owner
...
link to owner
2021-05-04 17:48:54 -04:00
Noah Zinsmeister
d69b194ffb
close #127
2021-05-04 17:32:24 -04:00
Noah Zinsmeister
1325443025
fix ratio bugs
2021-05-04 17:03:17 -04:00
Moody Salem
1607f8919a
code in the mainnet addresses
2021-05-04 14:44:55 -05:00
Moody Salem
873cf9760e
fix addresses
2021-05-04 14:39:02 -05:00
Noah Zinsmeister
b39f2fe055
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-05-04 14:58:53 -04:00
Noah Zinsmeister
516e783be6
hot fix for asset composition formula
2021-05-04 14:58:29 -04:00