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

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

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

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

### `hadronConfig`

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

```typescript theme={null}
export declare function hadronConfig(cfg: PoolConfig): HadronPoolConfig;
```

### `fetchHadronConfig`

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

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

### `HADRON_PROGRAM_ID`

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

```typescript theme={null}
HADRON_PROGRAM_ID: Address<"HADRoNbLovyqhCsocfYQYB7QdfCAAinN9HTePvBCVDQ8">
```

### `HADRON_TOKEN_PROGRAM`

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

```typescript theme={null}
HADRON_TOKEN_PROGRAM: Address<"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA">
```

### `HADRON_CLOCK_SYSVAR`

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

```typescript theme={null}
HADRON_CLOCK_SYSVAR: Address<"SysvarC1ock11111111111111111111111111111111">
```

### `HADRON_FEE_AUTHORITY`

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

Single venue-wide fee-treasury wallet - the fee-destination account for
ANY input mint is `findAssociatedTokenPda({owner: HADRON_FEE_AUTHORITY,
mint})`, verified exact against 3 different mints' real fee-destination
addresses observed in real landed transactions.

```typescript theme={null}
HADRON_FEE_AUTHORITY: Address<"7Ly5vZTDz2ZJGrqTa9gCP2NWjFDvnxSLVQEdmvMcVaVn">
```

### `HADRON_PAIR_ACCOUNT_SIZE`

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

```typescript theme={null}
HADRON_PAIR_ACCOUNT_SIZE = 724
```

### `HADRON_OFF_MINT_A`

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

```typescript theme={null}
HADRON_OFF_MINT_A = 41
```

### `HADRON_OFF_MINT_B`

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

```typescript theme={null}
HADRON_OFF_MINT_B = 73
```

### `HADRON_OFF_ASSET_CFG_B`

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

mintB's own "role-B" record address sits right after mintB in the PAIR account.

```typescript theme={null}
HADRON_OFF_ASSET_CFG_B = 106
```

### `HADRON_AMOUNT_OFF`

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

SPL token account `amount` field offset (standard layout).

```typescript theme={null}
HADRON_AMOUNT_OFF = 64
```

### `HADRON_SPL_TOKEN_ACCOUNT_SIZE`

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

```typescript theme={null}
HADRON_SPL_TOKEN_ACCOUNT_SIZE = 165
```

### `HADRON_PRICE_OFFSET`

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

Live oracle price field inside mintA's 128-byte AssetConfig.

```typescript theme={null}
HADRON_PRICE_OFFSET = 40
```

### `HADRON_PRICE_SCALE`

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

Q32.32 fixed-point scale the price field is carried in.

```typescript theme={null}
HADRON_PRICE_SCALE: bigint
```

### `HADRON_FEE_PPM`

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

Measured EXACT on both directions of both validated pairs.

```typescript theme={null}
HADRON_FEE_PPM = 10n
```

### `HADRON_PPM_DENOM`

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

```typescript theme={null}
HADRON_PPM_DENOM = 1000000n
```

### `HADRON_HAIRCUT_PPM`

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

Kept fraction after the conservative safety haircut (99.7% kept, 30 bps cut).

```typescript theme={null}
HADRON_HAIRCUT_PPM = 997000n
```

### `HADRON_ASSET_REGISTRY`

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

```typescript theme={null}
HADRON_ASSET_REGISTRY: Partial<Record<Address, HadronAssetEntry>>
```

### `HadronPoolConfig`

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

```typescript theme={null}
export interface HadronPoolConfig extends PoolConfig {
    venue: typeof SLUG;
    direction: "AtoB" | "BtoA";
    mintA: Address;
    mintB: Address;
    vaultA: Address;
    vaultB: Address;
    assetCfgA: Address;
    assetCfgB: Address;
    growingA: Address;
    metaA: Address;
    global: Address;
    feeVaultA: Address;
    feeVaultB: Address;
}
```

### `hadron`

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

```typescript theme={null}
hadron: {
    slug: string;
    kind: "constant-product";
    programId: Address<"HADRoNbLovyqhCsocfYQYB7QdfCAAinN9HTePvBCVDQ8">;
    fetchPoolConfig: typeof fetchHadronConfig;
    quoteAccounts: typeof quoteAccounts;
}
```


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