The PHAToken contract is a standard ERC20 implementation, leveraging OpenZeppelin's SafeMath, Ownable, and Pausable patterns. While it demonstrates good practices for preventing integer overflows and adhering to the ERC20 standard, significant centralization risks exist due to the Ownable and PauserRole mechanisms. The contract also exhibits a known ERC20 approve front-running vulnerability and uses an older Solidity compiler version.

On-chain security analysis — is it a scam or legit?
Is Phala Safe?
Not verified
This record has not gone through deep verification and is not being monitored. The score is a dated snapshot — the token’s risk can change at any time.Own this token? Put it under verification →The PHAToken contract is a standard ERC20 implementation, leveraging OpenZeppelin's SafeMath, Ownable, and Pausable patterns.
- Ownership not renounced — owner is an EOA
- Top-10 concentration > 50%
- Liquidity not locked, but no owner/deployer address holds LP — market-depth risk, not rug risk
- LP top1 unlocked holder = 93.0%
- LP top3 unlocked holders = 97.7%
Exact factors
- Ownership NOT renounced — owner is an EOA (single private key)
- Top-10 concentration > 50% (69.5% total → 51.9% effective; 40.2% in EOAs, 29.3% in contracts — heavy)
- Liquidity not locked, but no owner/deployer address holds LP — market-depth risk, not rug risk
- LP top1 unlocked holder = 93.0% (independent LP — depth risk, pool = 91% of DEX liquidity)
- LP top3 unlocked holders = 97.7% (independent LP — depth risk, pool = 91% of DEX liquidity)
Security Checklist
as of audit · Sep 22Holders
as of audit · Sep 22, 2026- Contractstreasury, vesting, bridge, staking29.3%
- Walletsanonymous holders, free to sell40.2%
- Everyone elsethe rest of the supply30.5%
How holder types affect the score
Share held by contracts — treasury, vesting, bridge or staking — is discounted against share held by wallets when the score is computed: a contract cannot decide to sell the way an anonymous holder can, though it can still be drained or voted to sell. Effective concentration is the figure the risk score is actually calculated from.
Holder balances as recorded by the audit of Sep 22, 2026
Liquidity
as of audit · Sep 22The LP tokens of the analysed pool are not locked or burned, so whoever holds them can withdraw that liquidity.
0x277e…74b40xba22…85710xa5cc…83880xa991…e9870xc8d6…6dbe0x0a62…59410xfd52…1f490x519d…0e4f0x9965…6dec0x0eb9…4863No privileged address appears among these holders: the unlocked liquidity sits with independent providers, not with the deployer.
Security Findings
MediumERC20 approve Front-Running Vulnerability
Not confirmed by static analysis (the model's own reading of the source).M-01
approve Front-Running VulnerabilityIssue
Not confirmed by static analysis (the model's own reading of the source). The standard approve function, while compliant with ERC20, is vulnerable to a known front-running attack. If a user attempts to increase an allowance, a malicious actor can front-run the transaction by spending the original allowance, then front-run again to spend the newly approved allowance, effectively spending more than intended. Although increaseAllowance and decreaseAllowance are provided, the direct approve function remains accessible. (7.2 Code Security)
Fix
Advise users to always set allowance to zero before increasing it, or exclusively use increaseAllowance and decreaseAllowance functions. Consider deprecating or adding warnings to the direct approve function in documentation.
Status
Unresolved
MediumCentralized Control via Owner and Pauser Roles
Not confirmed by static analysis (the model's own reading of the source).M-02
Issue
Not confirmed by static analysis (the model's own reading of the source). The contract implements Ownable and PauserRole, granting the deployer (owner) and designated pausers significant control. The owner can transfer ownership, and pausers can halt all token transfers and manage other pauser accounts. This centralization creates a single point of failure, where a compromised or malicious owner/pauser could disrupt token operations or transfer control. (7.3 Access Control, 7.5 Governance, 7.8 Operations)
Fix
Consider implementing a multi-signature wallet for critical administrative roles (owner, pauser) to distribute control and reduce the risk of a single point of compromise. For pausing, evaluate if a more decentralized or time-locked mechanism is appropriate for the protocol's risk model.
Status
Unresolved
LowOld Solidity Compiler Version
Not confirmed by static analysis (the model's own reading of the source).L-01
Issue
Not confirmed by static analysis (the model's own reading of the source). The contract is compiled with pragma solidity ^0.5.0. While SafeMath is used to prevent integer overflows/underflows, newer Solidity versions (e.g., 0.8.x) include built-in overflow/underflow checks by default, making SafeMath redundant and potentially reducing gas costs and bytecode size. Older compiler versions might also lack newer optimizations or security features. (7.2 Code Security)
Fix
Consider upgrading the Solidity compiler version to 0.8.x or higher. This would allow for the removal of SafeMath library usage, simplifying the code and leveraging modern compiler-level safety features. Thorough testing would be required after such an upgrade.
Status
Unresolved
InfoUnnecessary Context Abstraction for Non-Proxy Contract
Not confirmed by static analysis (the model's own reading of the source).I-01
Context Abstraction for Non-Proxy ContractIssue
Not confirmed by static analysis (the model's own reading of the source). The Context contract, which provides _msgSender() and _msgData(), is typically used in proxy patterns to ensure msg.sender and msg.data correctly reflect the original caller in the context of a delegatecall. Since this contract is not a proxy (as per is_proxy: false), the abstraction provided by Context is unnecessary and adds minor overhead. The this; statement in _msgData() is also a no-op. (7.1 Architecture)
Fix
If the contract is not intended to be used as an implementation contract in a proxy pattern, the Context abstraction can be removed, and msg.sender can be used directly. This would slightly simplify the code and reduce bytecode size.
Status
Unresolved
Analysis
AI Copilotas of audit · Sep 22The contract utilizes SafeMath to effectively mitigate integer overflow/underflow vulnerabilities (7.2 Code Security) and adheres to the ERC20 standard. However, the standard approve function remains susceptible to front-running attacks, despite the presence of increaseAllowance and decreaseAllowance functions. The use of an older Solidity compiler version (^0.5.0) means the contract does not benefit from modern compiler optimizations and built-in safety features (7.2 Code Security). The Context abstraction is also unnecessary for a non-proxy contract (7.1 Architecture).
The contract exhibits high centralization due to the Ownable and PauserRole implementations (7.3 Access Control, 7.5 Governance). A single owner address controls the ability to transfer ownership, and designated pausers can halt all token transfers, creating a single point of failure. This concentration of power introduces significant operational and economic risks, as a compromised or malicious owner/pauser could severely impact the token's functionality and user trust (7.8 Operations).
The contract is not designed as an upgradeable proxy (7.7 Upgrades), as indicated by the is_proxy: false status. This eliminates upgrade-specific risks such as storage collisions or faulty implementation logic. The contract's functionality is fixed upon deployment.
To enhance the security posture, consider implementing a multi-signature wallet for critical administrative roles, such as the owner and pausers, to distribute control and mitigate single points of failure.
For the ERC20 approve function, strongly advise users to utilize increaseAllowance and decreaseAllowance or to set allowances to zero before increasing them. Additionally, evaluate the feasibility of upgrading the Solidity compiler to a more recent version (e.g., 0.8.x) to leverage built-in safety features and optimize gas usage.
Contract & Record
Free for any token on the record. It links to this page and always shows the current score and the date it was checked.
- Sep 22, 202651Medium
Score changes are recorded as dated snapshots — history is append-only and cannot be edited.
Would You Like a More Detailed Audit of Phala?
Our AI-powered scanner gives you a deeper, real-time smart contract analysis — free, with every scoring factor shown.
Get Detailed Audit Is this your token? Add your links and get it Verified