ChainlinkOracle
ChainlinkOracle: EUR/USD Price Infrastructure
π Overview
ποΈ Contract Architecture
contract ChainlinkOracle is
IChainlinkOracle,
Initializable,
AccessControlUpgradeable,
PausableUpgradeable,
UUPSUpgradeableFeed
Variable
Description
π Roles & Permissions
Role
Responsibilities
βοΈ Security Constants
π Configuration Variables
Price Bounds
Variable
Type
Description
Default Value
State Variables
Variable
Type
Description
π Price Retrieval
getEurUsdPrice Function
Circuit Breaker
β±οΈ Timestamp Validation
Manipulation Protection
Method
Advantage
Limitation
π§ͺ Dev Mode
What is Dev Mode?
Validation
Normal Mode
Dev Mode
π¨ Circuit Breaker
Triggers
Manual Trigger
Reset
π USDC Validation
π View Functions
Oracle Status
Health Check
Price Info
βοΈ Configuration
Update Price Bounds
Update USDC Tolerance
Update Price Feeds
π‘οΈ Security
Implemented Protections
Protection
Description
Recovery Functions
π Events
π Example Scenarios
Scenario 1: Normal Price
Scenario 2: Stale Price
Scenario 3: Flash Crash
Scenario 4: USDC Depeg
π Protocol Integration
Last updated