Security

Audits

Pharaoh Architecture

Pharaoh is built on Ramses V3 Core, which is based on Uniswap V3, with several enhancements. These improvements include dynamic system and protocol fee mechanisms and x(3,3). Ramses V3 Core also introduces a new accounting system to track how much active liquidity each concentrated liquidity position provides.

Pharaoh infrastructure architecture diagram showing the protocol stack built on Ramses V3 Core and Uniswap V3, with dynamic fees, x(3,3) incentive model, and enhanced concentrated liquidity accounting


Audits

Spearbit

Shadow Exchange x(3,3) Audit Report

ReviewerScopeReview periodReport dateFindingsStatus
Cantina ManagedShadow Exchange x(3,3) codebase, commit 49202a1aDec 24-28Jan 20, 202517 total: 0 critical, 1 high, 2 medium, 6 low, 8 informational11 fixed, 6 acknowledged

This report reviewed Shadow Exchange's x(3,3) codebase, not a full Pharaoh-specific deployment. Pharaoh references this review because of its relevance to the x(3,3) architecture. Users should review the report alongside Pharaoh-specific audits, deployed contract addresses, and any protocol-level modifications made after the reviewed commit.


Consensys Diligence

Ramses V3 CLMM Audit Report

ReviewerScopeReview periodReport dateFindingsStatus
Consensys DiligenceRamses V3 CLMM smart contracts, commit 061c142c5f53e4d3d19d9caf8b093a837062cc17July-Sept 2024Aug 202425 total: 1 critical, 2 major, 3 medium, 5 minor, 14 informational/general18 fixed, 2 partially addressed, 5 acknowledged

The Consensys Diligence Ramses V3 audit identified several important concentrated-liquidity accounting issues, including one critical reward-accounting vulnerability that was fixed.

The report also noted limited test coverage and recommended additional testing and fuzzing before production deployment. Pharaoh should clarify which fixes are included in its deployed contracts and whether any acknowledged or partially addressed issues remain relevant to Pharaoh users.


Security Competition

Code4rena

Ramses V3 CLMM Contest Report

ReviewerScopeReview periodReport dateFindingsStatus
Code4renaRamses Exchange smart contract system; 10 Solidity contracts / 2,250 LOCOct 8-29Dec 3, 20242 Medium findings; 0 High; 0 Critical; 12 low / non-critical issues summarizedMitigation review found 1 additional Medium issue, later fixed and verified

The Code4rena Ramses Exchange audit found two Medium-severity issues: one involving inflated gauge rewards when periods are skipped, and one involving incorrect protocol fee calculation in the flash loan function. A follow-up mitigation review found an additional skipped-period issue in swap(), which was fixed and verified. Pharaoh should clarify whether its deployed contracts include the final verified Ramses V3 fixes.


Additional Security Coverage

  • Specialized Testing Review by 100Proof via Code4rena
  • Post-Competition CL Audit by Zenith Mitigation
  • Private Development Review by yAudit
  • Testing Review with Spearbit researchers
Previous
MEV