Skip to content

process_withdraw duplicates check_mint check.#560

Description

@enriquefynn

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions