# What should an Arbitrum smart contract audit cover?

URL: https://shield.quillaudits.com/chains/arbitrum/

An Arbitrum smart contract audit should check how your Solidity reads block numbers and time on Arbitrum, how it authenticates messages sent from Ethereum, and what it does while the sequencer is down, on top of the usual DeFi review. QuillShield audits the Solidity code of a Foundry project that targets Arbitrum One, with the retryable ticket and sequencer paths in scope, and checks each later pull request against that audit.

Last updated 3 December 2026. 6 minute read. By the QuillAudits Team.

## What is different about auditing on Arbitrum?

Arbitrum One runs the EVM, so most Solidity behaves as it does on Ethereum. The differences sit in time, in messages from Ethereum and in the sequencer, and code copied from a mainnet deployment carries mainnet assumptions about all three.

- **\`block.number\` is an Ethereum block number.** The [Arbitrum docs on block numbers and time](https://docs.arbitrum.io/time) say `block.number` returns a value close to the block number of the first non-Arbitrum ancestor chain, which is Ethereum for an L2, and that it updates every 13 to 15 seconds. The Arbitrum block number comes from the ArbSys precompile: `ArbSys(100).arbBlockNumber()`.
- **Timestamps can be a day behind.** The [same page](https://docs.arbitrum.io/time) says Arbitrum block timestamps are not linked to the parent chain block and must fall between 24 hours earlier than the current time and one hour in the future.
- **Messages from Ethereum arrive from an alias.** When an L1 contract sends a message, the child chain sees the L1 address plus `0x1111000000000000000000000000000000001111` as the sender. The [Arbitrum messaging docs](https://docs.arbitrum.io/arbos/l1-to-l2-messaging) show the receiving check: undo the alias, then compare with the expected L1 contract.
- **Retryable tickets can run late and out of order.** If the automatic redeem fails, the ticket stays in the retryable buffer for up to one week and anyone can redeem it ([Arbitrum docs](https://docs.arbitrum.io/arbos/l1-to-l2-messaging)). [Trail of Bits showed](https://blog.trailofbits.com/2024/03/01/when-try-try-try-again-leads-to-out-of-order-execution-bugs/) that a later ticket can then run before an earlier one, so each ticket has to be safe on its own.
- **The sequencer can stall, and the way around it is slow.** Users can force a transaction in through the delayed inbox on Ethereum, but the [force inclusion window](https://docs.arbitrum.io/sequencer) is the lesser of a delay buffer of 30 minutes to 48 hours and 7,200 blocks, about 24 hours. Chainlink runs an [L2 sequencer uptime feed](https://docs.chain.link/data-feeds/l2-sequencer-feeds) for Arbitrum, so contracts can hold liquidations until the sequencer has been back for a grace period.

The alias and the redeem order are easiest to see in code. This receiver accepts only its L1 counterpart and gives each ticket a nonce, so redeeming tickets in any order gives the same result.

**Accepts only the aliased L1 counterpart and makes each retryable ticket independent (illustrative, not audited code)** `L1CounterpartReceiver.sol`

```
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

