🔹 1. What does payable actually do?

Example:

function deposit() external payable { }   // can accept ETH
function ping() external { }              // cannot accept ETH


🔹 2. Gas differences

When you call a function:

So it’s not that payable is inherently cheaper. It’s that payable avoids the revert gas waste when you send ETH.


🔹 3. Why does it feel more optimized?

Because in Ethereum’s execution:

So when you compare: