bun install
./config/create_damm_v2_customize_pool.json
with the path to your config file, after you have set your config parameters.
rpcUrl
: Solana RPC URL to get data and send transactions.
keypairFilePath
: Keypair file path to send transactions.
dryRun
: Set to false to send transactions.
computeUnitPriceMicroLamports
: CU price in micro lamports unit. For example: 100000.
createBaseToken
: Configuration to create base token.
baseMint
: Base token address if the createBaseToken field is not set.
quoteSymbol
: Quote token symbol, only SOL or USDC is supported.
quoteMint
: Quote token mint, in case the user wants to create a DLMM launch pool with a token other than SOL or USDC.
dynamicAmm
: Dynamic AMM pool configuration.
dynamicAmmV2
: Dynamic AMM V2 pool configuration.
dlmm
: DLMM pool configuration.
alphaVault
: Fcfs or Prorata Alpha Vault configuration.
createBaseToken
and baseMint
cannot be used together.
dynamicAmm
and dlmm
cannot be used together.
mintBaseTokenAmount
: Base token amount to be minted.
baseDecimals
: Base token decimal.
baseAmount
: Base token amount.
quoteAmount
: Quote token amount (Nullable value)
initPrice
: Initial price for the pool
maxPrice
: Max price range setup (null to use default)
poolFees
:
maxBaseFeeBps
: Starting fee in basis points (e.g., 25 = 0.25%). It is base fee if scheduler is not set.
minBaseFeeBps
: Target fee after reduction periods. Should be equal maxBaseFeeBps when fee scheduler is not used.
numberOfPeriod
: Number of periods for fee reduction schedule
totalDuration
: Total duration of the fee schedule (in slots or seconds based on activation type). totalDuration == 0 if the FeeScheduler not be set up.
feeSchedulerMode
: Fee scheduler mode (0 = linear, 1 = exponential)
useDynamicFee
: Whether to use dynamic fee calculation based on price volatility (true/false)
dynamicFeeConfig
: Configuration when useDynamicFee is true if not provide will use as default params in scripts
filterPeriod
: Period for filtering price updates
decayPeriod
: Period for decaying volatility accumulator
reductionFactor
: Factor for reducing the volatility impact
variableFeeControl
: Parameter controlling the variable fee response
maxVolatilityAccumulator
: Maximum value for the volatility accumulator
collectFeeMode
: Fee collection mode (0 = base + quote, 1 = only quote)
activationType
: To activate pool trading base on slot or timestamp.
activationPoint
: To activate pool trading at a point, either slot value or timestamp value base on activationType.
hasAlphaVault
: Whether alpha vault is enabled or not for this pool.
poolType
: dynamic or dlmm pool type.
alphaVaultType
: Alpha Vault type, could be fcfs or prorata
depositingPoint
: Absolute value that, the slot or timestamp that allows deposit depend on the pool activation type.
startVestingPoint
: Absolute value, the slot or timestamp that start vesting depend on the pool activation type.
endVestingPoint
: Absolute value, the slot or timestamp that end vesting depend on the pool activation type.
maxDepositCap
: Maximum deposit cap.
individualDepositingCap
: Individual deposit cap.
escrowFee
: Fee to create stake escrow account.
whitelistMode
: permissionless or permission_with_merkle_proof or permission_with_authority.
depositingPoint
: Absolute value that, the slot or timestamp that allows deposit depend on the pool activation type.
startVestingPoint
: Absolute value, the slot or timestamp that start vesting depend on the pool activation type.
endVestingPoint
: Absolute value, the slot or timestamp that end vesting depend on the pool activation type.
maxBuyingCap
: Maximum buying cap.
escrowFee
: Fee to create stake escrow account.
whitelistMode
: permissionless or permission_with_merkle_proof or permission_with_authority.
createPool
createCustomPool
createCustomPoolWithDynamicConfig
createPosition
addLiquidity
tx
: The transaction to sign and sendpool
: The public key of the created poolposition
: The public key of the initial positiontx
: The transaction to sign and sendpool
: The public key of the created poolposition
: The public key of the initial position