What is a Murabaha Smart Contract?
Murabaha (Arabic: مرابحة) is an Islamic finance contract in which a seller discloses the cost of an asset and adds a transparent, pre-agreed profit margin. The buyer repays the total in installments - no interest, no compounding, no riba.
Qist moves this centuries-old contract onto the blockchain. Instead of a bank or Islamic finance institution as intermediary, a UUPS upgradeable smart contract on Base handles every step: asset custody, instant delivery to the buyer, payment scheduling, and collateral management. Everything is immutable, auditable, and permissionless.
Five Sharia Principles Enforced in Code
These are not policies - they are hard-coded constraints the contract cannot violate:
Qist vs. Standard DeFi Lending
(Aave, Compound)
- Variable interest rate (APY) = riba
- Loan in cash - no asset sale
- Liquidation based on price drop
- Compounding penalties on late payment
- Not Sharia-compliant
- Fixed profit margin - agreed upfront
- Asset sale - buyer receives ETH/BTC
- Liquidation only on payment default
- Grace period before any liquidation
- Sharia-compliant (Murabaha)
How the Smart Contract Works
Network: Base Blockchain (Ethereum L2)
Base is an Ethereum Layer-2 by Coinbase, offering gas fees under $0.01 per transaction. Low fees make monthly USDC installments economically viable - a critical requirement for micro-finance use cases that would be cost-prohibitive on Ethereum mainnet.
Contract Architecture: UUPS Proxy
The contract uses a UUPS (Universal Upgradeable Proxy Standard) pattern from OpenZeppelin.
The proxy address 0xb2275E4aA2724D875a1a00206b40dD0fF188DEd5 is permanent -
users always interact with the same address. The implementation can be upgraded by the
owner (a 2-of-3 Safe multisig) to fix bugs or add features, without disrupting active positions.
Price Oracles: Chainlink
Collateral ratios and liquidation thresholds are computed using Chainlink price feeds for ETH/USD and BTC/USD. This ensures collateral assessment is based on tamper-proof, decentralized market prices.
Payment Token: USDC Stablecoin
Installments are denominated in USDC, not ETH, to eliminate price uncertainty (gharar) in the payment amount - a core Sharia requirement that the repayment value be known at contract inception.
Automation: Chainlink Automation
Sellers can optionally enable automatic installment collection and auto-liquidation via Chainlink Automation, removing the need for manual intervention while keeping every action transparent and on-chain.
Frequently Asked Questions
What is a Murabaha smart contract?
How is Qist different from conventional DeFi lending?
Is Qist's contract audited and open source?
0xb2275E4aA2724D875a1a00206b40dD0fF188DEd5. The source code is open-source on GitHub. A formal security audit is planned before the public launch. The contract uses audited OpenZeppelin libraries (UUPS proxy, ReentrancyGuard, SafeERC20).Who controls the Qist smart contract?
0x64D738021BAe4cb9a7fd82529C2F94f61d404064. Any upgrade to the implementation contract or change to protocol parameters requires 2 of 3 key holders to sign. This prevents single-key compromise from affecting user funds.