The audit of the StandardArbERC20 implementation contract, used via a ClonableBeaconProxy, revealed a Medium risk issue related to ambiguous string parsing logic in the BytesParser library, which could lead to incorrect token metadata. A Low risk issue was identified regarding ERC20 getters that can revert, potentially causing compatibility problems. The contract demonstrates robust access control for critical functions and a secure upgrade pattern.
On-chain security analysis — is it a scam or legit?
Is Lido DAO Token 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 audit of the StandardArbERC20 implementation contract, used via a ClonableBeaconProxy, revealed a Medium risk issue related to ambiguous string parsing logic in the BytesParser library, which could lead to incorrect token metadata.
- Ownership status UNKNOWN
- Proxy contract
- Complex proxy pattern
- LP lock status UNKNOWN — the pool's LP could not be read
Exact factors
- Ownership status UNKNOWN (owner could not be resolved)
- Proxy contract (upgradeable — admin can replace logic)
- Complex proxy pattern (BEACON)
- LP lock status UNKNOWN — the pool's LP could not be read
Security Checklist
as of audit · Sep 25Holders
as of audit · Sep 25, 2026- Contractstreasury, vesting, bridge, staking17.1%
- Walletsanonymous holders, free to sell6.5%
- Everyone elsethe rest of the supply76.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 25, 2026
Liquidity
as of audit · Sep 25- UniswapWETHAnalysed$71.9K70.1%
- UniswapUSDC$23.1K22.6%
- UniswapARB$3.7K3.6%
- PancakeswapWETH$2.1K2.1%
- UniswapUSD₮0$1.5K1.5%
- CamelotwstETH$1040.1%
Show 3 more pairs
Whether the LP tokens are locked could not be determined.
Security Findings
MediumAmbiguous and Inconsistent String Parsing in BytesParser.toString
Not confirmed by static analysis (the model's own reading of the source).M-01
BytesParser.toStringIssue
Not confirmed by static analysis (the model's own reading of the source). The BytesParser.toString function exhibits complex and inconsistent logic for parsing byte arrays into strings. Specifically, it has three distinct branches based on input.length: 1) input.length == 0 returns (false, ""). 2) input.length == 32 checks for null-termination at input[31] and then truncates trailing null bytes. If input[31] is not 0x00, it returns (false, ""). This implies a specific, non-standard encoding for 32-byte strings. 3) else (any other length) directly uses abi.decode(input, (string)). This is problematic because abi.decode expects ABI-encoded data, which includes a length
Fix
Refactor BytesParser.toString to use a single, clear, and standard method for decoding strings from bytes. If raw bytes are expected, implement a robust decoding logic that handles length and padding explicitly, rather than relying on abi.decode for non-ABI-encoded data. Ensure consistency across all possible input lengths and document the expected byte encoding format.
Status
Unresolved
LowERC20 Getters Can Revert
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 name(), symbol(), and decimals() functions in StandardArbERC20 are designed to revert if the corresponding ignoreName, ignoreSymbol, or ignoreDecimals flags are set during bridgeInit. This behavior deviates from the standard ERC20 interface, where these functions are expected to always return a value (even an empty string or zero for decimals if not applicable). Integrations such as wallets, block explorers, or other DeFi protocols often assume these getters will not revert, and their unexpected failure could lead to broken displays, failed transactions, or compatibility issues.
Fix
Consider modifying these getter functions to return default or empty values (e.g., "" for name/symbol, 0 for decimals) instead of reverting when the ignore flag is set. Alternatively, provide comprehensive documentation for all external integrators, clearly outlining this non-standard behavior and its implications.
Status
Unresolved
InfoPartial Re-initialization Possible for availableGetters
Not confirmed by static analysis (the model's own reading of the source).I-01
availableGettersIssue
Not confirmed by static analysis (the model's own reading of the source). The bridgeInit function, which serves as the initializer for the proxy, includes a check require(l2Gateway == address(0), "ALREADY_INIT"); within L2GatewayToken._initialize to prevent re-initialization of l2Gateway and l1Address. However, the availableGetters struct in StandardArbERC20 is set directly within bridgeInit *after* this check and is not protected by a similar one-time initialization guard. This means availableGetters can be modified if bridgeInit is called again by the l2Gateway (which is the msg.sender during initialization). While this only affects the behavior of the ERC20 getters
Fix
Implement a boolean flag (e.g., _initialized) in StandardArbERC20 to ensure that the availableGetters struct can only be set once during the initial bridgeInit call.
Status
Unresolved
InfoUse of extcodesize for isContract Check
Not confirmed by static analysis (the model's own reading of the source).I-02
extcodesize for isContract CheckIssue
Not confirmed by static analysis (the model's own reading of the source). The isContract function in TransferAndCallToken uses extcodesize to determine if an address belongs to a contract. While a common pattern, extcodesize returns zero during a contract's constructor execution, meaning a contract currently being deployed would be incorrectly identified as an EOA. Additionally, it can be manipulated in certain reentrancy scenarios where a contract calls itself during construction. In the context of transferAndCall, this check is performed on the _to address *after* the token transfer, mitigating most immediate risks.
Fix
Be aware of the limitations of extcodesize. For the current use case in transferAndCall, the risk is low. If more robust contract detection is needed in other contexts, consider alternative methods or ensure the timing of the check avoids constructor-related issues.
Status
Unresolved
Analysis
AI Copilotas of audit · Sep 25The contract's architecture (7.1) is well-structured, utilizing OpenZeppelin upgradeable patterns and a Cloneable base for beacon proxy compatibility. Code security (7.2) is generally good, with BytesLib assembly code including bounds checks and transferAndCall preventing reentrancy on token transfers. Access control (7.3) for bridgeMint and bridgeBurn is robustly enforced via the onlyGateway modifier. However, the BytesParser.toString function exhibits ambiguous and inconsistent logic for handling string inputs of different lengths, particularly for 32-byte inputs, which could lead to incorrect token metadata. Additionally, ERC20 getters (name, symbol, decimals) can revert (7.2), deviating from standard behavior and potentially impacting integrations.
The contract functions as an L2 ERC20 token, with its economic model (7.4) being a standard fungible token. Minting and burning are controlled by a designated l2Gateway address, ensuring centralized but controlled supply management. There are no direct governance mechanisms (7.5) within this contract, as it primarily serves as a token representation. External interactions (7.6) are limited to the L2 gateway and potential ITransferAndCallReceiver contracts, with transferAndCall designed to prevent reentrancy on the token itself.
The contract is designed as an implementation for a ClonableBeaconProxy, indicating a robust upgradeability pattern (7.7). The Cloneable base contract correctly distinguishes between the master copy and clones, preventing the master from being self-destructed. The _initialize function ensures that critical state variables are set only once, preventing re-initialization attacks. Standard OpenZeppelin upgradeable contracts are utilized, which generally handle storage slot management effectively.
Review and refactor the BytesParser.toString function to ensure consistent and unambiguous handling of string inputs, especially regarding length and encoding assumptions, to prevent misinterpretation of token metadata.
Consider modifying the name(), symbol(), and decimals() functions to return default or empty values instead of reverting, or provide clear documentation for integrators regarding this non-standard ERC20 behavior. Ensure all external systems interacting with this token are aware of the potential for these getters to revert.
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 25, 202614Low
Score changes are recorded as dated snapshots — history is append-only and cannot be edited.
Would You Like a More Detailed Audit of Lido DAO Token?
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