The FlapTaxTokenV3 contract implements an upgradeable ERC20 token with a dynamic tax mechanism and state-based transitions. The audit identified a critical reentrancy vulnerability in the tax liquidation logic, which could lead to double processing of tax funds. Additionally, the contract exhibits centralized control by the owner and relies heavily on external, unaudited dependencies, posing significant operational and economic risks. While the use of OpenZeppelin upgradeable contracts provides a solid foundation, the identified issues require immediate attention.

On-chain security analysis — is it a scam or legit?
Is 蝴蝶人生 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 FlapTaxTokenV3 contract implements an upgradeable ERC20 token with a dynamic tax mechanism and state-based transitions.
Read the full analysis- Liquidity not locked, but no owner/deployer address holds LP — market-depth risk, not rug risk
- LP top1 unlocked holder = 62.9%
- LP top3 unlocked holders = 100.0%
- Token age < 30 days
Exact factors
- Liquidity not locked, but no owner/deployer address holds LP — market-depth risk, not rug risk
- LP top1 unlocked holder = 62.9% (independent LP — depth risk)
- LP top3 unlocked holders = 100.0% (independent LP — depth risk)
- Token age < 30 days (still settling)
Security Checklist
as of audit · Sep 12Holders
as of audit · Sep 12, 2026- Contractstreasury, vesting, bridge, staking25.3%
- Walletsanonymous holders, free to sell4.5%
- Everyone elsethe rest of the supply70.2%
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 12, 2026
Liquidity
as of audit · Sep 12The LP tokens of the analysed pool are not locked or burned, so whoever holds them can withdraw that liquidity.
0x1584…cb020x14e5…be4aNo privileged address appears among these holders: the unlocked liquidity sits with independent providers, not with the deployer.
Security Findings
MediumCentralized Control by Owner
Not confirmed by static analysis (the model's own reading of the source).M-01
Issue
Not confirmed by static analysis (the model's own reading of the source). The contract grants significant control to the onlyOwner for critical operations such as startMigration and finalizeMigration. While this provides clear administrative control, it introduces a single point of failure. A compromise of the owner's private key could lead to unauthorized manipulation of the token's state and tax mechanisms, potentially causing economic instability or loss of funds.
Fix
Consider implementing a multi-signature wallet for the owner address to distribute control and reduce the risk of a single point of failure. Alternatively, explore transitioning to a more decentralized governance model (e.g., a DAO) for critical protocol decisions, or at least for the most sensitive functions.
Status
Unresolved
MediumCritical External Dependency Risk
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 relies on external ITaxProcessor and IDividend contracts for core tax processing and dividend distribution. The addresses for these contracts are set during initialization and cannot be changed post-deployment. If these external contracts contain vulnerabilities, are malicious, or become unmaintained, they could lead to a denial of service for token transfers (if they revert) or a loss of collected tax funds (if they mismanage or are exploited).
Fix
Thoroughly audit the ITaxProcessor and IDividend contracts to ensure their security and reliability. Consider adding an onlyOwner function to allow updating these critical external addresses in case of an emergency or to facilitate upgrades of these dependencies. Implement circuit breakers or emergency stop functions that can disable or bypass these external calls if they become problematic.
Status
Unresolved
MediumReentrancy Vulnerability in _liquidateTax
Not confirmed by static analysis (the model's own reading of the source).M-03
_liquidateTaxIssue
Not confirmed by static analysis (the model's own reading of the source). The _liquidateTax function, called by _transfer, attempts to prevent reentrancy by setting currentPoolState.notLiquidating = false; before making external calls to ITaxProcessor.processTax and IDividend.distributeDividends. However, currentPoolState is a local memory variable. The updated poolState (storage) is only written *after* these external calls complete. If an external call re-enters _transfer (and subsequently _liquidateTax), the poolState.notLiquidating in storage would still be true from the perspective of the re-entrant call, allowing the liquidation logic to execute again. This could
Fix
Implement a proper reentrancy guard using the Checks-Effects-Interactions pattern. Update the poolState.notLiquidating storage variable *before* any external calls are made. A robust solution would be to use OpenZeppelin's ReentrancyGuard modifier on the _liquidateTax function or ensure the storage variable poolState.notLiquidating is updated to false before any external calls and reverted to true only after all external calls have successfully completed.
Status
Unresolved
LowLack of Emergency Pause Mechanism
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 lacks a general emergency pause mechanism (e.g., using OpenZeppelin's Pausable module) that could temporarily halt sensitive operations like token transfers. In the event of a critical bug discovery, a market exploit, or other unforeseen circumstances, the absence of such a mechanism could prevent the team from quickly mitigating damage.
Fix
Integrate OpenZeppelin's PausableUpgradeable contract. This would allow the owner (or a designated role) to pause and unpause transfers and other critical functions, providing a crucial safety net during emergencies.
Status
Unresolved
InfoImmutability of metaURI
Not confirmed by static analysis (the model's own reading of the source).I-01
metaURIIssue
Not confirmed by static analysis (the model's own reading of the source). The metaURI variable, which stores the token's metadata URI, is set during initialization and cannot be updated thereafter. While this ensures immutability, it removes the flexibility to change the URI if, for example, the hosting service changes, the link breaks, or the metadata itself needs to be updated.
Fix
If flexibility is desired for future updates, consider adding an onlyOwner function to allow modification of the metaURI. If the immutability is an intentional design choice, ensure this is clearly documented.
Status
Unresolved
InfoPotential for Decreasing liquidationThreshold
Not confirmed by static analysis (the model's own reading of the source).I-02
liquidationThresholdIssue
Not confirmed by static analysis (the model's own reading of the source). The _liquidateTax function includes logic to decrease the liquidationThreshold by 10% (currentPoolState.liquidationThreshold * 9 / 10) if the taxAmount is less than the current threshold. This mechanism could lead to a continuously decreasing threshold over time if collected tax amounts are frequently low. A very low liquidationThreshold might make it difficult to trigger the desired liquidation behavior, potentially accumulating large amounts of tax that are never processed.
Fix
Review the long-term economic implications of a continuously decreasing liquidationThreshold. Ensure this behavior aligns with the protocol's intended design. Consider implementing a minimum floor for the liquidationThreshold or providing an onlyOwner function to reset or adjust it if it drops to an undesirable level.
Status
Unresolved
Analysis
AI Copilotas of audit · Sep 12The contract leverages OpenZeppelin's upgradeable ERC20, Ownable, and Permit modules, demonstrating a commitment to established standards (7.2 Code Security). The state-based tax mechanism is complex but structured. However, a critical reentrancy vulnerability was identified in the _liquidateTax function, where the reentrancy guard is applied to a local memory variable rather than the storage state, allowing re-entrant calls to bypass the intended protection (7.2 Code Security). This flaw could lead to double spending of collected tax funds or unexpected state manipulation. The reliance on external ITaxProcessor and IDividend contracts introduces further technical risk if these dependencies are not robust (7.6 External).
The contract's economic model is centered around a dynamic tax system and liquidation mechanism, with maxSupply being fixed at initialization (7.4 Economic). The _liquidateTax function includes logic to adjust the liquidationThreshold, which could potentially decrease over time, impacting the frequency of tax processing (7.4 Economic). Governance is highly centralized, with the OwnableUpgradeable pattern granting the owner exclusive control over critical state transitions like startMigration and finalizeMigration (7.5 Governance). This single point of control presents a significant risk if the owner's key is compromised, as it could lead to unauthorized changes in the token's operational state.
The contract is designed as an upgradeable proxy implementation, correctly utilizing OpenZeppelin's Initializable and Upgradeable patterns (7.7 Upgrades). The _disableInitializers() in the constructor and the initializer modifier are correctly implemented, preventing re-initialization. State variables are managed, with PackedPoolState efficiently using a single storage slot. Future upgrades must carefully consider storage layout, especially if new variables are added to PackedPoolState or if the order of existing variables is changed, to avoid storage collisions (7.7 Upgrades).
Address the critical reentrancy vulnerability in _liquidateTax by implementing a robust reentrancy guard that updates storage state before external calls, or by using OpenZeppelin's ReentrancyGuard modifier.
Enhance security by considering a multi-signature wallet for ownership or implementing a more decentralized governance model to mitigate the risks associated with centralized control. Thoroughly audit all external dependencies (ITaxProcessor, IDividend) and consider adding mechanisms for updating these addresses or implementing emergency circuit breakers. Finally, evaluate the economic implications of the liquidationThreshold adjustment logic and consider adding a minimum floor or owner-controlled reset mechanism.
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 12, 20264Low
Score changes are recorded as dated snapshots — history is append-only and cannot be edited.
Would You Like a More Detailed Audit of 蝴蝶人生?
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