> ## 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: orca-legacy-token-swap

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

Solana venue integration `orca-legacy-token-swap`, exported from `@eco-incorp/sauce/svm`.

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

### `OrcaLegacyPoolConfig`

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

```typescript theme={null}
export interface OrcaLegacyPoolConfig extends PoolConfig {
    venue: typeof SLUG;
    swapAuthority: Address;
    tokenProgram: Address;
    vaultIn: Address;
    vaultOut: Address;
    poolMint: Address;
    poolFeeAccount: Address;
    inputMint: Address;
    outputMint: Address;
    tradeFeeNumerator: bigint;
    tradeFeeDenominator: bigint;
    ownerTradeFeeNumerator: bigint;
    ownerTradeFeeDenominator: bigint;
    bumpSeed: number;
}
```

### `orcaLegacyTokenSwap`

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

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


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