<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/5-solidity-code-smells-every-dev-should-know-lihwwj3qa" -->

---
title: 5 Solidity Code Smells Every Dev Should Know | daily.dev
description: There are 5 classes of Solidity code smells. If you can detect these code smells, you're more than halfway to finding an exploit to hack the smart contract....
canonical: https://daily.dev/posts/5-solidity-code-smells-every-dev-should-know-lihwwj3qa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 5 Solidity Code Smells Every Dev Should Know | daily.dev
og:description: There are 5 classes of Solidity code smells. If you can detect these code smells, you're more than halfway to finding an exploit to hack the smart contract....
og:url: https://daily.dev/posts/5-solidity-code-smells-every-dev-should-know-lihwwj3qa
og:image: https://api.daily.dev/og/posts/lIhWWJ3qa.png
og:image:alt: 5 Solidity Code Smells Every Dev Should Know
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 5 Solidity Code Smells Every Dev Should Know

**[Hacker Noon](https://daily.dev/sources/hackernoon)** · 1 min read · 10 upvotes · 0 comments

## Summary

There are 5 classes of Solidity code smells. If you can detect these code smells, you're more than halfway to finding an exploit to hack the smart contract. The Cosmos HackAtom is here! Prizes worth $1,000,000 up for grabs.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://hackernoon.com/5-solidity-code-smells-every-dev-should-know>

---

Tags: [#data-privacy](https://daily.dev/tags/data-privacy), [#general-programming](https://daily.dev/tags/general-programming), [#solidity](https://daily.dev/tags/solidity)

[View this post on daily.dev](https://daily.dev/posts/5-solidity-code-smells-every-dev-should-know-lihwwj3qa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"5 Solidity Code Smells Every Dev Should Know","url":"https://daily.dev/posts/5-solidity-code-smells-every-dev-should-know-lihwwj3qa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/5-solidity-code-smells-every-dev-should-know-lihwwj3qa"},"datePublished":"2021-10-19T07:27:44.568Z","dateModified":"2023-11-20T02:17:29.480Z","description":"There are 5 classes of Solidity code smells. If you can detect these code smells, you're more than halfway to finding an exploit to hack the smart contract....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7b3b2833f09cdc0277f0e7dd225d4023","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7b3b2833f09cdc0277f0e7dd225d4023","isAccessibleForFree":true,"articleSection":"Hacker Noon","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker Noon","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hackernoon","url":"https://daily.dev/sources/hackernoon"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/5-solidity-code-smells-every-dev-should-know-lihwwj3qa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"data-privacy,general-programming,solidity","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker Noon","item":"https://daily.dev/sources/hackernoon"},{"@type":"ListItem","position":3,"name":"5 Solidity Code Smells Every Dev Should Know"}]}
```

