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

> 8 exports of the omnipair venue integration in @eco-incorp/sauce/svm, including OMNIPAIR_PROGRAM_ID, PAIR_ACCOUNT_SIZE, PAIR_DISCRIMINATOR, omnipair, fetchOmnipairPoolConfig, omnipairCapacity.

Solana venue integration `omnipair` under `svm/venues/omnipair`.

<Note>
  Generated from the type declarations shipped in `@eco-incorp/sauce` 0.99.4. Each entry shows the package authors' JSDoc and declaration for this SDK version. For runtime compatibility and deployed addresses, see [architecture and deployments](/programmable-transactions/sauce/architecture-and-deployments).
</Note>

### `OMNIPAIR_PROGRAM_ID`

*Variable* · `sdk/dist/svm/venues/omnipair/index.d.ts`

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

### `PAIR_ACCOUNT_SIZE`

*Variable* · `sdk/dist/svm/venues/omnipair/index.d.ts`

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

### `PAIR_DISCRIMINATOR`

*Variable* · `sdk/dist/svm/venues/omnipair/index.d.ts`

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

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

### `omnipair`

*Variable* · `sdk/dist/svm/venues/omnipair/index.d.ts`

Family facade for the recipe orchestrator (ladder-only, like orca-whirlpool/raydium-clmm/defituna).

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

### `fetchOmnipairPoolConfig`

*Function* · `sdk/dist/svm/venues/omnipair/index.d.ts`

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

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

### `omnipairCapacity`

*Function* · `sdk/dist/svm/venues/omnipair/index.d.ts`

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* · `sdk/dist/svm/venues/omnipair/index.d.ts`

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* · `sdk/dist/svm/venues/omnipair/index.d.ts`

```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;
}
```
