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

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

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

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

### `SCORCH_CORE_PROGRAM_ID`

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

CORE - pool state owner + pricing engine. This is `SVM_VENUE_PROGRAM_IDS.scorch`.

```typescript theme={null}
SCORCH_CORE_PROGRAM_ID: Address<"ojh19ojaKduoJZuaJADhcVGp4xt1TcdAvZmpVsCorch">
```

### `SCORCH_ROUTER_PROGRAM_ID`

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

ROUTER - the real custodian; the swap CPI's actual CALL target.

```typescript theme={null}
SCORCH_ROUTER_PROGRAM_ID: Address<"SCoRcH8c2dpjvcJD6FiPbCSQyQgu3PcUAWj2Xxx3mqn">
```

### `SCORCH_HAIRCUT_PPM`

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

Conservative haircut on the raw vault-reserve-ratio price (parts per
million of the naive constant-product output) - see this file's top
docblock for the measured justification. 300,000 = keep 70% of the naive
CP output.

```typescript theme={null}
SCORCH_HAIRCUT_PPM = 300000n
```

### `scorch`

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

```typescript theme={null}
scorch: {
    slug: string;
    kind: "constant-product";
    programId: Address<"ojh19ojaKduoJZuaJADhcVGp4xt1TcdAvZmpVsCorch">;
    fetchPoolConfig(owned: OwnedAccountLoader, pool: Address): Promise<ScorchPoolConfig>;
    quoteAccounts(base: PoolConfig): VenueAccount[];
}
```

### `ScorchPoolConfig`

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

```typescript theme={null}
export interface ScorchPoolConfig extends PoolConfig {
    venue: typeof SLUG;
    direction: "AtoB" | "BtoA";
    mintA: Address;
    vaultA: Address;
    assetConfigA: Address;
    mintB: Address;
    vaultB: Address;
    assetConfigB: Address;
}
```


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