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

process_withdraw duplicates check_mint check. #560

Open
enriquefynn opened this issue Apr 14, 2022 · 1 comment · May be fixed by #567
Open

process_withdraw duplicates check_mint check. #560

enriquefynn opened this issue Apr 14, 2022 · 1 comment · May be fixed by #567

Comments

@enriquefynn
Copy link
Member

Speaking with kkonevets, thanks for the report 👍, he found out that we check twice for the mint at:

anker.check_mint(accounts.b_sol_mint)?;

It doesn't impact our deployment 😅 but it does consume a bit more computing, or maybe the compiler is smart enough to remove/optimize this.
Anyways we should remove the duplicate check.

@ruuda
Copy link
Contributor

ruuda commented Apr 14, 2022

Good find!

@enriquefynn enriquefynn linked a pull request May 12, 2022 that will close this issue
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 a pull request may close this issue.

2 participants