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

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

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

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

### `TAURUSFI_PROGRAM_ID`

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

```typescript theme={null}
TAURUSFI_PROGRAM_ID: Address<"9VX8EKBg6vM6tA68xaDsPkbrx26XConZjkQmhVApUptc">
```

### `TAURUSFI_PRICE_SCALE`

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

Fixed-point scale for the decoded price (10^9 - \~9-10 significant decimal digits of headroom).

```typescript theme={null}
TAURUSFI_PRICE_SCALE = 1000000000n
```

### `TAURUSFI_POOL_REGISTRY`

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

Hand-verified TaurusFi markets: for each, a real mainnet swap CPI (inside a
Jupiter route) was decoded and the vault/mint addresses were cross-checked
against `preTokenBalances`/`postTokenBalances`, and the price account was
independently confirmed against a same-slot keeper-crank update. Only one
live-priced market was observed during integration; a second market
account (`HFqA7kAqgUMjNCo5zDSN1tnKvE8GVBXGPDyK2nizJm11`) exists but reads an
all-zero (unpriced/inactive) price and has no known vault/mint pair, so it
is deliberately NOT seeded here - extend by repeating the same
verification once it (or another market) goes live.

```typescript theme={null}
TAURUSFI_POOL_REGISTRY: Record<string, TaurusFiRegistryEntry>
```

### `taurusfi`

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

The TaurusFi venue: a closed-source market priced by a keeper-updated state account.

```typescript theme={null}
taurusfi: {
    slug: string;
    programId: Address<"9VX8EKBg6vM6tA68xaDsPkbrx26XConZjkQmhVApUptc">;
    fetchPoolConfig: typeof fetchTaurusFiConfig;
}
```

### `decodeTaurusFiPriceScaled`

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

Decodes a raw f64 bit pattern (as read off-chain OR the exact on-chain
`accountUint` value) into a `TAURUSFI_PRICE_SCALE`-fixed-point integer,
LOCKSTEP with the on-chain formula in `emitSetup` below (same masks, same
mulDiv-shaped floor division) - bit-exact by construction, not merely
"close". Degrades to exactly 0 for an unpriced market (bits === 0n) with
no special case (see file header).

```typescript theme={null}
export declare function decodeTaurusFiPriceScaled(bits: bigint): bigint;
```

### `fetchTaurusFiConfig`

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

Registry lookup + live decode: reads the market's price account (for the
gate) and both vaults (mint-integrity check, mirroring gamma's/bisonfi's
own vault verification) - nothing else is decodable off this venue's pool
state (no plaintext pool-identity account exists at all; see file header).

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

### `TaurusFiRegistryEntry`

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

```typescript theme={null}
export interface TaurusFiRegistryEntry {
    vault0: Address;
    vault1: Address;
    mint0: Address;
    mint1: Address;
    decimals0: number;
    decimals1: number;
    vaultAuthority: Address;
    globalConfig: Address;
    globalAuthority: Address;
    priceAccount: Address;
}
```

### `TaurusFiPoolConfig`

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

```typescript theme={null}
export interface TaurusFiPoolConfig extends PoolConfig {
    venue: typeof SLUG;
    direction: "0to1" | "1to0";
    vault0: Address;
    vault1: Address;
    mint0: Address;
    mint1: Address;
    decimals0: number;
    decimals1: number;
    vaultAuthority: Address;
    globalConfig: Address;
    globalAuthority: Address;
    priceAccount: Address;
    priceScaled: bigint;
}
```


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