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
Callil Capuozzo
9a326fa023
Add liquidity styles ( #98 )
...
* Start styles
* Add liquidity styles & consistency
* clean up styles
* remove un-used element
* New styles
* fix errors
2021-05-04 14:57:57 -04:00
Noah Zinsmeister
7178746023
highlight 100% position composition
2021-05-04 14:04:30 -04:00
Moody Salem
2efe8250ae
rename gorli to goerli
2021-05-04 12:31:51 -05:00
Moody Salem
24d8b4abc9
latest deploy
2021-05-04 12:23:07 -05:00
Noah Zinsmeister
aec18b7eb1
closes #107
2021-05-04 13:22:26 -04:00
Noah Zinsmeister
0c37e81d97
closes #108
2021-05-04 13:20:52 -04:00
Noah Zinsmeister
624c3678c7
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-05-04 13:18:27 -04:00
Noah Zinsmeister
cdae20f2ed
fix weth/eth bug
...
closes #47
2021-05-04 13:18:21 -04:00
Ian Lapham
042967502e
recreate bug fixes ( #109 )
2021-05-04 12:43:43 -04:00
Ian Lapham
eedba9795e
Mobile styles ( #100 )
...
* mobile styles
* remove unused local
* update react imports
* fix imports
Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2021-05-04 11:05:26 -04:00
Moody Salem
300dd70804
show currency values and price impact in the confirmation modal (fixes https://github.com/Uniswap/v3-interface/issues/92 )
2021-05-04 08:38:47 -05:00
Lint Action
f4e994867e
Fix code style issues with ESLint
2021-05-04 01:40:43 +00:00
Moody Salem
7ca79ff12b
fix unit tests
2021-05-03 20:39:03 -05:00
Moody Salem
4903258b7c
Merge branch 'main' into v3-main
...
# Conflicts:
# src/pages/Vote/VotePage.tsx
# src/pages/Vote/index.tsx
2021-05-03 20:37:44 -05:00
jochenboesmans
fe35ca9db8
use enum for enumerateProposalState #1166 ( #1381 )
...
* Use ts enum for ProposalState in state/governance/hooks.ts (#1166 )
* Use ProposalState enum in Vote/styled.tsx for determining colors of state text etc. (#1166 )
2021-05-03 20:33:34 -05:00
Moody Salem
4bc1b8eb5c
Merge branch 'main' into v3-main
2021-05-03 20:30:46 -05:00
AmagiDDmxh
7801695180
fix(block number): Update polling block number breathing behavior ( #1379 )
2021-05-03 20:30:32 -05:00
Moody Salem
ee69357305
some minor refactoring with price impact functions
2021-05-03 20:25:23 -05:00