Skip to main content

Security Auditor Asks: What Makes the Contract Secure?

Updated 2 min readMarkdown

What Does the Security Auditor Look For?

A security auditor is an expert who examines smart contracts for vulnerabilities and weaknesses. In Qist's Islamic decentralized finance contract, the auditor looks for guarantees that the contract adheres to Sharia principles and blockchain security. Key focus areas: preventing riba (usury) and gharar (uncertainty), ensuring the seller owns the asset before sale, and that USDC payments are processed without errors. They also verify that the surplus refund function works as described, and the 3-day grace period cannot be extended by design.

Transparency and Auditability

Qist makes the contract open source and verified on BaseScan, meaning anyone can read the code and verify its execution. For the security auditor, this is essential to track every transaction and ensure no backdoors or malicious functions exist. Transparency also means the 2% fee is fixed and immutable, and asset ownership transfers strictly according to the terms.

Preventing Vulnerabilities with USDC

Since Qist uses USDC as the payment currency, the auditor must ensure safe interaction with the USDC contract. They check deposit and withdrawal functions, verifying no reentrancy attacks or rounding errors. They also confirm funds cannot be frozen by any party except as Sharia allows in dispute cases.

Compliance with Islamic Principles

The security auditor at Qist checks not only technical security but also Sharia compliance. They ensure the contract disallows any form of riba (interest) or gharar (uncertainty). For example, the asset price must be predetermined, and the seller must be the actual owner. The surplus refund function is also examined to align with the concept of innocence from riba.

How Qist Implements This

Qist follows best practices in smart contract development and undergoes external audits by specialized firms. The contract is deployed on BaseScan with all functions documented. Security auditors can review the code directly and confirm that constants like total Islamic finance ($4 trillion), Muslim population (1.9 billion), and Bitcoin cap (21 million) are contextual information, not part of the contract. Qist invites auditors to contribute to improving security.

About the author

  • التمويل الإسلامي اللامركزي على Base — بدون بنك، بدون وسيط، بدون ربا. https://qist.info

No comments yet. Be the first to comment.