Meteora Documentation home pagelight logodark logo
  • Meteora
  • Blog
  • Support
Overview
Anti Sniper Suite
Developer Guide
API Reference
Resources
Legal
  • GitHub
  • Faucet
  • Support
  • Developer Updates
  • API Status
  • Introduction
    • Meteora Stack Overview
    Quick Launch
    • DLMM Launch Pool
    • DAMM v2 Launch Pool
    • DAMM v1 Launch Pool
    • DBC Token Launch Pool
    Invent with Metsumi
    • Metsumi Actions πŸ’•
    • Metsumi Scaffolds πŸ’—
    Guides
    • DLMM
    • DAMM v1
      • Introduction
      • Pool Fee Configs
      • Dynamic Pool Configs
      • DAMM v1 Formulas
      • Typescript SDK
      • CPI
        • DAMM v1 CPI Examples
    • DAMM v2
    • DBC
    • Alpha Vault
    • Stake2Earn
    • Dynamic Vault
    • Meteora Lock
    • Dynamic Fee Sharing
    On this page
    • Dependencies
    • Available Examples
    • Testing
    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?

    Farm IntegrationIntroduction
    Assistant
    Responses are generated using AI and may contain mistakes.
    Meteora Documentation home pagelight logodark logo
    discordxyoutubemediumgithublinkedin
    MeteoraTerms of Service
    discordxyoutubemediumgithublinkedin
    Powered by Mintlify