feat: adds permit2 and universal router integration (#5554)
* feat: disable approval if permit2 is enabled
* feat: add permit through permit2
* fix: include analytics
* chore: pass permit to useSwapCallback
* feat: use universal router
* fix: remove unused import + update param formmating
* fix: suppress eslint error on restricted imports
* fix: lint issues
* fix: do not disable unapproved permit2 swap
* Revert "fix: do not disable unapproved permit2 swap"
This reverts commit be3f758e36db90edf205cbe35d091da3c12c1737.
* fix: do not disable unapproved permit2 swap
* fix: allow error for permit2 swap
* fix: better sequencing to handle rejections
* build: upgrade universal router sdk to include goerli address
* fix: mv block time into const
* fix: rm unnecessary id
* fix: cast swap error to string
* chore: parity with widgets
* test: rm old feature flags
* fix: gate permit2 on chain deployment
* fix: import for gate
Co-authored-by:
Yannie Yip <yannie.yip@uniswap.org>
Showing
... | ... | @@ -149,7 +149,7 @@ |
"@uniswap/sdk-core": "^3.0.1", | ||
"@uniswap/smart-order-router": "^2.10.0", | ||
"@uniswap/token-lists": "^1.0.0-beta.30", | ||
"@uniswap/universal-router-sdk": "1.2.1", | ||
"@uniswap/universal-router-sdk": "1.2.2", | ||
"@uniswap/v2-core": "1.0.0", | ||
"@uniswap/v2-periphery": "^1.1.0-beta.0", | ||
"@uniswap/v2-sdk": "^3.0.1", | ||
... | ... |
src/hooks/usePermit2.ts
0 → 100644
Please register or sign in to comment