/** * Protocol Parameters Module * * Fetches protocol parameters directly from smart contracts. * This ensures LIT actions always use current values set by protocol governance. * * Parameters fetched: * - Liquidation threshold (from LoanOperationsManager) * - Term-specific fees (from TermManager) */ /** * Configuration for protocol parameters module */ export interface ProtocolParametersConfig { termManagerAddress: string; loanOpsManagerAddress: string; liquidationManagerAddress: string; chain: string; chainId: number; rpcUrl?: string; drpcKey?: string; } /** * Term fees structure */ export interface TermFees { originationFeeBps: number; extensionFeeBps: number; } /** * Protocol Parameters Module * * Fetches governance-controlled parameters from smart contracts */ export declare class ProtocolParametersModule { private termManagerAddress; private loanOpsManagerAddress; private liquidationManagerAddress; private chain; private chainId; private rpcUrl?; private drpcKey?; constructor(config: ProtocolParametersConfig); /** * Get liquidation threshold from LoanOperationsManager * * @returns Liquidation threshold in basis points */ getLiquidationThreshold(): Promise; /** * Get term-specific fees from TermManager * * @param termMonths Loan term in months * @returns Term fees (origination and extension) in basis points */ getTermFees(termMonths: number): Promise; /** * Get authorized spends hash from contract * * Fetches the cryptographic hash of authorized Bitcoin spends for a position. * This hash is used in authorization messages to prevent race conditions. * * @param positionId - Position identifier (bytes32) * @returns Authorized spends hash (bytes32) */ getAuthorizedSpendsHash(positionId: string): Promise; /** * Get max escalated threshold from LiquidationManager * * This is the governance-controlled ceiling for expired loan liquidation thresholds. * The quadratic escalation formula uses this as MAX instead of a hardcoded constant. * * @returns Max escalated threshold in basis points */ getMaxEscalatedThreshold(): Promise; } /** * Factory function to create protocol parameters module */ export declare function createProtocolParametersModule(config: ProtocolParametersConfig): ProtocolParametersModule; //# sourceMappingURL=protocol-parameters.module.d.ts.map