Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

[Release 🐮 ] v1.2.0 #1457

Closed
wants to merge 16 commits into from
Closed

[Release 🐮 ] v1.2.0 #1457

wants to merge 16 commits into from

Conversation

W3stside
Copy link
Contributor

@W3stside W3stside commented Sep 22, 2021

Don't squash me broh

Release 1.2.0

Changelog

e4321b8 Merge branch 'master' into release/1.2
1d7d92d Fix cypress (#1443)
6bb4fd4 1.2.0-rc.0
d017696 Merge pull request #1425 from gnosis/release/1.2.0
d9f26e0 fix: rename weth9 to weth (#2133) (#1424)
3a12c7e fix colour/bgColour (#1423)
025890d Merge branch 'master' into develop
b07db0e Show WARNING on high fee relative to swap (#1295)
8c24d0f Changing node version on CI scripts from 12 to lts (#1394)
f421507 [TEMP FIX] Update TS and fix types & lists reducer (#1420)
92cd67b Add appDataHash to state (#1189)
b4f72a0 Merge branch 'master' into develop
c8c9a9a Improve dark mode color styles. (#1401)
c9bd468 added sentry-webpack plugin for source maps (#1371)
85c4a88 [Bugfix] Move About item from Header to ellipsis menu (#1125)
d9cd27e Handle tx cancelation/speedup (#1302)
66b89ff [USD Price] Add coingecko api and hooks (#1356)
18943ad Default cursor for USD est./price impact. (#1361)
fee285b Merge branch 'master' into develop
52ae407 Fix status labels for transactions vs orders. (#1374)
b28e578 1318/tiny amounts displayed as 0 (#1357)
f5172b7 [Cowswap] Implement 404 error page (#1331)
c59cf98 999/2 decimals percentage (#1315)
e299c26 Update question about MEV (#1355)
9bbe443 Merge branch 'release/1.1' into develop
ef83bac Merge branch 'hotfix/1.0.3' into develop
461dc4e [1283 pt.1] Add Matcha-0x Price source (#1312)

W3stside and others added 16 commits September 22, 2021 14:27
* export and use common helper function

* move price api files to own folder

* add matcha-0x price source to price

* move price files to better folder priceApi

* dont export local constant

* more readable ternary

Co-authored-by: Leandro Boscariol <[email protected]>

* move price.ts back into utils

* pricesApi > api rename

* gnosis > gnosisProtocol rename

* pathing @src/custom replace

* operator > gnosisProtocol

* fix string & and add comments

* rename

* move gas api call to gnosis api

* path fixes

Co-authored-by: Leandro Boscariol <[email protected]>
Update question in line 207 to include et al. as Silke pointed out in DEX-web

Before we only credited Phil, and now with et al. we credit all the other authors as well
# Summary

Closes #999 
Closes #1148

2 decimals precision for price impact

![screenshot_2021-08-25_13-35-08](https://user-images.githubusercontent.com/43217/130860763-3c212bf4-04ba-4e69-b137-025a3a245a47.png)


  # To Test

1. Fill in all inputs while on Mainnet or xDai
* Observe price impact is limited to 2 decimals precision
* When percentage < 0.01, it shows `< 0.01`
* It does not display insignificant zeros: 0.90 => 0.9
# Summary

This PR closes #1251 

This page is shown when te user tries to navigate to an inexistent route.

![image](https://user-images.githubusercontent.com/11525018/130991237-20fbdf05-b3b5-457b-9388-73f2906a36c2.png)

![image](https://user-images.githubusercontent.com/11525018/130991512-a3491469-c5ea-4a89-a584-f66ff29bdf66.png)


  # To Test

1.  Navigate to an inexistent route. i.e. `/exchange`
       -  [ ] 404 error page will be render instead. 

  # Background

 I kept the same design used for the other pages. There are 2 things I would like to discuss:

- Blur background: The background blur is not applied for all the pages which I think it would be inconsistent if we applied it only in the 404 error page. 

- Content box: The styles applied for this box is different from the rest of the pages (different borders and shadow). 

WDYT about this @alfetopito @alongoni @biocom ?
* Adjust formatSmart for tiny CurrencyAmount values (< 1 atom)

* New helper function for formatting full amounts/prices on title tooltips

* Using formatMax on title tooltips

* Removed unused variable

* Updated formatMax docstring

* Handling edge case when remainder is 1

Co-authored-by: Leandro Boscariol <[email protected]>
* Default cursor for USD est./price impact.

* Fix mouse cursor/max button state.

* Remove unused type.
* coingecko api

* coingecko usd hooks

* use in swapmod

* replace useUSDCValue with useHigherUSDValue

* comment

* mod computeFiatValue fn

* made dumb comp

* smarter container

* naming

* remove unnecessary mod

* parse usd price from API as USDC

* fix infiniLoop (TM)

* remove trans from priceImpact

* fix baseAmount
* Move About from Header to ellipsis menu

* Add FileText import
* Improve dark mode color styles.

* Improve dark mode color styles.

* Improve dark mode color styles.

* Improve dark mode color styles.
* rename referrer to referralAddress

* add default appDataHash

* fix build

* fix APP_DATA_HASH import
* update TS to latest

1. tsconfig: useUnknownInCatchVariables

* fix types broken by new TS

* fix lists reducer
* Changing node version on CI scripts from 12 to lts

* I've used the wrong syntax and forgot a few places

Co-authored-by: Leandro Boscariol <[email protected]>
* HighFeeWarning component

* HighFeeWarning in TradeSummaryMod

* FEE_SIZE_THRESHOLD in constants

* HighFeeWarning in SwapMod

* message

* base label change

* remove warning from trade summary

* move warning to bottom of confirmation modal

* add state for handling checkbox

* no warning in expert mode

* bigger font, nested small > div

* comment

* use formatter

* cb remove on expert

* css and baseTheme info/infoText edit

* text and minor style changes

* colour

* check account before understand checkbox

* isExpertMode bug

* move logic for checking fee size to hook

* add useHighFeeWarning to swapmod

* add fee warning hook to HighFeeWarning comp

1. minor style changes

* [FEE WARNING] "Tiered" fee warning system (#1396)

* move HighFeeWarning to proper file

* proper import paths

* change FEE_SIZE_THRESHOLD to min 10%

* move StyledInfo to own file

* wording fix

* fix
* update @uniswap/sdk-core and @uniswap/v3-sdk

* reorder

Co-authored-by: Justin Domingue <[email protected]>
@W3stside W3stside added the RELEASE Included in the release that is being closed label Sep 22, 2021
@W3stside W3stside requested review from a team September 22, 2021 13:35
@W3stside W3stside changed the base branch from master to release/1.2 September 22, 2021 13:36
@W3stside W3stside changed the base branch from release/1.2 to master September 22, 2021 13:37
@github-actions
Copy link
Contributor

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

@W3stside W3stside closed this Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
RELEASE Included in the release that is being closed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants