Create A Non-PDA Fee Vault
Create A PDA Fee Vault
(base, tokenMint) or must sign source-program fee claim instructions.
Fund A Fee Vault Directly
Claim User Fees
claimUserFee2 when the claimant signs but receives into another receiver’s associated token account:
Read Vault State
Fund From DAMM v2
PDA fee vaults can receive DAMM v2 position fees or rewards throughfund_by_claiming_fee. The fee vault must own the DAMM v2 position NFT account before claiming.
setTokenAccountOwnerTx to transfer its token-account authority to the fee vault before using these claim helpers.
Fund From DBC
PDA fee vaults can receive DBC creator fees, partner fees, surplus withdrawals, and migration fees through source-program funding wrappers.| Flow | SDK method | Vault must be configured as |
|---|---|---|
| Creator trading fee | fundByClaimDbcCreatorTradingFee | VirtualPool.creator |
| Partner trading fee | fundByClaimDbcPartnerTradingFee | PoolConfig.feeClaimer |
| Creator surplus | fundByWithdrawDbcCreatorSurplus | VirtualPool.creator |
| Partner surplus | fundByWithdrawDbcPartnerSurplus | PoolConfig.feeClaimer |
| Migration fee | fundByWithdrawDbcMigrationFee | Creator or partner, based on isPartner |
PoolConfig and VirtualPool state when you do not provide cached state.
