Moody Salem
eff512deb8
bump sdk-core
2021-05-21 09:34:46 -05:00
Moody Salem
562b402293
feat: use multicall for argent wallets in swap and v3 add liquidity ( #1387 )
...
* use argent wallet contract in swap callback
* maybe working swap callback
* chore(v3): trigger a breaking release
BREAKING CHANGE: trigger a major release for the uniswap interface to indicate it now supports swapping and liquidity provision against uniswap protocol v3
* fix the value
* improve the error coverage
* retry more frequently, couple more error nits
* the is argent call was being sketchy
* get it working for add liquidity
* `0x0` for v2 swaps too
* small nits in position page
* fix import
* fix compiler error
2021-05-21 09:30:07 -05:00
Moody Salem
99ad4ae44c
feat: ETH2x-FLI to ETH2X pair routing ( #1644 )
2021-05-20 23:53:28 -05:00
Moody Salem
6e52a43584
fix: remove the click to flip price on the position list item
...
fixes https://github.com/Uniswap/uniswap-interface/issues/1436
2021-05-20 23:09:14 -05:00
Moody Salem
d4c5d3e8c8
chore: run eslint
2021-05-20 20:14:55 -05:00
Moody Salem
a6e46623ad
chore: bump ethers and regenerate lockfile ( #1666 )
...
* bump ethers
* regenerate lockfile
* update code style
* Fix code style issues with ESLint
* remove unused useRef
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
2021-05-20 20:11:32 -05:00
Justin Domingue
9353c7838c
fix: catch errors from Pair.getLiquidityMinted ( #1668 )
2021-05-20 16:14:23 -07:00
TeaTwo
816249b4b1
fix: replace jazzicon to @metamask/jazzicon ( #1659 )
2021-05-20 15:10:39 -07:00
Moody Salem
70292a5512
do not ask for approve for argent wallet migrate
2021-05-20 16:36:51 -05:00
Justin Domingue
ecdbb4a49f
revert: "fix: handle insufficient input amount error in v2 add liquidity ( #1652 )" ( #1665 )
...
This reverts commit 307a995a50c0ec39c9d4f43937081c67e5e33505.
2021-05-20 11:08:07 -07:00
Justin Domingue
536a5d99de
fix: fix typo is getLiquidityMinted catch ( #1663 )
2021-05-20 10:11:42 -07:00
Noah Zinsmeister
ffc2015595
invalidate stale requests in useV3PositionFees
2021-05-20 12:31:46 -04:00
Moody Salem
5e30a4b4ad
refactor: bump to latest sdk ( #1657 )
2021-05-20 11:21:40 -05:00
Moody Salem
b14da2844d
chore: remove all tick lens stuff that is not used
2021-05-19 17:35:59 -05:00
Justin Domingue
d3c04b7246
fix: stabilize fiat value by fixing max hop and increasing USDC out to 100k ( #1651 )
...
* stablizie fiat value by fixing max hop and increasing USDC out to 100k
* move maxHops and singleHopOnly to parameter of useV2TradeExactOut
* remove single hop param
2021-05-19 13:21:27 -07:00
Justin Domingue
307a995a50
fix: handle insufficient input amount error in v2 add liquidity ( #1652 )
...
* handle insufficient input amount error in mint/hooks
* use error.isInsufficientInputAmountError
* fixed typo
2021-05-19 13:18:32 -07:00
Justin Domingue
1ac36c7b6b
fix: display pool shares < 10% ( #1639 )
...
* fix: display pool shares < 10%
* set bips to 1/10_000
2021-05-18 17:07:06 -05:00
Moody Salem
8e055df447
refactor: make the price computation in v2 add liquidity a little safer
2021-05-18 16:06:54 -05:00
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