Commit Graph

847 Commits

Author SHA1 Message Date
Moody Salem
9869a9fcb7
fix(swap): if swap fails in FoT router but not in regular router, throw an error (#875)
this is an alternative solution to hard coding forced FoT router tokens
2020-06-08 10:06:37 -04:00
Moody Salem
97deebad37
temporary workaround for tokens that have transfer methods that succeed but do not transfer tokens 2020-06-06 08:41:31 -04:00
Noah Zinsmeister
e667615449
support proposed new FoT-capable methods (#866)
* support new FoT-capable methods

short-circuit modal footer rendering if no trade

improve clarity of tx modal flow

* update router address + ABI
2020-06-05 18:40:02 -04:00
Ian Lapham
0004db3d4a
Style updates, Approve UI updates (#841)
improvements(approvals): match approve flow to add/remove, update UI styles
2020-06-05 13:20:47 -04:00
Moody Salem
c133c472be
fix(search): fix searching tokens to be more tolerant, and sort the exact matched symbols first 2020-06-05 11:20:04 -04:00
Noah Zinsmeister
0019ccdf51
add ren* tokens 2020-06-04 20:58:14 -04:00
Moody Salem
5a1a469f35
perf(multicall): remove the validation that caused app to feel sluggish 2020-06-03 23:19:19 -04:00
Moody Salem
104be830fc
perf(multicall): use single call to get token information (#855)
* use single call to get token information

* delete the bytes32 overload

* console log statement

* add a bunch of tests to actions.ts for multicall

* fix to work with bytes32 symbols/names

* only include name/symbol

* enforce lowercase calldata
2020-06-03 22:15:26 -04:00
Moody Salem
24c70791cd
lint error 2020-06-03 20:23:01 -04:00
Moody Salem
216fdea290
fix(instrumentation): event for migration v1->v2 2020-06-03 20:22:28 -04:00
Moody Salem
40e4ce2ed3
fix(style): add missing padding 2020-06-03 17:23:21 -04:00
Moody Salem
6de3a6ec28
Avoid duplicate popups for mined transactions 2020-06-03 14:30:07 -04:00
Moody Salem
c1d35cc8b3
feat(migrate): adds the migrate flow to the uniswap exchange site
* links and page

* print all the details of the liquidity

* show working approve/migrate buttons

* testnet v1 factory addresses

* split code up into two pages

* getting closer to styled

* compute min amount out of eth and token

* compute min amount out of eth and token

* add a back button to the list page

* Improve empty states

* Improve the state management

* change the display of the migrate page to be more similar to original

* style fix, pending transaction hook fix

* add forwarding to netlify.toml

* handle case where v2 spot price does not exist because pair does not exist

* make ternaries more accurate

* handle first liquidity provider situation

* Style tweaks for migrate

* merge

* Address feedback
- show pool token amount
- show success when migration complete
- show price warning only if price difference is large

Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-06-03 14:07:01 -04:00
Moody Salem
f279b2bea2
fix(misc): migrate link and gradient cut off 2020-06-03 13:36:31 -04:00
Noah Zinsmeister
6ffbf756f8
memoize common bases (#853)
* memoize common bases

* improve memoization
2020-06-02 15:43:10 -04:00
Moody Salem
10837d7ba1
fix(scrolling): too much scrolling 2020-06-02 12:28:35 -04:00
Noah Zinsmeister
2d6eddf9d4
introduce batched usePairs (#851)
centralize all lists of bases

pin some pairs
2020-06-01 16:55:31 -04:00
Noah Zinsmeister
227f729ecd
add AST and EBASE 2020-06-01 10:53:40 -04:00
Moody Salem
a5b15e37f6
fix(application state): fix block number updates after changing networks 2020-05-31 15:33:31 -04:00
Moody Salem
2408b2966e
fix(misc): fix styling on the having trouble link 2020-05-31 00:24:03 -04:00
Moody Salem
dc391d1bea
fix(misc): fix the blinking ethereum logo on ios safari and temporarily remove the overflow settings to fix double scrolling situation 2020-05-31 00:15:17 -04:00
Moody Salem
e2d0514344
chore(cleanup): separate the components for 3 kinds of links we use 2020-05-30 23:33:16 -04:00
Moody Salem
98d25dd2af
perf(cleanup): remove the material ui dependency for the input range 2020-05-30 21:22:59 -04:00
Moody Salem
f289dec684
fix(multicall reducer): add test and fix update multicall results 2020-05-30 03:10:49 -04:00
Moody Salem
73d3df05f2
perf(network connector): use an inline network connector until improved connector is pushed upstream 2020-05-30 02:03:02 -04:00
Moody Salem
83554f44f8
perf(multicall): add unit tests and fix a bug (#845)
* start with the migrate page

* Add a bunch of tests and bump up the call size

* Show a link to the old portal, disable the WIP page

* Fix lint error
2020-05-29 20:07:18 -04:00
Moody Salem
320b2e384b
chore(constant): update token list 2020-05-29 15:20:23 -04:00
Moody Salem
9492e7375a
chore(multicall/migrate): move some v1 stuff around for migrate 2020-05-29 15:08:07 -04:00
Moody Salem
8a6a10be9d
chore(multicall): lint error 2020-05-29 13:25:55 -04:00
Moody Salem
5e486fca7f
perf(multicall): improve fetching code to allow for fetching immutable data like token symbols/names/decimals 2020-05-29 13:23:49 -04:00
Moody Salem
87d24c404b
fix(multicall): v1 pair lookup 2020-05-29 11:52:20 -04:00
Moody Salem
d4011f73d1
fix(multicall): return loading states from the multicall hooks #842 2020-05-29 11:48:33 -04:00
Moody Salem
6fc3157977
chore(strict): strict connectors directory 2020-05-29 11:05:54 -04:00
Moody Salem
9c1fe53e4b
perf(ethereum): reduce number of calls by batching all polling node calls (#840)
* initial refactoring

* rebase lint error

* start implementing reducer

* multicall reducer

* working multicall!

* clean up performance, re-fix annoying error

* use multicall everywhere

* use multicall for balances

* fix lint warning

* Use checksummed address

* Fix strict warning

* get it to a working state with the more generic form

* convert useETHBalances

* Remove the eth-scan contract completely

* Remove the eth-scan contract completely more

* Default export

* Put the encoding/decoding in the methods that can do it most efficiently

* Avoid duplicate fetches via debounce

* Reduce delay to something less noticeable

* Return null if pair reserves are undefined to indicate it does not exist
2020-05-28 21:17:45 -04:00
Noah Zinsmeister
28c916ff45
Remove liquidity callback (#837)
* give add liquidity the reducer treatment

rename setDefaultsFromURL to setDefaultsFromURLSearch

* fix tests and crash

* rework DOM structure to make flow more natural

* allow slippage + deadline setting in add liquidity

* migrate burn

* disable token selection in mint

clear input between pairs

* reset fields between pairs

* tweak helper text

* address review comments
2020-05-27 13:13:31 -04:00
Noah Zinsmeister
b2f0236ee8
Add liquidity callback (#830)
* give add liquidity the reducer treatment

rename setDefaultsFromURL to setDefaultsFromURLSearch

* fix tests and crash

* rework DOM structure to make flow more natural

* allow slippage + deadline setting in add liquidity

* disable token selection in mint

clear input between pairs
2020-05-27 11:42:25 -04:00
Moody Salem
6926f9a4ae
fix(flatMap): don't use the native flatMap function, bump release plugin version 2020-05-27 09:29:53 -04:00
Moody Salem
c9721c42bf
perf(reduce call volume): save a bunch of calls to infura when the tab is not focused, change infura IDs for v2 2020-05-26 13:36:09 -04:00
Moody Salem
7b9b332c42
fix(popover): ios safari not showing the popover 2020-05-25 01:39:50 -04:00
Moody Salem
01feae978a
add a discord link (#833) 2020-05-24 04:47:41 -04:00
Moody Salem
2452d51e14
fix(remove swap button): weirdness on firefox 2020-05-23 22:21:20 -04:00
Moody Salem
bbdc258083
fix(search modal): prevent overlapping tooltips, always render lists 2020-05-23 20:14:41 -04:00
Moody Salem
27b103e3f7
fix(search modal): restore style on sort button 2020-05-23 20:10:16 -04:00
Moody Salem
2a751b9892
Workaround for popover placement on elements that move, styling for small amounts of search results 2020-05-23 20:08:12 -04:00
Moody Salem
0b5fc07ee5
fix(popover): use the same offset 2020-05-23 12:17:39 -04:00
Moody Salem
a0d4710a11
perf(Search modal): performance improvements (#829)
* Search modal performance improvements

* Move more code out of the search modal

* Add the question helper to the search

* Fix a couple lint errors

* Fix the tests, duplicate import text

* Hide the token info on small screens, flex the list

* Fix token sorting, have a link that focuses and shows a tooltip for the search input

* Remove reach tooltip css

* Fix pair balances in the search modal

* Get the arrow working

* Only clear the input when they re-open

* Better way to exclude props

* More small performance tweaks
2020-05-23 12:06:16 -04:00
Moody Salem
63af1a160d
Fix lint errors 2020-05-22 09:43:11 -04:00
Moody Salem
85d52b3480
perf(search modal): refactor before more dramatic changes 2020-05-22 09:36:09 -04:00
Moody Salem
219de1f471
fix(release): remove console.log statement 2020-05-22 08:24:16 -04:00
Ian Lapham
513a1b0c4b
add default text on create flow (#825) 2020-05-21 19:16:42 -04:00
Moody Salem
ccab6f01cf
More tests for add/remove liquidity and fix the automatic loading of tokens in those pages 2020-05-20 23:11:49 -05:00
Moody Salem
384c3cada4
Add integration test, change ipfs deploy into daily release workflow 2020-05-20 22:31:05 -05:00
Moody Salem
c94e8ff6e5
Remove the WETH token from the user added tokens 2020-05-20 21:22:57 -05:00
Moody Salem
04584cc4ac
Fix the add liquidity link from uniswap.info 2020-05-20 21:09:36 -05:00
Moody Salem
7d20dd976b
Fix a crash related to WETH being loaded from add liquidity 2020-05-20 20:51:25 -05:00
Moody Salem
9916c84e5d
Fix i18n loading, manifest.json loading 2020-05-20 18:39:16 -05:00
Moody Salem
462f2482e9
Fix the shifting between send/swap tabs 2020-05-20 16:16:32 -05:00
Moody Salem
0b8d05b696
Add a new target for deploying to IPFS (#819)
* Add a new target for deploying to IPFS

* verbose command

* Try the github action
2020-05-20 16:10:26 -05:00
Noah Zinsmeister
425a23774d
bump v1 trade threshold 2020-05-20 16:18:18 -04:00
Noah Zinsmeister
fea11871ae
add USDT 2020-05-20 16:17:59 -04:00
Moody Salem
b616c7b50d
Default box-sizing to border-box everywhere 2020-05-20 14:59:12 -05:00
Moody Salem
9ac1bcf008
Make the token warning card not huge 2020-05-20 14:43:16 -05:00
Moody Salem
1bb4db5414
Make the hooks directory strict (#817)
* Make the hooks directory strict

* Move using the v1 factory contract to hooks

* Add a comment to why we copy the token map

* Fix another lint error and make AllTokens deep readonly

* Move ALL_TOKENS to constants directory
2020-05-20 14:39:28 -05:00
Noah Zinsmeister
536de89a38
replace commas with periods (#815)
* replace commas with periods

* add pattern attribute
2020-05-20 15:00:47 -04:00
Moody Salem
199eb8bf50
Refactor pages directory (#809)
* Revert "Temporarily disable the token warning for style fixes"

This reverts commit 70722b5e

* Move pages around and refactor to better support rendering content outside the app body

* Automatically add tokens in the add and remove liquidity pages

* Put the warning above the send/swap pages

* Add a margin below the token warning cards

* Save token warning dismissal state in user state

* Linting errors

* style fix
2020-05-20 14:00:33 -05:00
Ian Lapham
f1c6119f8b
change results height on search modal (#816) 2020-05-20 14:30:56 -04:00
Moody Salem
a10b22a382
- Remove the environment variables from the netlify.toml in favor of create-react-app env configuration
- Remove the polling interval override in the index.tsx which is redundant with the connectors file overrides
2020-05-20 12:12:06 -05:00
Noah Zinsmeister
206e845731
add route visualization (#808)
* add route visualization

* add border, only show if >2 tokens in the path

* fix flex styles

* more flex tweaks
2020-05-20 12:23:04 -04:00
Moody Salem
1e7072d5f2
Fix swap + send not going to recipient (#810) 2020-05-19 18:28:26 -05:00
Moody Salem
70722b5e30
Temporarily disable the token warning for style fixes 2020-05-19 16:19:35 -05:00
Moody Salem
cba76c43f6
Token warning a la #789 and #790 (#807)
* Token warning a la #789 and #790

* Clean up the duplicate name or symbol implementation

* Fix the spacing

* Change wording and add to send page

* Wording changes

* Refactor the common code to a component

* Fix lint error
2020-05-19 14:18:24 -05:00
Noah Zinsmeister
373b3180d3
manual approve fallback for remove liquidity (#806)
* generalize useApproveCallback

* show proper slippageAdjustedAmounts in dialog

* make confirmed button text readable in light mode

* default timeout from 15 -> 20 minutes

* add manual approve fallback to remove liquidity

* remove console log

* fix bad web3-react import introduced by refactor

* rename our wrapped version of useWeb3React

* return an enum from useApproveCallback

* fix comment
2020-05-19 15:08:58 -04:00
Moody Salem
c35d8fc702
Quick fix to #800 2020-05-19 09:50:31 -05:00
Moody Salem
e6a043cdc5
Fix #798 2020-05-19 09:34:24 -05:00
Moody Salem
5afddb2ede
Reduce the spam of redux events 2020-05-18 23:56:32 -05:00
Moody Salem
3b2c21e26d
Fix issue where tokens did not disappear after removed 2020-05-18 22:46:06 -05:00
Moody Salem
0e72f1c5d3
Remove unnecessary memoization that causes a caching issue 2020-05-18 22:40:46 -05:00
Moody Salem
81b063351d
Properly label the pure send transactions 2020-05-18 22:06:45 -05:00
Moody Salem
bfb1992e45
Add strict to data folder 2020-05-18 21:22:09 -05:00
Moody Salem
690a121218
Strict typescript (#792)
* Make typescript compilation strict in some new code

* Fix other errors, change how we set dark mode to always respond to url parameter

* Fix bug in block number
2020-05-18 18:23:58 -05:00
Noah Zinsmeister
3fe0a5a9b0
catch possible errors when constructing v1 route (#794) 2020-05-18 19:10:34 -04:00
Moody Salem
f0e1e92178
Move trade price formatting to its own component 2020-05-18 15:03:34 -05:00
Ian Lapham
fcb012cb1a
set token length (#786)
* set token length

* safe check on symbol reference
2020-05-18 15:06:54 -04:00
Moody Salem
1aea452f3b
Add a test and improve our redirects 2020-05-18 13:47:52 -05:00
Noah Zinsmeister
e311e2fcf9
mainnet (#782)
* mainnet config

* fix token + pair sorting

* standardize wrapped useWeb3React imports

* add final return to pair sorting

* add connecting pairs

* break tokens out into separate files

revert isAddress change

* filter out duplicate pairs

* remove add liquidity prompts

* link to v1 trades that are invalid on v2

* forward v2 subdomain to apex

* update blog link

* get rid of smart quotes

* link to uniswap info in position card

* improve pair sorting/searching

break out token identification

fix crash on early pool position clicks

change pair token separator from : to /
2020-05-18 13:20:42 -04:00
Moody Salem
9c4f63f444
Match behavior query params (#785)
* Match the behavior of v1 interface for old query parameters in swap/send

* Handle matching input/output currencies better

* Another test
2020-05-18 11:28:51 -05:00
Moody Salem
f261675602
Remove extra console logging statement! 2020-05-16 20:56:57 -05:00
Moody Salem
67df4959fb
Fix balance forever loading issue, ensure that all balances in the store are keyed by checksummed addresses 2020-05-16 17:23:27 -05:00
Moody Salem
095beae0c2
Refactor ExchangePage into Swap and Send pages (#774)
* Part 1, separate swap and send, move duplicate code into separate files

* Move some more constants out of the swap/send

* Support defaults from URL parameters

* Implement query string parsing via a redux action

* Finish merging the changes

* Fix the slippage warnings

* Clean up some other files

* More refactoring

* Move the price bar out of the component

* Move advanced details and some computations into utilities

* Make same improvements to send

* Approval hook

* Swap page functional with swap callback hook

* Swap/send page functional with swap callback hook

* Fix lint

* Move styleds.ts

* Fix integration test

* Fix error state in swap and move some things around

* Move send callback out of send page

* Make send behave more like current behavior

* Differentiate swap w/o send on send page from swap w/o send on swap page

* Remove userAdvanced which was always false

* Remove the price bar which is not used in the new UI

* Delete the file

* Fix null in the send dialog and move another component out of send

* Move the swap modal header out to another file

* Include change after merge

* Add recipient to swap message

* Keep input token selected if user has no balance and clicks send with swap

* Move the modal footer out of send component

* Remove the hard coded estimated time

* Fix the label/action for swap/sends

* Share the swap modal footer between swap and send

* Fix integration test

* remove margin from popper to suppress warnings

fix missing ENS name recipient link

default deadline to 15 minutes

* ensure useApproveCallback returns accurate data

* clean up callbacks

* extra space

* Re-apply ignored changes from v2 branch ExchangePage file

Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2020-05-16 16:55:22 -05:00
Moody Salem
51e929bd1e
Clear all transactions (#778) 2020-05-16 16:23:46 -04:00
Ian Lapham
af892c1fec
copy updates (#779) 2020-05-16 14:50:03 -04:00
Moody Salem
1380f865a9
Place tooltips better on smaller screens 2020-05-16 10:44:26 -04:00
Moody Salem
487b5ceccc
Don't allow the transaction status icon shrink 2020-05-15 15:55:38 -04:00
Ian Lapham
6c9eeb4691
fixes from bug hunting (#773)
* fix small bugs , token icons

* remove mainnet

* style changes

* fix nav pointer issues on desktop

* more style changes

* remove mainnet
2020-05-15 15:17:19 -04:00
Moody Salem
a34dc73c38
Don't always redirect for links 2020-05-15 10:12:43 -04:00
Moody Salem
07fee04526
Lint error 2020-05-14 23:15:57 -04:00
Moody Salem
5a9b7a382e
Fix bug with balance listeners not being reattached 2020-05-14 23:15:28 -04:00
Noah Zinsmeister
7bffea0692
update swr hooks when block number changes (#771)
* key per-block SWR data with block number

* fix + tweak copy and decrease sig figs for lp fee

* don't use blocknumber as a key

instead mutate when it changes

* fix totalsupply + user liquidity sync issues

* fix v1 trade checker logic

* rough fix allowing removal of user added tokens

probably needs a more comprehensive overhaul...

* refactor SWR block updates to custom hook

* typo

* fix import error

* fix footer css to work cross-broswer

* disallow \ to be typing into amount inputs

add test case for this

add value assertions to all input integration tests

* fix import error

* remove console.log

* clean up address input a bit

trim whitespace from pasted addresses

* fix input maxing

remove spurious max output logic
2020-05-14 17:12:59 -04:00
Moody Salem
b1ffab1890
Refactors (#772)
* Bunch of refactoring

* Add an integration test that gets as far as swapping

* Drop the nonce code that isn't doing anything right now

* Undo one of the accidental changes to the reducer
2020-05-14 15:56:40 -04:00
Moody Salem
4ef3746a09
Add GA instrumentation to v2 (#769) 2020-05-14 13:18:08 -04:00
Moody Salem
d2462af821
Address flashy first loading behavior 2020-05-14 12:57:19 -04:00
Moody Salem
5405648a54
Improve the transaction render style (#767) 2020-05-14 10:32:48 -04:00
Noah Zinsmeister
4ba7dd9535
fix invariant bug due to dummy ETH (#766)
* fix invariant bug due to dummy ETH

* fix lint issue
2020-05-13 20:25:07 -04:00
Moody Salem
0733cdd63c
Fix trade routing to not throw 2020-05-13 19:57:12 -04:00
Noah Zinsmeister
8a61b4e4ad
support browsers which use old match API (safari) (#765) 2020-05-13 19:22:36 -04:00
Noah Zinsmeister
e0cbee79a6
fix bug for single-hop fees (#764)
fix incorrect feeTimesInputFormatted logic
2020-05-13 18:43:17 -04:00
Noah Zinsmeister
141e605c17
v2 slippage fix (#763)
* appropriately discount for multi-hop fee slippage

* fix comment

* make calculation more explicit with a ternary
2020-05-13 17:58:22 -04:00
Moody Salem
3a426fa36b
Fix token balance fetching in the position card 2020-05-13 16:55:14 -04:00
Moody Salem
52d40949a6
Missed a spot 2020-05-13 16:45:08 -04:00
Moody Salem
685bb1745a
Improve rendering of failed transactions 2020-05-13 16:42:47 -04:00
Moody Salem
9006acb4c5
Balances rewrite (#761)
* Create the wallet store

* Get the updater completed

* Code complete

* Fix token balance bug

* Fix another bug in the hooks

* Final bug fix, blockNumber can be undefined

* Formalize the fact that block number can be undefined

* Woops add package

* Add more info to errors

* Replace balances in the v1 methods with the new ones

* Only return a balance value if it's present

* Address comments

* Trigger updateVersion before anything else
2020-05-13 16:36:45 -04:00
Moody Salem
1e1a049990
Add more unit tests to utils 2020-05-13 14:24:03 -04:00
Ian Lapham
3a2566b4e7
Changes to useReserves, escapreRegex moved to utils, code cleanup (#762)
* bug fixes on non-existent vs no reserves, fix scanning on pair search, small ui tweaks

* remove unused vars

* remove mainnet in injected connector

* code cleanup for pr

* update pair value check
2020-05-13 14:16:52 -04:00
Moody Salem
c9db5fb276
Change slippage calculation in trade page as discussed (#756)
* Change slippage calculation in trade page as discussed

* Revert test change

* Fix the missing import
2020-05-13 13:59:54 -04:00
Moody Salem
1cbf67872b
Remove pair that is no longer used from the exchange page 2020-05-13 13:37:06 -04:00
Moody Salem
38947fe760
Remove trade errors about insufficient liquidity that only show up if there's a route (best trade will not return a trade if there is insufficient liquidity) 2020-05-13 13:24:55 -04:00
Moody Salem
31f72a541b
Clean up transaction modal behavior with new store 2020-05-13 12:58:20 -04:00
Moody Salem
287f64cf5c
Fix a redux error from passing a BigNumber to the store 2020-05-13 10:59:51 -04:00
Moody Salem
822f9e5fe2
Connect integration tests (#757)
* Connect a testing wallet

* Replace with a funded address

* Fix the balance checking and adding logging
2020-05-13 08:29:54 -04:00
Moody Salem
6781fce58e
Fix linting error again! 2020-05-12 18:17:26 -04:00
Moody Salem
ef65943659
Rewrite tx store (#754)
* Rewrite the transaction store

* Working state

* Fix lint errors

* Just always call getSigner
2020-05-12 18:11:10 -04:00
Moody Salem
19a53cd999
Rewrite localstorage context (#749)
* Rewrite the local storage context into a redux store for user data

* Separate out the mega methods

* Fix infinite loop

* Missing dependency

* Missing dependency, rename version field
2020-05-12 14:46:58 -04:00
Noah Zinsmeister
b28ad2865d
add v1 slippage checks (only for mainnet) (#746)
* add v1 slippage checks (only for mainnet)

* Add v1 trade notification UI

* Design tweaks

* add minimum delta

* remove dark theme toggle from menu

* only render view on etherscan if an address exists

* fix weird spacing on logged-in header

* lint error

* remove mainnet

Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-05-12 12:20:05 -04:00
Ian Lapham
0d4108937f
Ui changes (#747)
* copy changes

* remove unused input on toggle

* comparison fix
2020-05-12 11:48:42 -04:00
Moody Salem
6da8e2c84d
Introduce redux for one of the state stores (#742)
* Introduce redux for one of the state stores

* Remove unused state

* Clean up hooks

* Add types for react-redux and fix error from any type on useSelector

* Strongly type the web3 provider

* Make the popup content into a POJO

* Lint errors

* Clean up method call

* Fix lint error

* Fix lint error

* Lint
2020-05-11 18:23:01 -04:00
Moody Salem
ea015d16f2
Stop reloading fonts when light mode/dark mode switch 2020-05-11 17:02:10 -04:00
Noah Zinsmeister
d40d81ca6a
noah changes (#739)
* remove duplicated prettier from dependencies

* use swr for allowances

* slight improvements to error cascading

* fetch totalsupply with SWR

fetch pairs with SWR (except persistent pairs, will be refactored later)

* fix lint error

* stop using pair context, instead store per-user pairs in local storage

* add more pairs to the default list

remove unnecessary isWETH

fix lint error

* add more bases to trade consideration

* fix lint warnings

* get SWR data on same schedule

* don't pass value if it's 0

fix WETH equality checks

* clean up fixed/significant formatting

* fix slippage calculation bug in swap

add slippage to remove

* fix token logos

* show fewer sig figs

* lint error

* remove unused signer

* add calculateSlippageAmount safety check and tests

* fix useAllBalances type

stop spuriously sorting token amounts of different tokens

use slightly better comparisons for slippage calculations

* improve priceSlippage comparison logic

* useReserves -> usePair

* use checksum for DAI logo address
2020-05-11 16:39:05 -04:00
Callil Capuozzo
dba6abadf5
UI/UX tweaks (#740)
* Prepare for V2 testing

* Bug fixes and tweaks

* Add form link

* Design tweaks

* higher quality favicon

* Favicon... again.

* Start dark mode

* Add dark toggle

* New dark theme unicorn

* fix connect wallet ui

* Titles for fields && small UI/UX tweaks

* Fix ts linter errors

* UI/UX tweaks

* rebass and change color names

* v1/v2 toggle and color tweaks

* Small header tweaks

* fix account input mobile padding

* remove unused imports

* Fix header link

* Theme toggle for mobile & fix

* no acount? hide maxes

* Use system theme unless toggled

* Remove unused styles

* Fix missing hooks dependencies

* Fix linting errors

* improve system dark mode listener

* add listener

* fix hook dependency

Co-authored-by: Ian Lapham <ianlapham@gmail.com>
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2020-05-11 15:12:38 -04:00
Moody Salem
c365a5ec33
Add some integration tests (#743) 2020-05-11 09:03:44 -04:00
Moody Salem
ee92df1554
Handle insufficient reserves/input errors without crashing 2020-05-09 12:41:21 -04:00
Moody Salem
f1ccd7a166
Fix horizontal scrolling on small screens & add some small padding 2020-05-09 10:55:41 -04:00
Ian Lapham
7c43023860
fix DOM warnings (#741)
* fix DOM warnings

* Update index.tsx

Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2020-05-08 23:58:40 -04:00
Moody Salem
843d5e790a
Done with linter errors! 2020-05-08 18:32:36 -04:00
Ian Lapham
40a7cea6f6
Bug fixes, UI tweaks (#738)
* linking bug fixes, search UI tweaks

* search style tweaks

* organize imports
2020-05-08 17:22:19 -04:00
Moody Salem
7add2a916c
remove a couple more state constants 2020-05-08 16:13:08 -04:00
Moody Salem
5f36437c3f
Turn linting errors off so CI passes 2020-05-08 15:57:51 -04:00
Moody Salem
152e84bc25
Fix more linting errors 2020-05-08 15:46:42 -04:00
Moody Salem
3b3f281319
Use eslint/prettier for typescript files 2020-05-08 14:50:27 -04:00
Moody Salem
17eceebcf5
Final typescript migration push 2020-05-08 14:15:47 -04:00
Moody Salem
2adb0a3dfb
Ts almost everywhere (#736)
* First 2

* More typescript

* More and more

* Almost there

* More

* More typescript

* Fix remove liquidity button

* Make the error chain more readable

* Slippage tabs
2020-05-08 13:48:05 -04:00
Moody Salem
86fa969d6b
Types for react-router-dom, stop lazy loading each route (#735)
* Types for react-router-dom, stop lazy loading each route

* Couple small fixes to README.md
2020-05-08 12:05:52 -04:00
Moody Salem
28b24036c6
Cypress (#734)
* Add some basic integration tests and CI in GitHub

* Add push trigger

* Add badge for tests to readme

* Unit tests

* Just use the development infura URL in the tests

* Remove unused webpack config

* Make integration test run on the same port as yarn start

* make test a little bit better

* rename describe
2020-05-08 11:38:33 -04:00
Moody Salem
a1a9d9f041
Type safety for styled components (#733) 2020-05-08 11:24:47 -04:00
Moody Salem
9b2fe0bdca
Use best trade to get the best route (#731) 2020-05-08 11:13:16 -04:00
Noah Zinsmeister
cb00e0baa5
migrate full away from ethers v4 to v5 (#728)
move some pacakges from dependencies to dev dependencies

bump versions
2020-05-07 19:53:08 -04:00
Moody Salem
4ccbd0c3ba
Fix the crash by importing text 2020-05-07 19:50:12 -04:00
Moody Salem
7fcecc22d9
TS migrations and commit hash in code link (#730)
* TypeScript in the utils directory, README fixes

* Remove unused methods

* Added unnecessary space

* Some env variable cleanup

* Bug in change

* Another file to ts

* App.tsx

* Header and Footer to tsx

* Few more TS migrations and add a commit hash title to the uni icon

* Few more TS migrations and put commit hash in code link

* Splitting up files

* Splitting up files (merged dark mode changes)
2020-05-07 18:52:26 -04:00
Ian Lapham
404d7a60e5
bug fixes, style updates dark mode (#729)
* Prepare for V2 testing

* Bug fixes and tweaks

* Add form link

* Design tweaks

* higher quality favicon

* Favicon... again.

* Start dark mode

* Add dark toggle

* New dark theme unicorn

* header style changes

Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-05-07 16:46:45 -04:00
Moody Salem
b6b094acb3
remove unused functions, typescript (#725)
* TypeScript in the utils directory, README fixes

* Remove unused methods

* Added unnecessary space

* Some env variable cleanup

* Bug in change

* Another file to ts
2020-05-07 14:36:26 -04:00
Ian Lapham
49462fdb3b
bug fixes (#727) 2020-05-07 14:01:34 -04:00
Ian Lapham
3c112b5746
bug fixes (#722) 2020-05-06 22:16:00 -04:00
Ian Lapham
e5c5bad7ab
reset WETH on network change (#720)
* reset WETH on network change

* cleaner version

* undo typo

* fix indexing
2020-05-06 19:03:13 -04:00
Ian Lapham
9eee45a8f1
copy updates (#719) 2020-05-06 17:34:53 -04:00
Callil Capuozzo
e5ced44d75
Design tweaks (#717)
* Prepare for V2 testing

* Bug fixes and tweaks

* Add form link

* Design tweaks

* higher quality favicon

* Favicon... again.

Co-authored-by: Ian Lapham <ianlapham@gmail.com>
2020-05-06 15:34:06 -04:00
Ian Lapham
cdbf440e9c
add slider, big fixes (#715) 2020-05-05 23:20:31 -04:00
Ian Lapham
5426e48872
popup styles, slippage language and amounts, min max copy (#714)
* Prepare for V2 testing

* popup styles, slippage language and amounts, min max copy

* Bug fixes and tweaks

* Add form link

* remove other imports

Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-05-05 20:40:59 -04:00
Noah Zinsmeister
64dd09f2cc
update to latest deploy (#712) 2020-05-05 16:36:22 -04:00
Ian Lapham
6fd9808e7d
Style updates merge with storage updates (#710)
* Add advanced user toggle

* UX stuff

* Remove unused imported checks

* Design tweaks and selection card

* remove unused imports

* Cleanup

* fix merge

Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-05-04 20:21:55 -04:00
Noah Zinsmeister
c3d8bc7ed5
Localstorage and routing improvements (#704)
* remove tokens context in favor of localstorage

refactor localstorage

improve adding custom token flow

* drop exchange language

* ensure url tokens are added to localstorage

clean up routing

remove unnecessary output approval checks

* fix bad import

* Remove unused imported checks

* remove unused imports

Co-authored-by: Ian Lapham <ianlapham@gmail.com>
2020-05-04 17:56:10 -04:00
Ian Lapham
3f1d7ab310
add basic structure for advanced mode (#703)
* add basic structure for advanced mode

* auto dismiss popup

* Remove test code

* remove shadow

* Update advanced section, ui tweaks, balances back inline

* fix memory leak

Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-04-30 21:14:29 -04:00
Ian Lapham
60d7bc4532
bug fix on local storage balance reference (#702) 2020-04-29 14:26:35 -04:00
Ian Lapham
76dbc9fa18
Multiple UI changes (#700)
* small layout and text changes, bug fixes

* UI changes, add summary to txns

* Remove updates, small changes on send, common bases
2020-04-28 18:46:55 -04:00
Ian Lapham
006fe9b325
Updated context keys, remove logs (#680)
* updated keys in pair context

* fix bug on imported liquidity

* Add price bar and spacing tweaks

* Header tweaks

* Base for token import, query params, styling updates

* remove unused imports

* query params, create flow

* set ETH as default for create

* Style tweaks and price bar location

* add mobile popups, mobile styling on header

* updated mobile styles

* style updates mobile, fix build

Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-04-22 17:22:13 -04:00
Ian Lapham
50c9d9973a
UI Updates, Route Context Updates (#679)
* UI updates, big fixes on route hook

* fix bug on all pair list

* logout fix and  add mainnet WETH
2020-04-15 20:56:59 -04:00
Ian Lapham
af6add09a0
Radio button edits, theme updates (#668) 2020-03-30 17:07:12 -04:00
Ian Lapham
cf5c67ec88
fix rerender bugs (#666) 2020-03-26 12:58:45 -04:00
Ian Lapham
eaf8d5a39c
Add routes through ETH (#665)
* add fix for ETH balance fetching

* add tokens to other testnets

* update with Exchange -> Pair

* routes throuh ETH

* fix logs

* fix conflict
2020-03-26 12:42:06 -04:00
Ian Lapham
02dedcbc6e
Update message for testnet, bug fixes (#663) 2020-03-24 16:46:56 -04:00
Ian Lapham
d8c4ebc243
add fix for ETH balance fetching (#662) 2020-03-23 16:01:26 -04:00
Ian Lapham
2b15979e93
Hide dark and advanced, fix bug on empty balances (#660)
* Hide dark and advanced, fix bug on empty balances

* remove unused imports

* change default dark mode

* add warning on main net

* remove unused imports
2020-03-23 15:20:03 -04:00
ianlapham
6211dff044 typed pages 2020-03-20 16:03:23 -04:00
ianlapham
655b79569b basic send added 2020-03-17 16:23:27 -04:00
ianlapham
4e2c5c1e84 slippage without micro warnings on swap 2020-03-13 16:26:29 -04:00
ianlapham
e43d9e03f1 add popups to context 2020-03-11 10:44:39 -04:00
ianlapham
35d398406d add import to token search 2020-03-10 15:55:31 -04:00
ianlapham
217a700832 error warnings on remove and pool finder added 2020-03-10 14:55:33 -04:00
ianlapham
55eb03c237 remove version with derived percent 2020-03-09 17:20:41 -04:00
ianlapham
a6d8613bdd updated position cards 2020-03-06 14:45:11 -05:00
ianlapham
2ca3bf8da3 add slider to remove 2020-03-05 22:57:41 -05:00
ianlapham
236c3030e1 stable state for swaps, add, and remove eth (no remove token token yet) 2020-03-04 13:48:43 -05:00
ianlapham
753e5f3423 stable version with updated balances, add liquidity using SDK, pair menu search 2020-02-26 12:00:59 -05:00
ianlapham
3091ebc158 update comments 2020-02-13 11:31:12 -05:00
ianlapham
912a19d66d fix imports 2020-02-13 11:04:17 -05:00
ianlapham
4890ad1172 update logic for txn eth value on GA 2020-02-13 00:12:58 -05:00
Ian Lapham
7786537c43
add txn hash to analytics (#632) 2020-02-12 15:23:27 -05:00
Noah Zinsmeister
80da62e1bd
add ANJ (#630) 2020-02-10 12:45:12 -05:00
Noah Zinsmeister
c48a7f26cc
improve network env stuff (#621)
* improve network env setup
2020-01-29 18:48:33 -05:00
Ian Lapham
b21a6e3917 Token warning updates (#614)
* update for token routing

* fix imports
2020-01-27 10:53:47 -05:00
Noah Zinsmeister
26c82401ea
fix value / token display (#615) 2020-01-27 10:47:23 -05:00
Ian Lapham
e05be71ea5
Token check (#610)
* update market rate calculation and input parsing for 0 decimal tokens

* remove style bump and revert tokens

* add custom warning for pasted tokens

* update centering

* upload dark theme

* update copy and loading state

* copy edits

* update color

* multiple cards
2020-01-24 17:24:53 -05:00
Ian Lapham
8290cf565f update market rate calculation and input parsing for 0 decimal tokens (#601)
* update market rate calculation and input parsing for 0 decimal tokens

* remove style bump and revert tokens
2020-01-21 17:54:17 -05:00
Noah Zinsmeister
895f4cd89f
Add tokens (#606)
* add DONUT

* close #600

* add aDAI close #602
2020-01-21 12:24:55 -05:00
ChristophSiegenthaler
a512e618f0 Renamed iDai to iSai and added iDai proper (#604) 2020-01-21 11:09:59 -05:00
Ian Lapham
8eeb169094 update search on token input (#596)
* update search on token input

* remove comments
2020-01-13 13:46:18 -05:00
Ian Lapham
a6b9de3ec1 add warnign for broken ERC20 (#589) 2020-01-08 12:28:00 -05:00
Jeff Reiner
4abb607f73 Update WalletConnect naming (#591) 2020-01-08 12:25:31 -05:00
Noah Zinsmeister
61ae7119a9
address spam (#587) 2020-01-06 19:47:23 -05:00
Ian Lapham
8b2b6aba6a Token pasting fix (#584)
* fix for null value

* remove logs
2020-01-03 11:16:36 -05:00
Ian Lapham
008be5dcda fix linking bug (#583) 2020-01-02 13:13:20 -05:00
Noah Zinsmeister
9810e62054
add tokens (#582)
* add XIO

* add TRST

* add imBTC closes #547

* add GST2 closes #580

* add 0xBTC closes #499

* add USDS closes #506

* add PAXG closes #520
2020-01-02 11:27:04 -05:00
Noah Zinsmeister
e92c8ed5e8 web3-react improvement (#581)
* fix SC errors

* improve unsupported chain id error

* bump yarn.lock
2019-12-31 15:30:43 -05:00
Ian Lapham
64296d8229 Update GA (#577)
* add updated GA

* update swap/send events

* add custom variable for device type

* cleanup
2019-12-31 15:27:51 -05:00
Paul Razvan Berg
701cbde274 Fix "useENSName" Hook (#578)
* Fix "useENSName" Hook

* Check for "stale" in "useENSName" Hook
2019-12-31 15:17:10 -05:00
Tom French
55fa030a88 fix ordering of tokens (#574) 2019-12-23 16:22:04 -05:00
Ian Lapham
103ad864a6 update default slippage to 50 bips (#569) 2019-12-18 18:06:03 -05:00
Noah Zinsmeister
d400ff62d0 add null value checks (#568) 2019-12-18 10:53:05 -05:00
Noah Zinsmeister
38bb32504d
add FAME 2019-12-17 10:29:50 -05:00
Paul Razvan Berg
91da96e710 Add dependency array to "Identicon" side effect (#561) 2019-12-16 10:47:15 -05:00
Ian Lapham
52849a8e20 Bug fix (#557)
* gate usd parsing on null balances

* remove logs
2019-12-13 11:30:41 -05:00
Noah Zinsmeister
31499ee2b1
Merge branch 'beta' into production 2019-12-12 12:01:21 -05:00
Noah Zinsmeister
a1143aeab1
add OXT and remove rhoc (#553)
* add OXT

* remove RHOC
2019-12-11 16:07:01 -05:00
Kirill Goncharov
8bf95ebfd5 Allow to set custom deadline (#543) 2019-12-10 11:04:34 -05:00
Ian Lapham
38625d24e9 Balance and USD Refactor (#544)
* update injected loading state

* basic setup

* add contexts

* minor changes

* refactor balances and USd price

* small tweaks

* clean up balances context code

don't store usd price except in hook

refactor getUSDPrice to make clear it's sync

* add small memo
2019-12-10 10:33:35 -05:00
Noah Zinsmeister
fb4b4fd3e2
fix dapp browsers hanging 2019-12-05 16:58:30 -05:00
Noah Zinsmeister
790fe3f327
hot fix for dapp browsers 2019-12-05 16:29:53 -05:00
Noah Zinsmeister
4ef30cc8fd
merge prod into beta (#535)
* block some countries (#534)

* Adds min-width to custom slippage input. (#533)

On Firefox (maybe other browsers as well) the lack of min-width results in the default `input` element min-width which is ~92px.  This results in the flex container overflowing the bounding element.  By setting min-width to 20px, the box will instead grow to fill the available space, which is defined by its parent that has the pink border.  This avoids the overflow issue (as long as the parent doesn't get too small, which it won't at the moment since it is fixed size).
2019-12-05 15:39:35 -05:00
Ian Lapham
794bbd88b2 Update to loading state for injected desktop browsers (#532)
* update injected loading state

* update styles

* update injected connector

* center spinner
2019-12-05 14:58:22 -05:00
Ian Lapham
fe82dcf2e1 Hosted wallets (#531) 2019-12-04 18:48:43 -05:00
Noah Zinsmeister
28672100d0
merge prod into beta (#530)
* add CHAI

* update compound tokens (#527)

* update compound tokens

* Update Tokens.js

* add fortmatic metatag

* add TRYB (#529)
2019-12-04 17:43:14 -05:00
Ian Lapham
015c9f8598 Hosted wallets (#528)
* formnatic setup

* stable with new hosted

* stable version, fortmatic and portis

* fix safari bug

* cleanup

* add white version of arrow

* update options to tabbable buttons

* update injected version

* style tweaks

* style tweaks, remove portis connector
2019-12-04 17:31:56 -05:00
Noah Zinsmeister
a11dc4cd1c
add chai (#526) 2019-12-02 14:55:48 -05:00
Paul Razvan Berg
bcf480e758 Import useWeb3React from the hooks folder (#522) 2019-11-27 10:01:47 -05:00
Paul Razvan Berg
7d9ff637ef Replace networkId with chainId (#521) 2019-11-27 09:33:11 -05:00
Ian Lapham
795caac4fd Wallet Support with web3-react v6 (#514)
* basic support for desktop and mobile, with or without web3

* stable before mobile view update

* mobile modal views

* remove unused modules

* create global context for wallet modal, update to click button to connect

* first pass

* drag with react pose

* try without pose

* replace context with new syntax, basic setup

* stable version on all browser types

* remove dev flags

* fix swap broken

* update to clickable connect button if logged out

* stable, good entry

* fix bugs, exit animations

* prep for merge

* stable version with updated application context

* update animations with correct gesture package

* refactor wallet logic to multi-root

* small fixes

* Style Updates

* remove unused imports

* refactor wallet page
2019-11-25 17:56:31 -05:00
Ian Lapham
116a7f3833 fix bug with a try catch on approval (#516) 2019-11-21 14:10:59 -05:00
Micah Zoltu
04a918eda2 Removes scrollbars when there is nothing to scroll. (#513) 2019-11-20 10:20:23 -05:00
Noah Zinsmeister
b44fc03eb9
add SAN/QSP/SHUF/IOTX/RING (#509)
* add SAN

* add QSP

* add SHUF

* add IOTX

* add RING
2019-11-18 12:47:12 -05:00
Ian Lapham
645484853a Dai Migration - UI Updates (#503)
* skeleton for migration - still need links and adrdess of new contract

* update render conditions

* fix close on click

* updated warning logic

* add mcd to token list

* changes before merge

* remove unused imports

* add checksums
2019-11-18 11:52:27 -05:00
Ian Lapham
5f8c350d86 fix big on linking to add liquidity (#505) 2019-11-15 16:02:16 -05:00
Agustin Aguilar
2c1c076d59 hotfix/trust-icons-change (#501)
* Trust URI scheme, replaced by checksum address

* Run prettier
2019-11-09 11:15:15 -05:00
Noah Zinsmeister
bb4d035012
add tokens (#495)
* reorder LQD, add LEND

* add MBC

* add ENJ

* add AMN

* add SOCKS
2019-11-05 11:37:32 -05:00
Ian Lapham
c2f51f3b3e create warning and disable add liquidity button for broken tokens (#491)
* create warning and disable add liquidity button for broken tokens

* fix mobile styles
2019-10-29 15:56:53 -04:00
Paul Cowgill
2c856d279a Typo fix (#482) 2019-10-21 18:30:47 -04:00
Ian Lapham
829a968008 allow for ETH in output command, zupdate to 6 digits on exchange rate (#464) 2019-10-17 07:39:43 -07:00
Noah Zinsmeister
862958d015
add iDAI
closes #416
2019-10-01 14:41:54 -04:00
Ian Lapham
a33a2d90e1 make balances clickable on add liquidity page (#449)
* make balances clickable on add liquidity page

* update formatting logic

* fix max slippage calculation
2019-09-30 15:24:40 -04:00
CLINT
ea327ff810 New sUSD exchange and removed old sETH exchange (#451)
* New sUSD exchange and removed old sETH exchange

* checksummed sUSD
2019-09-30 10:01:47 -04:00
Noah Zinsmeister
28e449887a
add PAN
closes #443
2019-09-25 16:42:03 -04:00
Noah Zinsmeister
5ffa4baefa
add DATA
closes #415
2019-09-25 16:39:58 -04:00
Noah Zinsmeister
748a817057
add AMPL
closes #401
2019-09-25 16:36:45 -04:00
William Morriss
0693b92e5e True Currencies (TrueAUD, TrueGBP, TrueHKD) (#447)
* Add other TrueCurrencies

* reorder based on ticker
2019-09-18 10:45:01 -04:00
CLINT
6f3ba2ebf8 Migration from old to new sETH exchange (#444)
* Migration from old to new sETH exchange

* checksum addresses
2019-09-17 18:49:19 -04:00
Noah Zinsmeister
1fe266025e
add better testnet support (#446)
* add rinkeby support

* add client-side routing link
2019-09-17 18:47:55 -04:00
William Morriss
1349085cc1 Update TUSD address and add TCAD (#442)
* add TCAD and update TUSD address

* update TUSD uniswap exchange address
2019-09-17 18:47:45 -04:00
Ian Lapham
4f566ab0c2 Add Custom url parameters (#423)
* query params for input and output currencies

* add slippage option

* add slippage cusytom param

* updated for sender address

* add field and amount support

* update params for pool page

* finish basic url support

* update app format

* update error checking to top level

* update for all pages

* fix build

* param updates

* fix slippage to basis points, update theme text, refactor to minimize lookups

* fix code styles

* update theme logic, remove extra setting, update rounding

* remove eslint comment errors

* remove logs, ignore lock

* remove lock
2019-09-17 18:47:32 -04:00
Noah Zinsmeister
61d6556a0d
fix rounding issue (#445) 2019-09-17 18:47:14 -04:00
Noah Zinsmeister
ecd7175315
improve network connectivity (#441) 2019-09-06 19:15:22 -04:00
Ian Lapham
0f20788c78
Merge pull request #432 from ianlapham/ui-updates
Ui updates
2019-08-29 17:47:39 -04:00
ian-jh
cdc0b4070f fix loading issues 2019-08-29 17:44:33 -04:00
Noah Zinsmeister
65e96296ab
refresh bug v2 (#430) 2019-08-27 01:21:22 +02:00
Noah Zinsmeister
35d650e02b
fix refresh error (#429) 2019-08-27 01:02:25 +02:00
Ian Lapham
d18ee78ee7 Fix firefox bugs (#427) 2019-08-24 08:50:43 +02:00
Ian Lapham
de8c9189ce Fix firefox bugs (#424) 2019-08-21 20:22:28 +02:00
Noah Zinsmeister
45a0e93d98
make web3 connection logic more robust 2019-08-20 17:15:13 +02:00
Noah Zinsmeister
9796c04d4f
slow down polling interval (#420) 2019-08-19 11:04:31 -04:00
Noah Zinsmeister
54ef651806
fix re-render bug 2019-08-13 15:07:42 -07:00
Callil Capuozzo
da22c6d69a Style token modal and toggle switch (#413) 2019-08-13 14:42:32 -04:00
Ian Lapham
1c6fa1761f set night mode to default (#412) 2019-08-13 13:34:14 -04:00
Ian Lapham
677537ca31 Updates to Token Modal (#399) 2019-08-12 20:37:32 -04:00
Noah Zinsmeister
be2012cdf5
fix deprecated switch component (#409) 2019-08-12 19:19:03 -04:00
Noah Zinsmeister
f314c75829
update token logo url (#408) 2019-08-12 11:33:31 -04:00
Jackson
8011a02e13 Update SNX to vanity contract address (#405) 2019-08-12 11:04:21 -04:00
Noah Zinsmeister
ae50d269ed
fix ens stuff again (#407) 2019-08-12 11:03:11 -04:00
CLINT
9a1b434568 Update SNX Contract ProxyERC20 Address (#404) 2019-08-08 11:05:13 -04:00
Noah Zinsmeister
cff73c527a
add RCN (#402)
closes #363
2019-08-07 15:45:31 -04:00
Callil Capuozzo
c28884f44b Add theme toggle and footer (#400) 2019-08-07 14:58:29 -04:00
Callil Capuozzo
80da6e0ff6 Dark theme (#380) 2019-07-31 14:11:58 -04:00
Noah Zinsmeister
3a23d84de0
delete package lock
re-invert rates

make slippage parsing more explicit
2019-07-30 15:48:08 -04:00
Noah Zinsmeister
0235bedae5
Merge branch 'combine-swap-send' of https://github.com/ianlapham/uniswap-frontend into ianlapham-combine-swap-send 2019-07-30 14:05:28 -04:00
ian-jh
d90604dacc update code style for build 2019-07-30 10:53:38 -04:00
Noah Zinsmeister
767ce8646f
allowing leading dot slippage (#381) 2019-07-30 10:45:50 -04:00
ian-jh
eef28cf24c fix build errors; 2019-07-30 10:40:00 -04:00
Noah Zinsmeister
8d0b8e32a4
fix ens name typing bug (#378)
* fix ens typing error handling
2019-07-29 18:34:15 -04:00
ian-jh
7a58ca810f resolve conflicts 2019-07-29 16:46:36 -04:00
ian-jh
7304277735 update appjs component structure 2019-07-29 16:03:35 -04:00
ian-jh
e19e150f01 combine swap and send pages into one component 2019-07-29 15:35:28 -04:00
Callil Capuozzo
66604cf47e Add focus styles (#375)
* Add focus styles

* remove periods

* Change copy and button hover state
2019-07-29 15:14:53 -04:00
Ian Lapham
30887ef1fc Add slippage option (#369)
* add custom slippage to /swap
2019-07-26 18:11:35 -04:00
Noah Zinsmeister
12344f74ef
add localstorage support (#374)
* add localstorage support

* remove connect arrow

* invert rates to start
2019-07-26 18:02:48 -04:00
ian-jh
2fef97d0f3 setup initital component merging 2019-07-24 16:33:28 -04:00
ian-jh
1dcec9be38 fix button state bug 2019-07-24 15:00:03 -04:00
ian-jh
8c3b2bff8d update logic for button state 2019-07-24 14:53:36 -04:00
Mounir Benchemled
12ab73d6c9 Feature/ropsten (#370)
* Refactoring AddLiquidity to make gasLimit computation more clear
2019-07-24 10:26:17 -04:00
ian-jh
2ceffda8f9 add error logic and styling 2019-07-23 17:32:26 -04:00
Noah Zinsmeister
2431e26599
add tokens, do some summer cleaning (#368)
* fix suppressClassNameWarning

* remove .md

* update dependencies

* add MLN

closes #367

* add DIP

closes #359
2019-07-23 13:50:31 -04:00
Ian Lapham
eea30fae67 Fix i18n bug (#365)
* fix i18n bug

* fix styles

* update with prettier and include env file
2019-07-22 15:19:15 -04:00
ian-jh
2a6b1e63c4 add initial changes 2019-07-22 15:00:45 -04:00
ian-jh
0bb6bdcd37 fix styles 2019-07-17 10:18:17 -04:00
ian-jh
6be569a2c6 fix i18n bug 2019-07-17 10:10:55 -04:00
CLINT
9fa28f14a7 Update SNX and added sETH liquidity (#361)
* added Synthetic ETH & Update with new SNX Address
2019-07-11 10:27:38 -04:00
Pascal Van Hecke
86c8bef1f2 Adding DGD token tentatively to check on netlify whether the new inte… (#357)
* Adding DGD token
2019-07-09 13:53:12 -04:00
Noah Zinsmeister
94a225b3ea
add dai pool tokens 2019-07-05 13:40:31 -04:00
Noah Zinsmeister
b8035fc82f
add RPL + STORJ + WCK
closes #346
2019-07-05 13:28:31 -04:00
Noah Zinsmeister
668a1c80ee
fix various 0 decimal bugs (#342) 2019-06-21 10:25:13 -04:00
Noah Zinsmeister
54b889794b
add MGN 2019-06-17 12:30:16 -04:00
Noah Zinsmeister
727d289413
modal responsiveness, 1 token addition, token selection (#329)
* improve modal responsiveness

* add MATIC

* fix modal min height reversion

* add token population via route
2019-06-14 10:39:33 -04:00
Noah Zinsmeister
214d12ab85
add pnk and mod (#322)
* add pnk and mod

closes #308 and #321

* checksum
2019-06-04 19:27:21 -04:00
Noah Zinsmeister
cb4e1648d4
bug fixes (#319)
* fix ens name bug

* remove console.log

* add GEN

* fix styling and min display values
2019-05-31 13:39:22 -04:00
Noah Zinsmeister
c36a319982
fix 0 decimals bug (#318) 2019-05-30 17:54:32 -04:00
CLINT
788b6f6f01 Update new SNX exchange and new token address (#316)
* Update new SNX exchange and new token address

* remove whitespace

* checksum exchange address
2019-05-30 13:37:36 -04:00
Callil Capuozzo
d206bd40e2 Feather icons (#314)
* Remove fontawesome
2019-05-28 18:44:46 -04:00
Noah Zinsmeister
ad7b647df9
clear stale network error 2019-05-28 16:57:18 -04:00
Noah Zinsmeister
70e9257c49
fix warnings + bugs 2019-05-28 14:53:47 -04:00
Noah Zinsmeister
f2f960f6fa
various improvements (#313)
* add unchecked signer

* remove focus underline from tabs

* update tokens

* remove console log

* remove snx for now

* make slippage warnings more robust

* memo-ize contexts

* improve slippage styling
2019-05-28 14:10:02 -04:00
Noah Zinsmeister
6579e17f7f
Account improvements (#302)
* begin account migration

* prep for styling

* improve multi-network support

allow deprecated window.web3 providers

* kill old modal

* remove tests

* clean up css

* Style account modal

* kill scss

* bug fixes

* use suspense for code-splitting and i18n

move abis

add ENS support to Web3Status

* Account modal mobile styles

* style tweaks

* finalize migration

* fix account styling

* fix ethereum svg

* fixes

* Split wallet modal into components

* refactor wallet modal and add connect button styles

* removing tap highlights

fix spacing on some mobile browsers

* Styling fixes for account and warning

* clean up injected connector logic

* remove console

* add wrong network copy

* restore border radius

change wallet logo
2019-05-24 16:53:01 -04:00
CLINT
6541f3582f update SNX exchange and token address (#301)
* update SNX exchange and token address

* checksum exchange address
2019-05-22 11:10:09 -04:00
Noah Zinsmeister
25692792fa
fix liquidityMinted bug 2019-05-16 17:03:10 -04:00
Noah Zinsmeister
39312ab8c0
final bug fixes (#293)
* make jazzicon same as metamask

* fix token-token market rate

fix transactions bugs

add new contextual info to send

* fix .1 balance check on add liquidity

fix double click max balance bug
2019-05-16 16:54:15 -04:00
Noah Zinsmeister
e27cd92cd2
Slippage warning (#292)
* add rudimentary slippage warning

fix address checksum bug

debounce address input

alway show tx details if valid trade

* fix estimated copy
2019-05-16 13:21:14 -04:00
Noah Zinsmeister
c6e165eaf7
token search improvement, token addition (#288)
* add lqd

* only search valid keys
2019-05-14 12:05:57 -04:00
Noah Zinsmeister
2f0e2fb234
Beta cleanup (#285)
* improve context logic

* fix font-variant

* add dependencies for later

* fix icon
2019-05-14 10:19:09 -04:00
Noah Zinsmeister
c27cd98b33
fix 0 decimals bug 2019-05-09 20:48:34 -04:00
Noah Zinsmeister
78cdf11b37
Liquidity migration (#279)
* finalize initial migration

* remove redux

* fix token to token rate bug

* finalize initial migration

* fix test
2019-05-07 22:25:55 -04:00
Noah Zinsmeister
eb394ee88e
fix exchange address logic 2019-05-03 20:18:06 -04:00
Noah Zinsmeister
44d77ce948
Swap Migration (#277)
* migrate core logic

* finalize swap migration

* upgrade react-scripts and fix errors/warnings

* finalize swap, modularize currency input

* remove console.logs

* copy swap logic for send

* remove unnecessary variable

* tighten caching logic

* snappier ens integration
2019-05-03 16:37:59 -04:00
Noah Zinsmeister
4e413915f8
web3-react migration (#269)
* put suspense below redux

* don't mount qr

* properly format .json's

* remove useless Web3Connect component

* remove react-responsive header logic

* finalize initial web3-react migration

* add rudimentary network support

* address ci/cd issues

* fix syntax

* add infura support

rewrite create-exchange

closes #173

* remove CI flag, lazy loaded disabled for now

* roll back /pool

* fix currency input errors

fix valid state of buttons

* fix nav

* obscure env variables

* fix mobile header bug
2019-04-25 12:12:47 -04:00
Noah Zinsmeister
f855706f0d
update i18n; kinda fix tests; remove stale dependencies (#266) 2019-04-15 20:06:39 -04:00
Noah Zinsmeister
b2d753d6bb
bug fixes 2019-04-15 14:09:46 -04:00
Noah Zinsmeister
fff0718404
add travis support; clean up public/ 2019-04-15 14:05:54 -04:00
Noah Zinsmeister
71376cf7db
set up eslint and prettier; run prettier 2019-04-15 12:56:40 -04:00
Noah Zinsmeister
9c93c1a95b
fix lint errors 2019-04-15 12:07:16 -04:00
haydenadams
b3d7918806 add BLT to default list 2019-04-02 13:16:24 -04:00
Hayden Adams
e9b40cd5b3
Merge pull request #249 from brianmcmichael/feature/add_c20
Add C20 Token to dropdown
2019-04-02 13:02:46 -04:00
Hayden Adams
dccfcebdcd
Merge pull request #251 from pascalvanhecke/add-lpt-branch
Adding LPT, token of grass-roots Livepeer open source video-encoding …
2019-04-02 12:57:58 -04:00
Pascal Van Hecke
398020a88d Adding LPT, token of grass-roots Livepeer open source video-encoding project - no ETH pair at regular exchanges https://coinmarketcap.com/currencies/livepeer/#markets 2019-03-30 17:58:25 +01:00
Pascal Van Hecke
cbbf6dce6b Adding NMR, token of long-running Numerair project (since mid 2017) - no ETH pair at regular exchanges https://coinmarketcap.com/currencies/numeraire/#markets 2019-03-30 17:44:24 +01:00
Brian McMichael
39e5f54cf5 Fix exchange address 2019-03-27 19:11:25 -04:00
Brian McMichael
df45b8c281 Add C20 Token to dropdown 2019-03-27 18:29:23 -04:00
Hayden Adams
f99205f3ed
Merge pull request #238 from hav-noms/patch-1
Add SNX and sUSD to the token list
2019-03-19 13:58:52 -04:00
haydenadams
8cea3768d6 update 2019-03-01 23:06:55 -05:00
CLINT
3ae565d92b
Add SNX and sUSD to the token list
These are bypassing the synthetic proxy contracts and connecting direct so they work
2019-03-01 10:45:15 +11:00
haydenadams
d2df574848 update address 2019-02-22 01:01:38 -05:00
haydenadams
2c873a9cbd change deadline to 10 mins 2019-02-20 22:39:17 -05:00
haydenadams
e1d0addd71 change warning color 2019-02-20 22:35:00 -05:00
Hayden Adams
8c6e7e93cc
Merge pull request #234 from pascalvanhecke/add-bnt-patch
Update addresses.js
2019-02-20 21:54:54 -05:00
Pascal Van Hecke
63464ea9de Update addresses.js
Adding BNT, token address https://etherscan.io/token/0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c
 exchange address https://etherscan.io/address/0x87d80dbd37e551f58680b4217b23af6a752da83f#tokentxns
2019-02-21 01:31:58 +01:00
Pascal Van Hecke
0145c675b0 Update addresses.js
Adding DGX, token address https://etherscan.io/token/0x4f3afec4e5a3f2a6a1a411def7d7dfe50ee057bf  exchange address https://etherscan.io/address/0xb92de8b30584392af27726d5ce04ef3c4e5c9924#tokentxns
2019-02-21 01:23:19 +01:00
haydenadams
cbb6e587d6 update 2019-02-19 22:32:34 -05:00
haydenadams
5392c5e1e2 remove space 2019-02-17 20:58:08 -05:00
Hayden Adams
0888812431
Merge pull request #186 from rossbulat/remove-animated-switch
Replaced AnimatedSwitch with Switch. Added CSS Animation
2019-02-17 17:54:09 -08:00
haydenadams
44ef944539 Merge branch 'master' into dev 2019-02-06 01:04:03 -05:00
haydenadams
fcd6019f0a add wbtc 2019-02-06 01:03:12 -05:00
Hayden Adams
51ff66dd11
Merge pull request #225 from pascalvanhecke/patch_add_rlc
Adding RLC to default
2019-02-06 00:59:16 -05:00
Pascal Van Hecke
886e42d02f Adding RDN to default
RDN should be in default:
- important project: main implementation of payment channels
https://coinmarketcap.com/currencies/raiden-network-token/
- nr 11 in volume and top 10 liquidity
https://mailchi.mp/blocklytics/uniswap-report-2019-02-05
2019-02-06 01:42:46 +01:00
Pascal Van Hecke
1f5ab47125 Adding RLC to default
RLC should be in default:
- old project: since early 2017
https://coinmarketcap.com/currencies/rlc/
- nr 4 in volume and top 10 liquidity
https://mailchi.mp/blocklytics/uniswap-report-2019-02-05
2019-02-06 01:33:29 +01:00
maggie-5miles
832220b0a5 fix several missing translations 2019-01-23 16:15:32 +08:00
Hayden Adams
5532c6855d update Trust logo link 2019-01-16 14:28:52 -05:00
Ross Bulat
b38b41a1f5
Merge branch 'master' into remove-animated-switch 2019-01-12 15:19:35 +07:00
Ross
60eab0ebec conflicts 2019-01-12 15:16:03 +07:00
Ross
097a6afdc4 conflicts 2019-01-12 15:14:06 +07:00