/** * Slippage calculation helpers for Router calls. * * Two paths: * - Bonding curve: uses Helper3.tryBuy to estimate output * - PancakeSwap (graduated): uses PancakeRouter.getAmountsOut * * Without proper minimums, passing 0n makes every tx fully sandwichable. */ import type { Address, PublicClient } from 'viem'; /** * Compute slippage-protected minimums for volume (buy+sell round-trip). * * Tries bonding-curve estimation first (tryBuy). If that fails (token has * graduated), falls back to PancakeSwap getAmountsOut. If both fail, * returns 0n (no protection — last resort). */ export declare function computeVolumeSlippage(client: PublicClient, token: Address, bnbWei: bigint, slippageBps: number): Promise<{ minTokenOut: bigint; minBnbBack: bigint; }>; /** * Compute minTokenOut for a turnover (buy-only, no sell leg). * Same dual-path logic as computeVolumeSlippage but only the buy side. */ export declare function computeTurnoverSlippage(client: PublicClient, token: Address, bnbWei: bigint, slippageBps: number): Promise<{ minTokenOut: bigint; }>; //# sourceMappingURL=slippage.d.ts.map