What is Smart contract?
A program stored on a blockchain that runs exactly as written when someone interacts with it.
Tokens, DEX pools, lending markets and NFTs are all smart contracts. They remove the need for a middleman, but a bug or a malicious function in the code is just as unstoppable as the intended logic, which is why audits and open-source code matter.