A smart contract is code stored on a blockchain that runs exactly as written. It can hold funds and enforce rules automatically, but bugs are permanent, so audits matter.
Article · Web3 · Intermediate
Smart contracts explained
Programs that run on chain, and what they can and cannot do.