Honest PolygonLessonsGlossaryPricingApp

Lessons › Blockchain and coins

Ethereum and smart contracts

Bitcoin mostly stores transfers. Ethereum also stores programs — smart contracts. A contract is like a vending machine: the rules are written in code, and they are carried out not by a company but by the whole network. Put in a coin, get the item; the rules are the same for everyone and visible to everyone.

Contracts run on the EVM, the network's shared “computer”. Exchanges without a company, loans, stablecoins and tokens are built on it. Every action is a transaction signed with your key.

Yousigneda transactionSmart contractif 1 ETH arrived —issue 2000 tokensotherwise — refusalthe code is visible to all,it cannot be changed*Statebalancesupdated* unless the contract was made upgradeable — then the holder of the admin key can change it.Thousands of nodes run it identically; a bug executes just as precisely as correct code.

A contract's strength is that it cannot be secretly changed or stopped. Its weakness is the same: a bug in the code cannot be fixed quickly either, and the network will execute it with the same precision. Most losses in DeFi are not “hacking the blockchain” but a bug in a particular contract or a stolen administrator key (more on this in module 5).

Since September 2022 Ethereum has run on proof of stake: the switch was called The Merge. The network's electricity use fell by more than 99%.

Question. An exchange contract executed a trade because of a bug in its code — not the way its authors intended. What will the network do?

  1. Cancel the trade
  2. Execute it: the network checks that the code ran correctly, not that the code is correct
  3. Return the money through support
Show the answer

b. Execute it: the network checks that the code ran correctly, not that the code is correct — Nodes only check that a program ran according to its own code. Whether the code itself is good is a question for its authors and auditors. The network has no support desk that will return money.

Facts checked on November 9, 2026.

The whole course is in the app and in the book: Pricing · Book · Test your own idea

Updated November 28, 2026