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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions