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

> 13 exports of the defituna venue integration in @eco-incorp/sauce/svm, including DEFITUNA_PROGRAM_ID, FUSION_POOL_ACCOUNT_SIZE, FUSION_POOL_DISCRIMINATOR, DEFITUNA_TICK_ARRAY_DISCRIMINATOR, DEFITUNA_TICK_ARRAY_SIZE, TICK_LEN_INITIALIZED.

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

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

### `DEFITUNA_PROGRAM_ID`

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

```typescript theme={null}
DEFITUNA_PROGRAM_ID: Address<"fUSioN9YKKSa3CUC2YUc4tPkHJ5Y6XW1yz8y6F7qWz9">
```

### `FUSION_POOL_ACCOUNT_SIZE`

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

```typescript theme={null}
FUSION_POOL_ACCOUNT_SIZE = 423
```

### `FUSION_POOL_DISCRIMINATOR`

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

sha256('account:FusionPool')\[0..8] (IDL-given: \[254,204,207,98,25,181,29,67]).

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

### `DEFITUNA_TICK_ARRAY_DISCRIMINATOR`

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

sha256('account:TickArray')\[0..8] (IDL-given: \[85,1,199,2,188,97,101,139]).

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

### `DEFITUNA_TICK_ARRAY_SIZE`

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

```typescript theme={null}
TICK_ARRAY_SIZE = 88
```

### `TICK_LEN_INITIALIZED`

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

Borsh-tagged-enum per-tick size when Initialized (1-byte tag + 112-byte TickData); 1 byte when Uninitialized.

```typescript theme={null}
TICK_LEN_INITIALIZED = 113
```

### `TICK_ARRAY_MIN_LEN`

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

Minimum possible TickArray account length (all 88 ticks uninitialized): 8 + 4 + 32 + 88.

```typescript theme={null}
TICK_ARRAY_MIN_LEN = 132
```

### `DEFITUNA_MAX_BOUNDARIES`

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

Shipped initialized-tick boundaries per direction - same budget class as
orca-whirlpool/raydium-clmm (2 rungs default, degrade-first CU kind).

```typescript theme={null}
DEFITUNA_MAX_BOUNDARIES = 4
```

### `defituna`

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

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

```typescript theme={null}
defituna: {
    slug: string;
    programId: Address<"fUSioN9YKKSa3CUC2YUc4tPkHJ5Y6XW1yz8y6F7qWz9">;
    tokenProgram: Address<"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA">;
    fetchPoolConfig: typeof fetchDefiTunaPoolConfig;
}
```

### `fetchDefiTunaPoolConfig`

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

Fetch + decode one FusionPool and freeze both directions' boundary windows. Read-only against the loader.

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

### `DefiTunaBoundary`

*Interface* · `sdk/dist/svm/venues/defituna/index.d.ts`

```typescript theme={null}
export interface DefiTunaBoundary {
    arrayIndex: number;
    byteOffset: number;
    tick: number;
    sqrtPrice: bigint;
}
```

### `DefiTunaWindow`

*Interface* · `sdk/dist/svm/venues/defituna/index.d.ts`

```typescript theme={null}
export interface DefiTunaWindow {
    tickArrays: [
        Address,
        Address,
        Address
    ];
    startTicks: [
        number,
        number,
        number
    ];
    boundaries: DefiTunaBoundary[];
    edge: {
        tick: number;
        sqrtPrice: bigint;
    } | null;
    readable: number;
    hasActiveOrder: boolean;
}
```

### `DefiTunaPoolConfig`

*Interface* · `sdk/dist/svm/venues/defituna/index.d.ts`

```typescript theme={null}
export interface DefiTunaPoolConfig extends PoolConfig {
    venue: typeof SLUG;
    direction: "aToB" | "bToA";
    tokenMintA: Address;
    tokenMintB: Address;
    tokenVaultA: Address;
    tokenVaultB: Address;
    tickSpacing: number;
    feeRate: number;
    liquidity: bigint;
    sqrtPrice: bigint;
    tickCurrentIndex: number;
    windows: {
        aToB: DefiTunaWindow;
        bToA: DefiTunaWindow;
    };
}
```
