Uniswap without TORN censoring
Go to file
Ian Lapham 267204d98e
Improvement(lists): Switch to multiple active lists (#1237)
* basic support for multiple active lists

* start search across inactive lists

* store card before list update

* basic import flow for inactive tokens

* update supported lists

* update import flow for address pasting

* basic mvp

* hide filter if no results

* update min heights

* update manage view, index tokens on page load

* start routing fix for multi hops

* switch to input amount comparison on exactOut

* start list import view

* updated list UI, token search updates, list import flow, surpress popups and warnings

* add unsupported tokens

* show warning if logged out

* update to opyn list

* show token details on warning;

* make percent logic more clear

* remove uneeded comaprisons

* move logic to functions for testing

* test updates

* update list reducer tests

* remove unused locals

* code cleanup

* add unsupported local list

* add multi hop disable switch

* add GA

* fix bug to return multihop no single

* update swap details

* copy updates

* Visual refinements

* Further tweaks

* copy updates, actual list order

* Move settings button

* Update all trade views with settings cog

* Add better tips, remove darkmode toggle from dropdown

* Clean up routing UI

* UI tweaks

* minor tweaks

* copy updates

* add local default list, use existing function for trade comparison, disable v1 helper, show inactive/active at once

* updated inactive view

* remove slippage fix

* update output amount return

* center button, update search to character threshold

* reset add state on back navigation

* style tweak on add button

* fix bug on search results

Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2021-01-14 11:20:50 -05:00
.github chore(release): reenable automatic releases 2020-10-01 11:21:48 -05:00
cypress Improvement(lists): Switch to multiple active lists (#1237) 2021-01-14 11:20:50 -05:00
public improvement(analytics): try out cloudflare analytics 2020-12-10 10:10:50 -06:00
src Improvement(lists): Switch to multiple active lists (#1237) 2021-01-14 11:20:50 -05:00
.env chore(infura): rotate keys 2020-07-21 11:05:55 -05:00
.env.production chore(infura): rotate keys 2020-07-21 11:05:55 -05:00
.eslintrc.json Move the github action to its own repo 2020-05-26 09:54:33 -04:00
.gitignore Introduce redux for one of the state stores (#742) 2020-05-11 18:23:01 -04:00
.prettierrc set up eslint and prettier; run prettier 2019-04-15 12:56:40 -04:00
.yarnrc fix(responsiveness): small tweaks for mobile 2020-07-06 21:26:38 -04:00
cypress.json feat(lists): allow selecting and adding token lists (#1023) 2020-08-26 08:46:21 -05:00
LICENSE add tokens, do some summer cleaning (#368) 2019-07-23 13:50:31 -04:00
package.json fix(token lists): update to latest token-lists 2020-12-10 16:18:18 -06:00
README.md remove npm token 2020-09-24 14:43:08 -05:00
tsconfig.json Allow absolute imports (#1185) 2020-11-03 09:16:38 -06:00
yarn.lock fix(token lists): update to latest token-lists 2020-12-10 16:18:18 -06:00

Uniswap Interface

Lint Tests Styled With Prettier

An open source interface for Uniswap -- a protocol for decentralized exchange of Ethereum tokens.

Accessing the Uniswap Interface

To access the Uniswap Interface, use an IPFS gateway link from the latest release, or visit app.uniswap.org.

Listing a token

Please see the @uniswap/default-token-list repository.

Development

Install Dependencies

yarn

Run

yarn start

Configuring the environment (optional)

To have the interface default to a different network when a wallet is not connected:

  1. Make a copy of .env named .env.local
  2. Change REACT_APP_NETWORK_ID to "{YOUR_NETWORK_ID}"
  3. Change REACT_APP_NETWORK_URL to e.g. "https://{YOUR_NETWORK_ID}.infura.io/v3/{YOUR_INFURA_KEY}"

Note that the interface only works on testnets where both Uniswap V2 and multicall are deployed. The interface will not work on other networks.

Contributions

Please open all pull requests against the master branch. CI checks will run against all PRs.

Accessing Uniswap Interface V1

The Uniswap Interface supports swapping against, and migrating or removing liquidity from Uniswap V1. However, if you would like to use Uniswap V1, the Uniswap V1 interface for mainnet and testnets is accessible via IPFS gateways linked from the v1.0.0 release.