feat: Update swap state structure and attach to UI (#3155)
* refactor: mv settings state to own file
* chore: add default exports
* refactor: update swap state to match biz logic
* feat: copy biz logic to widgets
* Hook up UI to updated swap state
* fix: decimal inputs
* fix max slippage
* fix error in settings
* fix: typing errors
* revert: useBestTrade changes
* fix: use client side trade for widgets
* fix: exhaustive deps
* chore: add router-sdk
* fix: gate old web3 on widget env
* fix building errors
* update trade imports
* update hook naming for swap amount and currencies
* small changes
Co-authored-by:
Zach Pomerantz <zzmp@uniswap.org>
Showing
... | ... | @@ -60,7 +60,6 @@ |
"@uniswap/governance": "^1.0.2", | ||
"@uniswap/liquidity-staker": "^1.0.2", | ||
"@uniswap/merkle-distributor": "1.0.1", | ||
"@uniswap/router-sdk": "^1.0.3", | ||
"@uniswap/smart-order-router": "^2.5.10", | ||
"@uniswap/v2-core": "1.0.0", | ||
"@uniswap/v2-periphery": "^1.1.0-beta.0", | ||
... | ... | @@ -176,6 +175,7 @@ |
"@lingui/react": "^3.9.0", | ||
"@popperjs/core": "^2.4.4", | ||
"@uniswap/redux-multicall": "^1.0.0", | ||
"@uniswap/router-sdk": "^1.0.3", | ||
"@uniswap/sdk-core": "^3.0.1", | ||
"@uniswap/token-lists": "^1.0.0-beta.27", | ||
"@uniswap/v2-sdk": "^3.0.1", | ||
... | ... |
src/lib/hooks/swap/index.ts
0 → 100644
src/lib/state/settings.ts
0 → 100644
Please register or sign in to comment