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

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

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

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

### `PERENA_PROGRAM_ID`

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

```typescript theme={null}
PERENA_PROGRAM_ID: Address<"NUMERUNsFCP3kuNmWZuXtm1AaQCPj9uw6Guv2Ekoi5P">
```

### `STABLE_POOL_ACCOUNT_SIZE`

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

```typescript theme={null}
STABLE_POOL_ACCOUNT_SIZE = 4024
```

### `STABLE_POOL_DISCRIMINATOR`

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

sha256('account:StablePool')\[0..8].

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

### `perena`

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

```typescript theme={null}
perena: SvmVenueAdapter
```

### `perenaSwapOut`

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

TS mirror of the emitted fragment's per-rung quote - see module header
MATH for the 2-hop derivation and RESIDUAL for the measured, disclosed gap
to the real venue, and MARGIN\_BPS for the conservative haircut applied
here.

```typescript theme={null}
export declare function perenaSwapOut(live: PerenaLiveState, x: bigint): bigint;
```

### `PerenaPoolConfig`

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

```typescript theme={null}
export interface PerenaPoolConfig extends PoolConfig {
    venue: typeof SLUG;
    direction: "aToB" | "bToA";
    aMint: Address;
    aVault: Address;
    aIs2022: boolean;
    bMint: Address;
    bVault: Address;
    bIs2022: boolean;
    ampRaw: bigint;
    aRaw: bigint;
    pausedAtFetch: boolean;
    rateOkAtFetch: boolean;
    decimalsOkAtFetch: boolean;
}
```

### `PerenaLiveState`

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

```typescript theme={null}
export interface PerenaLiveState {
    ampRaw: bigint;
    aRaw: bigint;
    feeNum: bigint;
    feeDenom: bigint;
    xIn: bigint;
    yIn: bigint;
    lIn: bigint;
    xOut: bigint;
    yOut: bigint;
    lOut: bigint;
}
```


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