Meteora 백서

Meteora

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 8쪽

| Controls whether creator, partner, or no one receives update authority, and whether creator or partner receives mint authority. | | Transfer hook program | Optional Token 2022 transfer-hook path. Use a `ConfigWithTransferHook`; the program must be executable and cannot be DBC, SPL Token, Token 2022, or the default pubkey. | | Collect fee mode | `QuoteToken` or `OutputToken` for bonding-curve trading. | <Note> Mint-authority token authority options are only valid for transfer-hook configs. Standard configs reject `CreatorUpdateAndMintAuthority` and `PartnerUpdateAndMintAuthority`. </Note> ## Supply DBC supports dynamic supply and fixed supply. | Supply Model | Program Behavior | | - | - | | Dynamic supply | Initial base supply is calculated from the curve swap amount with a 25% buffer, migration base threshold, and locked-vesting amount. | | Fixed supply | Config provides pre-migration and post-migration supply. The leftover receiver must be non-default, and pre-migration supply must cover the buffered requirement. | Fixed-supply cleanup is covered in [DBC Surplus and Leftover](/core-products/dbc/surplus-and-leftover). ## Migration | Setting | Program Behavior | | - | - | | Migration target | DAMM v2 for new configs and new pools. DAMM v1 is deprecated and rejected for new configs and new pools. Existing DAMM v1 pools can still migrate. | | Migration fee option | Fixed DAMM fee options or `Customizable` for custom DAMM v2 migrated-pool fee settings. | | Migration fee percentage | Up to `99%`. If it is `0`, creator migration fee percentage must also be `0`. | | DAMM v2 migrated pool fee | Must be `0.1%` to `10%` when custom migrated-pool fees are configured. | | DAMM v2 compounding fee bps | Must be non-zero only for compounding migrated-pool collect fee mode. | | DAMM v2 market-cap scheduler params | Apply after migration; they do not affect the DBC bonding-curve fee. | For the migration flow and liquidity ownership, see [DBC Migration and Liquidity](/core-products/dbc/migration-and-liquidity). Transfer-hook launches use DAMM v2. The hook is revoked from the base mint when the DBC curve completes, before migrated DAMM v2 liquidity is created. ## Liquidity Distribution The migrated liquidity distribution must add to `100%` across: * Partner unlocked liquidity. * Partner permanent locked liquidity. * Partner vesting liquidity. * Creator unlocked liquidity. * Creator permanent locked liquidity. * Creator vesting liquidity. At least `10%` of migrated liquidity must still be locked after one day. DAMM v2 vesting lock duration is capped at two years. ## Fees and Claim Addresses | Setting | Program Behavior | | - | - | | Pool creation fee | Optional. If non-zero, must be between `0.001 SOL` and `100 SOL`; split 10% protocol and 90% partner. | | Creator trading fee percentage | Splits the non-protocol trading fee between creator and partner. | | Fee claimer | Authorizes partner-side claims such as trading fees, pool creation fees, migration fees, and surplus. | | Leftover receiver | Receives fixed-supply leftover after the migrated pool reaches `CreatedPool`. | | First swap with minimum fee | Optional narrow path for an initialize-pool transaction that includes the first swap, targets that new pool, and has no referral account. | Bonding-curve fee modes are covered in [DBC Fees](/core-products/dbc/fees/overview). Transfer-hook launch behavior is covered in [DBC Transfer Hook Pools](/core-products/dbc/transfer-hook-pools). # DBC Migration and Liquidity Source: https://docs.meteora.ag/core-products/dbc/migration-and-liquidity Learn how DBC graduates a completed bonding curve into DAMM v2 liquidity, including deprecated DAMM v1 migration, transfer-hook completion, liquidity ownership, locks, vesting, and protocol migration fees. DBC migration is the handoff from launch trading to long-term Meteora liquidity. During the bonding curve phase, traders buy and sell against a DBC virtual pool. When the quote reserve reaches the configured migration threshold, normal curve trading stops and the pool becomes eligible to create a DAMM pool. ```text theme={"system"} Virtual pool trading -> Curve complete -> Migration steps -> DAMM pool live ``` For Token 2022 transfer-hook pools, curve completion also revokes the base mint's transfer-hook program id and transfer-hook authority. DBC does this before DAMM v2 migration so the graduated mint can use DAMM v2 without relying on transfer-hook remaining accounts. ## Migration Progress The program tracks migration as a sequence of states. | State | Product Meaning | | - | - | | PreBondingCurve | The pool is still trading on the DBC curve. | | PostBondingCurve | The curve is complete, and migration can continue. | | LockedVesting | Required vesting or locker setup has been completed, and the DAMM pool can be created. | | CreatedPool | The migrated DAMM pool has been created. | Some launches move from curve completion directly into the migration-ready state. Others need the locker step first, especially when base-token locked vesting is configured. ## Migration Targets New DBC configs and new pools must use DAMM v2. DAMM v1 remains available only for existing pools that were already configured with that target. | Migration Target | Product Behavior | | - | - | | DAMM v2 | Creates a configurable migrated pool with position NFTs, advanced fee settings, compounding options, and vesting support. This is the required target for new launches. | | DAMM v1 | Existing pools can still create a simpler constant-product DAMM pool and use LP tokens to represent migrated liquidity. New configs and new pools cannot select this target. | DAMM v2 is the path for Token 2022 launches, transfer-hook launches, and quote mints that needed a DBC token badge. Transfer-hook launches use DAMM v2. The hook is active only during the DBC bonding-curve phase and is revoked when the curve completes. A DBC token badge is valid only inside DBC. DAMM v2 configs used by DBC include the `CreatePoolWithoutMintValidation` permission so a quote mint that is not permissionless-supported by DAMM v2 can still migrate. DBC still requires the quote mint transfer fee to be zero at migration time. <Warning> DAMM v1 migration is deprecated for new configs and new pools. Existing DAMM v1 pools can still graduate. Token 2022 launches must use DAMM v2. </Warning> ## What Migrates At migration, DBC uses: * The configured quote threshold from the bonding phase. * The base token amount allocated for the migrated pool. * The migration price discovered by the curve. * The configured partner and creator liquidity distribution. The goal is to start the DAMM pool around the price discovered during the launch, rather than forcing teams to choose a separate post-launch price manually. ## Liquidity Ownership DBC can split migrated liquidity between partner and creator buckets. Each bucket can include: | Liquidity Type | Product Meaning | | - | - | | Unlocked liquidity | The recipient can manage it according to the migrated pool rules. | | Permanently locked liquidity | Liquidity remains locked while still supporting the pool. | | Vesting liquidity | Liquidity unlocks over time according to the configured schedule. | The full distribution across partner unlocked liquidity, partner permanent locked liquidity, partner vesting liquidity, creator unlocked liquidity, creator permanent locked liquidity, and creator vesting liquidity must add up to 100%. <Warning> DBC requires at least 10% of liquidity to remain locked at day 1 after migration. Vesting lock durations are capped at 2 years. </Warning> ## DAMM v1 Liquidity For DAMM v1 migration, liquidity is represented through LP tokens. After the DAMM v1 pool is created, partner and creator LP-token claims can become available according to the configured distribution. If LP tokens need to be locked, the lock step happens after the migrated pool exists. This path is simpler, but it is also less configurable than DAMM v2. ## DAMM v2 Liquidity For DAMM v2 migration, DBC creates position NFTs for the migrated liquidity. The migration flow: 1. Creates the DAMM v2 pool. 2. Creates migrated liquidity positions. 3. Applies configured permanent locks or vesting locks. 4. Transfers position ownership to the partner or creator owner. This means DAMM v2 migration is not just a pool creation step. It also finalizes who controls the migrated positions and how much of that liquidity is locked. ## Protocol Liquidity Migration Fee DBC applies a fixed 0.2% protocol liquidity migration fee during migration. This fee is tracked as protocol migration base and quote amounts. In product terms, it reduces the amount of base and quote liquidity that enters the migrated pool and becomes part of protocol-claimable balances. <Note> This protocol liquidity migration fee is separate from the configurable partner and creator migration fee. </Note> ## Leftover After Migration For fixed-supply launches, some base tokens may remain in the virtual pool after migration accounting. Those unused tokens are called leftover and can be withdrawn to the configured leftover receiver after the migrated pool reaches the created state. Leftover is covered in more detail in [DBC Surplus and Leftover](/core-products/dbc/surplus-and-leftover). ## Mainnet Migration Keepers Meteora operates migration keepers on mainnet to help eligible DBC pools graduate automatically. | Keeper | | - | | [Asi5DTGEeiso6k7ya6ndDabEZ7DRCgfTpCBLPH5E3aQs](https://solscan.io/account/Asi5DTGEeiso6k7ya6ndDabEZ7DRCgfTpCBLPH5E3aQs) | | [DeQ8dPv6ReZNQ45NfiWwS5CchWpB2BVq1QMyNV8L2uSW](https://solscan.io/account/DeQ8dPv6ReZNQ45NfiWwS5CchWpB2BVq1QMyNV8L2uSW) | Both keepers migrate eligible pools when the bonding curve is complete and the quote-side threshold matches one of these quote mints: | Quote token | Mint | Threshold | | - | - | - | | Wrapped SOL (SOL) | `So11111111111111111111111111111111111111112` | 10 SOL | | USD Coin (USDC) | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` | 750 USDC | | OFFICIAL TRUMP (TRUMP) | `6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN` | 100 TRUMP | | Jupiter (JUP) | `JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN` | 1500 JUP | | World Liberty Financial USD (USD1) | `USD1ttGY1N17NEEHLmELoaybftRBUSErhqYiQzvEmuB` | 750 USD1 | | Meteora (MET) | `METvsvVRapdj9cFLzq4Tr43xK4tAjQfwX76z3n6mWQL` | 1500 MET | | Jupiter USD (JupUSD) | `JuprjznTrTSp2UFa3ZBUFgwdAmtZCq4MQCwysN55USD` | 750 JupUSD | | Virtual Protocol (VIRTUAL) | `3iQL8BFS2vE7mww4ehAqQHAsbmRNCrPxizWAT2Zfyr9y` | 42000 VIRTUAL | Both keepers also migrate Stock Token quote pairs when the threshold is at least 750 USD equivalent in the quote token. Both keepers also migrate a completed pool when the quote token is Jupiter Verified, has a Jupiter Organic Score greater than 50, and the token's notional value is greater than 750 USD. <Note> Migration keepers run on mainnet. For testing or manual flows, use the [manual migrator](https://migrator.meteora.ag/), which supports mainnet and devnet. </Note> # DBC Surplus and Leftover Source: https://docs.meteora.ag/core-products/dbc/surplus-and-leftover Learn how DBC handles surplus quote tokens and leftover base tokens after a bonding curve completes or migrates. DBC surplus and leftover are the two cleanup amounts that can remain in a virtual pool after a launch reaches the end of its bonding-curve flow. | Amount | Token Side | When It Can Exist | Receiver Path | | - | - | - | - | | Surplus | Quote token | The final swap leaves quote reserve above the migration threshold. | Protocol, partner, and creator surplus claims. | | Leftover | Base token | A fixed-supply launch has unused base tokens after migration accounting. | Configured `leftover_receiver`. | ## Surplus Surplus is the extra quote token amount collected above the migration threshold. The migration threshold defines how much quote reserve is needed to complete the curve. In active markets, the swap that completes the curve may push the quote reserve above that threshold. The extra amount is surplus. ```math theme={"system"} \text{Total Surplus} = \text{Quote Reserve} - \text{Migration Quote Threshold} ``` Surplus exists only when the quote reserve is greater than the migration threshold. ## Surplus Split DBC splits surplus into protocol surplus and partner or creator surplus. ```math theme={"system"} \text{Partner and Creator Surplus} = \left\lfloor\text{Total Surplus} \times 80\%\right\rfloor ``` ```math theme={"system"} \text{Protocol Surplus} = \text{Total Surplus} - \text{Partner and Creator Surplus} ``` The partner and creator share is then split using the same creator trading fee percentage configured for the launch. ```math theme={"system"} \text{Creator Surplus} = \text{Partner and Creator Surplus} \times \text{Creator Trading Fee Percentage} ``` ```math theme={"system"} \text{Partner Surplus} = \text{Partner and Creator Surplus} - \text{Creator Surplus} ``` For example, if the migration quote threshold is 100 SOL and the final quote reserve is 105 SOL, the total surplus is 5 SOL. With a 25% creator trading fee percentage, the split is: | Recipient | Amount | | - | - | | Partner and creator surplus share | 4 SOL | | Protocol surplus share | 1 SOL | | Creator surplus | 1 SOL | | Partner surplus | 3 SOL | ## Claiming Surplus Surplus can be claimed after the curve is complete. It is not a post-migration-only claim. The virtual pool tracks whether each surplus recipient has already withdrawn, so each claim can happen only once. | Claimant | Program Behavior | | - | - | | Partner | Claims the partner share of the partner and creator surplus allocation. | | Creator | Claims the creator share of the partner and creator surplus allocation. | | Protocol | Claims the protocol surplus share through protocol fee claiming. | <Note> Surplus is different from trading fees and migration fees. It comes from extra quote reserve above the migration threshold. </Note> ## Leftover Leftover is the unused base token amount from a fixed-supply launch after the token has migrated. It exists because fixed-supply launches predefine the total token amount before trading begins. Not every token in that initial supply is necessarily sold through the bonding curve or needed for the migrated DAMM pool. The unused amount is called leftover. | Supply Model | Leftover Behavior | | - | - | | Dynamic supply | Usually no leftover. The launch mints the supply needed for the curve and migration flow. | | Fixed supply | Leftover may exist because the launch starts from a predefined supply. | For fixed-supply launches, the config includes: * `pre_migration_token_supply`: the fixed supply available before migration. * `post_migration_token_supply`: the supply expected after migration. * `leftover_receiver`: the address that receives unused base tokens. ## Leftover Formula ```math theme={"system"} \text{Leftover} = \text{Remaining Base Vault Amount} - \text{Protocol and Trading Base Fees} - \text{Protocol Migration Base Fee} ``` In product terms, leftover is the part of the fixed launch supply that remains in the virtual pool after migration accounting and after base-token fee balances are reserved. This is more precise than simply subtracting tokens sold from the initial supply. The program withdraws leftover from the base vault only after excluding claimable base fees and protocol migration base fees. ## Withdrawing Leftover Leftover can be withdrawn only after the DBC pool has migrated and the graduated pool has been created. In program terms, the virtual pool migration progress must be `CreatedPool`. This matters because the program must first know how many base tokens were sold, how many were needed for migration, and how many remain in the virtual pool after fee and migration accounting. Leftover can only be withdrawn once, and it is sent to the configured `leftover_receiver`. ## Example Imagine a fixed-supply launch sets aside 1 billion tokens for the DBC flow. * 650 million tokens are sold through the bonding curve. * 300 million tokens are needed for the migrated pool and post-migration allocations. * 50 million tokens remain unused. The 50 million unused tokens are leftover and can be withdrawn to the configured leftover receiver after migration. <Note> For dynamic-supply launches, teams usually focus on the curve supply and migrated pool supply rather than leftover recovery. </Note> # DBC Token 2022 Support Source: https://docs.meteora.ag/core-products/dbc/token-2022-support Learn how DBC supports Token 2022 launches, metadata handling, transfer-hook pools, quote-mint token badges, transfer-fee rules, authority choices, supply models, and DAMM v2 migration behavior. DBC supports both SPL Token and Token 2022 base token launches. Token 2022 support helps launch teams use newer Solana token capabilities while still accessing DBC's bonding curve, launch fee controls, and DAMM migration flow. <Note> DBC supports the standard Token 2022 metadata path and a dedicated Token 2022 transfer-hook path. Other base-token extensions should not be assumed compatible unless they are explicitly supported by the DBC launch flow. </Note> ## SPL Token vs Token 2022 | Token Type | Product Behavior | | - | - | | SPL Token | Standard Solana token launch path. New configs must migrate to DAMM v2. Existing DAMM v1 pools can still graduate. | | Token 2022 | Modern token launch path with Token 2022 metadata handling. Must use DAMM v2 migration. | | Token 2022 with transfer hook | Dedicated launch path where the base mint has a transfer hook during bonding-curve trading. The hook is revoked when the curve completes so the token can migrate to DAMM v2. | ## Token 2022 Base Tokens When DBC launches a Token 2022 base token, the launch flow initializes the mint with Token 2022 metadata support. DBC handles: * Creating the Token 2022 mint. * Setting token decimals from the config. * Initializing metadata pointer behavior. * Initializing token metadata with name, symbol, and URI. * Initializing metadata with the creator, then setting metadata pointer and token metadata update authority according to the configured authority option. * Minting the initial base supply into the pool vault. * Setting mint authority according to the configured authority option. This lets creators launch a Token 2022 token through the same product flow as a standard DBC launch. ## Transfer Hook Base Tokens DBC supports Token 2022 base mints with transfer hooks through separate config, pool, swap, and fee-claim paths. | Item | Behavior | | - | - | | Config account | `ConfigWithTransferHook`, which wraps the normal `PoolConfig` and stores the executable transfer-hook program. | | Pool account | `TransferHookPool`, which wraps the same `PoolState` layout used by standard virtual pools. | | Trading path | Transfer-hook pools use `swap2_with_transfer_hook`, not the standard `swap` or `swap2` instructions. | | Fee claims | Partner and creator trading fee claims use transfer-hook-aware `claim_trading_fee2` and `claim_creator_trading_fee2`. | | Completion | DBC revokes the transfer-hook program id and transfer-hook authority from the base mint when the curve completes. | For details, see [DBC Transfer Hook Pools](/core-products/dbc/transfer-hook-pools). ## Migration Target Token 2022 launches must use DAMM v2 migration in the DBC configuration flow. DAMM v2 is the modern migration target for Token 2022 support, advanced collect fee modes, dynamic fees, and vesting behavior. For transfer-hook launches, the hook is active during bonding-curve trading only. The base mint's transfer hook program ID and authority are revoked before DAMM v2 migration so the graduated mint can use DAMM v2 without relying on transfer-hook remaining accounts. <Warning> DAMM v1 migration is deprecated for new configs and new pools. Existing DAMM v1 pools can still graduate. New Token 2022 laun
프로젝트로 돌아가기