> ## 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: bonkswap-fork

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

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

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

### `OFF_TOKEN_X_RESERVE`

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

```typescript theme={null}
OFF_TOKEN_X_RESERVE = 200
```

### `OFF_TOKEN_Y_RESERVE`

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

```typescript theme={null}
OFF_TOKEN_Y_RESERVE = 208
```

### `OFF_CONST_K`

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

```typescript theme={null}
OFF_CONST_K = 312
```

### `OFF_LP_FEE`

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

```typescript theme={null}
OFF_LP_FEE = 344
```

### `OFF_BUYBACK_FEE`

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

```typescript theme={null}
OFF_BUYBACK_FEE = 360
```

### `OFF_PROJECT_FEE`

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

```typescript theme={null}
OFF_PROJECT_FEE = 376
```

### `OFF_MERCANTI_FEE`

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

```typescript theme={null}
OFF_MERCANTI_FEE = 392
```

### `FEE_DENOMINATOR`

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

DEFAULT\_DENOMINATOR - every fee field is a rate scaled by 1e12 (100%).

```typescript theme={null}
FEE_DENOMINATOR = 1000000000000n
```

### `BONKSWAP_PROGRAM_ID`

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

Bonkswap - the original deployment.

```typescript theme={null}
BONKSWAP_PROGRAM_ID: Address
```

### `BONKSWAP_STATE`

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

Bonkswap's `state` PDA (seed "bonkswapstatev1") - verified via getProgramDerivedAddress and matches a real swap tx's account #0.

```typescript theme={null}
BONKSWAP_STATE: Address
```

### `BONKSWAP_PROGRAM_AUTHORITY`

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

Bonkswap's vault-owning authority PDA (State.programAuthority) - matches every pool's vault SPL-token `owner` field.

```typescript theme={null}
BONKSWAP_PROGRAM_AUTHORITY: Address
```

### `bonkswap`

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

```typescript theme={null}
bonkswap: BonkswapForkAdapter
```

### `GUACSWAP_PROGRAM_ID`

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

Guacswap - a whitelabel fork (see module header).

```typescript theme={null}
GUACSWAP_PROGRAM_ID: Address
```

### `GUACSWAP_STATE`

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

Guacswap's `state` PDA (seed "guacswapstatev1").

```typescript theme={null}
GUACSWAP_STATE: Address
```

### `GUACSWAP_PROGRAM_AUTHORITY`

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

Guacswap's vault-owning authority PDA.

```typescript theme={null}
GUACSWAP_PROGRAM_AUTHORITY: Address
```

### `guacswap`

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

```typescript theme={null}
guacswap: BonkswapForkAdapter
```

### `makeBonkswapForkAdapter`

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

One adapter per deployed Bonkswap fork - same layout/math (see module
header), parameterized only by the fork's own program id.

```typescript theme={null}
export declare function makeBonkswapForkAdapter(slug: string, programId: Address): BonkswapForkAdapter;
```

### `bonkswapForkConfig`

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

```typescript theme={null}
declare function bonkswapForkConfig(slug: string, base: PoolConfig): BonkswapForkPoolConfig;
```

### `bonkswapReadUintLE`

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

```typescript theme={null}
declare function bonkswapReadUintLE(data: Uint8Array, offset: number, width: number): bigint;
```

### `BonkswapForkPoolConfig`

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

```typescript theme={null}
export interface BonkswapForkPoolConfig extends PoolConfig {
    tokenX: Address;
    tokenY: Address;
    poolXAccount: Address;
    poolYAccount: Address;
    constKHi: bigint;
    constKLo: bigint;
    lpFee: bigint;
    buybackFee: bigint;
    projectFee: bigint;
    mercantiFee: bigint;
    direction: "xToY" | "yToX";
}
```

### `BonkswapForkAdapter`

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

```typescript theme={null}
export interface BonkswapForkAdapter {
    slug: string;
    programId: Address;
    fetchPoolConfig(load: OwnedAccountLoader, pool: Address): Promise<BonkswapForkPoolConfig>;
}
```


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