The paperExchangeCrypto WikiWikiAcademycrypto.notitiaplatform.com
Sign in
● LIVE
CAC 408 167▲ 0.25%S&P 5007 323,6▼ 0.23%EURO STOXX6 187,8▲ 0.54%BTC/USD63 779▼ 1.29%ETH/USD1 804,6▼ 0.38%EUR/USD1.10▲ 0.19%BRENT89.56▲ 0.44%GOLD3 727,2▼ 0.39%OAT 10Y5.07%▼ 0.73%VIX22.22▼ 9.53%CAC 408 167▲ 0.25%S&P 5007 323,6▼ 0.23%EURO STOXX6 187,8▲ 0.54%BTC/USD63 779▼ 1.29%ETH/USD1 804,6▼ 0.38%EUR/USD1.10▲ 0.19%BRENT89.56▲ 0.44%GOLD3 727,2▼ 0.39%OAT 10Y5.07%▼ 0.73%VIX22.22▼ 9.53%
 
Europe edition
NotitiaCrypto Wiki
Back
Intermediate

Smart contracts

Code that runs itself, with no middleman.

A smart contract is a program stored on the blockchain that runs automatically when its conditions are met.

They enable decentralised apps (dApps): exchanges, lending, insurance - without a trusted intermediary.

Key takeaways
  • Automatic execution
  • No middleman
  • Foundation of dApps
An escrow contract: the rules run by themselves
Buyer10 000 USDCContractfunds lockedSellerif deliveredArbiterif disputedRefundafter 30 daysdeposit
Worked example

Escrow without a notary

A buyer and a seller agree: 10,000 USDC are locked in a contract and released on delivery, confirmed by the buyer or an arbiter.

Assumption · 30-day deadline, after which funds return to the buyer
  1. 01If delivery is confirmed10,000 USDC to the seller
  2. 02If disputedThe arbiter decides
  3. 03If nothing after 30 daysAutomatic refund
The professional’s reflex

The contract does exactly what is written, bugs included. A pro checks the audit, whether the code is upgradeable and who holds the admin keys.

To watchSelected by the newsroom · loads only when you press play
What a smart contract is
BFM Crypto · in French
Smart contracts in 7 minutes
Enissay · in French

Questions and answers

Who writes smart contracts?

Developers, in Solidity on Ethereum or Rust on Solana. Code is usually published and audited before launch.

How can I check a contract before using it?

Check whether it is verified on a block explorer, whether it was audited, how long it has run and who holds the admin keys.

Go further in the Wiki
Smart contractEthereumDeFi (decentralised finance)
✦ Learn by doing

Test your understanding with a quick interactive quiz.

Go further on the technical side · partnerQuantPadTo go from theory to code: auto-graded exercises in Python, SQL and quantitative finance, backtests and mock interviews for quant, data and M&A roles.Train on QuantPad · quantpad.app ↗For your career · partnerKairosKairos finds the roles that fit you every day, scores your CV against each out of 100 and prepares your application.Find my role on Kairos · trykairos.eu ↗
Related concepts
What is a blockchain?BasicsDecentralisationBasicsConsensus: PoW vs PoSIntermediateKeys & walletsBasics