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

[Audit] I-8 - Avoid unecessary CPIs when amounts=0 #322

Merged
merged 6 commits into from
Jan 1, 2024

Conversation

crypto-vincent
Copy link
Contributor

@crypto-vincent crypto-vincent commented Dec 24, 2023

When the token amounts are equal to zero, we can skip some CPI calls to save some GAS

@crypto-vincent crypto-vincent self-assigned this Dec 24, 2023
@crypto-vincent crypto-vincent changed the base branch from main to develop December 24, 2023 12:02
@crypto-vincent crypto-vincent changed the title [Audit] I-8 avoid unecessary CPIs when amounts=0 [Audit] I-8 - Avoid unecessary CPIs when amounts=0 Dec 24, 2023
@crypto-vincent crypto-vincent merged commit 14eba90 into develop Jan 1, 2024
1 of 2 checks passed
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.

2 participants