Skip to main content
The Vaults.fyi policy checks whether a vault still fits the risk profile configured by the vault owner or curator. It is useful before deposits, cap changes, reallocations, or other actions that should stop when the vault’s health changes.

Deployment

Secret

Data Inputs

The Vaults.fyi data oracle normalizes vault performance, TVL, reputation score, flags, capacity, and historical time-series data from the Vaults.fyi vault data API.

Rego Checks

Use these exact Rego checks to enforce each guardrail.

APY Spike

This check compares apy_z_score to the configured apy_z_max. Use it to stop actions when short-window APY moves too far from the 30 day baseline, which can indicate abnormal rewards, stale data, manipulation, or a strategy regime change.

24 Hour TVL Drawdown

This check blocks actions when current TVL has fallen by more than tvl_drawdown_24h_max_pct compared with the recent 24 hour historical point. It is useful for catching sudden withdrawals, migrations, or confidence shocks.

7 Day TVL Drawdown

This check blocks actions when current TVL has fallen by more than tvl_drawdown_7d_max_pct compared with the 7 day historical point. The 7 day window is less noisy than a daily check and helps catch sustained capital flight.

Risk Score Floor

This check blocks actions when Vaults.fyi returns a non-null reputation score below the configured risk_score_floor. Because the score includes multiple components and can include flag penalties, this gives the policy a compact vault-health threshold.

Allocation Change

This check blocks actions when the oracle detects a change from the last known allocation hash and the policy is configured to deny on allocation change. Use it when a vault should pause until an allocator or risk team reviews changed vault metadata.

Critical Flag

This check blocks actions when Vaults.fyi reports a high or critical flag and the policy is configured to deny on critical flags. Use it to pause actions during severe active warnings.

Corrupted Vault

This check blocks actions when Vaults.fyi marks the vault’s indexed data as corrupted and the policy is configured to deny corrupted vaults. Use it when policy decisions should not proceed on unreliable vault data.

Final Allow Rule

Complete Policy