uniswap-interface-uncensored/src/utils
Moody Salem 7ee761a59e
feat: automatic slippage tolerance (#1463)
* automatic slippage tolerance start

* get it compiling

* out of range/in range behavior of slippage tolerance in add

* small useDerivedSwapInfo refactor

* improve useSwapSlippageTolerance

* fix unit test

* thread placeholder slippage through

* small improvement to slippage input behavior

* fix the display bug

* fix tx settings modal ux

* don't pass props unnecessarily

* switch back to static swap slippage for now

bump migrate slippage to .75%

* fix font size

* add flag for auto slippage migration

validate version updates even more

Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-05-11 13:00:42 -04:00
..
chunkArray.test.ts chunk multicall by gas cost 2021-04-02 20:00:28 -04:00
chunkArray.ts chunk multicall by gas cost 2021-04-02 20:00:28 -04:00
computeFiatValuePriceImpact.tsx show currency values and price impact in the confirmation modal (fixes https://github.com/Uniswap/v3-interface/issues/92) 2021-05-04 08:38:47 -05:00
computePriceImpactWithMaximumSlippage.tsx move the compute price impact function out to a utility file 2021-05-04 17:55:51 -05:00
computeUniCirculation.test.ts Refactor with core (#33) 2021-03-23 21:45:58 -04:00
computeUniCirculation.ts Refactor with core (#33) 2021-03-23 21:45:58 -04:00
contenthashToUri.test.skip.ts feat(lists): allow selecting and adding token lists (#1023) 2020-08-26 08:46:21 -05:00
contenthashToUri.ts Add page MVP UI + v3 pool hooks and state (#35) 2021-04-14 10:12:35 -04:00
currencyId.ts Refactor with core (#33) 2021-03-23 21:45:58 -04:00
formatTokenAmount.ts Fix bug on formatted token amounts when decimals < sig fig (#1479) 2021-05-07 16:52:00 -04:00
getLibrary.ts fix(wallet): workaround the ethers bug to fix other wallets 2021-05-06 11:10:45 -04:00
getTickToPrice.ts refactor range selection and use in migrate 2021-04-19 17:55:52 -04:00
getTokenList.ts keep list asset requests anonymous 2021-04-26 10:50:34 -05:00
getTradeVersion.ts make the way we get the v2 router consistent, start working through changes in the swap callback 2021-04-27 11:00:34 -05:00
getUserAgent.ts Add App-level error boundary, referring users to GitHub issue creation (#1464) 2021-05-11 12:09:01 -04:00
index.test.ts fix calculateSlippageAmount (#1497) 2021-05-10 14:22:26 -05:00
index.ts fix calculateSlippageAmount (#1497) 2021-05-10 14:22:26 -05:00
isTradeBetter.ts fix a bug in v3 trade routing returning the wrong trade type for output trade 2021-04-30 22:43:29 -05:00
isZero.ts improvement(swap): Better swap errors for FoT (#1015) 2020-08-06 18:18:43 -05:00
listSort.ts Improvement(lists): Switch to multiple active lists (#1237) 2021-01-14 11:20:50 -05:00
listVersionLabel.ts feat(lists): allow selecting and adding token lists (#1023) 2020-08-26 08:46:21 -05:00
maxAmountSpend.ts Refactor with core (#33) 2021-03-23 21:45:58 -04:00
parseENSAddress.test.ts fix(ens): support ens names with dashes in them 2020-11-07 08:19:01 -08:00
parseENSAddress.ts fix(ens): support ens names with dashes in them 2020-11-07 08:19:01 -08:00
prices.test.ts fix unit tests 2021-05-03 20:39:03 -05:00
prices.ts feat: automatic slippage tolerance (#1463) 2021-05-11 13:00:42 -04:00
resolveENSContentHash.ts Fix code style issues with ESLint 2021-02-16 08:46:17 +00: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 Fix code style issues with ESLint 2021-02-16 08:46:17 +00:00
uriToHttp.test.ts Fix code style issues with ESLint 2021-02-16 08:46:17 +00:00
uriToHttp.ts feat(lists): allow selecting and adding token lists (#1023) 2020-08-26 08:46:21 -05:00
wrappedCurrency.ts useAllV3Routes, some cleanup 2021-04-24 17:43:14 -05:00