Meteora Documentation home pagelight logodark logo
  • Meteora
  • Blog
  • Support
Welcome
Overview
Anti Sniper Suite
Developer Guide
API Reference
Resources
Legal
  • GitHub
  • Faucet
  • Support
  • Developer Updates
  • API Status
  • Introduction
    • Overview
    Quick Launch
    • DLMM Launch Pool
    • DAMM v2 Launch Pool
    • DAMM v1 Launch Pool
    • DBC Token Launch Pool
    Invent with Metsumi
    • Actions
    • Scaffolds
    Guides
    • DLMM
    • DAMM v2
    • DAMM v1
      • Overview
      • Pool Fee Configs
      • Typescript SDK
      • Farming SDK
      • CPI
        • Examples
    • DBC
    • Alpha Vault
    • Stake2Earn
    • Dynamic Vault
    • Meteora Lock
    • Dynamic Fee Sharing
    • Zap
    Trading Terminals
    • Integrate with DBC
    • Integrate with DAMM v2
    On this page
    • Dependencies
    • CPI Examples
    CPI

    Examples

    DAMM v1

    This repository contains examples for Cross-Program Invocation (CPI) that interacts with the DAMM v1 program.

    ​
    Dependencies

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

    ​
    CPI Examples

    CPI Example for DAMM v1 Swap

    Example of swapping using Dynamic AMM via CPI.

    CPI Example for DAMM v1 Initialize Pool

    Example of initializing a pool using Dynamic AMM via CPI.

    CPI Example for DAMM v1 Initialize Pool with Config

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

    CPI Example for DAMM v1 Lock Liquidity

    Example of locking liquidity using Dynamic AMM via CPI.

    CPI Example for DAMM v1 Claim Fee

    Example of claiming fees using Dynamic AMM via CPI.

    Tests

    Comprehensive tests for all the CPI examples.

    Was this page helpful?

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