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

    Interface AddLiquidityPairSimulationInput

    Input parameters for simulating adding liquidity to a trading pair. Used to calculate the optimal distribution of tokens when adding liquidity to a pool.

    interface AddLiquidityPairSimulationInput {
        amount0In: string | number | bigint;
        amount1In: string | number | bigint;
        curveType?: DexCurve;
        feeDenominator: bigint;
        feeNominator: bigint;
        reserve0: string | number | bigint;
        reserve1: string | number | bigint;
    }
    Index

    Properties

    amount0In: string | number | bigint

    Amount of token0 to add to the pool. Can be set to 0 to calculate based on amount1In

    amount1In: string | number | bigint

    Amount of token1 to add to the pool. Can be set to 0 to calculate based on amount0In

    curveType?: DexCurve

    Direction indicator for calculations (true for token0->token1, false for token1->token0)

    feeDenominator: bigint

    Fee denominator for calculating fees

    feeNominator: bigint

    Fee numerator for calculating fees (use 0 for typical LP additions)

    reserve0: string | number | bigint

    Current reserve of token0 in the pool

    reserve1: string | number | bigint

    Current reserve of token1 in the pool