UNPKG

@iqai/mcp-fraxlend

Version:
21 lines 911 B
import { LendingStatsService } from "../services/lending-stats.js"; export const lendingStatsTool = { name: "FRAXLEND_GET_STATS", description: "Get lending statistics from FraxLend pools", execute: async () => { console.log("[FRAXLEND_GET_STATS] Called to fetch lending statistics"); try { const lendingStatsService = new LendingStatsService(); const stats = await lendingStatsService.getStats(); return lendingStatsService.formatStats(stats); } catch (error) { const message = error instanceof Error ? error.message : "An unknown error occurred during the fetch."; console.error(`❌ [FRAXLEND_GET_STATS] Error: ${message}`); throw new Error(`❌ Failed to Fetch Lending Statistics: ${message}`); } }, }; //# sourceMappingURL=lendingStatsTool.js.map