Smart Contracts Overview

The technical foundation of the MoniPay protocol: secure, audited, and immutable smart contracts.

MoniPay is built on a set of core smart contracts that handle the routing of funds, fee collection, and social payment escrow. Our contracts are designed for maximum security and transparency.

Philosophy

  • Immutability: Core logic is non-upgradeable to ensure that the rules of the protocol cannot be changed arbitrarily.
  • Efficiency: Optimized for low gas consumption (though relayers pay the gas, efficiency still matters for protocol sustainability).
  • Transparency: All contract code is open-source and verified on block explorers.

Core Contracts

1. MoniPayRouter

The primary entry point for all payments. It handles EIP-712 signature verification, fee distribution (99% to merchant, 1% to treasury), and fund transfers.

2. MoniBotRouter

A specialized contract for social payments. It supports P2P transfers, escrow for unclaimed social payments, and campaign grant distributions.

Contract Addresses

| Chain | MoniPayRouter | MoniBotRouter | | :--- | :--- | :--- | | Base | 0x4048...D2c0 | 0x1234...Abcd | | BSC | 0x55d3...983E | 0x9876...Efgh | | Tempo | 0xTempo...123 | 0xTempo...456 |

Security & Audits

Our contracts have been audited by Quantstamp and Hacken. We also maintain an active bug bounty program on Immunefi.

You can find the full source code and deployment scripts in our GitHub repository.

Upgrade Model

While the core logic is immutable, we use a Proxy Pattern for certain peripheral features to allow for bug fixes and chain-specific optimizations. Any upgrade requires a 48-hour timelock and approval from the MoniPay DAO.