Moody Salem
02ecd727eb
fix: do not crash when user switches eth -> weth in add ( #1637 )
...
* fix: do not crash when user switches eth -> weth in add
* linting error
2021-05-18 16:52:34 -04:00
Justin Domingue
6a4fa0c9bf
fix: division by 0 error when both reserves are 0 ( #1632 )
...
* set pair to invalid if both reserves are 0
* consider reserve0/1=0 as no liquidity
2021-05-18 12:50:28 -07:00
Moody Salem
7fc9a655fc
fix: improve rendering of fee dollar values
2021-05-18 14:35:02 -05:00
Moody Salem
8d3babd015
refactor: more separation by chain of addresses
2021-05-18 14:33:03 -05:00
Moody Salem
75ed4c5dae
fix: missed a memo for fetching v2 pairs ( #1635 )
2021-05-18 14:21:06 -05:00
Justin Domingue
58dfadb13c
handle custom token overflow ( #1634 )
2021-05-18 11:32:09 -07:00
jab416171
ecb7132843
Add etherscan links for the two tokens in the pool on the NFT page ( #1593 )
...
* Add etherscan links for the two tokens in the pool on the NFT page
* moving linked tokens to a function
added arrow to show that it's a link
added check for eth
* clean up impl
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-05-18 13:34:20 -04:00
Justin Domingue
980eb8a518
Leverage Trade api for USDC price with v2 & v3 support ( #1610 )
...
* calculate usdc price using trade exact out
* fix typo
* add support for non-mainnet
* use fromRawAmount instead of tryParseAmount
2021-05-18 10:07:37 -07:00
Noah Zinsmeister
a11e89c0e1
hide WETH toggle for non-WETH pairs ( #1633 )
...
* only show weth toggle for eth pairs
* revert unwrappedToken change
2021-05-18 12:58:42 -04:00
Moody Salem
3efe5268ae
refactor: break down some constants files and move some stuff around
2021-05-18 10:31:22 -05:00
Ian Lapham
cccf149568
fix: update tick parsing to handle min/max prices ( #1613 )
...
* update tick parsing to handle min/max prices
* remove fee tier step
2021-05-17 20:19:15 -04:00
Justin Domingue
604ea49567
Revert "lazy load uncommon routes to reduce initial bundle size ( #1597 )" ( #1611 )
...
This reverts commit 4c0c6dfde698ccc94ed196a229e1e6e2cf084d05.
2021-05-17 11:24:31 -07:00
Justin Domingue
4c0c6dfde6
lazy load uncommon routes to reduce initial bundle size ( #1597 )
2021-05-17 11:03:49 -07:00
Noah Zinsmeister
e86946b104
bump to sdk version that fixes mint slippage bug
...
closes #1573
2021-05-17 11:54:06 -04:00
Moody Salem
ae27e245b4
replace the message when we fail to parse an error
2021-05-14 14:13:13 -05:00
Moody Salem
4745052f0e
fix: break words in swap error messages (fixes https://github.com/Uniswap/uniswap-interface/issues/1462 )
2021-05-14 10:50:55 -05:00
Moody Salem
5bc5d6504e
improve the text slightly
2021-05-14 08:45:17 -05:00
Moody Salem
7a0b85bf41
improvement: estimated amounts instead of minimum/maximums ( #1570 )
...
* estimated amounts instead of minimum/maximums
* missed a spot
* fix linting error
2021-05-14 07:15:53 -05:00
OMGspidertanx
534afb3278
fix: tweak element sizing/wraping in approve button ( #1569 )
2021-05-14 07:15:41 -05:00
Moody Salem
7d71af353e
perf: debounce localStorage save
2021-05-14 07:10:25 -05:00
Moody Salem
af6098bfe5
feat: allow walletconnect on testnets ( #1389 )
...
* try walletconnect multinetwork
* clean up environment variables for multinetwork
* remove irrelevant config
* move some stuff around
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-05-13 17:46:30 -05:00
Moody Salem
fce29bb36f
fix: division by 0 when computing the USDC value of tokens that do not have a v2 pair (fixes https://github.com/Uniswap/uniswap-interface/issues/1566 )
2021-05-13 17:27:34 -05:00
Noah Zinsmeister
4517af39ba
don't jump on mouse exit ( #1565 )
2021-05-13 17:06:25 -04:00
Noah Zinsmeister
b40163ce05
allow fee collection/liquidity removal in weth ( #1553 )
...
* add dummy flags for burn/collect as weth
* add toggles
* clean up toggle position
* only show weth toggle if collection is possible
2021-05-13 14:49:54 -04:00
Moody Salem
cd37b7533d
put the error reason in the message so we can differentiate between unrecognized errors
2021-05-13 11:16:37 -05:00
Justin Domingue
c0cd6a1c8d
handle ape= query parameter ( #1555 )
...
* handle expert_mode= and ape= query parameters
* removed console log
* use useParsedQueryString
* only handle setting ape mode
2021-05-13 12:01:58 -04:00
Moody Salem
f6245d1093
retry more frequently, couple more error nits
2021-05-13 10:51:06 -05:00
Moody Salem
83c784f7c0
improve the error coverage
2021-05-13 10:51:06 -05:00
Moody Salem
3d95b1a33b
fix access of undefined property
2021-05-13 09:37:04 -05:00
Moody Salem
5c96942922
fix: show better errors
2021-05-13 09:02:48 -05:00
Justin Domingue
d27c83b382
use styled-components/macro to display className in dev builds ( #1541 )
2021-05-13 09:15:13 -04:00
Moody Salem
b2f88965a9
handle errors better
2021-05-12 22:05:00 -05:00
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