# ConsenSysDiligence/smart-contract-best-practices

A guide to smart contract security best practices

Repository: https://github.com/ConsenSysDiligence/smart-contract-best-practices
Canonical: https://ross.abutalabs.com/products/smart-contract-best-practices
Homepage: https://consensysdiligence.github.io/smart-contract-best-practices/
Language: HTML
License Family: other
Topics: smart-contracts, ethereum, solidity, security, blockchain, documentation
Last push: 2025-03-28T18:05:41+00:00

## Health v2 (maintenance only)
Score: 38/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 13, release rhythm 35, longevity 100
- inputs: {"age_days": 3718, "days_push": 523, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7570, forks 1466 (observed 2026-08-28T04:10:01.697177+00:00)

## What it is
A community-maintained documentation guide to Ethereum smart contract security best practices, covering known attacks, secure development patterns, and security tools. Built with MkDocs and published as a static documentation site by ConsenSys Diligence.

## Use cases
- learn smart contract security best practices
- understand common solidity vulnerabilities and known attacks
- find security tools for auditing ethereum contracts
- reference secure solidity coding patterns
- find bug bounty programs in the ethereum ecosystem

## When to choose
- you are an intermediate Solidity developer wanting a security baseline
- you need a curated list of known smart contract attack classes
- you want a free reference for secure contract development patterns

## When to avoid
- you need actively updated content - the guide is no longer actively maintained and points to the Smart Contract Security Field Guide
- you need an automated vulnerability scanner rather than documentation
- you need security guidance for non-Ethereum blockchains

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: documentation, security
- domain: blockchain, security, developer-tools, tutorials
- platform: -
- tags: smart-contracts, ethereum, solidity, best-practices, mkdocs, consensys-diligence, web-server

## Member repositories
- ConsenSysDiligence/smart-contract-best-practices (main) score 38

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:01.697177+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:37:05.485491+00:00, confidence not recorded.
  - readme: https://github.com/ConsenSysDiligence/smart-contract-best-practices (fetched 2026-08-28T04:10:01.697177+00:00, sha 661e99e3720a)
  - homepage: https://consensysdiligence.github.io/smart-contract-best-practices/ (fetched 2026-08-29T08:32:17.858593+00:00, sha 5e41f188f103)
- Data as of 2026-08-30T08:39:29.467469+00:00.
