---
title: Writing a Smarter Contract
description: Faulty 'smart' contracts could cost Wall Street millions, if not more.
---

![websites-group](https://articles.marketsmedia.com/hubfs/raw_assets/public/MarketsMedia_August2021/images/new-MMG-01.svg)

[![](https://articles.marketsmedia.com/hubfs/raw_assets/public/MarketsMedia_August2021/images/dropdown-new-marketsmedia-logo.svg)](https://www.marketsmedia.com/)

[![](https://articles.marketsmedia.com/hubfs/raw_assets/public/MarketsMedia_August2021/images/dropdown-menu-traders-redlogo.svg)](https://www.tradersmagazine.com/)

[![](https://articles.marketsmedia.com/hubfs/raw_assets/public/MarketsMedia_August2021/images/dropdown-menu-bestexe-logo.svg)](https://www.bestexecution.net/)

[![](https://articles.marketsmedia.com/hubfs/raw_assets/public/MarketsMedia_August2021/images/dropdown-menu-fidesk-logo.svg)](https://www.fixglobal.com/)

[![](https://articles.marketsmedia.com/hubfs/raw_assets/public/MarketsMedia_August2021/images/dropdown-fixglobal-new-logo.svg)](https://www.fixglobal.com/)

- [*Facebook*](https://www.facebook.com/MarketsMedia/)
- [*Twitter*](https://twitter.com/marketsmedia)
- [*Linkedin*](https://www.linkedin.com/company/markets-media-llc)
- [Newsletter](https://articles.marketsmedia.com/writing-smarter-contract#popup-newsletter)

#### Want the latest news on securities markets -- FREE?

Sign up to receive exclusive articles on topics including:

- Equity market structure
- Profiles of buy-side investment firms
- The evolution of multi-asset-class trading
- Regulation and its implications for markets
- The search for liquidity in fixed income markets
- The convergence of fintech and capital markets

Select one or more newsletters you would like to receive:

menu

[![Markerts media](https://articles.marketsmedia.com/hubfs/raw_assets/public/MarketsMedia_August2021/images/header%20logo.svg "Markerts media")](https://articles.marketsmedia.com/)

- [Institution](https://articles.marketsmedia.com/tag/institution)
- Institution
- Writing a Smarter Contract

Search

- [Home](https://articles.marketsmedia.com/)
- [Trending](https://articles.marketsmedia.com/tag/trending)
- [Featured](https://articles.marketsmedia.com/tag/daily-email-feature)
- [Sectors](https://articles.marketsmedia.com/tag/sectors)
- [From The Markets](https://articles.marketsmedia.com/tag/from-the-markets)
- [AWARDS](https://articles.marketsmedia.com/tag/events)
- [Newsletter](https://awards.marketsmedia.com/newsletter-sign-up)
- [Newsletter](https://articles.marketsmedia.com/writing-smarter-contract#popup-newsletter)

Hide search

Search

- NewsLetter

![](https://articles.marketsmedia.com/hubfs/Imported_Blog_Media/trading-up-occ-iex-select-board-members-citadel-lands-lieblich-573x379-Jul-07-2022-09-34-11-57-AM.jpg)

[ON THE MOVE: Citi Hires Artie Ambrose;...](https://articles.marketsmedia.com/on-the-move-citi-hires-artie-ambrose-natalie-a-brown-to-mesirow)

![](https://articles.marketsmedia.com/hubfs/Imported_Blog_Media/Depositphotos_445735906_L.jpg)

[Trading Adapts to ESG and Sustainable...](https://articles.marketsmedia.com/trading-adapts-to-esg-and-sustainable-investing)

![](https://articles.marketsmedia.com/hubfs/Imported_Blog_Media/iStock-917493152-Jul-07-2022-09-34-19-09-AM.jpg)

[Focus on FX Execution Connectivity](https://articles.marketsmedia.com/focus-on-fx-execution-connectivity)

![](https://articles.marketsmedia.com/hubfs/Imported_Blog_Media/Depositphotos_333839538_L.jpg)

[TRACE Turns 20](https://articles.marketsmedia.com/trace-turns-20)

 08.10.2016

 By Rob Daly

 Institution

# Writing a Smarter Contract

 08.10.2016 By Rob Daly

[Share](https://www.facebook.com/share.php?u=https://articles.marketsmedia.com/writing-smarter-contract)

[Tweet](https://twitter.com/intent/tweet?text=US+ETFs+Have+Record+Net+Inflows&url=https://articles.marketsmedia.com/writing-smarter-contract)

[Share](https://www.linkedin.com/cws/share?url=https://articles.marketsmedia.com/writing-smarter-contract)

Just as poorly written contracts can wind up hurting the parties that use them, poorly coded smart contracts are no different.

The recent failure Distributed Autonomous Organization experiment, which was powered by smart contracts, demonstrated that poorly coded contracts could cost users tens of millions of dollars or more. For those contracts that Wall Street looks to implement, the costs could be staggeringly more.

Writing smart contracts, the computer code that automates various transactions before writing them to the blockchain, is a young discipline that is going through its own growing pains.

Augur, a smart contract based experiment currently in beta, is making sure that the code which eventually will run its distributed Ethereum-based prediction platform, has decided to leverage the National Aeronautics and Space Administration’s and the Motor Industry Software Reliability Association’s expertise in writing secure computer code.

“NASA has done a ton of research on writing code as secure as possible since a crash could cost human lives,” said Joey Krug, co-founder and core developer at Augur.“What they found was that although security audits are helpful, the people who created the code are more likely to find a vulnerability in the system, which makes intuitive sense.”

However, security audits still have a significant role to play and Augur plans to conduct third-party security audits of its code, according to Peronet Deseignes, special operations at Augur.

To help security auditors identify potential vulnerabilities, NASA’s research suggested making the code as easy to understand as possible, added Krug. “It helps the vulnerabilities stick out.”

Another commonly used tactic for securing code is using bug bounties, rewards for discovering and reporting vulnerabilities, which Krug noted that the DAO did not use.

“If they had offered a $10,000 bounty, I think there would have been a greater than 50% chance that someone would have found the vulnerability, he said. “Some academics came close to finding the issue but turned away because they thought since there was so much money involved with the DAO that someone would have found any vulnerabilities. If there was a bounty, they might have spent an additional hour on their analysis and found it.”

If a vulnerability still makes it through to the final code, Krug suggested including the ability to upgrade the smart contract without requiring changes to the underlying blockchain on which it operates.

“If you look at the DAO, they could not upgrade their contract to fix the problem,” he explained. “Instead, they had to have the entire Ethereum network change. If you can upgrade your contracts, it makes it a bit easier to recover from security issues.”

Augur expects to use a portion of the approximately $5.3 million is has raised so far to finish developing its platform and conduct the necessary security audits as well as continuing its legal research and the eventual care and feeding of the platform once it goes into production.

 

**More on Smart Contracts**:

- [Blockchain Reveals Feet of Clay](https://www.marketsmedia.com/blockchain-reveals-feet-clay/)
- [Baby Steps for Smart Contract Standards](https://www.marketsmedia.com/baby-steps-smart-contract-standards/)
- [OPINION: When Smart Contracts Go Bad](https://www.marketsmedia.com/opinion-smart-contracts-bad/)

[Share](https://www.facebook.com/share.php?u=https://articles.marketsmedia.com/writing-smarter-contract)

[Tweet](https://twitter.com/intent/tweet?text=US+ETFs+Have+Record+Net+Inflows&url=https://articles.marketsmedia.com/writing-smarter-contract)

[Share](https://www.linkedin.com/cws/share?url=https://articles.marketsmedia.com/writing-smarter-contract)

![email](https://articles.marketsmedia.com/hubfs/Markets%20Media/email.svg)

### NEWSLETTER SIGN UP

And receive exclusive articles on securities markets

<https://twitter.com/marketsmedia?ref_src=twsrc%5Etfw>

### Related articles

1. [![](https://articles.marketsmedia.com/hs-fs/hubfs/Imported_Blog_Media/EMCA-WINNERS.jpeg?width=376&height=250&name=EMCA-WINNERS.jpeg)](https://articles.marketsmedia.com/european-markets-choice-awards-2022-the-winners)
   
    Latest News
   
   ## [European Markets Choice Awards 2022 – The Winners](https://articles.marketsmedia.com/european-markets-choice-awards-2022-the-winners)
   
   
   
   On 5 June Markets Media held its first in person European Markets Choice Awards event in London.
   
   
   
   07.06.2022 By Markets Media
2. [![](https://articles.marketsmedia.com/hs-fs/hubfs/Imported_Blog_Media/trading-up-occ-iex-select-board-members-citadel-lands-lieblich-573x379-Jul-07-2022-09-34-11-57-AM.jpg?width=376&height=250&name=trading-up-occ-iex-select-board-members-citadel-lands-lieblich-573x379-Jul-07-2022-09-34-11-57-AM.jpg)](https://articles.marketsmedia.com/on-the-move-citi-hires-artie-ambrose-natalie-a-brown-to-mesirow)
   
    Daily Email Feature
   
   ## [ON THE MOVE: Citi Hires Artie Ambrose; Natalie A. Brown to Mesirow](https://articles.marketsmedia.com/on-the-move-citi-hires-artie-ambrose-natalie-a-brown-to-mesirow)
   
   
   
   The weekly recap of new hires, promotions and job changes in capital markets trading and technology.
   
   
   
   07.05.2022 By Anna Lyudvig, Traders Magazine
3. [![](https://articles.marketsmedia.com/hs-fs/hubfs/Imported_Blog_Media/339299_345359258874293_1089957387_o.jpg?width=376&height=250&name=339299_345359258874293_1089957387_o.jpg)](https://articles.marketsmedia.com/summer-trading-2012-10-years-on)
   
    Latest News
   
   ## [Summer Trading 2012, 10 Years On](https://articles.marketsmedia.com/summer-trading-2012-10-years-on)
   
   
   
   A look back at a Markets Media event from a decade ago.
   
   
   
   07.05.2022 By Traders Magazine

[![MarketsMedia](https://articles.marketsmedia.com/hubfs/MarketsMedia.svg "MarketsMedia")](http://marketsmedia.com)

- [About us](https://www.marketsmedia.com/about-us)
- [Careers](https://www.marketsmediagroup.com/careers)
- [Contact](https://www.marketsmediagroup.com/contact)
- [Advertise](https://www.marketsmediagroup.com/advertise)
- [Newsletter](https://awards.marketsmedia.com/newsletter-sign-up)
- [Corporate Site](https://marketsmediagroup.com)

<https://www.facebook.com/MarketsMedia/> <https://twitter.com/marketsmedia> <https://www.linkedin.com/company/markets-media-llc> <https://vimeo.com/marketsmedia>

- © 2026 Markets Media Holdings LLC
- - Terms & Conditions
    - Privacy Policy

 {{ standard\_footer\_includes }}