Skip to content

Conversation

@0xPearce
Copy link
Collaborator

@0xPearce 0xPearce commented Dec 18, 2025

AAVE v2 froze all assets and swaps / deposits are disabled on Polygon and Avalanche networks.
Since almost all Curve pools on Polygon and Avalanche networks utilize AAVE v2, added a global banner for these networks for the Dex app only.

Also refactored the DAY_IN_MS constant because reused many times and created a Duration.Banner

Using the Banner is becoming easy and beautiful 😄

@vercel
Copy link

vercel bot commented Dec 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
curve-dapp Ready Ready Preview, Comment Dec 19, 2025 2:17pm
curve-dapp-storybook Ready Ready Preview, Comment Dec 19, 2025 2:17pm

0xAlunara
0xAlunara previously approved these changes Dec 19, 2025
Copy link
Collaborator

@0xAlunara 0xAlunara left a comment

Choose a reason for hiding this comment

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

Eh, it works for now, but this is kinda blinding 😎
I think @0xtutti needs to look at stacking banners at some point, this looks undercooked

Image

{t`There is an issue connecting to the API. Please try to switch your RPC in your wallet settings.`}
</Banner>
)}
{showAaveBanner && currentApp === 'dex' && (chainId === Chain.Polygon || chainId === Chain.Avalanche) && (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Avalanche and Polygon are just for dex right?

Suggested change
{showAaveBanner && currentApp === 'dex' && (chainId === Chain.Polygon || chainId === Chain.Avalanche) && (
{showAaveBanner && [Chain.Polygon, Chain.Avalanche].includes(chainId) && (

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes but

  1. what if we add one of those chains on llamalend?
  2. it is technically possible to stay Avalanche/Polygon chains on llamalend, if selected on the dex previously

Copy link
Collaborator

Choose a reason for hiding this comment

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

true, the llamalend app accepts any network!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants