Home › Learn › DeFi Safety
DeFi Safety

What is Smart contract?

A program deployed on a blockchain that executes automatically when its conditions are met — the code behind every DeFi protocol and token.

How it works

Once deployed it runs as written; there's no support line to reverse a bad transaction. That's why verifying the actual deployed code — not the marketing site — is the core safety step before you interact.

Example

In practiceBefore using a protocol you read its verified source on a block explorer to confirm the code matches what's claimed.

How do I check a contract is legit?

Read the verified source on a block explorer, check who controls it (owner/upgrade rights), and never trust an unverified contract with funds.

Go deeper: DeFi From Scratch

The complete, step-by-step guide — every command, config, and the reasoning behind it.

Get the guide