noah changes (#739)
* remove duplicated prettier from dependencies * use swr for allowances * slight improvements to error cascading * fetch totalsupply with SWR fetch pairs with SWR (except persistent pairs, will be refactored later) * fix lint error * stop using pair context, instead store per-user pairs in local storage * add more pairs to the default list remove unnecessary isWETH fix lint error * add more bases to trade consideration * fix lint warnings * get SWR data on same schedule * don't pass value if it's 0 fix WETH equality checks * clean up fixed/significant formatting * fix slippage calculation bug in swap add slippage to remove * fix token logos * show fewer sig figs * lint error * remove unused signer * add calculateSlippageAmount safety check and tests * fix useAllBalances type stop spuriously sorting token amounts of different tokens use slightly better comparisons for slippage calculations * improve priceSlippage comparison logic * useReserves -> usePair * use checksum for DAI logo address
Showing
| ... | ... | @@ -34,7 +34,6 @@ |
| "i18next-xhr-backend": "^2.0.1", | ||
| "jazzicon": "^1.5.0", | ||
| "polished": "^3.3.2", | ||
| "prettier": "^1.17.0", | ||
| "qrcode.react": "^0.9.3", | ||
| "react": "^16.13.1", | ||
| "react-device-detect": "^1.6.2", | ||
| ... | ... | @@ -48,6 +47,7 @@ |
| "react-use-gesture": "^6.0.14", | ||
| "rebass": "^4.0.7", | ||
| "styled-components": "^4.2.0", | ||
| "swr": "0.1.18", | ||
| "use-media": "^1.4.0" | ||
| }, | ||
| "devDependencies": { | ||
| ... | ... |
This diff is collapsed.
src/data/Allowances.ts
0 → 100644
src/data/Reserves.ts
0 → 100644
src/data/TotalSupply.ts
0 → 100644
src/data/index.ts
0 → 100644
This diff is collapsed.
This diff is collapsed.
src/utils/signer.ts
deleted
100644 → 0
Please register or sign in to comment