Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SWAP REFACTORING #4.4] new swap page, merge develop, code cleanup #1046

Merged
merged 79 commits into from
Sep 19, 2022

Conversation

shoom3301
Copy link
Collaborator

@shoom3301 shoom3301 commented Sep 7, 2022

Summary

https://docs.google.com/document/d/1QCuT2zT-G7fKB5azLmssj8O3yd2dwBpDuoRJuz0cw0U/edit#

How to review

Sorry for the big PR, for easier code review, please review per commit, starting with the oldest

Refactoring PR's list:

  1. Separate swap logic from view
  2. Refactor swap business logic
  3. Refactor wrap/unwrap flow
  4. New swap page
    4.1. Setup layout
    4.2. Bind data rendering and logic
    4.3. Recipient controls, trade rates, high slippage warning
    4.4. Merge develop, code cleanup
    4.5. Cosmos fixtures and documentation

Testing

Don't test this PR, test the final PR - New swap page

nenadV91 and others added 30 commits August 31, 2022 10:49
* Fix for safe transaction details

* PR comments
* Revert z-index and fix for Coinbase

* PR comment
* Set the right branch for goerli list

* Remove Todo text
* Added hardcoded ENS types rather than generated ones

* WARNING: modding original files to account for the missing src/state/data/generated.ts

* Removed @graphql codegen deps
* update twitter url

* update new handle
* update twitter url

* update new handle
* No longer defaulting to Wrapped native/USDC pair on load

* If on an usupported network show cow discount 0%

* Only show activities count if > 0

* Avoid showing price impact if doing a wrap

* If there's no account when wrapping, show connect wallet button
* Syncing changes with latest from uniswap

* More changes synced with uniswap

* Change the network url also when previousChainId is not set

* We shouldn't really update the url inside the swap page

* Removed unused params

* Updated how url update is handled
… refactor/new-swap-form

� Conflicts:
�	src/custom/hooks/useCowBalanceAndSubsidy.ts
�	src/custom/pages/Swap/SwapMod.tsx
@shoom3301 shoom3301 mentioned this pull request Sep 7, 2022
Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shoom3301 please, lets avoid include develop changes in a PR (if they arent also in the base branch)

If you do this, we will see the changes in your PR mixed with the changes of other people in other PRs

@shoom3301 shoom3301 merged commit 0e04879 into refactor/new-swap-form-p3 Sep 19, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2022
@alfetopito alfetopito deleted the refactor/new-swap-form-p4 branch September 26, 2022 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants