Skip to content
Smart contracts Audit finding Advanced

System will not work anymore after EIP-4758

Lambda Follow

Originally disclosed on Code4rena

Submitted by Lambda, also found by Chom

DepositReceiver.sol#L25

After EIP-4758, the SELFDESTRUCT op code will no longer be available. According to the EIP, “The only use that breaks is where a contract is re-created at the same address using CREATE2 (after a SELFDESTRUCT)“. Axelar is exactly such an application, the current deposit system will no longer work.

Recommended Mitigation Steps

To avoid that Axelar simply stops working one day, the architecture should be changed. Instead of generating addresses for every user, the user could directly interact with the deposit service and the deposit service would need to keep track of funds and provide refunds directly.

re1ro (Axelar) commented:

Very good spot. We will address this.

re1ro (Axelar) acknowledged

Alex the Entreprenerd (judge) commented:

The warden has shown a plausible upgrade path for Ethereum that will remove the SELFDESTRUCT opcode, bricking the DepositReceiver functionality.

If the fork was in place today, the code would be broken, and the finding should be of high severity.

Because the fork is not in place, and no clear timeline is defined for “The Purge”, I think Medium Severity to be correct.


The original report as published on Code4rena, by Lambda. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A medium-severity smart contracts bug in Axelar Network. Code4rena made it public on 6 October 2022. Found in the 2022-07-axelar audit contest (finding M-03).

About Smart contracts

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Smart contracts?

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.

More by Lambda

View all

64 more disclosed reports, best first.

More from Axelar Network

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Smart contract vulnerabilities

The lesson behind this report.

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.