8de6bb6d51
* fix(swap): use undefined as initial currencyId state Null should be used for a selection state, not an unknown state. undefined may signify that a currency was passed in the URL but not yet parsed. * perf(swap): initialize swap with url Initializes SwapState with URL parameters so that currency input may be rendered on the first frame. * test(swap): update hooks tests * test: fix casing * fix: check nullish to allow eg 0 |
||
---|---|---|
.github | ||
cypress | ||
public | ||
src | ||
.env | ||
.env.production | ||
.eslintrc.json | ||
.gitignore | ||
.nvmrc | ||
.prettierignore | ||
.prettierrc | ||
.yarnrc | ||
babel-plugin-macros.config.js | ||
codegen.yml | ||
CONTRIBUTING.md | ||
custom-test-env.js | ||
cypress.json | ||
LICENSE | ||
lingui.config.ts | ||
package.json | ||
README.md | ||
tsconfig.json | ||
yarn.lock |
Uniswap Interface
An open source interface for Uniswap -- a protocol for decentralized exchange of Ethereum tokens.
- Website: uniswap.org
- Interface: app.uniswap.org
- Docs: uniswap.org/docs/
- Twitter: @Uniswap
- Reddit: /r/Uniswap
- Email: contact@uniswap.org
- Discord: Uniswap
- Whitepapers:
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 or you can block specific tokens by adding them to unsupported.tokenlist.json.
Contributions
For steps on local deployment, development, and code contribution, please see CONTRIBUTING.
Accessing Uniswap V2
The Uniswap Interface supports swapping, adding liquidity, removing liquidity and migrating liquidity for Uniswap protocol V2.
- Swap on Uniswap V2: https://app.uniswap.org/#/swap?use=v2
- View V2 liquidity: https://app.uniswap.org/#/pool/v2
- Add V2 liquidity: https://app.uniswap.org/#/add/v2
- Migrate V2 liquidity to V3: https://app.uniswap.org/#/migrate/v2
Accessing Uniswap V1
The Uniswap V1 interface for mainnet and testnets is accessible via IPFS gateways linked from the v1.0.0 release.