# z.tempo.FundingPolicy.Rules

Funding permissions keyed by output token.

## Imports

```ts
import { z } from 'ox/zod'

z.tempo.FundingPolicy.Rules
```

## Definition

```ts
export const Rules = z
  .object({
    maxSlippageBps: z.number(),
    sources: z.record(
      z_Address.Address,
      z.readonly(
        z.array(z.object({ target: z_Address.Address, data: z_Hex.Hex })),
      ),
    ),
  })
  .check(
    z.refine((value) => {
      try {
        core_FundingPolicy.toRoutes(value)
        return true
      } catch {
        return false
      }
    }, 'Invalid funding policy rules'),
  )
```

**Source:** [src/zod/tempo/FundingPolicy.ts](https://github.com/wevm/ox/blob/main/src/zod/tempo/FundingPolicy.ts)
