uniswap-interface-uncensored/src/utils
Eric Zhong 47e6c0891e
feat: Add support for mixed routes in the interface (#4181)
* Expand typing to match new QuoteResponse from routing api

* lint autofix

* Expand InterfaceTrade class to match router-sdk and allow mixedroutes

* Add new routing-api poolInRoute logic for client side trade

* eslint fix ==

* Add custom mxiedProtocolBadge and add into badgeDiagram

* Bump router-sdk to published version, and install latest local SOR

* git checkout main yarn.lock && yarn && npx yarn-deduplicate

* Bump SOR to 2.9.2

* bump SOR to 2.9.2

* Update yarn.lock

* revert slice.ts

* Add guesstimate logic for mixedRoutes

* Oops wrong pool import lol

* Add beta url + expand protocols array

* Add forceMixedRoutes for testing

* Fix cyrpress build issue: no-loop-func

* Change to prod url and remove testing param

* remove protocol flag

* Revisions: getRouteProtocol helper, fix gas acc for mixed route

* revert protocols array abck

* Remove :Protocol
2022-08-11 16:40:55 -04:00
..
anonymizeLink.test.ts update explorer links for arbitrum (#2279) 2021-08-31 18:19:26 -04:00
anonymizeLink.ts update explorer links for arbitrum (#2279) 2021-08-31 18:19:26 -04:00
approveAmountCalldata.ts chore: import @ethersprojects directly (#3104) 2022-01-12 10:06:22 -08:00
browser.ts feat: second user model PR with wallet properties (#4206) 2022-08-03 13:04:29 -04:00
calculateGasMargin.test.ts chore: import @ethersprojects directly (#3104) 2022-01-12 10:06:22 -08:00
calculateGasMargin.ts chore: import @ethersprojects directly (#3104) 2022-01-12 10:06:22 -08:00
calculateSlippageAmount.test.ts chore: import @ethersprojects directly (#3104) 2022-01-12 10:06:22 -08:00
calculateSlippageAmount.ts refactor: more separation by chain of addresses 2021-05-18 14:33:03 -05:00
chains.tsx refactor: adding safe getter for ChainInfo (#4110) 2022-07-14 11:52:37 -04:00
computeFiatValuePriceImpact.tsx chore: upgrade to redux-toolkit 1.8 (#3464) 2022-03-09 12:19:24 -05:00
computeSurroundingTicks.test.ts feat: use TickLens on chains where subgraph is not functional (#3149) 2022-01-24 09:12:07 -05:00
computeSurroundingTicks.ts feat: use TickLens on chains where subgraph is not functional (#3149) 2022-01-24 09:12:07 -05:00
computeUniCirculation.test.ts chore: import @ethersprojects directly (#3104) 2022-01-12 10:06:22 -08:00
computeUniCirculation.ts chore: import @ethersprojects directly (#3104) 2022-01-12 10:06:22 -08:00
constructSameAddressMap.ts feat(polygon): polygon mainnet and testnet support (#3015) 2021-12-22 14:25:10 -05:00
currencyId.ts refactor: bump to latest sdk (#1657) 2021-05-20 11:21:40 -05:00
env.test.ts build: add env utils (#4304) 2022-08-08 09:38:37 -07:00
env.ts build: add env utils (#4304) 2022-08-08 09:38:37 -07:00
formatChartTimes.ts feat: adding timeline to explore price chart (#4292) 2022-08-08 11:55:33 -04:00
formatCurrencyAmount.ts fix: add formatting to USDC values (#3478) 2022-03-10 12:38:59 -05:00
formatDollarAmt.tsx feat: explore UI (#4262) 2022-08-05 17:37:19 +02:00
formatTickPrice.ts refactor: add an import sorting plugin (#2417) 2021-09-21 18:21:28 -05:00
getExplorerLink.test.ts feat: add support for Celo (#3915) 2022-07-12 16:48:03 +02:00
getExplorerLink.ts feat: add support for Celo (#3915) 2022-07-12 16:48:03 +02:00
getTickToPrice.ts refactor: add an import sorting plugin (#2417) 2021-09-21 18:21:28 -05:00
getTxOptimizedSwapRouter.test.ts refactor: isolate approval callback hooks (#3172) 2022-01-24 10:56:24 -08:00
getTxOptimizedSwapRouter.ts refactor: isolate approval callback hooks (#3172) 2022-01-24 10:56:24 -08:00
index.test.ts refactor: more separation by chain of addresses 2021-05-18 14:33:03 -05:00
index.ts style: rename library to provider (#4038) 2022-07-06 12:36:54 -04:00
isTradeBetter.ts feat: integrate SwapRouter02 on L1/L2 + gas ui 2021-12-16 14:44:03 -05:00
isZero.ts improvement(swap): Better swap errors for FoT (#1015) 2020-08-06 18:18:43 -05:00
listSort.ts refactor: use new sdk version (#1472) 2021-05-12 08:52:17 -05:00
listVersionLabel.ts feat(lists): allow selecting and adding token lists (#1023) 2020-08-26 08:46:21 -05:00
maxAmountSpend.ts refactor(L2): Arbitrum Kovan testnet and Arbitrum One support (#1716) 2021-06-02 15:14:34 -05:00
prices.test.ts feat: integrate SwapRouter02 on L1/L2 + gas ui 2021-12-16 14:44:03 -05:00
prices.ts feat: improved warning ux (#3310) 2022-02-15 19:34:02 -08:00
retry.test.ts test failed due to randomness. make it less likely to fail. 2020-09-01 11:28:18 -05:00
retry.ts remove a lot of dead code (#1970) 2021-07-06 17:08:40 -04:00
routes.ts feat: add chainId (network) as url parameter (#3057) 2022-01-24 15:23:34 -08:00
safeNamehash.test.ts chore: import @ethersprojects directly (#3104) 2022-01-12 10:06:22 -08:00
safeNamehash.ts chore: import @ethersprojects directly (#3104) 2022-01-12 10:06:22 -08:00
supportedChainId.ts feat(swap): default 1 native to usdc on the swap page (#3347) 2022-02-28 13:30:37 -05:00
swapErrorToUserReadableMessage.tsx feat: update swap hooks and add swap txn submission (#3187) 2022-01-26 19:21:10 -05:00
switchChain.ts refactor: adding safe getter for ChainInfo (#4110) 2022-07-14 11:52:37 -04:00
tradeMeaningFullyDiffer.ts feat: update summary view with real values (#3179) 2022-01-25 13:48:52 -05:00
transformSwapRouteToGetQuoteResult.ts feat: Add support for mixed routes in the interface (#4181) 2022-08-11 16:40:55 -04:00
unwrappedToken.ts fix: update type on wrapped native currency (#3454) 2022-03-07 21:04:21 -05:00
userAgent.ts perf: rm duplicated ua-parser (#2427) 2021-09-24 08:13:40 -07:00