contract L1CounterpartReceiver {
    uint160 internal constant OFFSET = uint160(0x1111000000000000000000000000000000001111);

    address public immutable l1Counterpart;
    mapping(uint256 => bool) public processed;
    mapping(address => uint256) public credited;

    error NotCounterpart(address l2Sender);
    error AlreadyProcessed(uint256 nonce);

    constructor(address l1Counterpart_) {
        l1Counterpart = l1Counterpart_;
    }

    function undoL1ToL2Alias(address l2Address) internal pure returns (address) {
        unchecked {
            return address(uint160(l2Address) - OFFSET);
        }
    }

    /// Called by a retryable ticket. The ticket carries its own nonce and amount,
    /// so it never depends on another ticket having run first.
    function creditFromL1(uint256 nonce, address account, uint256 amount) external {
        if (undoL1ToL2Alias(msg.sender) != l1Counterpart) revert NotCounterpart(msg.sender);
        if (processed[nonce]) revert AlreadyProcessed(nonce);
        processed[nonce] = true;
        credited[account] += amount;
    }
}
```

## What should a reviewer check in Arbitrum code?

- Every use of `block.number` as a clock, deadline or vesting schedule, since it moves with Ethereum blocks, not Arbitrum blocks.
- Code that needs the Arbitrum block number calls `ArbSys(100).arbBlockNumber()`, and its tests provide something at address 100.
- Deadlines, auctions and time windows still work if a block timestamp lands up to 24 hours early or one hour late, the bounds the [Arbitrum docs](https://docs.arbitrum.io/time) give.
- Every function an L1 contract reaches through a retryable ticket undoes the alias before it checks the sender.
- Functions that create more than one retryable ticket: each ticket succeeds or fails on its own, whatever the redeem order.
- Liquidations, auctions and oracle reads check the sequencer uptime feed and wait out a grace period after a restart.
- Batch jobs fit the cap on effective execution, which the [Arbitrum docs](https://docs.arbitrum.io/time) put at 32 million gas, not the much larger nominal block gas limit.

## What happened in the GMX V1 exploit on Arbitrum?

| Protocol | GMX V1 |
| --- | --- |
| Date | 9 July 2025 |
| Chain | Arbitrum |
| Loss | about $42M |
| What happened | A keeper executed the attacker's decrease order, and the OrderBook sent ETH to the attacker's contract. Its fallback opened a WBTC short directly on the Vault, which skipped the update to the global short average price. The skewed average inflated the price of GLP, and the attacker minted GLP and redeemed it at that price. The OrderBook's `nonReentrant` guard only covered the OrderBook. GMX said the exploit affected only GMX V1 and the GLP pool, and BlockSec reports that the attacker later accepted a 10% bounty and returned the rest. |
| Sources | [BlockSec](https://blocksec.com/blog/gmx-incident-cross-contract-reentrancy-bypasses-a-four-year-old-guard), [The Block](https://www.theblock.co/post/361806/hacker-drains-42-million-from-decentralized-perpetual-exchange-gmx) |

A reentrancy guard protects the contract that carries it. GLP's price depended on an average that only the routers updated, so a call straight into the Vault skipped it, and the guard on the OrderBook did not cover that path. The [perpetual DEX audit page](https://shield.quillaudits.com/use-cases/perpetuals-dex/) covers this design in more depth.

## Which protocols hold the most value on Arbitrum?

On 3 December 2026 the [DeFiLlama Arbitrum page](https://defillama.com/chain/Arbitrum) listed Aave V3 first by total value locked. Its top ten also included Spark, GMX, Morpho Blue, USD AI, Fluid, Uniswap and Compound V3, plus the vault curators Steakhouse Financial and Gauntlet.

| Protocol type | Examples on Arbitrum | What to check first |
| --- | --- | --- |
| Lending market | Aave V3, Morpho Blue, Compound V3 | Sequencer uptime check before liquidations, and oracle staleness after a restart |
| Perpetual exchange | GMX | Keeper-executed orders, callbacks to receivers, and pool prices built from several contracts |
| DEX | Uniswap | Slippage bounds, and deadlines measured in timestamps rather than `block.number` |
| Vault curators | Steakhouse Financial, Gauntlet | Share pricing, allocation caps and who can change them |
| L1 to L2 bridge or governance relay | Any protocol bridging from Ethereum | Alias checks, ticket order and the one-week redeem window |

## Which vulnerabilities matter most on Arbitrum?

- [Timestamp dependence](https://shield.quillaudits.com/learn/vulnerabilities/timestamp-dependence/): `block.number` follows Ethereum and a timestamp can land a day early, so time logic needs its own review.
- [Stale oracle prices](https://shield.quillaudits.com/learn/vulnerabilities/stale-oracle-price/): a price that was fresh before a sequencer outage is stale after it, and liquidations restart with the sequencer.
- [Cross-chain message validation](https://shield.quillaudits.com/learn/vulnerabilities/cross-chain-message-validation/): retryable tickets arrive from an aliased sender and can be redeemed late or out of order.
- [Reentrancy](https://shield.quillaudits.com/learn/vulnerabilities/reentrancy/): the GMX V1 loss came from a callback that went around a guard on another contract.
- [Oracle price manipulation](https://shield.quillaudits.com/learn/vulnerabilities/oracle-price-manipulation/): GLP's price came from positions the attacker could open, which made it an input an attacker could move.

## How do you run QuillShield on an Arbitrum project?

1. Keep the contracts in a Foundry project, since QuillShield supports Solidity in Foundry projects today.
2. Connect the GitHub or GitLab.com repository, so the audit can also set up pull request checks. A Foundry .zip upload gets a full audit and no pull request checks.
3. In the audit context, list the L1 contracts that send you retryable tickets, the functions that read `block.number` or call ArbSys, and how the protocol should behave while the sequencer is down.
4. Check the quote and approve it. Nothing is charged before you see the exact price.
5. When the audit completes, read each finding with its lines, impact, fix and proof of concept result, and ask a QuillAudits auditor to verify the ones you want a person to check.
6. Leave on the five pull request checks that come with the audit, and on GitHub make the QuillShield check required on your main branch through branch protection or a ruleset.

A full audit is priced from the lines of Solidity in scope and starts at $49 on the [pricing page](https://shield.quillaudits.com/pricing/). Sign-up is free, and new accounts get $50 in credit, good for up to half of an order.

QuillShield reviews every change between audits and doesn't replace a manual audit. You can [request a manual audit from QuillAudits](https://www.quillaudits.com/smart-contract-audit), and the [Solidity page](https://shield.quillaudits.com/languages/solidity/) lists what QuillShield checks in the language.

**[Start free](https://shield.quillaudits.com/register) and run a full audit of your Arbitrum contracts.**

## FAQ

### What does block.number return on Arbitrum?

A value close to the Ethereum block number, updated every 13 to 15 seconds. For the Arbitrum block number, call `ArbSys(100).arbBlockNumber()`, as the [Arbitrum docs](https://docs.arbitrum.io/time) show.

### Do Arbitrum contracts need a sequencer uptime check?

Contracts that liquidate, auction or read Chainlink prices do. Chainlink's [uptime feed](https://docs.chain.link/data-feeds/l2-sequencer-feeds) answers 0 when the sequencer is up and 1 when it is down, and its example waits a grace period after a restart before it accepts prices.

### How long can a retryable ticket wait before it runs?

Up to one week after a failed automatic redeem, and anyone can redeem it in that time. The lifetime can be extended by paying a fee, and an expired ticket refunds its call value to the refund address ([Arbitrum docs](https://docs.arbitrum.io/arbos/l1-to-l2-messaging)).

### Is an Arbitrum audit priced differently from an Ethereum audit?

No. QuillShield prices a full audit from the lines of Solidity in scope, whatever chain the code targets, and shows the exact price before anything is charged ([pricing](https://shield.quillaudits.com/pricing/)).

## Sources

- [Block gas limit, numbers and time, Arbitrum docs](https://docs.arbitrum.io/time) · checked 3 December 2026
- [Bridging from a parent chain to a child chain, Arbitrum docs](https://docs.arbitrum.io/arbos/l1-to-l2-messaging) · checked 3 December 2026
- [The Sequencer and censorship resistance, Arbitrum docs](https://docs.arbitrum.io/sequencer) · checked 3 December 2026
- [When try, try, try again leads to out-of-order execution bugs, Trail of Bits](https://blog.trailofbits.com/2024/03/01/when-try-try-try-again-leads-to-out-of-order-execution-bugs/) · checked 3 December 2026
- [L2 Sequencer Uptime Feeds, Chainlink docs](https://docs.chain.link/data-feeds/l2-sequencer-feeds) · checked 3 December 2026
- [GMX incident: cross-contract reentrancy bypasses a four-year-old guard, BlockSec](https://blocksec.com/blog/gmx-incident-cross-contract-reentrancy-bypasses-a-four-year-old-guard) · checked 3 December 2026
- [Hacker drains $42 million from decentralized perpetual exchange GMX, The Block](https://www.theblock.co/post/361806/hacker-drains-42-million-from-decentralized-perpetual-exchange-gmx) · checked 3 December 2026
- [Arbitrum chain overview, DeFiLlama](https://defillama.com/chain/Arbitrum) · checked 3 December 2026
