Justin Domingue
be6e2fe74a
chore(i18n): convert old locale file to new format ( #1715 )
...
* added supported locales
* added vi locale
* deleted old locale files
* add catalogues to i18n.tsx
* remove fallbackLocales
* add fallback
2021-05-26 18:58:00 -07:00
Justin Domingue
c4846c8832
feat(i18n): improve i18n ( #1692 )
...
* replaced i18next with lingui
* integrate lingui in i18n and update dev setup
* updated components to @lingui
* fix compile error after rebase
* detect locale
* add all previous languages to linguirc
* address pr feedback
* remove it for now
* ignore generate *js files, various fixes
* added more translations
* fixed yarn build command
* wrapped more hardcoded english around <Trans>
* finished second round of translations
* added support for pseudo-en locale
* improvements
* moved copy.tsx to different branch
* moved extra files to different branch
* regenerated po
* clean up
* more fixes
* regenerate po
* remove messages.js
* clean up
* addressed pr feedback
* regenerated po
2021-05-26 13:34:52 -07:00
Moody Salem
dbbffd17a6
fix: improve cancel/retry detection
2021-05-25 13:48:23 -05:00
Moody Salem
85d8b1e514
fix: improve privacy of the claim popup ( #1698 )
...
* fix: improve privacy of the claim popup
fixes https://github.com/Uniswap/uniswap-interface/issues/1337
* fix unhandled rejection
* clean up the claim code a bit more
* working claim fetch
* working claim fetch
* trigger some events on the claim popup
2021-05-24 18:15:12 -05:00
Moody Salem
e9148b30c9
chore: bump v3-sdk
2021-05-21 20:21:41 -05:00
Moody Salem
6e46f25bd4
improvement: use the block number in receipts to update the app state ( #1681 )
2021-05-21 19:55:44 -05:00
Justin Domingue
02269e9376
fix: handle usdc directly in useUSDCPrice ( #1683 )
2021-05-21 16:45:39 -07:00
Moody Salem
9822e68d5a
remove console.log accidentally committed to swap
2021-05-21 14:35:48 -05:00
Justin Domingue
9d1556b777
feat(pool): add toggle to hide inactive positions ( #1676 )
...
* feat(pool): add toggle to hide inactive positions in pools page
* cleanup code
* keep positions sorted, but move zero liquidity positions to end
* simplified sorting logic
2021-05-21 12:22:40 -07:00
Justin Domingue
858b6afb2f
improvement(swap): hide swap placeholders to reduce visual complexity ( #1678 )
...
* resolve #1646 : hide swap placeholders to reduce visual complexity
* use empty string over space
2021-05-21 10:44:41 -07:00
Moody Salem
3aaa3fef89
fix: wrap/unwrap should not show computed trade details
2021-05-21 10:09:11 -05:00
Moody Salem
bc243e1c07
refactor: some clean up of the common bases code, add WETH
2021-05-21 10:01:58 -05:00
Moody Salem
679a58daf4
unwrapped token is not needed
2021-05-21 09:39:32 -05:00
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
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
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
Moody Salem
ce7f94f16a
hide max button appropriately
2021-05-03 20:17:15 -05:00
Moody Salem
124b83ae56
some clean up in showing the route
2021-05-03 20:13:52 -05:00
Moody Salem
0dcd5743c8
fix price impact handling/coloring
2021-05-03 20:05:20 -05:00
Moody Salem
9fec8dbe93
show percentage difference in price on swap
2021-05-03 17:13:05 -05:00
Noah Zinsmeister
549d4e38c6
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-05-03 17:43:49 -04:00
Noah Zinsmeister
3af6781821
add % breakdown for assets in range
...
closes #64
2021-05-03 17:43:39 -04:00
Moody Salem
fbccb83edb
Merge branch 'main' into v3-main
2021-05-03 16:30:04 -05:00
Moody Salem
ff12b7be10
refactor the fiat values
2021-05-03 16:29:45 -05:00
Callil Capuozzo
4c2cb5b0c1
Swap polish 02 ( #93 )
...
* rework swap UI
* Add v2/v3 route toggle UX
* improve button and progress styles
* put optional route in swap header
* Further refinements
* Alt swap layout
* clean up
* Tweak route ui
* merge main
* update swap header
* adjust currency select ui
2021-05-03 16:32:40 -04:00
Callil Capuozzo
d7785942b1
Update migration styles ( #78 )
...
* re-work migrate page
* Layout Tweaks
* cleanup
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-05-03 15:55:30 -04:00
Noah Zinsmeister
ed801deb15
add fiat value of liquidity + fees
2021-05-03 15:19:59 -04:00
Noah Zinsmeister
c34727641d
add basic sushi support ( #87 )
2021-05-03 14:48:30 -04:00
Ian Lapham
807860aac6
refactor review modals ( #60 )
2021-05-03 13:37:41 -04:00
Ian Lapham
5a9034fe95
fix for error token map parsings ( #1384 )
2021-05-03 13:34:01 -04:00
Ian Lapham
ee0db4f2aa
fix list parsing on broken tokens ( #85 )
...
* fix list parsing on broken tokens
* revert to most recent changes
2021-05-03 13:28:55 -04:00
Ian Lapham
6d5625a1f8
Hot fix for token error parsing ( #1382 )
...
* hot fix for token list parsing
* revert tsconfig
2021-05-03 12:11:27 -04:00
Callil Capuozzo
1619386ab4
Position styles ( #55 )
...
* Better position list layout WIP
* Position list updates
* add badge data and current price hover
* merge cleanup
* fix missing library
* position page improvements
* Clean up position page and overview
* layout and color updates
* Clean up page
* Clean up position page
* clean up errors
* Add icons
* Merge main
* Position styles tweaks
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-05-03 11:50:54 -04:00
Moody Salem
93d33947da
fix bug in remove
2021-04-30 22:57:55 -05:00
Moody Salem
91f3e21bd4
some list code cleanup
2021-04-30 22:56:19 -05:00
Moody Salem
e9a432b58e
fix a bug in v3 trade routing returning the wrong trade type for output trade
2021-04-30 22:43:29 -05:00
Moody Salem
1f41587ba9
fix the swap notification
2021-04-30 22:38:24 -05:00
Moody Salem
9b639bee65
invalidate signature data for old nonce
2021-04-30 21:23:16 -05:00
Moody Salem
eaddc9e6f8
dai style permit
2021-04-30 21:20:39 -05:00
Noah Zinsmeister
e83a1ec923
undupe migrate menu
2021-04-30 15:55:53 -04:00
Noah Zinsmeister
8021315f87
fix rates in add liquidity
2021-04-30 15:40:39 -04:00
Noah Zinsmeister
0540012bb9
WETH -> ETH in migrate
...
fix rates in migrate
fix migrate link
2021-04-30 15:12:00 -04:00
Moody Salem
3f6bf607dd
replace uniswap.info links
2021-04-30 13:14:31 -05:00
Moody Salem
828f7ee446
Use permit in swap ( #65 )
...
* add a usePermit hook
* semi working
* Fix code style issues with ESLint
* don't override gas, some cleanup in the permit function
* fix permit validity
* some more permit fixes
* nits
* another nit
* use the erc20 permit hook everywhere
* unused exports
* handle missing version
* replace everywhere
* add DAI and todos
* woopsie bug
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
2021-04-30 12:50:57 -05:00
Noah Zinsmeister
432d17bdfd
only show buttons if nft is owned
2021-04-29 15:55:39 -04:00
Noah Zinsmeister
9743b211e7
change migration threshold to 2
...
fix starting price bug
2021-04-29 15:39:44 -04:00
Noah Zinsmeister
dce187e433
fix price bug
2021-04-29 14:18:15 -04:00
Moody Salem
8859ff6979
fix gas estimate bug
2021-04-29 11:56:02 -05:00
Moody Salem
f566a72b06
fix a bug in the logo not passing style down
2021-04-29 11:31:34 -05:00
Moody Salem
e39e5908e7
drop the card in the position page
2021-04-29 11:18:56 -05:00
Moody Salem
c5424d2dcc
some tweaks to the token logo
2021-04-29 10:26:12 -05:00
Noah Zinsmeister
8b4bc167c5
add multicall mainnet address
2021-04-29 11:01:53 -04:00
Moody Salem
43bceb232e
label nit
2021-04-28 21:23:22 -05:00
Moody Salem
c3909bc1d0
improve the better trade link logic
2021-04-28 20:03:38 -05:00
Moody Salem
b25287923c
return fake price data for non mainnet and fill it into the currency input panel
2021-04-28 19:44:10 -05:00
Noah Zinsmeister
65c51ea4aa
update to latest sdk
2021-04-28 20:17:22 -04:00
Moody Salem
b0fa08e9b0
show a loading indicator
2021-04-28 19:11:27 -05:00
Moody Salem
b09eb8fb52
mess with the gas estimation code a bit to allow swapping
2021-04-28 18:58:53 -05:00
Moody Salem
5b49cedebb
bump addresses
2021-04-28 18:16:49 -05:00
Noah Zinsmeister
ae76f26501
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-04-28 17:59:10 -04:00
Noah Zinsmeister
1cb1ffe2f6
update to latest formatting logic
...
nits
2021-04-28 17:58:59 -04:00
Moody Salem
d83bc3097d
fix some linting errors and some better trade link cleanup
2021-04-28 16:47:03 -05:00
Moody Salem
323edc0fcd
consistently use the worst price and amounts in the swap view
2021-04-28 16:42:56 -05:00
Moody Salem
fc258fdf5c
don't throw if the trades are not comparable
2021-04-28 13:34:22 -05:00
Moody Salem
2e599dc00e
handle loading v3 trade state better
2021-04-28 13:31:30 -05:00
Moody Salem
464a682fcc
show the better trade link for v2/v3
2021-04-28 13:27:14 -05:00
Moody Salem
6ace3c211c
fix linting errors
2021-04-28 12:55:56 -05:00
Moody Salem
2d0b0c70bf
drop the show details stuff
2021-04-28 12:55:28 -05:00
Moody Salem
3c3be3c61a
fix some unit tests
2021-04-28 12:17:40 -05:00
Noah Zinsmeister
d342ccdb78
use sdk for more calldata
2021-04-27 22:24:29 -04:00
Moody Salem
3a34c2ec25
eth swaps kinda working
2021-04-27 19:20:05 -05:00
Moody Salem
83b0ef94f9
show the worst amounts/prices instead of current price
2021-04-27 13:07:07 -05:00
Moody Salem
3680b93fb3
make the way we get the v2 router consistent, start working through changes in the swap callback
2021-04-27 11:00:34 -05:00
Moody Salem
8e86ded09b
temporarily hude the usdc value, use the disable multihop setting in the v3 routing
2021-04-27 10:35:09 -05:00
Moody Salem
37a50372f6
improve responsiveness of header
2021-04-27 10:16:02 -05:00
Noah Zinsmeister
ab99cc612b
add current price
2021-04-27 10:51:12 -04:00
Moody Salem
11a4fa23c1
fix the approve callback from trade bug
2021-04-26 21:26:57 -05:00
Callil Capuozzo
5358b4dc15
New swap layout ( #53 )
...
* re-work header
* swap tweaks
* re-work swap in progress
- inline slippage
- hidey details
- better invert UI
- better flip rate ui
* Swap improvements
- new layout order
* New swap layout
* merge main
* get all the tests running
* skip the swap test as well
Co-authored-by: Moody Salem <moody.salem@gmail.com>
2021-04-26 20:59:56 -05:00
Moody Salem
ccbd5dfcf7
show v3 quotes
2021-04-26 19:35:32 -05:00
Noah Zinsmeister
bb17c57a84
nits
2021-04-26 15:51:31 -04:00
Noah Zinsmeister
3b6213f411
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-04-26 14:28:45 -04:00
Noah Zinsmeister
a5251f55de
improve stepping behavior
2021-04-26 14:28:36 -04:00
Moody Salem
d846c83afa
handle errored calls better
2021-04-26 13:23:53 -05:00
Noah Zinsmeister
00438bea12
fix tick bug
2021-04-26 14:21:42 -04:00
Noah Zinsmeister
0dd5e6b33f
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-04-26 14:15:40 -04:00