# What should an Avalanche smart contract audit cover?

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

An Avalanche smart contract audit should check your Solidity against the chain it actually runs on: the C-Chain, which changed how it executes blocks and charges gas in the Helicon upgrade, or an Avalanche L1 whose precompiles can mint the native token and enforce allow lists. QuillShield audits the Solidity code of a Foundry project that targets the C-Chain or an EVM L1, and checks every later pull request against the security graph from that audit.

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

## What is different about auditing on Avalanche?

Avalanche runs Solidity on more than one EVM. The C-Chain is the shared EVM chain of the Primary Network, and an Avalanche L1 is a separate network that can switch on features the C-Chain doesn't have. The first question in an audit is which one the code targets.

- **Helicon changed how the C-Chain executes and charges.** Helicon activated on mainnet on 22 September 2026 at 15:00 UTC ([Avalanche docs](https://build.avax.network/docs/primary-network/helicon-upgrade)). Under ACP-194, consensus orders transactions and execution follows through a queue, and the [Continuous Execution page](https://build.avax.network/docs/primary-network/continuous-execution) says a transaction pays for the gas it uses but at least half of its gas limit. ACP-283 makes the minimum gas price dynamic, set by stake-weighted validator preference.
- **Acceptance is final.** The [consensus docs](https://build.avax.network/docs/primary-network/avalanche-consensus) say Snowman gives sub-second, immutable finality with about 1 second of acceptance latency, and that acceptance and rejection are irreversible. The same page calls it probabilistically safe up to a safety threshold.
- **An L1 can change the EVM through precompiles.** An [Avalanche L1](https://build.avax.network/docs/avalanche-l1s) is a sovereign network that sets its own membership and token economics. Its Subnet-EVM precompiles can mint more of the native token and keep allow lists, and the [precompile docs](https://build.avax.network/docs/avalanche-l1s/custom-precompiles) give each allow list Admin, Manager and Enabled roles. Those stateful precompiles don't exist in the default EVM.
- **Cross-chain messages run on Warp.** Assets move between chains with Avalanche Interchain Messaging (ICM) and Interchain Token Transfer (ICTT), which run on Avalanche Warp Messaging, available since the Durango upgrade in March 2024 ([Avalanche L1 docs](https://build.avax.network/docs/avalanche-l1s)).

## What should a reviewer check on the C-Chain or an L1?

- Relayers, meta-transaction forwarders and contracts that refund gas set tight gas limits, since a C-Chain transaction pays for at least half of its gas limit after Helicon.
- Fee logic and keepers don't assume a fixed minimum gas price, since ACP-283 made it dynamic.
- Bridges and keepers wait for acceptance, not a confirmation count copied from Ethereum, and the team knows the consensus safety threshold it relies on.
- On an L1, list who holds the Admin and Manager roles on each precompile allow list and on native minting, and what each could do to your users.
- ICM and ICTT receivers check the source chain and the sending contract before they act on a message, and reject a message they have already handled.
- Tests run against the L1's real precompile configuration, because stateful precompiles exist only on Avalanche EVMs and a default EVM test misses them.

## What happened in the Platypus Finance exploit on Avalanche?

| Protocol | Platypus Finance |
| --- | --- |
| Date | 16 February 2023 |
| Chain | Avalanche |
| Loss | $9.19M across three attacks, by the team's count |
| What happened | At 7:16 pm UTC an attacker took a 44 million USDC flash loan from Aave, deposited it into Platypus and borrowed the USP stablecoin against the LP position. They then called `emergencyWithdraw`, which only checked whether the user was solvent, so it returned the collateral while the USP debt stayed open. With help from BlockSec, the team recovered 2.4 million USDC from the attack contract. |
| Sources | [Platypus Finance](https://medium.com/platypus-finance/update-on-recovery-efforts-after-the-exploitation-a8f64acd5aa5), [Immunefi](https://medium.com/immunefi/hack-analysis-platypus-finance-february-2023-d11fce37d861) |

An emergency exit is a second withdrawal path, and it needs the same debt check as the normal one. [Immunefi's analysis](https://medium.com/immunefi/hack-analysis-platypus-finance-february-2023-d11fce37d861) notes that any user with debt could withdraw all of their collateral LP tokens without paying back USP. Lending code on the C-Chain deserves that review on every path that releases collateral.

## Which Avalanche deployments need which checks?

The docs note that an Avalanche L1, unlike the C-Chain, can be single-tenant and dedicated to one application, so the team that writes the contracts may also control the chain settings around them. C-Chain apps share one chain and pay gas in its native token.

| Deployment or protocol | What to check first on Avalanche |
| --- | --- |
| App-specific L1 | Precompile roles, native minting and allow lists, and who can change the chain configuration |
| C-Chain DeFi | Gas limits after Helicon, the dynamic minimum gas price, and oracle reads |
| ICM or ICTT bridge | Source chain and sender checks, and replay protection for each message |
| Relayer or gas sponsor | Who pays when a transaction is charged half its gas limit, and how limits are set |

## Which vulnerabilities matter most on Avalanche?

- [Cross-chain message validation](https://shield.quillaudits.com/learn/vulnerabilities/cross-chain-message-validation/): ICM and ICTT messages arrive over Warp, and the receiver decides which chains and senders to trust.
- [Access control](https://shield.quillaudits.com/learn/vulnerabilities/access-control/): on an L1, precompile allow lists and native minting are access control the app inherits from the chain.
- Centralization risk: an L1 sets its own validators and precompile admins, so a few keys can change what every app on it can do.
- Gas griefing: after Helicon a transaction pays for at least half of its gas limit, so a caller who sets a high limit can make a relayer pay for gas that was never used.
- [Flash loan attacks](https://shield.quillaudits.com/learn/vulnerabilities/flash-loan-attack/): the Platypus attacker started from 44 million USDC borrowed for a single transaction.

## How do you run QuillShield on Avalanche contracts?

1. Keep the C-Chain or L1 contracts in a Foundry project, since QuillShield supports Solidity in Foundry projects today.
2. Import the repository from GitHub or GitLab.com, or upload a Foundry .zip of up to 50 MiB, a folder or a single .sol file. Uploads get the audit without pull request checks.
3. In the audit context, say whether the code targets the C-Chain or an L1, list the precompiles the L1 enables and who holds their roles, and name the ICM or ICTT contracts the code trusts.
4. Approve the quote. Sign-up is free, and nothing is charged before you see the exact price.
5. After the audit completes, each finding that survived a separate reviewer agent shows the exact lines, the impact, a recommended fix and the proof of concept result.
6. With a GitHub or GitLab.com repo, keep pull request checks on so new message handlers and role changes are compared with the audit's security graph.

Pricing follows the lines of Solidity in scope, from $49 for a full audit, on the [pricing page](https://shield.quillaudits.com/pricing/). New accounts get $50 in credit, good for up to half of an order.

Code that isn't Solidity, such as a chain's own node software, is outside QuillShield's scope, so [request a manual audit from QuillAudits](https://www.quillaudits.com/smart-contract-audit) for it. The [Solidity page](https://shield.quillaudits.com/languages/solidity/) lists what QuillShield checks.

**[Run a full audit](https://shield.quillaudits.com/register) of your Avalanche contracts and the roles they depend on.**

## FAQ

### What did the Helicon upgrade change for C-Chain contracts?

It activated on 22 September 2026. Consensus and execution are now decoupled through a queue, a transaction pays for at least half of its gas limit, and the minimum gas price became dynamic ([Avalanche docs](https://build.avax.network/docs/primary-network/helicon-upgrade)).

### Do Avalanche L1s run the same EVM as the C-Chain?

Both are Avalanche EVMs with stateful precompiles that the default EVM lacks, and an L1 can enable more, such as native minting and allow lists ([precompile docs](https://build.avax.network/docs/avalanche-l1s/custom-precompiles)).

### How final is a C-Chain transaction?

Snowman acceptance is final and irreversible, with about 1 second of acceptance latency, according to the [Avalanche consensus docs](https://build.avax.network/docs/primary-network/avalanche-consensus).

## Sources

- [Helicon upgrade, Avalanche docs](https://build.avax.network/docs/primary-network/helicon-upgrade) · checked 3 December 2026
- [Continuous Execution, Avalanche docs](https://build.avax.network/docs/primary-network/continuous-execution) · checked 3 December 2026
- [Avalanche consensus, Avalanche docs](https://build.avax.network/docs/primary-network/avalanche-consensus) · checked 3 December 2026
- [Avalanche L1s, Avalanche docs](https://build.avax.network/docs/avalanche-l1s) · checked 3 December 2026
- [Custom precompiles, Avalanche docs](https://build.avax.network/docs/avalanche-l1s/custom-precompiles) · checked 3 December 2026
- [Update on Recovery Efforts After The Exploitation, Platypus Finance](https://medium.com/platypus-finance/update-on-recovery-efforts-after-the-exploitation-a8f64acd5aa5) · checked 3 December 2026
- [Hack Analysis: Platypus Finance, February 2023, Immunefi](https://medium.com/immunefi/hack-analysis-platypus-finance-february-2023-d11fce37d861) · checked 3 December 2026
