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>
v3.2.28
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 )
v3.2.27
2021-05-10 14:22:26 -05:00
Joe Butler
948e01a196
Fix typo ( #1454 )
2021-05-10 14:01:35 -04:00
Noah Zinsmeister
abf127c596
sdk bugfix bump ( #1492 )
v3.2.26
2021-05-10 13:04:07 -04:00
Moody Salem
4d3f870b93
add a test for calculating slippage amounts
v3.2.25
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
v3.2.24
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
v3.2.23
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
v3.2.22
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
v3.2.21
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