> ## 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: omnipair

> The omnipair Solana venue: the declaration and description of each of the 8 exports of @eco-incorp/sauce/svm.

Solana venue integration `omnipair`, exported from `@eco-incorp/sauce/svm`.

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

### `OMNIPAIR_PROGRAM_ID`

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

```typescript theme={null}
OMNIPAIR_PROGRAM_ID: Address<"omnixgS8fnqHfCcTGKWj6JtKjzpJZ1Y5y9pyFkQDkYE">
```

### `PAIR_ACCOUNT_SIZE`

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

```typescript theme={null}
PAIR_ACCOUNT_SIZE = 350
```

### `PAIR_DISCRIMINATOR`

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

sha256('account:Pair')\[0..8].

```typescript theme={null}
PAIR_DISCRIMINATOR: number[]
```

### `omnipair`

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

The Omnipair venue: constant-product pairs whose reserves include the liquidity lent out.

```typescript theme={null}
omnipair: {
    slug: string;
    programId: Address<"omnixgS8fnqHfCcTGKWj6JtKjzpJZ1Y5y9pyFkQDkYE">;
    tokenProgram: Address<"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA">;
    fetchPoolConfig: typeof fetchOmnipairPoolConfig;
}
```

### `fetchOmnipairPoolConfig`

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

Fetch + decode one Pair, deriving the fixed accounts the swap CPI needs. Read-only against the loader.

```typescript theme={null}
export declare function fetchOmnipairPoolConfig(owned: OwnedAccountLoader, pool: Address): Promise<OmnipairPoolConfig>;
```

### `omnipairCapacity`

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

Closed-form capacity: the largest gross input `x` for which
`amountOut(x) <= cashOut` holds (see the module header derivation).
`U64_MAX` when `reserveOut <= cashOut` (never binds).

```typescript theme={null}
export declare function omnipairCapacity(reserveIn: bigint, reserveOut: bigint, cashOut: bigint, feeBps: bigint): bigint;
```

### `omnipairQuote`

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

The COLD (venue-exact) quote for gross input x, saturating at the capacity clamp.

```typescript theme={null}
export declare function omnipairQuote(x: bigint, ri: bigint, ro: bigint, fb: bigint, icap: bigint): bigint;
```

### `OmnipairPoolConfig`

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

```typescript theme={null}
export interface OmnipairPoolConfig extends PoolConfig {
    venue: typeof SLUG;
    direction: "aToB" | "bToA";
    token0Mint: Address;
    token1Mint: Address;
    rateModel: Address;
    futarchyAuthority: Address;
    eventAuthority: Address;
    reserveVault0: Address;
    reserveVault1: Address;
    reserveBase: 147 | 149;
    token0Decimals: number;
    token1Decimals: number;
}
```


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