All errors

Solidity panics

“panic code 0x12”

Also appears as: “Panic(18)”, “division or modulo by zero”


What it means

The contract divided by zero. A user cannot normally cause this with inputs: it usually means the contract read a zero where it expected a value, an empty pool, a price feed returning zero, an uninitialised parameter.

How to fix it

Retry later, in case a price feed or pool state was momentarily empty. If it persists, this is a contract-side issue: report it to the protocol with the transaction hash.

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