import { Address, PublicClient } from 'viem'; /** Identifies one Hub asset to read the drawn rate for. */ export interface AssetDrawnRateRequest { /** Hub contract address (from the reserve's `hub` field). */ hub: Address; /** Asset identifier on that Hub (from the reserve's `assetId` field). */ assetId: number; } export interface AssetDrawnRateResult { hub: Address; assetId: number; /** Annual borrow (drawn) rate in RAY (1e27 = 100%), or null on revert. */ rateRay: bigint | null; error: Error | null; } /** * Per-asset isolated read of `getAssetDrawnRate` for display lists (one bad * asset ≠ whole list blank). One multicall round-trip instead of one * `eth_call` per asset, with `allowFailure: true` so a single reverting asset * isolates to its own error entry. A network-level multicall failure marks * every asset failed rather than throwing — callers (display hooks) rely on * always getting a per-asset result array. * * The returned rate is the linear annual rate in RAY (the Hub accrues * interest as `rate * dt / SECONDS_PER_YEAR`), i.e. an APR, not an APY. */ export declare function getAssetDrawnRatesSafe(publicClient: PublicClient, requests: AssetDrawnRateRequest[]): Promise; //# sourceMappingURL=hub.d.ts.map