> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# svm venue: raydium-cp-swap

> The raydium-cp-swap Solana venue: the declaration and description of each of the 2 exports of @eco-incorp/sauce/svm.

Solana venue integration `raydium-cp-swap`, exported from `@eco-incorp/sauce/svm`.

Generated from the type declarations of `@eco-incorp/sauce`.

### `RaydiumCpSwapPoolConfig`

*Interface* · `@eco-incorp/sauce/svm`

```typescript theme={null}
export interface RaydiumCpSwapPoolConfig extends PoolConfig {
    venue: typeof SLUG;
    ammConfig: Address;
    token0Vault: Address;
    token1Vault: Address;
    token0Mint: Address;
    token1Mint: Address;
    token0Program: Address;
    token1Program: Address;
    observation: Address;
    status: number;
    openTime: bigint;
    creatorFeeOn: number;
    enableCreatorFee: boolean;
    tradeFeeRate: bigint;
    creatorFeeRate: bigint;
    inputIsToken0: boolean;
}
```

### `raydiumCpSwap`

*Variable* · `@eco-incorp/sauce/svm`

```typescript theme={null}
raydiumCpSwap: {
    slug: string;
    kind: "constant-product";
    programId: Address<"CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C">;
    fetchPoolConfig(owned: OwnedAccountLoader, pool: Address): Promise<RaydiumCpSwapPoolConfig>;
    quoteAccounts(base: PoolConfig): VenueAccount[];
    emitQuote(base: PoolConfig, i: number, amountIn: bigint): string;
    buildSwap(base: PoolConfig, user: SwapUser, amountIn: bigint): VenueSwap;
    referenceQuote(base: PoolConfig, state: AccountBytesMap, amountIn: bigint, now: bigint): bigint;
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.