Skip to content

[MEDIUM] acbu_minting: Redundant double admin auth in admin_drip_fiat #477

Description

@Junman140

File: �cbu_minting/src/lib.rs, lines 971-976
Severity: MEDIUM

�dmin.require_auth() already proves caller IS the stored admin. Then check_is_admin is guaranteed to return true. Redundant storage read wastes gas. Error UnauthorizedOperator is semantically wrong.

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

    Stellar WaveIssues in the Stellar wave programbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions