---
title: assertMathRevision
description: Throw if a snapshot's curve revision is not implemented by this SDK.
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

Every `quote*` function calls this first. Unknown `kind` / `schemaVersion` / `engineRevision` / `curveSourceHash` throw `UnsupportedCurveRevisionError` instead of silently applying v1 formulas.

You can call it yourself after [getQuoteState](/developers/get-quote-state) if you want to fail the UI before the user types.

## Import

```ts
import { assertMathRevision } from "@repo/contract-client/math";
```

## Usage

```ts
import { assertMathRevision } from "@repo/contract-client/math";

assertMathRevision(snapshot);
```

Supported revisions live in `SUPPORTED_MATH` (re-exported from `@repo/contract-client/math`).

## Return Value

`void`

## Parameters

### snapshot

- **Type:** `MarketSnapshot`

Uses `snapshot.math`.

```ts
assertMathRevision(snapshot);
```

## Error

`UnsupportedCurveRevisionError` when the tuple is not in `SUPPORTED_MATH`.
