Documentation
    Preparing search index...

    Type Alias SwapConfig

    Options for swapInstructions.

    type SwapConfig = {
        signer?: TransactionSigner<string>;
        slippageToleranceBps?: number;
        whirlpoolDeployment?: WhirlpoolDeployment;
    }
    Index

    Properties

    signer?: TransactionSigner<string>

    The wallet or signer executing the swap. Defaults to the global funder.

    slippageToleranceBps?: number

    Slippage tolerance in basis points (BPS). Defaults to the global setting.

    whirlpoolDeployment?: WhirlpoolDeployment

    The Whirlpool program and config account to target. Defaults to DEFAULT_WHIRLPOOL_DEPLOYMENT if not provided.