Docs.rs
  • cpamm-0.10.1
    • cpamm 0.10.1
    • Permalink
    • Docs.rs crate page
    • AGPL-3.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • jjmatcha
    • Dependencies
      • anchor-lang ^0.22 normal
      • anchor-spl ^0.22 normal
      • num-traits ^0.2 normal
      • u128 ^0.1 normal
      • vipers ^2.0 normal
      • xyk ^0.10.1 normal
    • Versions
    • 94.85% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

Crate cpamm

logo
Change settings

List of all items

Structs

  • Deposit
  • DepositEvent
  • Factory
  • InitSwapToken
  • NewFactory
  • NewPoolEvent
  • NewSwap
  • NewSwapMeta
  • Swap
  • SwapCumulativeStats
  • SwapCumulativeTokenStats
  • SwapEvent
  • SwapFees
  • SwapInfo
  • SwapMeta
  • SwapPriceInfo
  • SwapToken
  • SwapTokenInfo
  • SwapTokenWithFees
  • SwapUserContext
  • Withdraw
  • WithdrawEvent
  • accounts::Deposit
  • accounts::InitSwapToken
  • accounts::NewFactory
  • accounts::NewSwap
  • accounts::NewSwapMeta
  • accounts::Swap
  • accounts::SwapToken
  • accounts::SwapTokenWithFees
  • accounts::SwapUserContext
  • accounts::Withdraw
  • instruction::Deposit
  • instruction::NewFactory
  • instruction::NewSwap
  • instruction::NewSwapMeta
  • instruction::Swap
  • instruction::SwapMax
  • instruction::Withdraw
  • program::Cpamm

Enums

  • ErrorCode

Functions

  • check_id
  • cpamm::deposit
  • cpamm::new_factory
  • cpamm::new_swap
  • cpamm::new_swap_meta
  • cpamm::swap
  • cpamm::swap_max
  • cpamm::withdraw
  • entry
  • entrypoint
  • id

Statics

  • ID

Constants

  • fees::INITIAL
  • fees::KBPS_PER_WHOLE
  • price_info::PRICE_SCALE