Smart Contract Defect
A flaw in deployed contract code lets funds be moved, locked, or destroyed in ways the designers never intended.
仕組み
Smart contracts are programs that hold assets and execute automatically once deployed, and the deployed code is the final authority on who can move what. Defects come from reentrancy, arithmetic that overflows or rounds the wrong way, missing access control on a privileged function, faulty price or share math, and assumptions about how a third-party contract will behave. Because contract state is public and calls are permissionless, anyone can simulate an exploit path cheaply and then execute it in a single transaction, often funded by a flash loan that requires no capital of its own. Audits reduce this risk but do not remove it, because they sample a specific commit at a point in time and cannot cover interactions with contracts that are deployed later.
実際に観測できるもの
Check whether the deployed bytecode matches published verified source, when the implementation last changed, and how much value the contract has held without incident, since value held multiplied by time live is a cruder but harder-to-fake signal than an audit badge. Look at how many independent audits exist, whether findings were fixed or formally accepted, and whether a funded bug bounty with a published scope and payout history is in place. An immutable contract and an upgradeable one carry different failure modes, so establish which you are looking at before reading anything else.
先例
The 2016 DAO exploit on Ethereum used a reentrancy defect to drain a large share of the funds that had been raised, and the response, a contentious hard fork, permanently split the network into Ethereum and Ethereum Classic.
重要性を左右する要因
Materiality depends on how much value the contract custodies, whether it is immutable, how long the current code has been live unchanged, whether a failure would be contained to one pool, and how many other protocols compose on top of it.
関連要因
この対象となる資産
このファクターが適用されるカテゴリに分類される、最大規模の資産。ここへの掲載は、そのファクターが当該種類の資産に関連することを意味するのであり、それが発生したことを意味するものではない。