Skip to main content

Contracts Overview

Technical Reference

The contract map.

A modular set of smart contracts organized into functional domains. This page lists each contract group and its role — drill into the sub-sections for full Solidity API references.

Isolated PoolsAdministrationOracleToken Converter
Liquidity Pool contracts

Isolated Liquidity Pools enable permissionless market creation with contained risk profiles.

PoolRegistry

Factory and registry for isolated pools. Manages pool creation, metadata, and the enumeration of active pools and their markets.

Comptroller

Each isolated pool deploys its own Comptroller with independent risk parameters, ensuring risk does not propagate across pools.

RToken

ERC-20-compliant interest-bearing tokens representing supplied assets. Each supported asset has its own RToken (rUSDC, rETH, ...) accruing interest per block.

Administration contracts

Protocol administration and upgrades are managed through these contracts.

Timelock

Enforces a configurable delay between administrative-action approval and execution — giving users time to react to pending changes.

AccessControlManager

Role-based access registry that gates privileged functions across all contracts. Roles are granted with per-contract and per-function granularity.

Oracle contracts

Price feeds drive collateral valuation and liquidation triggers.

ResilientOracle

Aggregates prices from multiple sources, applies validation logic (pivot, fallback) for feed resilience against manipulation.

ChainlinkOracle

Adapter that reads prices from Chainlink data feeds and formats them for the ResilientOracle.

PythOracle

Adapter for Pyth Network price feeds — an additional independent data source for cross-validation.

Token Converter contracts

Token Converters automate the conversion of protocol revenue into target assets.

SingleTokenConverter

Converts accumulated reserve tokens into a target token via a private market mechanism, allowing external participants to fill conversion requests at a protocol-defined rate.

ConverterNetwork

Registry that tracks all converter instances and routes conversion requests to the appropriate converter.

For detailed API references, navigate into the sub-sections for each contract group.