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

✨ Implement ZkSync Ignite incentives program #2305

Merged
merged 9 commits into from
Jan 6, 2025

Conversation

MartinGbz
Copy link
Contributor

@MartinGbz MartinGbz commented Jan 5, 2025

General Changes

The PR adds a new ZkSync Ignite Incentives tooltip in order to display the APRs of the program.

Here's a quick preview of the incentives with an APR of 2%:

Capture d’écran 2025-01-05 à 12 46 22

Resources

Twitter account: https://x.com/ZKsyncIgnite
Website: https://zksyncignite.xyz/
Forum: https://forum.zknation.io/t/tpp-001-zksync-ignite-program-the-ignite-program/168/2

Developer Notes

A small refactor has been done in order to avoid copy paste this new IncentivesButton in all related components. Now all IncentivesButtons are only specified in the IncentivesCard component.

Moreover this small refactor allow to fix IncentivesButtons disposition. Because before the max number of button could be max 2 (Native Aave LM + Merit LM), now the max number of button ca be 3 (Native LM + Merit + ZKIgnite + maybe more in the future).
To fix this, we now set a flexbox column with 1 element per row on buttons on Mobile, and with 2 elements max per row on computer. Here's some screenshot that showcase it:

Mobile:

Capture d’écran 2025-01-03 à 16 41 46

Computer:

Capture d’écran 2025-01-03 à 16 41 21


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 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)

Copy link

height bot commented Jan 5, 2025

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

Copy link

vercel bot commented Jan 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
interface-ez7q ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 6, 2025 11:18am

Copy link

vercel bot commented Jan 5, 2025

@MartinGbz is attempting to deploy a commit to the Avara Team on Vercel.

A member of the Team first needs to authorize it.

@foodaka
Copy link
Collaborator

foodaka commented Jan 6, 2025

@MartinGbz this link here seems to not work https://app.zksyncignite.xyz/users/

<Typography variant="caption" color="text.secondary" mb={3}>
<Trans>ZKSync Ignite Program rewards are claimed through the</Trans>{' '}
<Link
href="https://app.zksyncignite.xyz/users/"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This link here wasn't working. Is that expected? @MartinGbz

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it's expected. Link was provided by my Merkl team and will be activated at the beginning of the Ignite program

@@ -61,6 +63,35 @@ export const MeritIncentivesButton = (params: {
);
};

export const ZkIgniteIncentivesButton = (params: {
market: string;
asset?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see we are passing the term asset around. Can we make it more explicit like rewardAsset or something similar. This way its easier to understand when we are passing this variable @MartinGbz

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree with you
Asset here can be the aToken or the vToken (aave asset in any cases). If it was the underlying asset I would set it for underlyingAsset.
I can set it to rewardedAsset what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed a commit: f2dad18

<IncentivesCard
value={Number(variableBorrowRate)}
incentives={vIncentivesData}
address={variableDebtTokenAddress}
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is only used for the zksync incentives right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes exactly

Copy link

github-actions bot commented Jan 6, 2025

❌ CI run has failed!
Please see logs at https://github.com/aave/interface/actions/runs/12631826988'

@foodaka foodaka merged commit 5147f80 into aave:main Jan 6, 2025
13 of 14 checks passed
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