The FlapTaxTokenV3 contract implements an upgradeable ERC20 token with custom tax mechanics, anti-farmer logic, and a multi-state pool system. The contract utilizes OpenZeppelin's upgradeable standards, ensuring a robust foundation for upgradeability and ERC20 compliance. Key strengths include the use of packed storage for gas efficiency and clear state management. However, potential reentrancy and denial-of-service risks exist within the _liquidateTax function due to likely external calls to ITaxProcessor and IDividend (based on imported interfaces and stored addresses), which could lead to critical vulnerabilities if not properly guarded. Additionally, the immutability of critical external contract addresses and significant owner privileges introduce medium-level operational and centralization risks.

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 custom tax mechanics, anti-farmer logic, and a multi-state pool system.
Read the full analysis- Top-10 concentration > 50%
- Token age < 30 days
Exact factors
- Top-10 concentration > 50% (53.8% total → 51.3% effective; 49.6% in EOAs, 4.2% in contracts — heavy)
- Token age < 30 days (still settling)
Security Checklist
as of audit · Sep 24Holders
as of audit · Sep 24, 2026- Contractstreasury, vesting, bridge, staking4.2%
- Walletsanonymous holders, free to sell49.6%
- Everyone elsethe rest of the supply46.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 24, 2026
Liquidity
as of audit · Sep 24The LP tokens of the analysed pool are locked or burned.
Security Findings
MediumImmutability of Critical External Contract Addresses
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 taxProcessor and dividendContract addresses are set during the initialize function and cannot be changed thereafter. This design choice means that if these external contracts need to be updated, replaced due to bugs, vulnerabilities, or changes in business logic, a full contract upgrade of FlapTaxTokenV3 would be required. This reduces operational flexibility and increases the complexity and risk associated with necessary updates.
Fix
Consider adding owner-controlled functions (e.g., setTaxProcessor(address newProcessor)) to allow the owner to update these critical external contract addresses. Implement a timelock or multi-signature wallet for such changes to provide an additional layer of security and transparency.
Status
Unresolved
MediumCentralization Risk with Owner Privileges
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 onlyOwner role has significant control over critical contract state transitions, specifically startMigration and finalizeMigration. These functions can alter the token's tax behavior and operational state. While common in initial project phases, this level of control by a single entity introduces a centralization risk, as a compromised owner key or a malicious owner could unilaterally change core tokenomics.
Fix
Evaluate the long-term governance model. For production environments, consider transitioning ownership to a multi-signature wallet (e.g., Gnosis Safe) or a decentralized autonomous organization (DAO) to distribute control and enhance security. Implement a timelock for critical owner actions to provide a window for community review and reaction.
Status
Unresolved
MediumPotential Reentrancy and Denial of Service 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 is called on every _transfer and is responsible for collecting and potentially distributing tax. While the provided code snippet is truncated, the presence of taxProcessor and dividendContract addresses, along with imported interfaces ITaxProcessor and IDividend, strongly suggests that external calls to these contracts occur within the full _liquidateTax function. If these external calls are made without proper reentrancy guards (e.g., Checks-Effects-Interactions pattern) or before critical state updates, a malicious external contract could re-enter FlapTaxTokenV3 and exploit
Fix
Implement a reentrancy guard (e.g., OpenZeppelin's ReentrancyGuard) on the _liquidateTax function or ensure that all external calls adhere strictly to the Checks-Effects-Interactions pattern. Specifically, all state changes should occur before any external calls. Additionally, consider implementing robust error handling or fallback mechanisms for external calls to prevent denial of service.
Status
Unresolved
LowLack of Event Emission for Critical Parameter Changes
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). While PoolStateChanged is emitted for state transitions, other critical parameters like antiFarmerDuration, liqExpectedOutputAmount, mainPool, or changes to the pools mapping (if such modification functions were implemented) do not emit events. The absence of events for such changes makes it challenging for off-chain monitoring tools, block explorers, and users to track and verify modifications to the contract's operational parameters.
Fix
Emit events for all significant parameter changes that affect the contract's behavior or tokenomics. This improves transparency, auditability, and allows for easier integration with external monitoring systems.
Status
Unresolved
LowPotential for MEV/Front-running on _liquidateTax Thresholds
Not confirmed by static analysis (the model's own reading of the source).L-02
_liquidateTax ThresholdsIssue
Not confirmed by static analysis (the model's own reading of the source). The _liquidateTax function's behavior, including state transitions (e.g., TaxEnforcedAntiFarmer to TaxEnforced or TaxFree) and tax collection, is dependent on block.timestamp and balanceOf(address(this)) relative to liquidationThreshold. Sophisticated actors (MEV bots) could potentially time their transactions to trigger or avoid certain tax/liquidation events, or even manipulate the balanceOf(address(this)) by sending tokens just before a liquidation check, to gain an economic advantage.
Fix
While difficult to fully eliminate, consider if the precise timing of _liquidateTax triggers can be made less predictable or if the impact of small manipulations can be minimized. For example, using a time-weighted average for block.timestamp or adding a small random delay (if feasible) could reduce predictability. However, this is often a trade-off with design simplicity.
Status
Unresolved
InfoHardcoded maxSupply
Not confirmed by static analysis (the model's own reading of the source).I-01
maxSupplyIssue
Not confirmed by static analysis (the model's own reading of the source). The maxSupply is declared as a constant with a value of 1e9 ether. This means the total supply of the token is fixed at deployment and cannot be changed without a contract upgrade. While this is a common and often desired characteristic for ERC20 tokens, it limits future flexibility if the project's tokenomics require adjustments to the total supply.
Fix
No direct action is required if this is an intentional design choice. However, ensure that the project's long-term tokenomics plan accounts for this immutability. If future flexibility is desired, consider making maxSupply a state variable controlled by governance.
Status
Unresolved
InfoMIN_LIQ_THRESHOLD and START_LIQ_THRESHOLD Immutability
Not confirmed by static analysis (the model's own reading of the source).I-02
MIN_LIQ_THRESHOLD and START_LIQ_THRESHOLD ImmutabilityIssue
Not confirmed by static analysis (the model's own reading of the source). The MIN_LIQ_THRESHOLD and START_LIQ_THRESHOLD values are set as immutable in the constructor. This design choice means these base liquidation thresholds cannot be modified in future upgrades. While initialLiquidationThreshold is set from START_LIQ_THRESHOLD and might be mutable, the core immutable values could restrict future flexibility if the underlying economic model needs to adapt to unforeseen market conditions or protocol changes.
Fix
No direct action is required if this immutability is an intentional design constraint. Ensure that the project's long-term economic model is robust enough to not require changes to these fundamental thresholds. If flexibility is paramount, consider making these configurable state variables, albeit with increased complexity.
Status
Unresolved
Analysis
AI Copilotas of audit · Sep 24The contract leverages OpenZeppelin's battle-tested upgradeable contracts for ERC20, access control, and initialization, which is a strong foundation (7.1 Architecture, 7.2 Code Security). The PackedPoolState struct efficiently uses storage slots. However, the _liquidateTax function, which is called on every transfer, likely involves external calls to ITaxProcessor and IDividend (7.2 Code Security, 7.6 External). If these calls are not protected by reentrancy guards or follow the Checks-Effects-Interactions pattern, they could lead to reentrancy attacks or denial of service if external calls revert. The truncation of the provided code prevents a full analysis of this critical section.
The OwnableUpgradeable pattern provides clear access control for critical functions like startMigration and finalizeMigration (7.3 Access Control, 7.5 Governance). The tokenomics involve dynamic tax rates and anti-farmer mechanisms, which are managed through state transitions. However, the owner has significant control over these state changes, introducing a centralization risk (7.5 Governance). The taxProcessor and dividendContract addresses are immutable after initialization, limiting operational flexibility (7.8 Operations). Additionally, the time-based and balance-based triggers in _liquidateTax could create opportunities for MEV or front-running by sophisticated actors (7.4 Economic).
The contract correctly implements the OpenZeppelin upgradeable pattern, including Initializable and calling _disableInitializers() in the constructor (7.7 Upgrades). This ensures proper initialization and prevents re-initialization of the constructor. Storage layout for PackedPoolState is optimized, and new variables should be appended to avoid collisions in future upgrades. However, MIN_LIQ_THRESHOLD and START_LIQ_THRESHOLD are immutable, meaning their base values cannot be altered in future upgrades, which is a design constraint.
It is highly recommended to thoroughly review the complete _liquidateTax function, specifically focusing on external calls to ITaxProcessor and IDividend.
Implement robust reentrancy guards and ensure the Checks-Effects-Interactions pattern is strictly followed to mitigate potential reentrancy and denial-of-service risks. Consider adding owner-controlled functions to update critical external contract addresses like taxProcessor and dividendContract to enhance operational flexibility without requiring a full contract upgrade. Evaluate the impact of owner privileges and consider implementing a multi-signature wallet or time-locked governance for critical state changes to reduce centralization risk.
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 24, 20260Low
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