Olympus 백서

Olympus

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 16쪽 중 7쪽

e ERC20 compliant Decimals : Must have a standard decimal configuration (typically 6 or 18) Liquidity : Sufficient on-chain liquidity for the asset to support deposit volumes Stability : Price stability characteristics suitable for convertible deposits Risk Assessment ​ Smart Contract Risk : Audit status and security history of the asset Counterparty Risk : Dependency on external systems or oracles Market Risk : Volatility and correlation with other protocol assets Regulatory Considerations : Compliance requirements for the asset type Yield Potential ​ Native Yield : Does the asset generate yield on its own? Vault Options : Are there reliable ERC4626 vaults available? Risk-Adjusted Returns : Yield potential relative to risk profile Step 2: Governance Process ​ Request for Comment (RFC) ​ Post a detailed RFC on the Olympus forums Include comprehensive analysis of the proposed asset Outline technical requirements, risk assessment, and expected benefits Gather community feedback and address concerns Olympus Improvement Proposal (OIP) ​ Submit a formal OIP based on the RFC discussion Include finalized technical specifications and implementation details Subject to community review and discussion period Build consensus among key stakeholders OCG Proposal ​ Submit a final OCG proposal for implementation Include all technical specifications and governance parameters Subject to standard Olympus governance voting procedures Requires quorum and approval thresholds as defined in governance parameters Step 3: Implementation ​ Technical Deployment ​ Deploy a new auctioneer contract for the new deposit asset (no code changes needed) OCG Proposal Execution ​ Enable the auctioneer for the new asset Enable the asset on the DepositManager (including the ERC4626 vault for yield) Set up receipt token naming conventions Set the reclaim rate and borrowing parameters Future Considerations ​ Potential Asset Categories ​ Stablecoins : Other major stablecoins with established track records Yield-Bearing Assets : Tokens that generate native yield LSTs : Liquid Staking Tokens with reliable oracle pricing RWA Tokens : Real World Asset tokens with appropriate risk profiles Governance Parameters ​ Each new asset will require individual parameter tuning Risk limits may be set per asset type Yield strategies will be selected based on asset properties 1. Introduction What are Convertible Deposits? Benefits for Users Benefits for the Protocol 2. How Convertible Deposits Work The Auction and Bidding Process Exit Options Key Components 3. The Auction Mechanism How Pricing Works Making a Deposit 4. Managing Your Position Converting to OHM Early Reclaim Full Redemption 5. Limit Orders Overview How Limit Orders Work Creating a Limit Order Order Filling Price Validation Managing Limit Orders Benefits of Limit Orders Technical Details Common Use Cases 6. Practical Guidance Choosing Your Strategy Risk Management Common Mistakes to Avoid 7. Technical Details & FAQ Fee Structures Configuration Common Questions Troubleshooting Getting Help Security Reminders 8. Adding Support for New Assets New Assets Overview Asset Addition Procedure Future Considerations ## /main/overview/oracle-adapters On this page Oracle Adapters PRICE v1.2 has two consumption paths. Protocol policies and newer integrations can read the module directly through functions such as getPrice() and getPriceIn() . Integrations that already expect a standard oracle interface can use adapter contracts instead. The adapters do not add independent price sources. PRICE v1.2 remains the price-resolution system: it resolves configured asset prices from the feeds, strategies, stale-feed checks, and deviation filters described in Asset Configuration . PriceCache and the adapters then expose those configured prices in the format an external integration expects. Adapter Model ​ Component Role PRICE module Resolves configured asset prices using PRICE v1.2 feed and strategy configuration. PriceCache policy Caches explicit asset/quote pair snapshots derived from PRICE v1.2. Chainlink oracle adapter Exposes cached pair snapshots through a Chainlink-compatible latestRoundData() interface. Morpho oracle adapter Exposes cached collateral/loan prices through Morpho's IOracle.price() interface. ERC-7726 oracle adapter Exposes cached pair quotes through ERC-7726 quote semantics for integrations that consume that oracle interface. Oracle factories Deploy adapter clones and manage whether creation and individual oracle instances are enabled. PriceCache ​ PriceCache sits between PRICE v1.2 and the adapter contracts. It reads configured asset prices from PRICE v1.2, stores an asset/quote snapshot with a timestamp, and lets adapters serve that cached pair through the interface their consumer expects. Cache refresh is permissionless for valid configured pairs. A caller can refresh a pair with cachePrice() or use cachePriceIfNecessary() to refresh only when the cached snapshot is older than the requested maximum age. Adapter clones also expose cache helper functions, so keepers and integrations can refresh a pair without calling PriceCache directly. This keeps the integration surface small. Consumers need to understand the pair they are reading, the adapter interface, and the freshness requirement for their market or application. They do not need to know the full PRICE v1.2 strategy graph. Oracle Factories ​ Each adapter type has a factory that deploys new oracle clones for that interface. The factories track which clones they created, whether each clone is enabled, and which PriceCache policy the clone should use. Chainlink and Morpho adapter clones are deployed for a specific token pair and maxAge . For example, a Morpho oracle can be deployed for an OHM collateral token and a USDS loan token. Those clone parameters are immutable: changing the pair or freshness window requires deploying a new oracle clone rather than editing the existing one. ERC-7726 adapters are deployed by maxAge instead of by pair. The adapter can quote different base/quote pairs through the ERC-7726 interface, but the freshness window is still fixed for that clone. maxAge is the maximum acceptable age, in seconds, for the cached pair snapshot used by an adapter. Adapter reads use it to decide whether cached data is fresh enough, and cachePriceIfNecessary() uses it to avoid unnecessary cache writes. A shorter maxAge gives consumers fresher data but requires more frequent cache refreshes. A longer maxAge reduces refresh pressure but allows older cached prices to remain usable. Factories can also disable new oracle creation without disabling existing oracle reads. Separately, each deployed oracle clone can be disabled by its factory. A disabled oracle is still deployed, but adapter reads and cache helper calls treat it as unavailable. The factory itself can also be disabled. When a factory is disabled, its managed oracle clones cannot use that factory for enabled context or cache refreshes. Consumers should treat oracles from a disabled factory the same way they treat individually disabled oracles: unavailable until the factory is re-enabled. Price Reads and Failure Behavior ​ Adapter Price read interface Freshness helpers Chainlink oracle adapter Chainlink-compatible reads through AggregatorV2V3Interface , with adapter metadata in IChainlinkOracle . isStale() , cachePriceIfNecessary() Morpho oracle adapter Morpho IOracle.price() , extended by IMorphoOracle . isStale() , cachePriceIfNecessary() ERC-7726 oracle adapter ERC-7726 quote reads through IPriceOracle.getQuote() and getQuotes() , extended by IERC7726Oracle . isStale(base, quote) , cachePriceIfNecessary(base, quote) Adapters read cached pair snapshots. They do not fall back to live PRICE resolution when the cached snapshot is missing or stale. If the last cached price is older than the adapter's maxAge , price reads revert with the adapter's stale-data error. Consumers can check staleness first, then refresh the cache and retry the read. Cache refreshes can also fail if the underlying PRICE v1.2 configuration cannot produce a valid price. Examples include an asset that is not configured, an invalid pair, stale or deviating underlying feeds, an inactive API3 reader proxy, or a strategy that does not have enough valid inputs. In that case the cache is not updated; if the previous cached snapshot is now stale, the adapter remains unavailable until the PRICE configuration or underlying feeds can produce a fresh valid price. Morpho Lending Market Example ​ A Morpho lending market can use a Morpho oracle adapter to price OHM collateral against a loan asset such as USDS. PRICE v1.2 resolves the configured OHM price and the configured USDS price. PriceCache stores the OHM/USDS pair snapshot. The Morpho oracle adapter reads the cached OHM/USDS snapshot. The Morpho lending market calls price() on the adapter and receives the value in Morpho's expected scale. If the cached snapshot is missing or stale for the adapter's configured freshness requirement, the adapter cannot provide a usable current price. Consumers should refresh the cache at the cadence required by the market or integration. Deployment Status ​ The oracle adapter contracts are documented from the PRICE v1.2 codebase, but their production addresses are pending. The contract address page uses zero address placeholders until deployment addresses are available. Adapter Model PriceCache Oracle Factories Price Reads and Failure Behavior Morpho Lending Market Example Deployment Status ## /main/for-agents/start-here On this page For Agents: Start Here This section is for AI agents, scripts, and integrators that need to understand Olympus from fresh sources instead of relying on stale address lists or cached summaries. Olympus protocol state should be treated as live onchain state first. Documentation, dashboards, subgraphs, and third-party APIs are useful navigation layers, but they are not substitutes for contract state when accuracy matters. Agent Operating Rules ​ Start from the Kernel contract registry when identifying active Olympus V3 contracts. Treat enabled Kernel modules and policies as the current protocol surface. Separate protocol contracts from dependencies and periphery contracts. Fetch prices, balances, APYs, supply, treasury values, and governance state live before quoting them. Use subgraphs and APIs for discovery and aggregation, then verify important claims against the relevant contract or official source. When data sources disagree, say which source you used and why. What Counts as Olympus ​ For Olympus V3, the protocol core is the Kernel plus the modules and policies installed in that Kernel. Kernel : the protocol registry and permissioning root. Modules : internal state/data contracts such as TRSRY , MINTR , PRICE , RANGE , and ROLES . Policies : external-facing logic contracts such as Cooler, Heart, EmissionManager, YieldRepurchaseFacility, and governance/admin policies. These contracts make up the live operating system of Olympus. What Is Not the Protocol Core ​ Do not automatically treat every related address as an Olympus core contract. Multisigs and Safes are operators or administrators, not Kernel-installed modules or policies. DEX pools, lending markets, bridges, routers, and oracle feeds are dependencies or venues. Deployment helpers, migrators, and one-off utilities are periphery unless currently installed in the Kernel. Deprecated contracts should not be described as active unless current onchain state proves they are enabled. Recommended Agent Workflow ​ For most tasks, use this order: Find the active contracts with the Protocol Visualizer Indexer GraphQL API. Classify each contract by type : kernel , module , or policy . Filter for active state with isEnabled: true when you want the current protocol surface. Use contract docs and ABIs to understand what each contract does. Fetch live state from contracts, official subgraphs, or official APIs depending on the metric. Verify externally visible claims such as balances, APYs, prices, roles, and proposal status before citing them. Source Hierarchy ​ Use this hierarchy when choosing sources: Onchain contract state : authoritative for installed contracts, permissions, balances, and parameters. Protocol Visualizer Indexer : authoritative discovery layer for Kernel-installed contracts across supported chains. Official Olympus docs and generated contract docs : human-readable explanations and ABI-level references. Official Olympus subgraphs/APIs : useful for aggregation and historical queries. Block explorers and third-party aggregators : helpful cross-checks, not primary sources for live protocol truth. Agent Operating Rules What Counts as Olympus What Is Not the Protocol Core Recommended Agent Workflow Source Hierarchy ## /main/security/roles On this page Default Framework Olympus V3 uses the Default Framework to configure the protocol’s smart contracts and authorized addresses within the system. More information regarding Default Framework can be found in the Contracts Overview section of the docs. ROLES.sol ​ Module that stores all the active system roles. Kernel.sol ​ Contract registry that manages all the contracts of the system. The Kernel is in charge of module and policy upgradability. Roles executor : Only address that can interact with the Kernel contract. The executor can install and upgrade modules, as well as approve and terminate policies. RolesAdmin.sol ​ Policy that has the ability to grant and revoke roles from ROLES module. Dependencies ROLES module Permissions ROLES.saveRole ROLES.removeRole Roles admin : Only address that can grant/revoke roles by calling grantRole() and revokeRole() respectively. It is also the only address that can propose a newAdmin by calling pushNewAdmin(). On top of that, the newAdmin must accept the role by calling pullNewAdmin(). Emergency.sol ​ Policy that has the ability to shutdown critical system functionalities. Dependencies ROLES module TRSRY module MINTR module Permissions TRSRY.deactivate TRSRY.activate MINTR.deactivate MINTR.activate Roles emergency_shutdown : has the ability to shutdown Treasury withdrawals by calling shutdownWithdrawals() , Minting capabilities by calling shutdownMinting() , or both by calling shutdown() . This role is held by the Emergency Multisig, requiring only 2 confirmations out of 8 signers. emergency_restart : has the ability to restart Treasury withdrawals by calling restartWithdrawals() , Minting capabilities by calling restartMinting() , or both by calling restart() . This role is held by the DAO Multisig, requiring 4 confirmations out of 8 signers. Heart.sol ​ Policy that provides keeper rewards to call the beat() function which orchestrates state updates and fuels Olympus' market operations. Dependencies ROLES module PRICE module Permissions PRICE.updateMovingAverage Roles Only the heart_admin controls the liveliness of the Heart contract, as well as the Operator implementation and the reward tokens paid to keepers. Operator.sol ​ Policy that performs market operations to enforce OlympusDAO's OHM price range guidance policies against a specific reserve asset. These market operations are only performed under certain conditions and up to a specific capacity before the market must stabilize to regenerate more capacity. Dependencies ROLES module TRSRY module MINTR module PRICE module RANGE module Permissions TRSRY.withdrawReserves TRSRY.increaseWithdrawApproval TRSRY.decreaseWithdrawApproval MINTR.mintOhm MINTR.burnOhm MINTR.mintOhm MINTR.increaseMintApproval MINTR.decreaseMintApproval RANGE.updateCapacity RANGE.updateMarket RANGE.updatePrices RANGE.regenerate RANGE.setSpreads RANGE.setThresholdFactor Roles operator_admin : Has the ability to initialize the system. Limited to the DAO Multisig and to a single execution. operator_policy : Has the ability to execute policy-related functions that control the system liveliness and determine the parameters under which the system works. The liveliness functions are critical, since they can activate/deactivate the system, as well as regenerate the Treasury's capacity to perform market operations. operator_operate : Has the ability to make the system work. Executes different core functions depending on the system state. Limited to the Heart contract (triggered by keepers) and the DAO Multisig. operator_reporter : Records a bond purchase and updates capacity accordingly. Limited to the BondCallback contract. TreasuryCustodian.sol ​ Policy that gatekeeps the Treasury. Prevents unauthorized contracts from interacting with the Treasury. Dependencies ROLES module TRSRY module Permissions TRSRY.withdrawReserves TRSRY.increaseWithdrawApproval TRSRY.decreaseWithdrawApproval TRSRY.setDebt TRSRY.increaseDebtorApproval TRSRY.decreaseDebtorApproval Roles custodian : The solely manager of Treasury access. Has the ability to grant/revoke withdrawal/debt capabilities to external contracts. It can also withdraw funds form the Treasury directly. Finally, it can also revoke previous approvals for policies. Limited to the DAO Multisig. BondCallback.sol ​ Policy that handles the calls from the bond markets to gatekeep the interactions with the Treasury. Dependencies ROLES module TRSRY module MINTR module Permissions TRSRY.withdrawReserves TRSRY.increaseWithdrawApproval MINTR.mintOhm MINTR.burnOhm MINTR.increaseMintApproval Roles callback_admin : Has the ability to set he operator contract for the callback to use to report bond purchases. It also has the ability to send tokens in this contract to the Treasury. callback_whitelist : Can whitelist a bond Teller, as well as blacklist specific bond markets in case there's an issue with the Teller. PriceConfig.sol ​ Policy that deals with the price observations and which serves as the price reference that guides the market operations of the system. Dependencies ROLES module PRICE module Permissions PRICE.initialize PRICE.changeMovingAverageDuration PRICE.changeObservationFrequency PRICE.changeUpdateThresholds PRICE.changeMinimumTargetPrice Roles price_admin : Has the ability to configure the observation frequency, as well as determine the moving average duration and the minimum target price. BondManager.sol ​ Policy that manages the auctions and the issuance of OHM Bonds. Dependencies ROLES module TRSRY module MINTR module Permissions MINTR.mintOhm MINTR.burnOhm MINTR.increaseMintApproval MINTR.decreaseMintApproval Roles bondmanager_admin : Has the ability to configure the auction parameters, create new bond markets, finalize them, as well as some emergency functions in case there is a malfunction. Clearinghouse.sol ​ Policy that manages loan workflows including fulfilling requests, extending maturities, claiming defaults and rebalancing funds to/from Olympus Treasury Dependencies ROLES module TRSRY module MINTR module Permissions function requestPermissions() external view override returns (Permissions[] memory requests) { Keycode TRSRY_KEYCODE = toKeycode("TRSRY"); requests = new Permissions[](4); requests[0] = Permissions(TRSRY_KEYCODE, TRSRY.setDebt.selector); requests[1] = Permissions(TRSRY_KEYCODE, TRSRY.increaseWithdrawApproval.selector); requests[2] = Permissions(TRSRY_KEYCODE, TRSRY.withdrawReserves.selector); requests[3] = Permissions(toKeycode("MINTR"), MINTR.burnOhm.selector); } Roles cooler_overseer : ability to call defund() and reactivate() emergency_shutdown : ability to call emergencyShutdown() CrossChainBridge.sol ​ Policy that serves as the message bridge for cross-chain OHM transfers. Uses LayerZero as communication protocol. Dependencies ROLES module MINTR module Permissions MINTR.mintOhm MINTR.burnOhm MINTR.increaseMintApproval Roles bridge_admin : Has the ability to set the bridge configuration, as well as activating and deactivating the bridge. BLVaultManagerLido.sol (
프로젝트로 돌아가기