> ## 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: metadao-futarchy

> 5 exports of the metadao-futarchy venue integration in @eco-incorp/sauce/svm, including METADAO_FUTARCHY_PROGRAM_ID, METADAO_FUTARCHY_EVENT_AUTHORITY, fetchMetaDaoFutarchySpotConfig, metadaoFutarchySpotQuote, MetaDaoFutarchySpotPoolConfig.

Solana venue integration `metadao-futarchy` under `svm/venues/metadao-futarchy`.

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

### `METADAO_FUTARCHY_PROGRAM_ID`

*Variable* · `sdk/dist/svm/venues/metadao-futarchy/index.d.ts`

```typescript theme={null}
METADAO_FUTARCHY_PROGRAM_ID: Address<"FUTARELBfJfQ8RDGhg1wdhddq1odMAJUePHFuBYfUxKq">
```

### `METADAO_FUTARCHY_EVENT_AUTHORITY`

*Variable* · `sdk/dist/svm/venues/metadao-futarchy/index.d.ts`

PDA(\["\_\_event\_authority"], METADAO\_FUTARCHY\_PROGRAM\_ID) - Anchor's
`#[event_cpi]` self-log signer, fixed for this program (independent of any
pool). Computed via `getProgramDerivedAddress` and confirmed byte-for-byte
against two real mainnet `spotSwap` transactions' account lists (see the
file header).

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

### `fetchMetaDaoFutarchySpotConfig`

*Function* · `sdk/dist/svm/venues/metadao-futarchy/index.d.ts`

Off-chain gate + decode: rejects the wrong account shape (size/discriminator),
an active-proposal dao (PoolState::Futarchy - see the file header), and a
drained side (Pool::swap requires both reserves nonzero). `pool` here is
the Dao account address itself (the AMM lives embedded on it, not on a
separate pool account).

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

### `metadaoFutarchySpotQuote`

*Function* · `sdk/dist/svm/venues/metadao-futarchy/index.d.ts`

The COLD, venue-exact quote (see the file header's derivation).

```typescript theme={null}
export declare function metadaoFutarchySpotQuote(x: bigint, rin: bigint, rout: bigint): bigint;
```

### `MetaDaoFutarchySpotPoolConfig`

*Interface* · `sdk/dist/svm/venues/metadao-futarchy/index.d.ts`

```typescript theme={null}
export interface MetaDaoFutarchySpotPoolConfig extends PoolConfig {
    venue: typeof SLUG;
    direction: "buy" | "sell";
    baseMint: Address;
    quoteMint: Address;
    ammBaseVault: Address;
    ammQuoteVault: Address;
    tokenProgram: Address;
}
```
