Create Meteora DLMM Pool
The Create Meteora DLMM Pool
tool, part of AgentiPy, is designed for creating Dynamic Liquidity Market Maker (DLMM) pools on the Meteora platform, which operates on the Solana blockchain. It allows for the setup of customizable, permissionless liquidity pools.
Functionality
This tool is implemented in the MeteoraManager
class.
Key Methods:
create_meteora_dlmm_pool(agent: SolanaAgentKit, bin_step: int, token_a_mint: PublicKey, token_b_mint: PublicKey, initial_price: float, price_rounding_up: bool, fee_bps: int, activation_type: ActivationType, has_alpha_vault: bool, activation_point: Optional[int]) -> str
:Takes
SolanaAgentKit
instance, pool configuration parameters likebin_step
, mint addresses fortoken_a_mint
andtoken_b_mint
,initial_price
for the pool,fee_bps
(basis points),activation_type
(Timestamp or Slot), and other Meteora-specific parameters.It fetches mint information for both tokens to determine decimals.
Calculates the initial price per lamport and the activation bin ID based on the inputs.
Uses
DLMM.create_customizable_permissionless_lb_pair
from AgentiPy's Meteora DLMM utilities to construct the transaction for creating the pool.Sends and confirms the transaction using the agent's wallet.
Returns the transaction signature as a string.
Note: This tool is for advanced users familiar with DeFi concepts, liquidity pools, and the Meteora DLMM protocol. Incorrect parameters can lead to pool misconfiguration or loss of funds. Always test extensively on a devnet environment first. Refer to the official Meteora documentation for details on parameters like bin_step
, fee_bps
, and activation conditions.
Source Code
You can find the source code for this tool on GitHub: https://github.com/niceberginc/agentipy/blob/main/agentipy/tools/create_meteora_dlmm_pool.py
Last updated