5 ms·
>Because the code of the DAO is a legally-binding contract, how can you argue so as to convince a judge that some behavior of the program is really a bug? Is i
by Nursie 8y ago
>Because the code of the DAO is a legally-binding contract, how can you argue so as to convince a judge that some behavior of the program is really a bug?
Is it? I know that some people intend the code to be law, but I suspect if/when this butts up against the real legal system, we'll see a variety of different interpretations.
Just because someone left their window open doesn't mean you get to take all their stuff.
- hanniabu 8y agoI'd imagine it'd follow the same rules of a faulty traditional legal contract. If the wording of the contract is wrong in a traditional contract, are exploitations valid? Does the decision depend on context?
- 300bps 8y agoReal legal contracts are invalidated all the time for not meeting the basic requirements of a contract: https://www.nolo.com/legal-encyclopedia/contracts-basics-33367.html https://www.nolo.com/legal-encyclopedia/contracts-basics-333...
- howard941 8y agoThere's an equitable remedy for that, a quasi contract, yielding quantum meruit damages if it's any good. https://legaldictionary.net/quasi-contract/ https://legaldictionary.net/quasi-contract/
- sk5t 8y agoLet's be magnanimous and say that the outcome of contract disputes is nondeterministic, and might take into account such factors as the relative powers of the parties, who drafted the contact's provisions, interpretation of judicial precedent, matters of public interest, grammar, etc.
- legohead 8y agoWhat if there's a comment like: // User should only receive positive deposit from this code But someone finds a vulnerability to withdraw instead of deposit. The code allows it, but the comment says that shouldn't be allowed. Did they act in bad faith, with fraud in mind? And to add on to that, could you consider function names as part of documentation/proof? ie. deposit() And to add on to that, what about the actual code: if reasonably prudent person were to read the code and assume it was made to deposit only, is that sufficient? I would assume a judge would say yes.
- gus_massa 8y agoWhat if the comment has a bug? Which part is the legal binding, the code or the comments? Also, the Ethereum blockchain has only the compiled version of the smart contracts that use a bytecode for a simple virtual machine. So the source code (and the comments) disappear before entering the blockchain. [I guess you can add some comments in some dead code that is not optimized away during compilation, making the smart contract burn a small amount of additional gas each time it runs. My guess is that the current compilation just strips the comments.]