0f91af1df2
* 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> |
||
---|---|---|
.github | ||
cypress | ||
public | ||
src | ||
.env | ||
.env.production | ||
.eslintrc.json | ||
.gitignore | ||
.prettierrc | ||
.yarnrc | ||
cypress.json | ||
LICENSE | ||
package.json | ||
README.md | ||
tsconfig.json | ||
tsconfig.strict.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: @UniswapProtocol
- Reddit: /r/Uniswap
- Email: contact@uniswap.org
- Discord: Uniswap
- Whitepaper: Link
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:
- Make a copy of
.env
named.env.local
- Change
REACT_APP_NETWORK_ID
to"{YOUR_NETWORK_ID}"
- 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.