@gala-chain/launchpad-mcp-server
Version:
MCP server for Gala Launchpad - 102 tools (pool management, event watchers, GSwap DEX trading, price history, token creation, wallet management, DEX pool discovery, liquidity positions, token locks, locked token queries, composite pool data, cross-chain b
24 lines (22 loc) • 1.31 kB
JavaScript
;
/**
* Fetch Pool Details for Calculation Tool (73% code reduction via factory pattern)
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchPoolDetailsForCalculationTool = void 0;
const tool_factory_js_1 = require("../../utils/tool-factory.js");
exports.fetchPoolDetailsForCalculationTool = (0, tool_factory_js_1.createSimpleTokenFetchTool)({
name: 'gala_launchpad_fetch_pool_details_for_calculation',
description: `Get optimized pool details for local bonding curve calculations.
Returns only essential calculation parameters:
- currentSupply: Current token supply (computed with full precision)
- remainingTokens: Tokens available for purchase
- maxSupply: Maximum token supply
- reverseBondingCurveMaxFeeFactor: Maximum reverse bonding curve fee (normalized to number)
- reverseBondingCurveMinFeeFactor: Minimum reverse bonding curve fee (normalized to number)
- reverseBondingCurveNetFeeFactor: Net fee factor (max - min, for convenience)
This is more efficient than fetchPoolDetails as it returns only fields needed for calculations.
Perfect for use with calculateBuyAmountLocal and calculateSellAmountLocal.`,
handler: (sdk, tokenName) => sdk.fetchPoolDetailsForCalculation(tokenName),
});
//# sourceMappingURL=fetchPoolDetailsForCalculation.js.map