What is a smart contract?
Short answer
A smart contract is a program on the blockchain that does exactly what it says, every time. Like a vending machine: put in the right thing and you get the result, with no company in between.
What smart contracts do
Almost everything in DeFi is a smart contract: swapping coins, lending, earning interest. The code is usually public, so anyone can check what it does.
The catch
Code can have bugs. A contract can also hide powers for its owner, like printing endless coins or blocking sales.
How to stay safe
Use projects that have run safely for years, and check new coins with our Scam checker.
Used in a sentence
The smart contract sent the coins automatically once the swap was paid.