Algo Ssstablecoinsss

First Flight #30
Beginner FriendlyDeFi
100 EXP
View results
Submission Details
Severity: low
Invalid

Typographical Error in EIP712 Version Constant

Summary

This smart contract implements a decentralized stable coin based on the ERC-20 token standard. It provides features for minting, burning, and ownership management through the ownable pattern. The contract is initialized with basic details about the token, including name, symbol, and decimals, and also includes a version for EIP-712 support.

Vulnerability Details
Typo in EIP712_VERSOIN: There is a typo in the constant EIP712_VERSOIN. The correct spelling should be EIP712_VERSION.

Line Affected:

EIP712_VERSOIN: constant(String[20]) = "1"

This typo could potentially cause issues if any external code or contracts expect the correct version field for EIP-712 signing, as it will not match the expected EIP712_VERSION.

Impact

The typo in the constant name might lead to unexpected behavior when interacting with other contracts or systems that rely on the EIP-712 versioning system.
Although this typo may not break the contract immediately, it could cause issues in the future, especially if any external integrations or signature verifications expect the exact version field.

Tools Used

Manual Review: The vulnerability was detected through a manual code review.
Static Analysis: Basic static analysis tools could also highlight such typographical issues.

Recommendations

Fix Typo: Correct the typo in the constant EIP712_VERSOIN to EIP712_VERSION.

Fixed Line:

EIP712_VERSION: constant(String[20]) = "1"

By fixing this typo, you ensure that the contract complies with the expected versioning convention and avoid potential issues with external integrations or signature verifications.

Updates

Lead Judging Commences

bube Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.