Uniswap without TORN censoring
Go to file
Moody Salem 0f91af1df2
improvement(swap): Better swap errors for FoT (#1015)
* move the gas estimation stuff into its own hook and report errors from the gas estimation

* fix linter errors

* show the swap callback error separately

* rename some variables

* use a manually specified key for gas estimates

* flip price... thought i did this already

* only show swap callback error if approval state is approved

* some clean up to the swap components

* stop proactively looking for gas estimates

* improve some retry stuff, show errors inline

* add another retry test

* latest ethers

* fix integration tests

* simplify modal and fix jitter on open in mobile

* refactor confirmation modal into pieces before creating the error content

* finish refactoring of transaction confirmation modal

* show error state in the transaction confirmation modal

* fix lint errors

* error not always relevant

* fix lint errors, remove action item

* move a lot of code into ConfirmSwapModal.tsx

* show accept changes flow, not styled

* Adjust styles for slippage error states

* Add styles for updated price prompt

* Add input/output highlighting

* lint errors

* fix link to wallets in modal

* use total supply instead of reserves for `noLiquidity` (fixes #701)

* bump the walletconnect version to the fixed alpha

Co-authored-by: Callil Capuozzo <callil.capuozzo@gmail.com>
2020-08-06 18:18:43 -05:00
.github chore(release): update dns again 2020-07-27 12:33:31 -05:00
cypress improvement(token warnings): show better warnings for imported tokens (#1005) 2020-07-30 15:21:37 -04:00
public fix(i18n): Fix return characters and remove uneeded file (#912) 2020-06-29 14:15:45 -04:00
src improvement(swap): Better swap errors for FoT (#1015) 2020-08-06 18:18:43 -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 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 improvement(swap): Better swap errors for FoT (#1015) 2020-08-06 18:18:43 -05:00
README.md feat(token lists): implement the uniswap default list as a token list (#983) 2020-07-25 10:41:03 -05: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 improvement(swap): Better swap errors for FoT (#1015) 2020-08-06 18:18:43 -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.

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.