🌟 Photo Sharing Tips: How to Stand Out and Win?
1.Highlight Gate Elements: Include Gate logo, app screens, merchandise or event collab products.
2.Keep it Clear: Use bright, focused photos with simple backgrounds. Show Gate moments in daily life, travel, sports, etc.
3.Add Creative Flair: Creative shots, vlogs, hand-drawn art, or DIY works will stand out! Try a special [You and Gate] pose.
4.Share Your Story: Sincere captions about your memories, growth, or wishes with Gate add an extra touch and impress the judges.
5.Share on Multiple Platforms: Posting on Twitter (X) boosts your exposure an
Analysis of Solana Ecosystem AMM Products: Comparison of CPMM, CLMM, and DLMM
Overview of AMM Products in the Web3 Industry and Analysis of Implementation in the Solana Ecosystem
In the current Web3 industry landscape, DeFi-related products dominate. Among them, the automated market maker (AMM), as a key component, is an important force driving innovation in Web3 finance. This article will introduce several important AMM implementations in the Solana ecosystem, aiming to provide reference for liquidity providers (LP) in choosing investment strategies.
CPMM
Constant Product Market Maker ( CPMM ) is one of the most basic AMM implementations. Taking an AMM based on constant product launched by a trading platform as an example, its core principle is to maintain a fixed product of the supply of two tokens in the pool: X * Y = k.
When users add liquidity to the pool, the CPMM will automatically create a linked account for the user's wallet and issue LP Tokens to prove the user's share in the pool. When extracting liquidity, the corresponding LP Tokens will be destroyed.
The on-chain program of CPMM is developed using Anchor. When users perform token swaps, it will trigger swap-related instructions. Taking the exchange of USDC and TRUMP tokens as an example, the transaction will be conducted through the TRUMP-USDC pool.
In the swap operation, the specific amount of target tokens that can be exchanged is calculated using the constant product formula:
(x + Δx)(y - Δy) = xy
After conversion, obtained:
Δy = (Δx * y) / (x + Δx)
Please note that this calculation does not include transaction fees, which have already been deducted in the preliminary logic.
CLMM
The centralized liquidity market maker (CLMM) launched by a certain trading platform is similar to a certain DEX V3, where each token pair has multiple fee tiers, allowing the creation of corresponding tiered pools. CLMM inherits concepts such as ticks, multiple fees, and concentrated liquidity.
Unlike CPMM, due to the characteristics of the Solana chain, CLMM does not need to deploy a contract separately for each pool, nor is there a concept of a factory contract.
CLMM allows LPs to select a price range when injecting funds, and the funds are only distributed within that range. LPs can also provide unilateral liquidity, similar to limit orders in traditional finance.
For pools with small fluctuations, LPs tend to choose a smaller range; for pools with significant fluctuations, they choose a larger range to reduce impermanent loss.
Concentrated liquidity can improve capital utilization, but it requires a higher financial awareness from LPs. LPs need to actively manage liquidity; otherwise, they may suffer significant impermanent loss.
DLMM
Dynamic Liquidity Market Maker ( DLMM ) is an AMM product launched by a certain platform, which is a variant of a certain DEX V3 and is similar to CLMM. DLMM introduces the concept of Bin, where the pool starts from the base price, and every small interval is considered as a Bin step.
Transactions within the same Bin enjoy zero slippage, which is beneficial for increasing trading volume and success rate. Theoretically, LPs can earn more trading fees.
In DLMM, the currently activated Bin contains two tokens, while other Bins are distributed on both sides and only contain a single token. Price changes are achieved through the switching of the activated Bin.
When LP provides liquidity, DLMM offers three strategies:
Summary
AMM, as an important component of the Web3 financial sector, promotes the development of decentralized finance through its unique mechanisms. With technological advancements and ecological improvements, AMM is expected to play a greater role in the future, further transforming the landscape of traditional finance.