DeFi Dgn

What is a smart contract?Code that keeps its promise

A smart contract is a small program that lives on a blockchain. It holds money and moves it exactly as written, with no company in between. It is what makes DeFi work.

It works like a vending machine

Put in the right amount and you get what the rules say, every time. No cashier, no opening hours, nobody who can say no. Try it.

Drink machineReady
Price$3
Your coins$0

Put in $3 to get a drink.

In DeFi the drink is a token, a loan or interest, and the machine never closes.

Everyone can read the rules

The code sits on the blockchain, open for anyone to read. Sites like Etherscan show it in plain text and mark it Verified when it matches the code that runs.

The rulesVerified
If someone puts in $3
Give them 1 drink
Keep the $3

Who can change the rules?

Some contracts can be swapped for new code after launch. What matters is who decides and how much warning you get. Pick one, then let the owner raise the price to $30.

Drink machineLocked
Who decidesNobody
WarningNone needed
Price$3

The owner wants $30 per drink. Try it.

Locked, like Liquity, the protocol behind LUSD. With notice, like Aave, where holders vote and every change waits in a timelock.

Check three things before you deposit

You can check any contract in a minute. Our scam checker reads the owner and the waiting time for you.

1

Is the code verified?

Etherscan shows a green check on the Contract tab when the code is public and matches.

2

Can the code be changed?

Etherscan marks upgradeable contracts as a proxy. Locked code is the safest.

3

Who decides, and how long is the wait?

A vote and a wait of days give you time to leave. One team with no wait gives you none.

Smart contracts are the engine of DeFi

Swaps, loans and savings in DeFi all run on smart contracts. The best ones are open, tested for years and hard to change. That is what we look for in every project on our list.

Questions people ask

What is a smart contract, in one sentence?

A program on a blockchain that holds money and follows its written rules on its own, with no company in between.

Who writes smart contracts?

Developers write them and publish them to a blockchain. From then on the code runs by itself, on thousands of computers at once.

Is a smart contract in the cloud?

No. The cloud is the servers of one company, which that company can switch off or change. A smart contract runs on a blockchain, kept by thousands of independent computers, so no single owner can switch it off.

What does upgradeable mean?

The contract points to code that its owner can swap for new code later. It helps fix bugs, and it also means the rules can change after you deposit.

What is a timelock?

A waiting room for changes. A new rule sits in public for a set time, often days, before it goes live, so users can react. A timelock set to zero waits for nothing.

Can a smart contract be hacked?

Bugs in the code can be exploited, which is why audits and time matter. Contracts that have held large sums safely for years give the strongest proof.

Your next step

Get your own DeFi wallet

Start step 1
Check before you buyThe scam checker reads the blockchain in seconds.Check a token