Price Oracle
가격 오라클은 스마트 계약에 외부 시장 데이터를 제공하여 실제 가격 변동에 대응할 수 있도록 합니다.
가격 오라클은 탈중앙화 금융(DeFi) 애플리케이션의 필수 구성 요소입니다. 이는 온체인 스마트 계약과 중앙 집중식 거래소(CEX) 및 탈중앙화 거래소(DEX)와 같은 오프체인 데이터 소스 간의 격차를 해소합니다. 이를 통해 스마트 계약은 다양한 자산에 대한 실시간 가격 피드에 액세스하여 시장 상황에 따라 작업을 트리거할 수 있습니다. 오라클이 없으면 스마트 계약은 격리되어 외부 데이터와 상호 작용할 수 없으며, 이는 기능을 심각하게 제한합니다. 오라클은 또한 이자율 또는 날씨 데이터와 같은 다른 데이터를 제공할 수 있지만, 가격 피드는 DeFi에서 가장 일반적인 사용 사례입니다.
graph LR
Center["Price Oracle"]:::main
Pre_economics["economics"]:::pre --> Center
click Pre_economics "/terms/economics"
Rel_oracles["oracles"]:::related -.-> Center
click Rel_oracles "/terms/oracles"
Rel_smart_contracts["smart-contracts"]:::related -.-> Center
click Rel_smart_contracts "/terms/smart-contracts"
Rel_chainlink["chainlink"]:::related -.-> Center
click Rel_chainlink "/terms/chainlink"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧠 지식 테스트
🧒 5살도 이해할 수 있게 설명
Imagine a [smart contract](/ko/terms/smart-contract) is like a robot that can only follow instructions inside its factory. A price [oracle](/ko/terms/oracle) is like a trusted messenger who goes outside, checks the price of something, and tells the robot the correct price so it can do its job.
🤓 Expert Deep Dive
Price oracles are essential for enabling complex smart contract functionalities such as derivatives trading, lending protocols, stablecoins, and synthetic assets. The security and reliability of a price oracle directly impact the security of the dependent DeFi protocols. Architecturally, DONs often use a Time-Weighted Average Price (TWAP) or Volume-Weighted Average Price (VWAP) calculation across multiple sources to mitigate the impact of single-source manipulation or temporary exchange volatility. Cryptoeconomic incentives, such as staking and slashing mechanisms for oracle node operators, are employed to ensure honest data reporting. Edge cases include handling exchange downtime, API rate limits, and the 'oracle problem' itself – the inherent difficulty in obtaining truly decentralized and manipulation-resistant external data. Advanced oracle designs incorporate threshold signatures, verifiable random functions (VRFs), and cross-chain data feeds to enhance security and utility.