Smart Contract
Self-executing code that automatically enforces contract terms on blockchain
Definition
A smart contract is a self-executing contract with terms directly written into code. In DeFi, smart contracts automatically execute transactions when predetermined conditions are met, eliminating the need for intermediaries.
Example
A lending protocol's smart contract automatically liquidates undercollateralized positions without human intervention.
What to check
Treat it as infrastructure: understand what it automates, what trust assumptions remain, and how failures propagate. The main checks are: Code vulnerabilities; Audit failures; Immutability risks.
Risks to Consider
- Code vulnerabilities
- Audit failures
- Immutability risks
Common Questions
Can smart contracts be changed after deployment?
Most smart contracts are immutable once deployed, though some include upgrade mechanisms controlled by governance or admin keys.
What does Smart Contract mean in DeFi?
Smart Contract means Self-executing code that automatically enforces contract terms on blockchain. The useful question is not only the definition, but how the mechanism changes risk, return, liquidity, or governance for the user.
How is Smart Contract used in practice?
A practical example: A lending protocol's smart contract automatically liquidates undercollateralized positions without human intervention.

