Module Deep DivesRisk and Pricing Layer
Risk and Pricing Layer
Oracle normalization, policy storage, throughput limits, and solvency math.
The Risk and Pricing Layer converts market data and governance policy into deterministic execution limits that the hook and collateral manager can enforce on every state transition.
What This Layer Produces
- normalized price and health output:
(priceE18, OracleMode, reasonCode) - per-collateral and global policy config used by execution modules
- throughput caps across tx/block/day windows
- solvency and mint-bound math used before and after transitions
Data Flow
Read this diagram as: oracle health and policy are computed first, then caps and solvency checks are applied before execution is allowed.
Module Map
ChainlinkOracleAdapter
Chainlink-first price output with explicit mode and reason code.
RiskConfig
Permissioned per-collateral and global control plane.
RollingCapManager
Reusable cap-window manager used by CollateralManager for tx/block/day throttling.
SolvencyEngine
Pure math for collateral valuation, mint bounds, and solvency checks.
Operator Checklist
- Confirm each collateral has a valid oracle config and fresh feed path.
- Verify
RiskConfigcaps/ceilings/modes are aligned with current market posture. - Monitor cap-breach and solvency-revert patterns before increasing throughput limits.
- Treat mode transitions (
Normal,Degraded,RedeemOnly,Paused) as production events.