This audit covers the provided Solidity source code for the EnumerableSet and Address libraries, which are OpenZeppelin dependencies. The full source code for the main contract, BalancerGovernanceToken, was not provided for analysis. The audited libraries are well-established and widely used, exhibiting high code quality and adherence to best practices. No critical or high-severity vulnerabilities were identified within the scope of the provided library code.

On-chain security analysis — is it a scam or legit?
Is Balancer 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 →This audit covers the provided Solidity source code for the EnumerableSet and Address libraries, which are OpenZeppelin dependencies.
- Ownership status UNKNOWN
- Mintable supply — no cap found, dilution unbounded
- Top-10 concentration > 30%
- Liquidity not locked, but no owner/deployer address holds LP — market-depth risk, not rug risk
Exact factors
- Ownership status UNKNOWN (owner could not be resolved)
- Mintable supply — no cap found, dilution unbounded
- Top-10 concentration > 30% (66.6% total → 31.0% effective; 7.2% in EOAs, 59.5% in contracts — moderate)
- Liquidity not locked, but no owner/deployer address holds LP — market-depth risk, not rug risk
Security Checklist
as of audit · Sep 4Holders
as of audit · Sep 4, 2026- Contractstreasury, vesting, bridge, staking59.5%
- Walletsanonymous holders, free to sell7.2%
- Everyone elsethe rest of the supply33.4%
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 4, 2026
Liquidity
as of audit · Sep 4- BalancerWETHAnalysed$4.23M99.9%
- Uniswap v3WETH$1.0K0.0%
- Uniswap v2WETH$8320.0%
- BalancerAAVE$4190.0%
- Uniswap v4TrumpBucks$3250.0%
- BalancerUSDC$1740.0%
The 3 remaining pairs hold $15 between them and are not listed.
The LP tokens of the analysed pool are not locked or burned, so whoever holds them can withdraw that liquidity.
0x10e5…19e40xae43…7d070x0875…83e70xb0ea…bc6c0x8322…ff550xc984…f4f30x8da9…117e0xa2f2…b48b0xfcae…fd750x9cf2…cb18No privileged address appears among these holders: the unlocked liquidity sits with independent providers, not with the deployer.
Security Findings
InfoEnumerableSet Order Instability
The EnumerableSet library explicitly states that the order of elements returned by at(index) is not guaranteed and may change upon addition or removal of other elements. This is an inherent design choice for achieving O(1) complexity for add/remove operations (7.1 Architecture).I-01
Issue
The EnumerableSet library explicitly states that the order of elements returned by at(index) is not guaranteed and may change upon addition or removal of other elements. This is an inherent design choice for achieving O(1) complexity for add/remove operations (7.1 Architecture).
Fix
Developers using EnumerableSet must not rely on the order of elements. If a stable order is required, an alternative data structure or additional logic to maintain order should be implemented in the consuming contract.
Status
Unresolved
InfoAddress.isContract Limitations
The Address.isContract function, as noted in its NatSpec, has limitations and cannot reliably determine if an address is an Externally Owned Account (EOA) or a contract under all circumstances (e.g., during contract construction, after self-destruct, or for addresses where a contract will be created) (7.2 Code Security).I-02
Address.isContract LimitationsIssue
The Address.isContract function, as noted in its NatSpec, has limitations and cannot reliably determine if an address is an Externally Owned Account (EOA) or a contract under all circumstances (e.g., during contract construction, after self-destruct, or for addresses where a contract will be created) (7.2 Code Security).
Fix
Avoid using Address.isContract for critical access control or security-sensitive logic where a definitive determination of contract vs. EOA is required. Consider alternative mechanisms like role-based access control or explicit registration for trusted contracts.
Status
Unresolved
InfoPotential Gas Costs for Large Set Iteration
While add and remove operations in EnumerableSet are O(1), iterating over a very large set using the at(index) function in a loop within a transaction could become prohibitively expensive in terms of gas. The _values array grows linearly with the number of elements (7.4 Economic).I-03
Issue
While add and remove operations in EnumerableSet are O(1), iterating over a very large set using the at(index) function in a loop within a transaction could become prohibitively expensive in terms of gas. The _values array grows linearly with the number of elements (7.4 Economic).
Fix
If the consuming contract is expected to manage a very large number of elements and requires frequent iteration, consider off-chain processing or alternative designs that do not require on-chain iteration over the entire set. Implement pagination or limits for on-chain iteration if necessary.
Status
Unresolved
InfoCompiler Version Flexibility
The pragma solidity ^0.6.0 directive allows compilation with any Solidity compiler version from 0.6.0 up to, but not including, 0.7.0. While this offers flexibility, minor compiler behavior changes across patch versions could theoretically lead to subtle differences in bytecode or execution (7.2 Code Security).I-04
Issue
The pragma solidity ^0.6.0 directive allows compilation with any Solidity compiler version from 0.6.0 up to, but not including, 0.7.0. While this offers flexibility, minor compiler behavior changes across patch versions could theoretically lead to subtle differences in bytecode or execution (7.2 Code Security).
Fix
For production deployments of the main contract, it is a best practice to pin to a specific, immutable compiler version (e.g., pragma solidity 0.6.8;) to ensure consistent bytecode generation and behavior across deployments and audits.
Status
Unresolved
InfoExplicit Type Casting for bytes32 Conversion
The library uses explicit type casting, such as bytes32(uint256(value)) for address to bytes32 conversions. This is a standard and correct way to handle these conversions in Solidity, ensuring that the values fit within the bytes32 storage slot (7.2 Code Security).I-05
bytes32 ConversionIssue
The library uses explicit type casting, such as bytes32(uint256(value)) for address to bytes32 conversions. This is a standard and correct way to handle these conversions in Solidity, ensuring that the values fit within the bytes32 storage slot (7.2 Code Security).
Fix
No direct recommendation for the library itself. However, developers integrating or extending this library should be mindful of these type conversions and ensure similar explicit casting is used when converting between types to avoid truncation or unexpected behavior in their custom logic.
Status
Unresolved
Analysis
AI Copilotas of audit · Sep 4The technical review of the EnumerableSet and Address libraries reveals robust and efficient implementations (7.2 Code Security). Both libraries are standard OpenZeppelin components, benefiting from extensive community review and battle-testing. Operations within EnumerableSet are designed for O(1) complexity, ensuring efficient additions and removals. A minor consideration is the explicit warning in Address.isContract regarding its limitations (7.2 Code Security), and the non-guaranteed order of elements in EnumerableSet (7.1 Architecture).
As the provided source code consists solely of utility libraries (EnumerableSet, Address), there are no direct governance or economic mechanisms to assess (7.4 Economic, 7.5 Governance). The libraries themselves do not introduce any economic risks or governance vulnerabilities. Any such risks would reside within the consuming contract that utilizes these libraries.
The provided source code consists of utility libraries and the prefill indicates is_proxy: false, therefore, upgradeability mechanisms are not directly applicable to these components (7.7 Upgrades). The libraries are designed to be immutable once deployed. Any upgradeability concerns would pertain to the main contract that integrates these libraries, which was not provided for review.
It is recommended to conduct a comprehensive security audit of the main BalancerGovernanceToken contract, which utilizes these libraries, to ensure its overall security posture.
Pay close attention to how EnumerableSet's non-guaranteed order is handled and how Address.isContract is used, if at all, in the main contract's logic. Ensure that the main contract pins a specific Solidity compiler version for production deployments to avoid potential inconsistencies.
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.
- Jul 23, 202630Low
- Jul 23, 202629Low
Score changes are recorded as dated snapshots — history is append-only and cannot be edited.
Would You Like a More Detailed Audit of Balancer?
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