@iqai/mcp-bamm
Version:
MCP server for bamm (borrow automated market maker)
19 lines (18 loc) • 556 B
TypeScript
import type { Address } from "viem";
import type { WalletService } from "./wallet.js";
export interface LendParams {
bammAddress: Address;
amount: string;
}
export declare class LendService {
private walletService;
constructor(walletService: WalletService);
/**
* Lend Fraxswap LP tokens to the BAMM contract.
* Reads the LP token address from bamm.pair(), approves the BAMM to spend them if needed,
* and calls bamm.mint() to deposit.
*/
execute(params: LendParams): Promise<{
txHash: string;
}>;
}