# EarnShares.toVenueAmount

Converts a vault share amount to venue shares at the anchor rate, rounding down.

Mirrors `VaultAdapter.tokensToShares`.

## Imports

:::code-group
```ts [Named]
import { EarnShares } from 'ox/tempo'
```

```ts [Entrypoint]
import * as EarnShares from 'ox/tempo/EarnShares'
```
:::

## Examples

```ts twoslash
import { EarnShares } from 'ox/tempo'

const venueShareAmount = EarnShares.toVenueAmount(
  { engineShares: 3n, shareSupply: 2n },
  7n
)
// @log: 10n
```

## Definition

```ts
function toVenueAmount(
  anchor: Anchor,
  shareAmount: bigint,
): bigint
```

**Source:** [src/tempo/EarnShares.ts](https://github.com/wevm/ox/blob/main/src/tempo/EarnShares.ts#L236)

## Parameters

### anchor

* **Type:** [`Anchor`](/tempo/reference/EarnShares/types#earnsharesanchor)

The conversion anchor.

#### anchor.engineShares

* **Type:** `bigint`

Venue shares held by the engine at the anchor point.

#### anchor.shareSupply

* **Type:** `bigint`

Vault share supply at the anchor point.

### shareAmount

* **Type:** `bigint`

Vault share amount, base units.

## Return Type

Venue share amount, rounded down.

`bigint`
