- Core concentrated-liquidity contracts
- Core discrete-liquidity contracts and periphery
- Periphery routing and position-management contracts
- Governance, emissions, and fee-routing contracts
xRAM, VoteModule, Voter, FeeDistributor, and AccessHub. Older descriptions that refer to veNFT-style voting are not accurate for the code in this repository.
Core
Factory ReferenceThe CL core consists of:
RamsesV3FactoryRamsesV3PoolDeployerRamsesV3Pool- Core pool interfaces and math/oracle libraries
DLMM
DLMM Contract Architecture
Robinhood DLMM DeploymentsThe DLMM stack consists of:
DLMMFactoryDLMMPooland its embeddedDLMMTokenshare accountingDLMMRouterandDLMMQuoterDLMMFeeCollector- Optional
DLMMRewarderhooks andDLMMRewarderFactory
Voter. Rewarder references describe optional architecture.
Periphery
Swap Router Reference
Position Manager ReferenceThe periphery adds safer and more ergonomic integration points for swaps, NFT positions, quoting, tick inspection, and helper libraries.
Gauges and Fee Routing
GaugeV3 Reference
FeeCollector Reference
FeeDistributor Reference
Sarcophagus Reference & Searcher GuideThis layer handles:
- Weekly emissions for active gauges
- Protocol-fee collection from CL pools
- Protocol-fee collection from DLMM pools
- Periodized distribution of fee and incentive tokens to voter addresses
- Permissionless exchange of r33 for selected ERC-20 protocol-fee balances on supported deployments
Governance
Voter Reference
Minter Reference
VoteModule Reference
AccessHub ReferenceGovernance responsibilities are split across several contracts:
- VoteModule holds staked xRAM and exposes voting power, delegation, and admin permissions.
- Voter records votes by owner address, creates gauges, routes emissions, and coordinates reward claims.
- Minter advances the weekly period and mints capped emissions.
- AccessHub is the operational control layer for fees, gauges, xRAM/R33 administration, and treasury/timelock actions.
Tokens
xRAM Reference
R33 / hyperRAM Reference
- xRAM is a transfer-restricted ERC20 governance token created from RAM via
convertEmissionsToken(). - R33 is the source contract for the liquid governance wrapper; the ERC4626 token it mints is named
hyperRAM.
