← Risks in Crypto
08.3

Risks in Crypto

A contract cannot tell that its rule is wrong. It runs it anyway.

Smart contracts replace part of human trust with code. Code is not automatically free of faults — and the automation that makes a contract useful carries out a faulty rule exactly as faithfully as a correct one.

Risk sources you will sort3
Human approvals in between0
Safety promised by “on-chain”none
02

The problem

One contract, two branches. Press the safe one first.

This contract holds balances for four wallets. Its two rules were written by people, and one of the two conditions is wrong. Nothing in the system knows that.

Contract · deployed

IDLE
The rule, as written

Two branches. One handles a deposit, one handles a withdrawal. Each fires the moment its own condition is satisfied, with nobody standing in between.

Executions run0
Times the code hesitated0
Balances it applied to0

Nothing has run yet. Press Deposit and watch the contract work correctly.

03

The definition

Three things “it runs on-chain” does not mean.

Tap each card for what is actually being claimed — and what is not.

04

Hands on

Automated code becomes a risk on three routes.

Five situations, three risk sources. Tap each situation and place it.

Pick a situation

—

Each of the five belongs to exactly one of three sources: a bug in the logic, an external dependency, or the fact that a live contract is hard to correct.

Risk sources uncovered 0 / 3
05

The bridge

What raises the risk, what lowers it, and what settles it.

Five statements, in order. Only the last one is unconditional.

That is the honest shape of it. Capital at stake raises what a fault costs; complexity and dependencies raise the chance of one; audits, tests and transparent architecture lower the risk — and none of it is a guarantee. Security is not something a contract inherits from the chain it runs on. When weaknesses like these are actively exploited rather than merely present, that has its own name and its own lesson: hacks, which is where the section goes next.

06

Check yourself

Five questions.

Answers come straight from this lesson. Submitting completes it.