@iqai/mcp-fraxlend
Version:
Mcp server for Fraxlend access
104 lines (93 loc) • 3.69 kB
JavaScript
export const DEPOSIT_TEMPLATE = `Respond with a JSON object containing deposit information for FraxLend.
Extract the deposit details from the most recent message. If required information is missing, respond with an error.
The response must include:
- pairAddress: The FraxLend pool address
- amount: The deposit amount in base units
Example response:
\`\`\`json
{
"pairAddress": "0x1234567890123456789012345678901234567890",
"amount": "1000000000000000000"
}
\`\`\`
{{recentMessages}}
Extract the deposit information from the most recent message.
Respond with a JSON markdown block containing both pairAddress and amount.`;
export const LEND_TEMPLATE = `Respond with a JSON object containing lending information for FraxLend.
Extract the lending details from the most recent message. If required information is missing, respond with an error.
The response must include:
- pairAddress: The FraxLend pool address
- amount: The lending amount in base units
Example response:
\`\`\`json
{
"pairAddress": "0x1234567890123456789012345678901234567890",
"amount": "1000000000000000000"
}
\`\`\`
{{recentMessages}}
Extract the lending information from the most recent message.
Respond with a JSON markdown block containing both pairAddress and amount.`;
export const WITHDRAW_TEMPLATE = `Respond with a JSON object containing withdrawal information for FraxLend.
Extract the withdrawal details from the most recent message. If required information is missing, respond with an error.
The response must include:
- pairAddress: The FraxLend pool address
- amount: The number of shares to withdraw
Example response:
\`\`\`json
{
"pairAddress": "0x1234567890123456789012345678901234567890",
"amount": "1000000000000000000"
}
\`\`\`
{{recentMessages}}
Extract the withdrawal information from the most recent message.
Respond with a JSON markdown block containing both pairAddress and shares.`;
export const BORROW_TEMPLATE = `Respond with a JSON object containing borrowing information for FraxLend.
Extract the borrowing details from the most recent message. If required information is missing, respond with an error.
The response must include:
- pairAddress: The FraxLend pool address
- borrowAmount: The amount to borrow in base units
- collateralAmount: The amount of collateral in base units
- receiver: The address that will receive the borrowed assets
Example response:
\`\`\`json
{
"pairAddress": "0x1234567890123456789012345678901234567890",
"borrowAmount": "1000000000000000000",
"collateralAmount": "2000000000000000000",
"receiver": "0x1234567890123456789012345678901234567890"
}
\`\`\`
{{recentMessages}}
Extract the borrowing information from the most recent message.
Respond with a JSON markdown block containing pairAddress, borrowAmount, collateralAmount and receiver.`;
export const GET_PAIR_ADDRESS_TEMPLATE = `Respond with a JSON object containing pair information for FraxLend.
Extract the pair details from the most recent message. If no symbols are provided, respond with an error.
The response must include at least one of:
- assetSymbol: The asset token symbol (e.g. FRAX)
- collateralSymbol: The collateral token symbol (e.g. ETH)
- sortByApr: "highest" or "lowest" for APR sorting (optional)
Example responses:
\`\`\`json
{
"assetSymbol": "FRAX",
"sortByApr": "highest"
}
\`\`\`
\`\`\`json
{
"collateralSymbol": "ETH",
"sortByApr": "lowest"
}
\`\`\`
\`\`\`json
{
"assetSymbol": "FRAX",
"collateralSymbol": "ETH"
}
\`\`\`
{{recentMessages}}
Extract the pair information from the most recent message.
Respond with a JSON markdown block containing the available fields.`;
//# sourceMappingURL=templates.js.map