@soku-dex/sdk
    Preparing search index...

    Type Alias SwapSimulationInput

    Parameters for swap simulation

    type SwapSimulationInput = {
        amountIn: string | number | bigint;
        curveType: DexCurve;
        directionIn: boolean;
        feeDenominator: bigint;
        feeNominator: bigint;
        reserve0: string | number | bigint;
        reserve1: string | number | bigint;
    }
    Index

    Properties

    amountIn: string | number | bigint

    Amount of input token to swap

    curveType: DexCurve

    Curve type used by the pool

    directionIn: boolean

    Direction flag: true for token0 to token1 swap, false for token1 to token0 swap

    feeDenominator: bigint

    Fee denominator for the swap

    feeNominator: bigint

    Fee nominator for the swap

    reserve0: string | number | bigint

    Current reserve of token0

    reserve1: string | number | bigint

    Current reserve of token1