* 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
* 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
* 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