APC Plus Info
APC Plus turns supported deposits into Digital Dollars for everyday use. Shop gift cards and eSIMs, book travel, send Red Packets, earn cashback and manage everything from one balance.
TrustNet Score
The TrustNet Score evaluates crypto projects based on audit results, security, KYC verification, and social media presence. This score offers a quick, transparent view of a project's credibility, helping users make informed decisions in the Web3 space.
Real-Time Threat Detection
Real-time threat detection, powered by Cyvers.io,
is currently not
activated
for this project.
This advanced feature provides continuous monitoring and instant alerts to safeguard your assets from potential security threats. Real-time detection enhances your project's security by proactively identifying and mitigating risks.
For more information, click here.
Summary and Final Words
No crucial issues found
The contract does not contain issues of high or medium criticality. This means that no known vulnerabilities were found in the source code.
Contract owner cannot mint
It is not possible to mint new tokens.
Contract owner cannot blacklist addresses.
It is not possible to lock user funds by blacklisting addresses.
Contract owner cannot set high fees
The fees, if applicable, can be a maximum of 25% or lower. The contract can therefore not be locked. Please take a look in the comment section for more details.
Token transfer can be locked
Owner can lock user funds with owner functions.
Token cannot be burned
There is no burning within the contract without any allowances
Ownership is not renounced
The owner retains significant control, which could potentially be used to modify key contract parameters.
Contract is not upgradeable
The contract does not use proxy patterns or other mechanisms to allow future upgrades. Its behavior is locked in its current state.
Scope of Work
This audit encompasses the evaluation of the files listed below, each verified with a SHA-1 Hash. The team referenced above has provided the necessary files for assessment.
The auditing process consists of the following systematic steps:
- Specification Review: Analyze the provided specifications, source code, and instructions to fully understand the smart contract's size, scope, and functionality.
- Manual Code Examination: Conduct a thorough line-by-line review of the source code to identify potential vulnerabilities and areas for improvement.
- Specification Alignment: Ensure that the code accurately implements the provided specifications and intended functionalities.
- Test Coverage Assessment: Evaluate the extent and effectiveness of test cases in covering the codebase, identifying any gaps in testing.
- Symbolic Execution: Analyze the smart contract to determine how various inputs affect execution paths, identifying potential edge cases and vulnerabilities.
- Best Practices Evaluation: Assess the smart contracts against established industry and academic best practices to enhance efficiency, maintainability, and security.
- Actionable Recommendations: Provide detailed, specific, and actionable steps to secure and optimize the smart contracts.
A file with a different Hash has been intentionally or otherwise modified after the security review. A different Hash may indicate a changed condition or potential vulnerability that was not within the scope of this review.
Final Words
The following provides a concise summary of the audit report, accompanied by insightful comments from the auditor. This overview captures the key findings and observations, offering valuable context and clarity.
Smart Contract Analysis Statement
Contract Analysis
The Aplus contract implements a fixed-supply BEP-20 token on BNB Smart Chain with 20,000,000 tokens and 18 decimals, all of which were minted to the owner at deployment, combined with a one-time launch sequence. Until the owner starts trading, tokens can only be moved to or from exempt accounts. Once trading starts, a 15-minute exclusive window admits only four pre-registered wallets, which are limited to 1,000 tokens per buy, 2,500 tokens per wallet and one buy every 15 seconds. When this window closes, all restrictions end permanently, because the public protection window was configured with a length of zero. The deployed bytecode matches the verified source exactly. The token has no mint, burn, fee, blacklist, pause or upgrade functionality. At the time of the analysis, trading had not been enabled and no liquidity pool existed.
Ownership Privileges
The ownership of the contract has not been renounced and cannot be renounced, because the renounce function is disabled. The owner is a single externally owned account without multisig or timelock. The owner retains the following privileges and limitations:
- The owner alone decides if and when trading starts. Until then, holders other than exempt accounts can only send their tokens back to exempt accounts, and there is no deadline or fallback if the owner never starts trading.
- Before trading starts, the owner can add and remove wallets on the launch whitelist, exempt any address from all transfer rules, and register or unregister the liquidity pool that is used to recognise buys and sells. Exempt accounts can trade on the pool before launch without any limits.
- Starting trading is irreversible. From that moment the whitelist, the exemptions and the pool registration are locked, and the launch windows run on fixed timers that nobody can change.
- After launch the owner can no longer restrict transfers, change limits, mint, burn, charge fees or block any address. The only remaining privilege is recovering other tokens sent to the contract by mistake, which the owner can send to any recipient.
- Aplus tokens sent to the contract address itself cannot be recovered by anyone.
- Ownership can be transferred in two steps, but the exemption granted to the initial owner does not move to a new owner automatically.
Security Features
The contract implements several positive security features:
- The total supply is fixed at deployment. There is no minting function, hidden supply, rebasing or fee on transfers, and supply and balance accounting held in every scenario that was tested.
- All launch limits are immutable and bounded by hard-coded maxima of 30 minutes for the whitelist window and one hour for the public window, and all configuration is permanently locked once trading starts.
- Every privileged function is restricted to the owner, and ownership transfers require acceptance by the new owner, which prevents handing control to a wrong address.
- The contract is built on unmodified OpenZeppelin 5.6.1 components, is not upgradeable and makes no external calls in its transfer logic.
- Sells are never subject to the size limits or the cooldown, so the launch limits cannot trap holders who are allowed to trade.
Key Observations
No critical or high severity issues were identified, and no way was found to mint tokens, take tokens from holders or break the token accounting. The only medium severity observation concerns the exclusive launch window: any third party can block whitelisted buyers at practically no cost by triggering their buy cooldown, so the exclusive phase cannot be relied upon. The anti-sniper protection is also weaker than it may appear, because all limits end in the same second in which the public is admitted, and that second is known fifteen minutes in advance. Accounts exempted before launch can trade on the pool without restrictions, and an exemption is neither moved nor removed automatically when ownership changes. A single key decides if and when trading starts, without a deadline. Today the owner holds the entire supply, but every token distributed before launch would remain frozen until trading is enabled.
The owner has also deployed two vesting vaults for 80% of the supply. They are not funded yet, their code is not verified, and they were not part of this analysis. Read-only checks indicate that vesting only starts when the owner funds a vault and triggers the start, and that the owner can change a vault's beneficiary after a two-day delay and initiate an emergency exit that can be executed after seven days. We recommend that the team moves ownership of the token and of the vaults to a multisig, adds a launch deadline and a non-zero public protection window, and, since trading has not started yet, considers redeploying with these changes before any tokens are distributed.
Note - This Audit report consists of a security analysis of the Aplus smart contract. This analysis did not include economic analysis of the contract's tokenomics. Moreover, we only audited the main contract for the Aplus team. Other contracts associated with the project were not audited by our team. We recommend investors do their own research before investing.
Files and details
Findings and Audit result
medium Issues | 1 findings
Pending
#1 medium Issue
Anyone can start a whitelisted buyer's cooldown and lock them out of the exclusive window
During launch protection every transfer from a registered pair is treated as a buy and sets lastBuyAt for the recipient, regardless of who paid for it and how small it is. Any account can therefore buy a dust amount for a whitelisted wallet, or simply call the pair's permissionless skim function with that wallet as the recipient, which makes the pair send a zero-value transfer that is recorded as a buy. The victim's own purchases then revert with BuyCooldownActive for the next 15 seconds. A single transaction placed ahead of a pending purchase is enough to make it fail, and repeating the call every 15 seconds keeps all four whitelisted wallets from buying during the whole 15-minute exclusive window. We reproduced both variants. A dust buy cost 25,062,657 wei of BNB, and the skim variant needed no tokens and no BNB beyond transaction fees: 240 calls of about 73,000 gas each, roughly 17.5 million gas in total, kept all four wallets from buying until the public opening. With the deployed configuration only the exclusive window is affected; with a non-zero public window every public buyer could be targeted in the same way.
low Issues | 5 findings
Pending
#1 low Issue
A single externally owned account decides if and when any holder can ever transfer tokens
Until enableTrading is called, every transfer in which neither the sender nor the recipient is system-exempt reverts, and only the owner can call enableTrading. There is no deadline, no fallback that allows anyone else to start trading, and renounceOwnership is disabled, so the start of trading depends entirely on one key. The owner is an externally owned account without multisig or timelock, and it currently holds the entire supply of 20,000,000 tokens, so no third-party balances are affected today. The risk applies to every token the owner distributes before launch: such tokens can only be sent back to exempt addresses until trading starts, and if the key is lost or compromised, or the owner never launches, they remain frozen permanently. The owner has already deployed two vesting vaults for 10,000,000 and 6,000,000 tokens, 80% of the supply. They are not funded yet, and their release schedules only start when the owner funds a vault and starts its vesting, which has not happened. Funding them before launch would put these tokens under the same freeze. We reproduced the freeze by funding the vault address and a regular holder: after 150 days and again after ten years both transfers still revert, the vault beneficiary cannot start trading and renouncing ownership reverts, while the owner alone can move tokens freely during the whole period.
Pending
#2 low Issue
All launch limits end together with the whitelist window on the deployed configuration
The contract was deployed with a public protection duration of zero, so protectionEndTime equals whitelistEndTime. The maximum buy of 1,000 tokens, the maximum wallet of 2,500 tokens and the 15-second buy cooldown therefore only ever apply to the four whitelisted wallets, and all of them switch off in the same second in which the public is admitted. That second is published on-chain by the TradingEnabled event and the whitelistEndTime getter fifteen minutes in advance, which makes the public opening easy to target with prepared transactions. With an illustrative initial liquidity of 4,000,000 tokens and 100 BNB, a buyer was rejected one second before the opening and then bought 800,000 tokens in two transactions in the opening second, 320 times the launch wallet cap, paying about 11.14 BNB for the first 400,000 tokens. The durations are immutable, so this cannot be changed on the deployed contract.
Pending
#3 low Issue
Pre-launch exemptions bypass every rule, including trading on the pool
Before trading is enabled, a transfer in which either side is system-exempt skips every check. This is intended for funding and liquidity setup, but it also covers transfers with a registered pair. Once liquidity has been added, any exempt account can buy from and sell to the pool before launch without limits, and if the owner exempts the pair itself, every account can trade before launch. Both silently defeat the whitelist and the launch limits while tradingEnabled is still false. The function notes only say that exemptions are meant for infrastructure and do not warn against exempting pools or routers. We reproduced both cases: an exempt account bought 250,000 tokens, 100 times the launch wallet cap, for about 6.68 BNB and sold half of them again before launch, and after the pair was exempted an unrelated account bought 250,000 tokens and sold 25,000.
Pending
#4 low Issue
Launch rules classify transfers only by the immediate counterparty
Buys and sells are recognised only by whether the direct sender or recipient is a registered pair, and all limits and the cooldown are keyed to the address that receives the tokens. Purchases routed through an aggregator, a smart wallet or any executor that receives the tokens and forwards them therefore fail during the exclusive window unless the intermediary is whitelisted. During a public protection window, all users of a shared executor share one cooldown and one wallet cap, while a user who also buys directly gets an additional allowance of their own. Spreading purchases over several wallets bypasses the per-wallet limits entirely. Routes through two registered pairs fail during protection, because the second pair is treated as a buyer that has to be whitelisted and stay below the wallet cap, although the contract explicitly supports registering several pairs. Direct swaps on a registered PancakeSwap V2 or V3 pool are classified correctly, because the pool itself sends the tokens to the buyer, but every pool, including each V3 fee tier, has to be registered before launch, and unregistered pools are treated like ordinary wallets. We reproduced the executor cases and the transfer between two registered pairs. With the deployed configuration these effects are limited to the first 15 minutes.
Pending
#5 low Issue
The system exemption does not follow ownership transfers
The constructor exempts the initial owner, but the exemption is stored in a separate mapping that is not updated when ownership changes. After a handover before launch, for example to a multisig, the new owner cannot move tokens until it exempts itself, and the previous owner keeps an exemption it no longer needs unless it is removed explicitly. Because exempt accounts can trade on a seeded pool before launch without any limit, a retired key that keeps its exemption also keeps that ability, and if it is later compromised, an attacker can use it to trade ahead of the launch. We confirmed both effects in testing.
optimization Issues | 2 findings
Pending
#1 optimization Issue
Transfers after the launch windows still pay for five cold storage reads
On the deployed configuration, every transfer between two different accounts still loads tradingEnabled, both pair flags, whitelistEndTime and protectionEndTime after protection has ended, before reaching the standard ERC-20 logic, although none of the launch rules can apply any more. These five cold storage reads stay with the token for its whole lifetime. We measured 24,796 gas for an ordinary transfer, compared with 13,315 gas for a plain OpenZeppelin ERC-20 transfer, which is an overhead of 11,481 gas on every transfer.
Pending
#2 optimization Issue
Redundant work inside the launch checks
lastBuyAt is written on every protected buy even when the cooldown is configured as zero, in which case the value is never read and each buy pays for an unnecessary storage write. whitelistPhaseActive and launchProtectionActive read tradingEnabled again although _update has already established that trading is enabled, and the whitelistDuration check repeats what the timestamp comparison already guarantees.
informational Issues | 9 findings
Pending
#1 informational Issue
Launch sequence constraints the owner needs to plan for
The owner is exempt only until trading starts and is not on the launch whitelist, so during the 15-minute exclusive window the owner can neither transfer tokens to wallets or vaults nor add liquidity, and no holder of liquidity tokens outside the whitelist can remove liquidity, because removal is a transfer from the pair. The initial liquidity therefore has to be added before enableTrading, and any funding has to happen either before launch, where the recipients are exposed to the pre-launch freeze, or after the exclusive window. The pair registry is frozen at launch, so a wrongly registered address cannot be corrected and the real pool would then be treated as an ordinary wallet during the protection windows. In addition, anyone can create the PancakeSwap pair before the owner and leave it with a reserve of one wei of WBNB and no tokens, after which the router's addLiquidityETH reverts with INSUFFICIENT_LIQUIDITY. We reproduced this and confirmed that the owner can still seed the pool by transferring both assets to the pair and calling mint directly.
Pending
#2 informational Issue
Tokens sent to the token contract are permanently locked
Transfers to the token's own address are accepted, but recoverForeignToken explicitly refuses to recover Aplus and there is no other way to move tokens out of the contract. Tokens sent there by mistake, a common user error, are lost permanently; we reproduced this after launch. Other tokens sent to the contract can be recovered, but only by the owner and to a recipient of the owner's choice.
Pending
#3 informational Issue
Constructor parameters are only partially validated and use mixed units
The supply is passed in whole tokens and scaled by the decimals, while the maximum buy and the maximum wallet are passed in base units, so a deployment that passes 1,000 for the maximum buy caps launch buys at 1,000 wei. The buy cooldown has no upper bound: a value larger than the current Unix time blocks every first buy during protection, because lastBuyAt starts at zero, and values close to the uint256 limit make the cooldown check overflow and revert. The deployed values of 1,000 and 2,500 tokens in base units and 15 seconds are correct, so this only affects future deployments. We reproduced both misconfigurations.
Pending
#4 informational Issue
Ownership cannot be renounced and the owner role persists after launch
renounceOwnership always reverts, so the contract will always have an owner. After launch every configuration function is locked and the only remaining privilege is recoverForeignToken, which lets the owner transfer other tokens held by the contract to any recipient. The residual power is small, but the permanent owner will keep being reported as active by token scanners, and a compromised key would retain control over any foreign tokens sent to the contract.
Pending
#5 informational Issue
Floating pragma
The contract declares pragma solidity ^0.8.24, and the bundled dependencies declare even wider ranges. The deployed bytecode was compiled with 0.8.24, but a floating pragma allows rebuilds with other compiler versions, which can change the bytecode and makes verification and later reviews harder to reproduce.
Pending
#6 informational Issue
Inaccurate and misplaced NatSpec documentation
The notice 'Permanently starts the one-time launch sequence' sits above renounceOwnership instead of enableTrading, so it documents the wrong function. The buy cooldown is described as the minimum time between buys by the same wallet, but it is keyed to the recipient of a pool transfer and can be started by anyone. The comment in _hasConfiguredPair refers to a sentinel set in an override below, which does not exist; the counter is maintained in setAutomatedMarketMakerPair. The setSystemExempt notes do not warn that exempting a pool or router opens trading before launch, and the parameter notes for the maximum buy and maximum wallet do not say that these are given in base units while the supply is given in whole tokens.
Pending
#7 informational Issue
Dead and redundant code
The constructor's check for a zero initial owner can never trigger, because the Ownable constructor runs first and reverts with OwnableInvalidOwner. The burning flag in _update can never be true, because the contract exposes no burn function and transfers to the zero address revert before _update is reached, which also leaves ERC20._burn unused. In whitelistPhaseActive the condition whitelistDuration != 0 is redundant, since a zero duration makes whitelistEndTime equal to the start time and the timestamp comparison already fails.
Pending
#8 informational Issue
Code structure and event consistency
pairConfigurationCount is declared between functions near the end of the contract instead of with the other state variables. setLaunchWhitelist and setSystemExempt emit events even when the stored value does not change, while setAutomatedMarketMakerPair silently skips unchanged values, so event consumers cannot rely on one consistent rule. recoverForeignToken emits its event after the external token call; this is harmless because the function is owner-only and changes no state, but emitting first follows the checks-effects-interactions pattern. The error CannotRecoverNativeToken refers to Aplus itself, which is easily confused with BNB, the chain's native currency.
Pending
#9 informational Issue
Self-transfers are counted twice against the wallet cap during protection
During launch protection, a transfer between two wallets is rejected if the recipient's balance plus the amount exceeds the maximum wallet. The check runs before the balances are updated, so for a transfer from a wallet to itself the amount is counted twice, although the balance does not change. A whitelisted wallet holding 1,500 tokens cannot transfer 1,001 tokens to itself, while the same transfer to another whitelisted wallet succeeds. Self-transfers serve no economic purpose, so the effect is limited to a deviation from the documented rule and to rare integrations that move tokens to the same address, and only while protection is active. We reproduced this on the deployed configuration.