* 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
* 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
* 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
* 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
* 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
* 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
* 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 /
* 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>
* 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
* 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
* 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
* 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
* 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
* 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
* First 2
* More typescript
* More and more
* Almost there
* More
* More typescript
* Fix remove liquidity button
* Make the error chain more readable
* Slippage tabs
* 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
* 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)
* 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>
* 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>
* Hide dark and advanced, fix bug on empty balances
* remove unused imports
* change default dark mode
* add warning on main net
* remove unused imports
* 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
* 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
* 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
device-width is deprecated and only works in chrome it seems. reworked to use regular min/max-width queries for both scss & react-responsive. submitted a ticket to react-responsive to fix
* Add contextual info to Remove Liquidity page
* Create ContextualInfo component and refactor pages
* Add contextual info to remove liq and refactor
* Add modalClass attribute to ContextualInfo
* Mirror add liquidity text
* Initial approve / unlock functionality
* Refactor out getdecimal/getbalance. Add in approval limit
* Change validateBalance to shouldValidateBalance
* Add deepEqual and shouldComponentUpdate
* Use web3 toHex util
* Add pending icon and use
* Implement inactive state for Swap CTA
* Disable Swap CTA if not valid
* Have isValid return a bool
* Use mercury gray for inactive CTA
* Check for input/output errors in validSwap
* Create error state for currency input
* Create error functionality for redux
* Add proptypes and convert to float before compare
* Use big number for balance comparison
* wip
* ETH to ERC20 swap input
* ERC20 to ETH swap input
* Add ERC20 to ETH swapInput
* Add ETH to ERC20 swapOutput
* Add ERC20 to ETH swapOutput
* Add ERC20 to ERC20 swapInput
* Add ERC20 to ERC20 swapOutput
* Remove console.log