All errors

Solidity panics

“panic code 0x11”

Also appears as: “Panic(17)”, “arithmetic underflow or overflow”


What it means

An arithmetic operation went above the maximum or below zero for its number type. Since Solidity 0.8 this check is automatic. For a user, the practical meaning is usually an amount that does not fit: subtracting more than a balance, or a calculation the contract did not expect.

How to fix it

Check the amounts in the transaction against your actual balances and positions. If your inputs look right, the contract hit a state its developers did not anticipate, which is worth reporting to the protocol rather than retrying blindly.

For the full walkthrough of why transactions fail, read the complete error guide.