@ubk-labs/ubk-oracle
v0.2.1
Published
Oracle supporting ERC-20 and ERC-4626 assets for use in decentralized financial applications.
Downloads
595
Readme
UBKOracle
The UBKOracle contract provides a unified, gas-efficient, and reliable pricing mechanism for decentralized financial applications. It aggregates on-chain data from three primary sources — manual governance overrides, ERC-4626 vault conversions, and Chainlink price feeds — to produce normalized 1e18 asset prices for both ERC-20 tokens and yield-bearing vaults (e.g., sDAI, sFRAX, sUSDe).
The UBKOracle enforces strict safety guarantees, including staleness thresholds, recursion depth limits, vault rate bounds, and fallback logic. It is designed to operate safely in production environments under a capped-V1 model while remaining modular and extensible for future integrations.
Build Instructions
Install dependencies
npm installCompile contracts
npx hardhat compileRun tests
npx hardhat test
Learn More
For detailed documentation, including architecture, configuration parameters, and integration examples, see the Wiki.
License: MIT
