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.
Security Assessments
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.
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 Flowlex BetaLPManagerV2 contract is a stateless, pass-through Uniswap V3 liquidity manager that takes a user's tokens, optionally swaps them to the required ratio, mints a Uniswap V3 position, and hands the resulting NFT straight back to the user in the same transaction. It never custodies funds between calls and ends every transaction with a zero token balance. This version is the live manager plus one added entry point that lets a user deposit both pool tokens directly instead of only USDC. Because the user always holds the liquidity NFT and the contract holds nothing between calls, the risk surface is small and any contract-level issue is fully bypassable by interacting with Uniswap directly.
Ownership Privileges
The ownership of the contract has been assigned to a single administrative account. The owner retains full privileges including:
- Whitelisting and disabling pools, where one side of each pool must be USDC.
- Setting per-operation commission rates for open, claim, withdraw and rebalance, each hard-capped at ten percent.
- Changing the treasury that receives commissions and pausing or unpausing the user entry points.
- Transferring ownership in a single step.
- The owner cannot move user funds: claim, withdraw and rebalance operate only on NFTs the caller owns and route all proceeds back to that caller.
- The owner cannot mint any token, cannot blacklist users, and cannot lock user funds.
- The contract is not upgradeable, so the deployed logic cannot be changed after deployment.
- Burning an empty position is never pausable, so users can always clean up their own NFTs.
Security Features
The contract implements several positive security features:
- A stateless pass-through design with a zero-balance invariant after every transaction, so the contract never holds user value between calls.
- Reentrancy protection on every mutating entry point and a pause switch for incident response.
- Ownership checks on claim, withdraw, rebalance and burn that ensure a caller can only act on a position they actually own.
- A ten-percent hard cap on every commission rate and rejection of direct ETH transfers.
The findings are low-severity or informational and concern caller-supplied slippage and deadline protection, single-step ownership transfer, and the push-commission pattern, which here cannot lock funds because the user always holds the NFT and can interact with Uniswap directly. We recommend enforcing or clearly documenting non-zero slippage, adopting a two-step ownership transfer, and keeping the treasury as an address that cannot be blacklisted.
Note - This Audit report consists of a security analysis of the Flowlex BetaLPManagerV2 smart contract. This analysis did not include economic analysis of the contract's tokenomics. Moreover, we only audited the main contract for the Flowlex 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
Functions
public
/
State variables
public
/
Total lines
of code
/
Capabilities
Hover on items
/
Functions
public
/
State variables
public
/
Total lines
of code
/
Capabilities
Hover on items
/
Functions
public
/
State variables
public
/
Total lines
of code
/
Capabilities
Hover on items
/
Findings and Audit result
low Issues | 4 findings
Pending
#1 low Issue
Swaps rely only on caller-supplied slippage and have no deadline
Every swap uses a minimum-output value supplied by the caller with no price limit and no deadline, and the mint legs use the current block timestamp as the deadline. A direct caller who passes a zero minimum output gets no slippage protection and is exposed to sandwiching. Because the contract is permissionless and stateless and only ever moves the caller's own funds, a bad parameter harms only that caller, and the backend is expected to compute a tight value, so the impact is limited.
Pending
#2 low Issue
Single-step ownership transfer
Ownership transfers in a single step with only a zero-address check. A typo would lose admin control over pause, pool whitelist and commission settings. User funds are never at risk because the contract custodies nothing and users hold their own NFTs, but the admin role could be permanently lost.
Pending
#3 low Issue
Pre-existing token balances are attributed to the next caller
The claim, withdraw and rebalance paths take commission on the contract's full token balance and refund the remainder to the caller, relying on the balance-zero invariant. Tokens donated to the contract before such a call are partly taken as commission and partly refunded to whoever calls next. The dual-token open avoids this by measuring received amounts via balance deltas. A griefer can only gift value to the treasury and the next caller; nothing is lost by the protocol or existing users and nothing is lockable.
Pending
#4 low Issue
Push-based commission can be denied service by a misbehaving treasury
Commission is pushed to the treasury inside every commission-bearing flow: open transfers the open commission, and claim, withdraw and rebalance transfer commission on both legs. If the treasury cannot receive a token, for example because it is blacklisted on USDC or reverts on receipt, all of these operations revert until the admin changes the treasury. Only burning an empty position, which takes no commission, keeps working. This is an availability denial of service on the manager's own entry points. It is rated low rather than medium because the contract is stateless and the user owns the position NFT: a user can revoke the contract's approval and call the Uniswap position manager directly to collect, decrease liquidity and burn, so no user funds can ever be locked by this condition.
optimization Issues | 3 findings
Pending
#1 optimization Issue
Avoid balance and allowance reads on swap-less paths
The dust refund and approval reset helpers read balances and allowances that are frequently zero on the swap-less paths. Skipping the read when the value is known to be zero would save storage and call overhead.
Pending
#2 optimization Issue
Reuse post-commission balance
The commission helper reads token balances and the dust refund then reads them again immediately after. Reusing the already-read post-commission balance would remove a redundant balance read.
Pending
#3 optimization Issue
Empty revert in receive
The receive function rejects ETH with an empty revert. A named custom error would make the rejection clearer to integrators at negligible cost.
informational Issues | 4 findings
Pending
#1 informational Issue
Unused return values from external calls
The return values of the swap, mint and decrease-liquidity calls are not checked. Value safety is enforced by the minimum-output and minimum-amount parameters, so this is acceptable, but verifying the swap output would add a layer of defense.
Pending
#2 informational Issue
Only standard ERC20 tokens supported, enforced off-chain
Fee-on-transfer and rebasing tokens would break the balance-zero invariant and the swap pre-checks. The function documents this, but there is no on-chain guard preventing such a token from being whitelisted.
Pending
#3 informational Issue
Duplicate interface definitions
The swap router and position manager interfaces used here are duplicated in the vault interface folder. Maintaining two copies of the same interface invites divergence and is a code-quality concern.
Pending
#4 informational Issue
Mixed and unspecific pragmas
The implementation compiles at version 0.8.26 while the interfaces float at a caret range from 0.8.24. Pinning a single version across all files improves clarity and build reproducibility.