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

Feat: Withdraw and Swap #1740

Merged
merged 29 commits into from
Aug 30, 2023
Merged

Feat: Withdraw and Swap #1740

merged 29 commits into from
Aug 30, 2023

Conversation

JoaquinBattilana
Copy link
Member

@JoaquinBattilana JoaquinBattilana commented Aug 15, 2023

General Changes

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

height bot commented Aug 15, 2023

This pull request has been linked to 1 task:

💡Tip: Add "Close T-13769" 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
Collaborator

grothem commented Aug 15, 2023

Link T-13769

@github-actions
Copy link

📦 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 574.31 KB (🟡 +5.74 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!

Ten Pages Changed Size

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

Page Size (compressed) First Load
/ 43.56 KB (🟡 +3 B) 617.87 KB
/500 7.05 KB (🟡 +1 B) 581.35 KB
/faucet 23.03 KB (🟡 +2 B) 597.34 KB
/governance/ipfs-preview 108.33 KB (-1 B) 682.63 KB
/governance/proposal 108.48 KB (-1 B) 682.79 KB
/governance/proposal/[proposalId] 63.19 KB (-1 B) 637.5 KB
/markets 18.5 KB (🟡 +2 B) 592.8 KB
/reserve-overview 15.35 KB (-1 B) 589.66 KB
/staking 21.68 KB (-1 B) 595.99 KB
/v3-migration 29.33 KB (🟡 +1 B) 603.64 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

@github-actions
Copy link

📦 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 574.48 KB (🟡 +5.91 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!

Ten Pages Changed Size

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

Page Size (compressed) First Load
/ 43.56 KB (🟡 +3 B) 618.04 KB
/500 7.05 KB (🟡 +1 B) 581.52 KB
/faucet 23.03 KB (🟡 +2 B) 597.51 KB
/governance/ipfs-preview 108.33 KB (-1 B) 682.8 KB
/governance/proposal 108.48 KB (-1 B) 682.96 KB
/governance/proposal/[proposalId] 63.19 KB (-1 B) 637.67 KB
/markets 18.5 KB (🟡 +2 B) 592.97 KB
/reserve-overview 15.35 KB (-1 B) 589.83 KB
/staking 21.68 KB (-1 B) 596.16 KB
/v3-migration 29.33 KB (🟡 +1 B) 603.8 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

@github-actions
Copy link

@github-actions
Copy link

📦 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 574.52 KB (🟡 +5.95 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!

Ten Pages Changed Size

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

Page Size (compressed) First Load
/ 43.56 KB (🟡 +3 B) 618.08 KB
/500 7.05 KB (🟡 +1 B) 581.56 KB
/faucet 23.03 KB (🟡 +2 B) 597.55 KB
/governance/ipfs-preview 108.33 KB (-1 B) 682.84 KB
/governance/proposal 108.48 KB (-1 B) 683 KB
/governance/proposal/[proposalId] 63.19 KB (-1 B) 637.71 KB
/markets 18.5 KB (🟡 +2 B) 593.01 KB
/reserve-overview 15.35 KB (-1 B) 589.87 KB
/staking 21.68 KB (-1 B) 596.2 KB
/v3-migration 29.33 KB (🟡 +1 B) 603.84 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

📦 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 574.52 KB (🟡 +5.95 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!

Ten Pages Changed Size

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

Page Size (compressed) First Load
/ 43.56 KB (🟡 +4 B) 618.08 KB
/500 7.05 KB (🟡 +1 B) 581.56 KB
/faucet 23.03 KB (🟡 +2 B) 597.55 KB
/governance/ipfs-preview 108.33 KB (-1 B) 682.84 KB
/governance/proposal 108.48 KB (-1 B) 683 KB
/governance/proposal/[proposalId] 63.19 KB (-1 B) 637.71 KB
/markets 18.5 KB (🟡 +2 B) 593.01 KB
/reserve-overview 15.35 KB (-1 B) 589.87 KB
/staking 21.68 KB (-1 B) 596.2 KB
/v3-migration 29.33 KB (🟡 +1 B) 603.85 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

grothem and others added 2 commits August 21, 2023 13:22
* refactor: pulled out shared logic in withdraw modals

* fix: error component
@github-actions
Copy link

@github-actions
Copy link

📦 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 574.57 KB (🟡 +6 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!

Ten Pages Changed Size

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

Page Size (compressed) First Load
/ 43.56 KB (🟡 +4 B) 618.13 KB
/500 7.05 KB (🟡 +1 B) 581.62 KB
/faucet 23.03 KB (🟡 +2 B) 597.6 KB
/governance/ipfs-preview 108.33 KB (-1 B) 682.9 KB
/governance/proposal 108.48 KB (-1 B) 683.05 KB
/governance/proposal/[proposalId] 63.19 KB (-1 B) 637.76 KB
/markets 18.5 KB (🟡 +2 B) 593.07 KB
/reserve-overview 15.35 KB (-1 B) 589.92 KB
/staking 21.68 KB (-1 B) 596.25 KB
/v3-migration 29.33 KB (🟡 +1 B) 603.9 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

@github-actions
Copy link

📦 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 574.95 KB (🟡 +6.39 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!

Ten Pages Changed Size

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

Page Size (compressed) First Load
/ 43.56 KB (🟡 +4 B) 618.51 KB
/500 7.05 KB (🟡 +1 B) 582 KB
/faucet 23.03 KB (🟡 +2 B) 597.99 KB
/governance/ipfs-preview 108.33 KB (-1 B) 683.28 KB
/governance/proposal 108.48 KB (-1 B) 683.44 KB
/governance/proposal/[proposalId] 63.19 KB (-1 B) 638.15 KB
/markets 18.5 KB (🟡 +2 B) 593.45 KB
/reserve-overview 15.35 KB (-1 B) 590.31 KB
/staking 21.68 KB (-1 B) 596.63 KB
/v3-migration 29.33 KB (🟡 +1 B) 604.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

📦 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 575.42 KB (🟡 +6.5 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!

Eight Pages Changed Size

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

Page Size (compressed) First Load
/ 43.55 KB (🟡 +1 B) 618.97 KB
/500 7.05 KB (🟡 +1 B) 582.46 KB
/faucet 23.03 KB (🟡 +1 B) 598.45 KB
/governance 79.75 KB (🟡 +1 B) 655.17 KB
/history 31.7 KB (🟡 +1 B) 607.12 KB
/markets 18.5 KB (🟡 +2 B) 593.92 KB
/reserve-overview 15.36 KB (🟡 +3 B) 590.78 KB
/staking 21.68 KB (🟡 +1 B) 597.1 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

@github-actions
Copy link

📦 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 575.38 KB (🟡 +6.49 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!

Eight Pages Changed Size

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

Page Size (compressed) First Load
/ 43.59 KB (🟡 +1 B) 618.97 KB
/500 7.05 KB (🟡 +1 B) 582.42 KB
/faucet 23.03 KB (🟡 +1 B) 598.41 KB
/governance 79.75 KB (🟡 +1 B) 655.12 KB
/history 31.7 KB (🟡 +1 B) 607.08 KB
/markets 18.5 KB (🟡 +2 B) 593.87 KB
/reserve-overview 15.36 KB (🟡 +3 B) 590.73 KB
/staking 21.68 KB (🟡 +1 B) 597.06 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.

@iamanastasia
Copy link
Contributor

Gm! I've noticed that something went wrong on withdraw & swap screen:
Screenshot 2023-08-29 at 18 14 52

  1. Not enough ETH message interferes with Slippage
  2. There is no amount entered, but UI suggests to select approval method (usually it is shown together with Approve button after amount was entered)

Copy link
Contributor

@iamanastasia iamanastasia left a comment

Choose a reason for hiding this comment

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

Please fix tx screen when 'Not enough ETH for gas' message is shown #1740 (comment)

@github-actions
Copy link

📦 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 573.31 KB (🟡 +6.66 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!

Eight Pages Changed Size

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

Page Size (compressed) First Load
/ 43.59 KB (🟡 +1 B) 616.9 KB
/500 7.05 KB (🟡 +1 B) 580.35 KB
/faucet 22.96 KB (🟡 +2 B) 596.27 KB
/governance 79.75 KB (🟡 +1 B) 653.05 KB
/history 31.7 KB (🟡 +1 B) 605.01 KB
/markets 18.5 KB (🟡 +2 B) 591.8 KB
/reserve-overview 15.36 KB (🟡 +3 B) 588.67 KB
/staking 21.68 KB (🟡 +1 B) 594.99 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

@github-actions
Copy link

@github-actions
Copy link

📦 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 573.4 KB (🟡 +6.75 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!

Eight Pages Changed Size

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

Page Size (compressed) First Load
/ 43.59 KB (🟡 +1 B) 616.99 KB
/500 7.05 KB (🟡 +1 B) 580.44 KB
/faucet 22.96 KB (🟡 +2 B) 596.35 KB
/governance 79.75 KB (🟡 +1 B) 653.14 KB
/history 31.7 KB (🟡 +1 B) 605.1 KB
/markets 18.5 KB (🟡 +2 B) 591.89 KB
/reserve-overview 15.36 KB (🟡 +3 B) 588.75 KB
/staking 21.68 KB (🟡 +1 B) 595.08 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.

grothem
grothem previously approved these changes Aug 30, 2023
foodaka
foodaka previously approved these changes Aug 30, 2023
@grothem grothem dismissed stale reviews from foodaka and themself via b1c19c1 August 30, 2023 19:14
@github-actions
Copy link

📦 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 573.4 KB (🟡 +6.75 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!

Eight Pages Changed Size

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

Page Size (compressed) First Load
/ 43.59 KB (🟡 +1 B) 616.99 KB
/500 7.05 KB (🟡 +1 B) 580.44 KB
/faucet 22.96 KB (🟡 +2 B) 596.35 KB
/governance 79.75 KB (🟡 +1 B) 653.14 KB
/history 31.7 KB (🟡 +1 B) 605.1 KB
/markets 18.5 KB (🟡 +2 B) 591.89 KB
/reserve-overview 15.36 KB (🟡 +3 B) 588.75 KB
/staking 21.68 KB (🟡 +1 B) 595.08 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

@grothem grothem merged commit dfa2967 into main Aug 30, 2023
32 checks passed
@grothem grothem deleted the feat/withdraw-swap-ui branch August 30, 2023 20:50
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.

6 participants