bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 16쪽 중 10쪽
kOracleFactory
ERC7726OracleCloneable
ERC7726OracleFactory
MorphoOracleCloneable
MorphoOracleFactory
PriceCache
OlympusPriceConfig
PriceConfigv2
❱ utils
PolicyAdmin
PolicyEnabler
RoleDefinitions constants
TimelockQueue
BondCallback
BondManager
Burner
Clearinghouse
ContractRegistryAdmin
CrossChainBridge
Emergency
EmissionManager
OlympusHeart
IInverseBondDepo
LegacyBurner
LoanConsolidator
Minter
Operator
Parthenon
IDaiUsds
ReserveMigrator
ReserveWrapper
RolesAdmin
TreasuryCustodian
V1Migrator
VohmVault_NotVested
VohmVault
BurnableERC20
Clearinghouse
YieldRepurchaseFacility
pOLY
❱ proposals
SolanaCCIPBridgeProposal
SolanaCCIPBridgeProposalScript
ContractRegistryProposal
ContractRegistryProposalScript
ConvertibleDepositActivator
ConvertibleDepositProposal
ConvertibleDepositProposalScript
CoolerV2DelegatesForHohmProposal
CoolerV2ProposalScript
CoolerV2Proposal
CoolerV2ProposalScript
EmissionManagerProposal
EmissionManagerProposalScript
LoanConsolidatorProposal
LoanConsolidatorProposalScript
MigrationProposal
MigrationProposalScript
MigrationProposalHelper
OIP_166
OIP_166ProposalScript
OIP_168
OIP_168ProposalScript
OIP_170
OIP_170_Script
OIP_194A
OIP_194AProposalScript
OIP_XXX
OracleProposal
OracleProposalScript
ProposalScript
Actions
Instruction
Permissions
Keycode
TargetNotAContract
InvalidKeycode
KernelAdapter
Module
Policy
Kernel
toKeycode
fromKeycode
ensureValidKeycode
ensureContract
SubKeycode
InvalidSubKeycode
ModuleWithSubmodules
Submodule
ensureValidSubKeycode
fromSubKeycode
toSubKeycode
## /main/security/audits
Audits
Time Period
Project
Auditor
Subject
Report
2021-04
Olympus V1
PeckShield
Olympus V1
Link
2021-05
Olympus V1
Omniscia
Olympus V1
Link
2021-11
Olympus V2
Omniscia
Olympus V2
Link
2022-07
Olympus V3
Spearbit
Olympus V3
Link
2022-10
Olympus V3
KebabSec (Remediation Phase 1)
Olympus V3 remediation
Link
2022-10
Olympus V3
CodeArena
Olympus V3
Link
2022-11
Olympus V3
KebabSec (Remediation Phase 2)
Olympus V3 remediation
Link
2022-11
Olympus V3
KebabSec (Finalization)
Olympus V3 finalization
Link
2023-02
Boosted Liquidity Vault
Kebabsec
Boosted Liquidity Vault
Link
2023-03
Cross-chain
OtterSec
Cross-chain
Link
2023-04
Boosted Liquidity Vault
Sherlock
Boosted Liquidity Vault
Link
2023-06
LendingAMO
Zac Obron
LendingAMO
Link
2023-07
PRICE v1.2
HickupHH3
PRICE v1.2
Link
2023-09
Cooler Loans
Sherlock
Cooler Loans v1
Link
2023-11
RBS
HickupHH3
RBS 1.3 and 1.4
Link
2023-11
PRICE v1.2
Trust
PRICE v1.2
Link
2024-01
RBS
Sherlock
RBS 2.0
Link
2024-02
On-Chain Governance
Sherlock
On-Chain Governance
Link
2024-10
On-Chain Governance
yAudit
On-Chain Governance
Link
2024-11
Cooler Loans
HickupHH3
Loan Consolidator
Link
2024-11
Emissions Manager
yAudit
Emissions Manager and Reserve Migrator
Link
2025-03
hOHM
Guardefy (panprog)
hOHM
Link
2025-03
Cooler Loans
panprog
Cooler Loans v2
Link
2025-03
hOHM
Electisec
hOHM
Link
2025-03
Cooler Loans
Electisec
Cooler Loans v2
Link
2025-03
Cooler Loans
Electisec
Cooler Loans v2 Migrator and Composites
Link
2025-04
hOHM
Nethermind
hOHM
Link
2025-04
Cooler Loans
Nethermind
Cooler Loans v2
Link
2025-05
hOHM
Electisec
hOHM Migrator
Link
2025-06
CCIP Bridge
Electisec
CCIP Bridge
Link
2025-09
Convertible Deposits
Guardian Audits
Convertible Deposits
Link
2025-10
Convertible Deposits
Trust
Convertible Deposits
Link
2026-02
OHM v1 Migrator
Guardian Audits
OHM v1 migration and TokenMigrator defunding
Link
2026-05
PRICE v1.2
Guardian Audits
PRICE v1.2
Link
2026-06
LayerZero Bridge
Guardian Audits
LayerZero Bridge Security Upgrade
Link
## /main/contracts/docs/src/interfaces/AggregatorV2V3Interface.sol/interface.AggregatorV2V3Interface
AggregatorV2V3Interface
Git Source
Inherits:
AggregatorInterface
,
AggregatorV3Interface
## /main/contracts/docs/src/policies/interfaces/price/IChainlinkOracle.sol/interface.IChainlinkOracle
On this page
IChainlinkOracle
Git Source
Inherits:
AggregatorV2V3Interface
Title:
IChainlinkOracle
Author:
OlympusDAO
Interface for a Chainlink-compatible oracle
Functions
baseToken
The base token address
function
baseToken
(
)
external
view
returns
(
address
baseToken_
)
;
Returns
Name
Type
Description
baseToken_
address
The base token address
quoteToken
The quote token address
function
quoteToken
(
)
external
view
returns
(
address
quoteToken_
)
;
Returns
Name
Type
Description
quoteToken_
address
The quote token address
maxAge
The maximum allowed age for cached prices
function
maxAge
(
)
external
view
returns
(
uint48
maxAge_
)
;
Returns
Name
Type
Description
maxAge_
uint48
The configured maximum cache age in seconds
name
The name of the oracle
function
name
(
)
external
view
returns
(
string
memory
name_
)
;
Returns
Name
Type
Description
name_
string
The name
isStale
Returns whether the cached pair round should be considered stale.
function
isStale
(
)
external
view
returns
(
bool
isStale_
)
;
Returns
Name
Type
Description
isStale_
bool
true if the direct pair cache is unset or older than
maxAge()
Errors
ChainlinkOracle_NotEnabled
Thrown when the oracle is not enabled
error
ChainlinkOracle_NotEnabled
(
)
;
ChainlinkOracle_NoDataPresent
Thrown when requested round data is not available
error
ChainlinkOracle_NoDataPresent
(
)
;
ChainlinkOracle_Stale
Thrown when the direct pair cache is older than maxAge
error
ChainlinkOracle_Stale
(
uint256
cachedTimestamp
,
uint256
latestPermissibleTimestamp
)
;
Parameters
Name
Type
Description
cachedTimestamp
uint256
The cached timestamp used for the base/quote pair
latestPermissibleTimestamp
uint256
The oldest permissible timestamp (
block.timestamp - maxAge()
)
Functions
baseToken
quoteToken
maxAge
name
isStale
Errors
ChainlinkOracle_NotEnabled
ChainlinkOracle_NoDataPresent
ChainlinkOracle_Stale
## /main/contracts/docs/src/interfaces/morpho/IOracle.sol/interface.IOracle
On this page
IOracle
Git Source
Title:
IOracle
Author:
Morpho Labs
Interface that oracles used by Morpho must implement.
It is the user's responsibility to select markets with safe oracles.
Note:
contact:
security@morpho.org
Functions
price
Returns the price of 1 asset of collateral token quoted in 1 asset of loan token, scaled by 1e36.
It corresponds to the price of 10
(collateral token decimals) assets of collateral token quoted in
10
(loan token decimals) assets of loan token with
36 + loan token decimals - collateral token decimals
decimals of precision.
function
price
(
)
external
view
returns
(
uint256
)
;
Functions
price
## /main/contracts/docs/src/policies/interfaces/price/IMorphoOracle.sol/interface.IMorphoOracle
On this page
IMorphoOracle
Git Source
Inherits:
IOracle
Title:
IMorphoOracle
Author:
OlympusDAO
Interface for a Morpho oracle
Functions
collateralToken
The collateral token address
function
collateralToken
(
)
external
view
returns
(
address
collateralToken_
)
;
Returns
Name
Type
Description
collateralToken_
address
The collateral token address
loanToken
The loan token address
function
loanToken
(
)
external
view
returns
(
address
loantoken_
)
;
Returns
Name
Type
Description
loantoken_
address
The loan token address
maxAge
The maximum allowed age for cached prices
function
maxAge
(
)
external
view
returns
(
uint48
maxAge_
)
;
Returns
Name
Type
Description
maxAge_
uint48
The configured maximum cache age in seconds
scaleFactor
The current scale factor for the oracle
Uses the active price cache's current asset decimals. For non-contract assets,
decimals are PriceCache metadata rather than token metadata, so this value can
change when
PriceCache.setNonContractAssetMetadata()
updates decimals. Call
PriceCache.assetDecimals()
to confirm the active NCA scale.
function
scaleFactor
(
)
external
view
returns
(
uint256
scaleFactor_
)
;
Returns
Name
Type
Description
scaleFactor_
uint256
The scale factor
name
The name of the oracle
function
name
(
)
external
view
returns
(
string
memory
name_
)
;
Returns
Name
Type
Description
name_
string
The name
isStale
Returns whether the cached feed state is stale.
function
isStale
(
)
external
view
returns
(
bool
isStale_
)
;
Returns
Name
Type
Description
isStale_
bool
Returns true if the pair cache is unset or older than maxAge.
timestamp
Returns the cached timestamp for the collateral/loan pair.
function
timestamp
(
)
external
view
returns
(
uint48
timestamp_
)
;
Returns
Name
Type
Description
timestamp_
uint48
Returns the timestamp of the cached prices
Errors
MorphoOracle_NotEnabled
Thrown when the oracle is not enabled
error
MorphoOracle_NotEnabled
(
)
;
MorphoOracle_InvalidPrice
Thrown when the cached direct-pair USD legs are invalid
error
MorphoOracle_InvalidPrice
(
)
;
MorphoOracle_TokenDecimalsOutOfBounds
Thrown when token decimals result in an invalid scale factor
error
MorphoOracle_TokenDecimalsOutOfBounds
(
address
collateralToken
,
address
loanToken
,
uint8
collateralDecimals
,
uint8
loanDecimals
)
;
Parameters
Name
Type
Description
collateralToken
address
The collateral token address
loanToken
address
The loan token address
collateralDecimals
uint8
The collateral token decimals reported by the active price cache
loanDecimals
uint8
The loan token decimals reported by the active price cache
MorphoOracle_Stale
Thrown when the direct pair cache timestamp is stale
error
MorphoOracle_Stale
(
uint256
cachedTimestamp
,
uint256
latestPermissibleTimestamp
)
;
Parameters
Name
Type
Description
cachedTimestamp
uint256
The cached timestamp used for the collateral/loan pair
latestPermissibleTimestamp
uint256
The oldest permissible timestamp (
block.timestamp - maxAge()
)
Functions
collateralToken
loanToken
maxAge
scaleFactor
name
isStale
timestamp
Errors
MorphoOracle_NotEnabled
MorphoOracle_InvalidPrice
MorphoOracle_TokenDecimalsOutOfBounds
MorphoOracle_Stale
## /main/contracts/docs/src/policies/interfaces/price/IPriceOracle.sol/interface.IPriceOracle
On this page
IPriceOracle
Git Source
Title:
IPriceOracle
Author:
Euler Labs (
https://www.eulerlabs.com/
)
Common PriceOracle interface.
Note:
security-contact:
security@euler.xyz
Functions
name
Get the name of the oracle.
function
name
(
)
external
view
returns
(
string
memory
)
;
Returns
Name
Type
Description
<none>
string
The name of the oracle.
getQuote
One-sided price: How much quote token you would get for inAmount of base token, assuming no price spread.
function
getQuote
(
uint256
inAmount
,
address
base
,
address
quote
)
external
view
returns
(
uint256
outAmount
)
;
Parameters
Name
Type
Description
inAmount
uint256
The amount of
base
to convert.
base
address
The token that is being priced.
quote
address
The token that is the unit of account.
Returns
Name
Type
Description
outAmount
uint256
The amount of
quote
that is equivalent to
inAmount
of
base
.
getQuotes
Two-sided price: How much quote token you would get/spend for selling/buying inAmount of base token.
function
getQuotes
(
uint256
inAmount
,
address
base
,
address
quote
)
external
view
returns
(
uint256
bidOutAmount
,
uint256
askOutAmount
)
;
Parameters
Name
Type
Description
inAmount
uint256
The amount of
base
to convert.
base
address
The token that is being priced.
quote
address
The token that is the unit of account.
Returns
Name
Type
Description
bidOutAmount
uint256
The amount of
quote
you would get for selling
inAmount
of
base
.
askOutAmount
uint256
The amount of
quote
you would spend for buying
inAmount
of
base
.
Functions
name
getQuote
getQuotes
## /main/contracts/docs/src/policies/interfaces/price/IERC7726Oracle.sol/interface.IERC7726Oracle
On this page
IERC7726Oracle
Git Source
Inherits:
IPriceOracle
Title:
IERC7726Oracle
ERC7726 oracle interface extending Euler's common IPriceOracle.
Functions
maxAge
Get the maximum allowed age for cached prices.
function
maxAge
(
)
external
view
returns
(
uint48
maxAge_
)
;
Returns
Name
Type
Description
maxAge_
uint48
The configured maximum cache age in seconds.
isStale
Returns whether the direct pair cache is stale for a given pair.
function
isStale
(
address
base
,
address
quote
)
external
view
returns
(
bool
isStale_
)
;
Parameters
Name
Type
Description
base
address
The address of the base token
quote
address
The address of the quote token
Returns
Name
Type
Description
isStale_
bool
Returns true if the pair cache is unset or older than maxAge.
timestamp
Returns the cached timestamp used for a given base/quote pair.
function
timestamp
(
address
base
,
address
quote
)
external
view
returns
(
uint48
timestamp_
)
;
Parameters
Name
Type
Description
base
address
The address of the base token
quote
address
The address of the quote token
Returns
Name
Type
Description
timestamp_
uint48
The cached UNIX timestamp (
uint48
) for this base/quote pair used to judge staleness.
Errors
ERC7726Oracle_NotEnabled
Thrown when the oracle is not enabled in the factory
error
ERC7726Oracle_NotEnabled
(
)
;
ERC7726Oracle_Stale
Thrown when the direct pair cache is unset or stale
error
ERC7726Oracle_Stale
(
uint256
cachedTimestamp
,
uint256
latestPermissibleTimestamp
)
;
Parameters
Name
Type
Description
cachedTimestamp
uint256
The cached timestamp used for the requested base/quote pair
latestPermissibleTimestamp
uint256
The oldest permissible timestamp (
block.timestamp - maxAge()
), floored to 0 when
block.timestamp <= maxAge()
. A zero value is valid and means there is no lower timestamp bound yet.
Functions
maxAge
isStale
timestamp
Errors
ERC7726Oracle_NotEnabled
ERC7726Oracle_Stale
## /main/for-agents/contract-registry
On this page
Contract Registry
Use the Protocol Visualizer Indexer when an agent needs the current Olympus V3 contract set. The indexer reads the Kernel registry and exposes the installed contracts through GraphQL.
Endpoint
https://protocol-visualizer-indexer-production.up.railway.app/graphql
Status endpoint:
https://protocol-visualizer-indexer-production.up.railway.app/status
Browser visualizer:
https://olympus-protocol-visualizer.up.railway.app/
Supported Chains
The status endpoint returns the indexed chains and latest indexed block. At time of writing, the indexer includes:
Ethereum mainnet:
1
Optimism:
10
Base:
8453
Berachain:
80094
Sepolia:
11155111
Agents should call
/status
before relying on chain coverage or freshness.
Query Active Contracts
Use
isEnabled: true
for the current active protocol surface.
curl
-s -X POST
"https://protocol-visualizer-indexer-production.up.railway.app/graphql"
\
-H
"Content-Type: application/json"
\
-d
'{
"query": "{ contracts(where: { chainId: 1, isEnabled: true }, limit: 100) { items { chainId address name version type isEnabled } } }"
}'
Typical fields:
chainId
: EVM chain ID.
address
: contract address.
name
: contract or module name.
version
: contract version when available.
type
:
kernel
,
module
, or
policy
.
isEnabled
: whether the contract is currently active in the Kernel.
Query All Known Contracts on a Chain
Use this when you need active and deprecated contracts for migration or historical context.
curl
-s -X POST
"https://protocol-visualizer-indexer-production.up.railway.app/graphql"
\
-H
"Content-Type: application/json"
\
-d
'{
"query": "{ contracts(where: { chainId: 1 }, limit: 200) { items { chainId address name version type isEnabled } } }"
}'
Do not describe disabled contracts as active. A disabled contract can still be useful for history, but it is not part of the current Kernel-installed surface.
Minimal Agent Prompt
When handing this to an agent, a minimal safe prompt is:
Fetch Olympus V3 contracts from the Protocol Visualizer Indexer. First call /status. Then query contracts for the requested chain with isEnabled: true. Classify the results by type: kernel, module, policy. Do not use cached addresses for active-state claims. If you need balances, prices, roles, permissions, or parameters, verify them with live contract calls or official indexed sources before answering.
JavaScript Example
const
endpoint
=
"https://protocol-visualizer-indexer-production.up.railway.app/graphql"
;
const
query
=
`
query ActiveContracts($chainId: Int!) {
contracts(where: { chainId: $chainId, isEnabled: true }, limit: 100) {
items {
chainId
address
name
version
type
isEnabled
}
}
}
`
;
const
response
=
await
fetch
(
endpoint
,
{
method
:
"POST"
,
headers
:
{
"Content-Type"
:
"application/json"
}
,
body
:
JSON
.
stringify
(
{
query
,
variables
:
{
chainId
:
1
}
}
)
,
}
)
;
const
{
data
}
=
await
response
.
json
(
)
;
console
.
log
(
data
.
contracts
.
items
)
;
Endpoint
Supported Chains
Query Active Contracts
Query All Known Contracts on a Chain
Minimal Agent Prompt
JavaScript Example
## /main/for-agents/fresh-state
On this page
Finding Fresh Protocol State
After an agent has the right contracts, it still needs the right state source. This page gives a routing guide for common Olympus questions.
Source Selection
Question
Preferred source
Notes
Which contracts make up Olympus V3?
Protocol Visualizer Indexer
Filter
isEnabled: true
for active Kernel state.
What does a contract do?
Contract docs, verified source, ABI
Use generated docs and source code for behavior.
What are current balances?
Direct contract calls or official indexed balances
Do not rely on old docs for balances.
What is the current OHM price or backing?
Official protocol metrics or contract-backed source
Fetch live and cite the source.
What are current APYs or yields?
Venue contract/API plus verification
APYs move frequently; never quote cached values as current.
Which roles or permissions exist?
Kernel, ROLES module, policy permission functions
Verify role and permission state onchain.
What is the status of governance?
Official governance forum, Snapshot, or governance contracts
Verify proposal IDs and lifecycle state before citing.
Contract Classes
Kernel
The Kernel is the root registry and permissioning layer. Use it to understand what has been installed, upgraded, activated, or deactivated.
Modules
Modules hold shared protocol state. Examples include treasury, minter, price, range, registry, and roles modules. Agents should generally avoid assuming users interact with modules directly. Policies usually expose the external workflows.
Policies
Policies implement user-facing or operator-facing workflows and request permissions from modules. Examples include Cooler, Heart, EmissionManager, YieldRepurchaseFacility, RolesAdmin, TreasuryCustodian, and bridge-related policies.
Dependencies and Venues
Dependencies include DEX pools, lending venues, bridge infrastructure, oracle feeds, and external strategy contracts. They may be critical to Olympus operations, but they should not be grouped with Kernel-installed protocol contracts unless the Kernel registry shows them as installed and enabled.
Freshness Checklist
Before an agent produces an answer that includes live protocol facts, it should be able to state:
Which chain ID was queried.
Which source was used for contract discovery.
Whether inactive contracts were excluded or intentionally included.
What block height or timestamp the source reported, if available.
Which source was used for balances, prices, APYs, roles, or governance status.
Any known gaps, fallback sources, or source disagreements.
Common Failure Modes
Avoid these patterns:
Copying an address table without checking whether the contract is still enabled.
Treating a multisig address as a protocol module or policy.
Treating a historical deployment as active because it appears in old docs.
Computing treasury, backing, APY, or supply values from stale cached data.
Mixing dependency contracts with Kernel-installed contracts without labeling the distinction.
Citing governance proposal numbers or status without checking the live governance source.
Source Selection
Contract Classes
Kernel
Modules
Policies
Dependencies and Venues
Freshness Checklist
Common Failure Modes
## /main/for-agents/mcp
📄️
I프로젝트로 돌아가기