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:
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
.
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.
Manual Review: The vulnerability was detected through a manual code review.
Static Analysis: Basic static analysis tools could also highlight such typographical issues.
Fix Typo: Correct the typo in the constant EIP712_VERSOIN
to EIP712_VERSION
.
Fixed Line:
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.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.