Uniswap without TORN censoring
Go to file
Moody Salem 19b1e9e399
feat(weth): support WETH across the site and use sdk 3.0 (#947)
* first pass of sdk 3.0

* second pass using weth

* kill unused pool popup

* get it compiling again

* first pass of sdk 3.0

* switch to currencies

* get it compiling after the big move merge

* restore margin

* clean up add liquidity more

* fix a bunch of bugs

* todo trade on v1

* show eth in currency list

* allow selecting eth in the swap page

* fix unit tests for swap page

* test lint errors

* fix failing integration tests

* fix another couple of failing unit tests

* handle selecting currency b when no currency a

* improve the import pool page

* clean up add liquidity for invalid pairs

* bold

* first pass at swap arguments for v1, some unit tests

* fix some bugs in add liquidity, burn hook

* fix last of ts errors in remove liquidity

* support wrapping/unwrapping weth

* kill a bunch of code including the dummy pairs

* required pair prop in the position card

* tests for the v1 swap arguments

* do not say estimated on the wrap ui

* show ETH instead of WETH in the pool summaries

* small size socks

* fix lint error

* in burn, use currencies from the URL

* fix some integration tests

* both contain weth

* receive eth/weth link

* fix empty row

* show wrapped only if one currency is weth

* currency selects in the remove liquidity page
2020-07-20 06:48:42 -05:00
.github skip dns update while we work out cloudflare caching issues 2020-07-14 19:37:03 -04:00
cypress feat(weth): support WETH across the site and use sdk 3.0 (#947) 2020-07-20 06:48:42 -05:00
public fix(i18n): Fix return characters and remove uneeded file (#912) 2020-06-29 14:15:45 -04:00
src feat(weth): support WETH across the site and use sdk 3.0 (#947) 2020-07-20 06:48:42 -05:00
.env 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
.env.production 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
.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 Connect integration tests (#757) 2020-05-13 08:29:54 -04:00
LICENSE add tokens, do some summer cleaning (#368) 2019-07-23 13:50:31 -04:00
package.json feat(weth): support WETH across the site and use sdk 3.0 (#947) 2020-07-20 06:48:42 -05:00
README.md Update README.md 2020-07-01 13:09:37 -04:00
tsconfig.json Turn linting errors off so CI passes 2020-05-08 15:57:51 -04:00
tsconfig.strict.json perf(ethereum): reduce number of calls by batching all polling node calls (#840) 2020-05-28 21:17:45 -04:00
yarn.lock feat(weth): support WETH across the site and use sdk 3.0 (#947) 2020-07-20 06:48:42 -05:00

Uniswap Interface

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.

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.