Skip to content

fix: switch feature updates#1966

Merged
grothem merged 13 commits intomainfrom
fix/paraswap-features
Feb 29, 2024
Merged

fix: switch feature updates#1966
grothem merged 13 commits intomainfrom
fix/paraswap-features

Conversation

@grothem
Copy link
Copy Markdown
Collaborator

@grothem grothem commented Feb 21, 2024

General Changes

  • Updates price impact to show in warning color if impact is greater than 10%
  • Updates the slippage tooltip component to take in an optional header component. This will be used to show the user the mim/max of the amount they can expect to receive as a result of the tx. This will apply to all switch modals.
  • Updates the amounts shown in the switch modals to be the amounts without slippage. Previously, these values included slippage, which was confusing. Now with the tooltip noted above, users will still be able to see the values with slippage included.
  • Adjusts the amount to repay for repay with collateral when user is repaying the full balance. Previously, there was an hours worth of interest added on, plus an additional .25%. This was changed to add a half-hours worth of interest accrual to prevent any additional surplus from the swap.
  • Updates the paraswap route params to remove excludeContractMethods and instead use includeContractMethods since we know which routes are used in the max case.
  • Adjusts the buildTx for parswap to include the slippage value, instead of calculating the value with slippage.

Developer Notes

Add any notes here that may be helpful for reviewers.


Author Checklist

Please ensure you, the author, have gone through this checklist to ensure there is an efficient workflow for the reviewers.

  • The base branch is set to main
  • The title is using Conventional Commit formatting
  • The Github issue has been linked to the PR in the Development section
  • The General Changes section has been filled out
  • Developer Notes have been added (optional)

If the PR is ready for review:

  • The PR is in Open state and not in Draft mode
  • The Ready for Dev Review label has been added

Reviewer Checklist

Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.

  • End-to-end tests are passing without any errors
  • Code style generally follows existing patterns
  • Code changes do not significantly increase the application bundle size
  • If there are new 3rd-party packages, they do not introduce potential security threats
  • If there are new environment variables being added, they have been added to the .env.example file as well as the pertinant .github/actions/* files
  • There are no CI changes, or they have been approved by the DevOps and Engineering team(s)
  • Code changes have been quality checked in the ephemeral URL
  • QA verification has been completed
  • There are two or more approvals from the core team
  • Squash and merge has been checked

@height
Copy link
Copy Markdown

height bot commented Feb 21, 2024

This pull request has been linked to 2 tasks:

💡Tip: Add "Close T-19395" to the pull request title or description, to a commit message, or in a comment to mark this task as "Done" when the pull request is merged.

@grothem
Copy link
Copy Markdown
Collaborator Author

grothem commented Feb 21, 2024

Link T-19395

@grothem
Copy link
Copy Markdown
Collaborator Author

grothem commented Feb 21, 2024

Link T-18976

@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 522.71 KB (🟡 +26 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 528.64 KB (🟡 +5.96 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 86.8 KB (🟢 -5.98 KB) 615.44 KB
/404 16.28 KB (🟡 +1 B) 544.92 KB
/500 16.69 KB (🟡 +1 B) 545.34 KB
/faucet 38.77 KB (🟢 -4.72 KB) 567.41 KB
/governance 97.89 KB (🟢 -3.49 KB) 626.53 KB
/governance/ipfs-preview 111.35 KB (🟡 +1 B) 639.99 KB
/governance/v3/proposal 137.66 KB (🟢 -3.48 KB) 666.3 KB
/history 47.41 KB (🟢 -4.2 KB) 576.06 KB
/markets 38.8 KB (🟡 +2 B) 567.45 KB
/reserve-overview 34.75 KB (🟢 -5.44 KB) 563.39 KB
/staking 33.36 KB (🟢 -3.46 KB) 562 KB
/v3-migration 48.63 KB (🟢 -703 B) 577.28 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 528.64 KB (🟡 +5.96 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 86.8 KB (🟢 -5.98 KB) 615.44 KB
/404 16.28 KB (🟡 +1 B) 544.92 KB
/500 16.69 KB (🟡 +1 B) 545.34 KB
/faucet 38.77 KB (🟢 -4.72 KB) 567.41 KB
/governance 97.89 KB (🟢 -3.49 KB) 626.53 KB
/governance/ipfs-preview 111.35 KB (🟡 +1 B) 639.99 KB
/governance/v3/proposal 137.66 KB (🟢 -3.48 KB) 666.3 KB
/history 47.41 KB (🟢 -4.2 KB) 576.06 KB
/markets 38.8 KB (🟡 +2 B) 567.45 KB
/reserve-overview 34.75 KB (🟢 -5.44 KB) 563.39 KB
/staking 33.36 KB (🟢 -3.46 KB) 562 KB
/v3-migration 48.63 KB (🟢 -703 B) 577.28 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 528.65 KB (🟡 +5.96 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 86.8 KB (🟢 -5.98 KB) 615.44 KB
/404 16.28 KB (🟡 +1 B) 544.92 KB
/500 16.69 KB (🟡 +1 B) 545.34 KB
/faucet 38.77 KB (🟢 -4.72 KB) 567.42 KB
/governance 97.89 KB (🟢 -3.49 KB) 626.54 KB
/governance/ipfs-preview 111.35 KB (🟡 +1 B) 639.99 KB
/governance/v3/proposal 137.66 KB (🟢 -3.48 KB) 666.3 KB
/history 47.41 KB (🟢 -4.2 KB) 576.06 KB
/markets 38.8 KB (🟡 +2 B) 567.45 KB
/reserve-overview 34.75 KB (🟢 -5.44 KB) 563.4 KB
/staking 33.36 KB (🟢 -3.46 KB) 562.01 KB
/v3-migration 48.63 KB (🟢 -703 B) 577.28 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 528.64 KB (🟡 +5.96 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 86.8 KB (🟢 -5.98 KB) 615.44 KB
/404 16.28 KB (🟡 +1 B) 544.92 KB
/500 16.69 KB (🟡 +1 B) 545.34 KB
/faucet 38.77 KB (🟢 -4.72 KB) 567.41 KB
/governance 97.89 KB (🟢 -3.49 KB) 626.53 KB
/governance/ipfs-preview 111.35 KB (🟡 +1 B) 639.99 KB
/governance/v3/proposal 137.66 KB (🟢 -3.48 KB) 666.3 KB
/history 47.41 KB (🟢 -4.2 KB) 576.06 KB
/markets 38.8 KB (🟡 +2 B) 567.45 KB
/reserve-overview 34.75 KB (🟢 -5.44 KB) 563.39 KB
/staking 33.36 KB (🟢 -3.46 KB) 562 KB
/v3-migration 48.63 KB (🟢 -703 B) 577.28 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 529.02 KB (🟡 +31 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@grothem grothem added the Ready for QA Review Ready for QA engineer reviews label Feb 27, 2024
@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 529.03 KB (🟡 +33 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 537.19 KB (🟡 +25 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@github-actions
Copy link
Copy Markdown

@MareskoY MareskoY added QC Passed and removed Ready for QA Review Ready for QA engineer reviews labels Feb 28, 2024
@grothem grothem merged commit 725a61a into main Feb 29, 2024
@grothem grothem deleted the fix/paraswap-features branch February 29, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants