Meteora Documentation home pagelight logodark logo
  • GitHub
  • Faucet
  • Support
  • Developer Updates
  • Integration
    • Overview
    • DLMM
    • DAMM v1
      • Introduction
      • Pool Fee Configs
      • Dynamic Pool Configs
      • DAMM v1 Formulas
      • Typescript SDK
      • CPI
        • DAMM v1 CPI Examples
      • API
    • DAMM v2
    • DBC
    • Alpha Vault
    • Stake2Earn
    • Dynamic Vault
    • Meteora Lock
    • Dynamic Fee Sharing [Beta]
    Launch Pools
    • DLMM Launch Pool
    • Alpha Vault Launch Pool
    • DAMM v1 Launch Pool
    • DAMM v2 Launch Pool
    • Meteora
    • Blog
    • Support
    Meteora Documentation home pagelight logodark logo
    • Meteora
    • Blog
    • Support
    Overview
    Anti Sniper Suite
    Developer Guide
    Resources
    Legal
    Overview
    Anti Sniper Suite
    Developer Guide
    Resources
    Legal
    CPI

    DAMM v1 CPI Examples

    This repository contains examples for Cross-Program Invocation (CPI) to swap using DAMM v1 program.

    ​
    Dependencies

    • Anchor: 0.28.0
    • Solana: 1.16.1
    • Rust: 1.68.0

    ​
    Available Examples

    CPI to Dynamic AMM swap example

    Example of swapping using Dynamic AMM via CPI.

    CPI to Dynamic AMM initialize pool example

    Example of initializing a pool using Dynamic AMM via CPI.

    CPI to Dynamic AMM initialize pool with config example

    Example of initializing a pool with configuration using Dynamic AMM via CPI.

    CPI to Dynamic AMM lock liquidity example

    Example of locking liquidity using Dynamic AMM via CPI.

    CPI to Dynamic AMM claim fee example

    Example of claiming fees using Dynamic AMM via CPI.

    CPI to M3m3 initialize vault example

    Example of initializing a vault using M3m3 via CPI.

    ​
    Testing

    The repository includes comprehensive tests for all the CPI examples.

    Was this page helpful?

    Previous
    Pool Info
    Next
    On this page
    • Dependencies
    • Available Examples
    • Testing
    Assistant
    Responses are generated using AI and may contain mistakes.
    Meteora Documentation home pagelight logodark logo
    discordxyoutubemediumgithublinkedin
    MeteoraTerms of Service
    discordxyoutubemediumgithublinkedin
    Powered by Mintlify