import { Address, PublicActions } from 'viem'; import { FanControllerAbi, PUMPUM_FAN_CONTROLLER_ADDRESS, } from '@prex0/prex-structs'; export async function quoteExecuteOrder( client: PublicActions, communityToken: Address, isBuy: boolean, isExactIn: boolean, amount: bigint ) { return await client.readContract({ address: PUMPUM_FAN_CONTROLLER_ADDRESS, abi: FanControllerAbi, functionName: 'quoteExecuteOrder', args: [communityToken, isBuy, isExactIn, amount], }); }