Skip to content

CMTATBaseAllowlist - Redundant State Checks #332

@rya-sge

Description

@rya-sge

Version affected: v3.0.0
Deployment version: CMTAT Allowlist
Severity: Low
Fix: v3.1.0
Reported by: Certik

In the CMTATBaseAllowlist contract, the canTransfer() and canTransferFrom() functions validate whether a token
transfer meets the required conditions and can be executed.

Based on the execution flow of these functions, _canTransferGenericByModule function calls the _canMintBurnByModule
function from the ValidationModuleAllowlist contract, which first checks the contract’s allow list status and then invokes
the ValidationModule contract to validate the user’s frozen status and the contract’s paused status.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Gas optimizationNext releaseThe issue has been merged into dev and will be part of the next release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions