/** * Price Source Configuration */ export interface PriceSourceConfig { name: string; fetchPrice: () => Promise; priority: number; } /** * Price Oracle Module Interface * * Defines the contract for price oracle implementations. */ export interface IPriceOracle { /** * Get BTC price in USD with 8 decimals via strict 3-of-3 consensus. * * All three configured providers must respond successfully and agree within * 1% (`(hi - lo) / lo <= 0.01`); returns the median. Any single provider * failure aborts the call — there is no fallback, no outlier filtering, and * no lenient survivor median. See the H-2 audit fix for context. * * @returns BTC price (e.g., 10000000000000n = $100,000) */ getBTCPrice(): Promise; } //# sourceMappingURL=price-oracle.i.d.ts.map