Uniswap without TORN censoring
Go to file
Mike Grabowski c383a0a0a2
feat: new Settings menu for Swap (#6480)
* feat: initial commit

* remove extra check

* chore: divider fix

* feat: switch from boolean to routerPreference enum

* chore: align name

* chore: fix two errors

* chore: clean up

* chore: entire radio button clickable

* chore: remove unused toggle component

* Revert "chore: remove unused toggle component"

This reverts commit 42858a02b5bcd572682db38025b69f8b1426a8c1.

* feat: rewrite slippage

* feat: Slippage

* chore: tbd tomorrow

* Update src/state/user/reducer.ts

Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>

* feat: replace auto with Slippage enum

* chore: add todo for deadline

* chore: cleanup

* feat: improve autoslippage

* chore: replace price with auto

* chore: fix lint

* test: add coverage for Expand

* chore: fix tests

* chore: review feedback part 1

* chore: rework warning

* chore: add jira tickets

* feat: add tests for useUserSlippageTolerance

* chore: add some more

* chore: one more

* add tests for slippage

* chore: add unit tests for transactionsettings

* remove

* revet changes to improve coverage

* chore: update to figma caption

* chore

* chore

* chore: update wording

* Update src/components/Expand/index.tsx

Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>

* fix: issue with new value, update confusing migration comment

* chore: remove opacity animation temporarily

* chore: update snapshot test

* chore: fix e2e + update comment

* chore: fix tests

* chore: fix tests

---------

Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com>
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
2023-05-09 10:33:25 -04:00
.github build: cap chunk size to 5MB (#6479) 2023-05-02 08:46:32 -07:00
.vscode chore: use @uniswap eslint preset (#5556) 2022-12-21 03:08:20 +04:00
cypress feat: new Settings menu for Swap (#6480) 2023-05-09 10:33:25 -04:00
public chore: updating listing marketplace icons (#6458) 2023-04-27 16:51:53 -04:00
scripts build: cap chunk size to 5MB (#6479) 2023-05-02 08:46:32 -07:00
src feat: new Settings menu for Swap (#6480) 2023-05-09 10:33:25 -04:00
.env feat: use new consolidated signing endpoint (#6222) 2023-03-22 21:41:17 -05:00
.env.production feat: use new consolidated signing endpoint (#6222) 2023-03-22 21:41:17 -05:00
.eslintrc.js test(lint): separate multiline comments (#6476) 2023-05-02 08:26:07 -07:00
.gitignore test: add cypress-hardhat (#6394) 2023-04-19 10:50:25 -07:00
.npmrc build: enforce node/npm versions (#4434) 2022-08-22 13:55:48 -04:00
.nvmrc build: update .nvmrc (#5559) 2022-12-07 12:55:36 -05:00
.snyk build: bump widgets/universal-router-sdk (#5582) 2022-12-12 11:21:22 -05:00
apollo-codegen_thegraph.ts chore: use @uniswap eslint preset (#5556) 2022-12-21 03:08:20 +04:00
apollo-codegen.ts chore: use @uniswap eslint preset (#5556) 2022-12-21 03:08:20 +04:00
babel-plugin-macros.config.js chore: use @uniswap eslint preset (#5556) 2022-12-21 03:08:20 +04:00
codecov.yml feat: use codecov flags (#6418) 2023-04-24 12:44:41 -07:00
codegen.yml feat: data api connection (#4396) 2022-08-19 15:31:10 -04:00
CONTRIBUTING.md test: enforce package size (#4098) 2023-03-07 09:27:20 -08:00
craco.config.cjs build: cap chunk size to 5MB (#6479) 2023-05-02 08:46:32 -07:00
cypress.config.ts test: add cypress-hardhat (#6394) 2023-04-19 10:50:25 -07:00
graphql_thegraph.config.js chore: use @uniswap eslint preset (#5556) 2022-12-21 03:08:20 +04:00
graphql.config.js chore: use @uniswap eslint preset (#5556) 2022-12-21 03:08:20 +04:00
hardhat.config.js test(e2e): reset hardhat between tests (#6487) 2023-05-04 08:31:53 -07:00
LICENSE add tokens, do some summer cleaning (#368) 2019-07-23 13:50:31 -04:00
lingui.config.ts chore: merge widgets work into main (#3065) 2022-01-05 12:38:53 -06:00
package.json test(e2e): mock uniswap token lists from ipfs (#6511) 2023-05-08 15:04:02 -07:00
README.md docs: Update PR template (#6235) 2023-03-28 11:31:11 -04:00
tsconfig.json build: tighten tsconfig (to include build cache, exclude watch folders) (#6375) 2023-04-24 16:00:04 -07:00
vanilla.transform.cjs test: transform vanilla-extract for jest (#6425) 2023-04-25 12:06:58 -07:00
yarn.lock test(e2e): mock uniswap token lists from ipfs (#6511) 2023-05-08 15:04:02 -07:00

Uniswap Labs Interface

codecov

Unit Tests Integration Tests Lint Release Crowdin

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.

Unsupported tokens

Check out useUnsupportedTokenList() in src/state/lists/hooks.ts for blocking tokens in your instance of the interface.

You can block an entire list of tokens by passing in a tokenlist like here

Contributions

For steps on local deployment, development, and code contribution, please see CONTRIBUTING.

PR Title

Your PR title must follow conventional commits, and should start with one of the following types:

  • build: Changes that affect the build system or external dependencies (example scopes: yarn, eslint, typescript)
  • ci: Changes to our CI configuration files and scripts (example scopes: vercel, github, cypress)
  • docs: Documentation only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that neither fixes a bug nor adds a feature
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • test: Adding missing tests or correcting existing tests

Example commit messages:

  • feat: adds support for gnosis safe wallet
  • fix: removes a polling memory leak
  • chore: bumps redux version

Other things to note:

  • Please describe the change using verb statements (ex: Removes X from Y)
  • PRs with multiple changes should use a list of verb statements
  • Add any relevant unit / integration tests
  • Changes will be previewable via vercel. Non-obvious changes should include instructions for how to reproduce them

Accessing Uniswap V2

The Uniswap Interface supports swapping, adding liquidity, removing liquidity and migrating liquidity for Uniswap protocol V2.

Accessing Uniswap V1

The Uniswap V1 interface for mainnet and testnets is accessible via IPFS gateways linked from the v1.0.0 release.