Ponimania City on Solana: Handmade on the pool CPMM for Kuznitsa
Proportation of the centralized mining market (CPMM) on the solana with the Mintb field in the “Createpool Cpmm” field you can knead what your tokens are crossed. This is an existence as a marker.
In this state, we will pursue a mint a, woven with B Bether B S a and Gast Shag for the Choh Resolution for Research this problem.
Method “CreatePool CPMM”
The CreatePool CPMM CreatePool Method uses solana CPMM Bassin. Trebed Trr Parameter: substrate markers (a), your markers (B) and an add -on quit (C). The method appears “the object of the pool, which is assured by information about the creation of the pool.
`Solan
PUB FN CREATEPOOL (
CPMMCONFIG: Boolconfig,
) -> pool {
// Create new CPMM Bassin with the specified parameters
}
Obtan tokens
Createpool CPMM SOLANA methods at the CreatePool Meeting Agorrhythm Summens Markers for Creating ADUST PULOL. This algorithm is more than a few factor, in Volume:
1
Tokene word : Basic marker (A), your marker (b) and ticked tokens (c) should be coated with the word.
- Tenatz token : as a, so and B Odinakova.
3
Delivery token : Substanty College tokens should be the same.
Solana Production Field “Minta” with gastrointestinal values, automatic generates the sub -field field “Mintb”, which reveals your marker. However, if these fields are taken away (then there is a “Mintb” becomes “Minta”), the algorithm of the component markers are not gave by the resulting Result.
Why mint B Flow?
There are several ones, by which Mint B can be taken away with Mint A:
* The non -sophistication token : if Mintb
and ‘Minta are different names, the algorithm of the markers seizes them.
* Tenatz token
: Solana is trabbing that the “minta”, and “mint” had one -legged parties. If they are not consumed, the algorithm of the marker also takes them away.
token
To decide this problem, you need to realize that it is possible for a cpmm bassin with a corepepool cpmm. Here’s the predicted primer:
`Rust
Use Soolana_program :: {
Account_info :: {NEXT_ACCOUN_INFO, Accountinfo},
EntreTPoint :: Programresult,
Program_error :: Printerror,
PUBKEY :: PUBKY,
};
PUB FN CREATEPOOL (
CPMMCONFIG: Boolconfig,
) -> Programresult
Loop Mintai = Next_account_info ("Mint_a")?;
Loop Mintb = NEXT_AACCOUNT_INFO ("MINT_B")?;
// Create new CPMM Bassin with the specified parameters
Self.pool.create (CPMMConfig)?;
}
// Primer Using:
FN MAIN () {
Let Config = Boolconfig :: New ();
Let's Score = Createpool (Config) .Unwrap ();
Bag! ("Correled pool: {:?}", Result);
}
In this one, we generate “Minta” and “Mintb”, using the function of `next_account_info. Zatem we are overwhelmed by this value of Createpool.
At the same time, these shagues you can be able to enter the CPMM Bassein on the Solana with Odinaki Mint (A and B). If you are still more unwavering with the problems, do not stand for the subjects about your project, and I am all possible for helping you.