Interface CalculateSwapAmountParams

Parameters for calculating swap amount

interface CalculateSwapAmountParams {
    depositAmount: bigint;
    isToken0: boolean;
    vault: `0x${string}`;
    pool: `0x${string}`;
    ammType: AMMType;
    singleAssetDepositContract: `0x${string}`;
}

Properties

depositAmount: bigint

Amount of tokens being deposited

isToken0: boolean

true if depositing token0, false if token1

vault: `0x${string}`

Address of the vault

pool: `0x${string}`

Address of the pool

ammType: AMMType

Type of AMM

singleAssetDepositContract: `0x${string}`

Address of the single-asset deposit contract