# Policies that could be built

> Policies each slot could support, how each would work, and where the hooks limit them. None is implemented today.

Source: https://docs.trusslabs.io/vaults/policies/possible-policies

Each policy slot accepts any contract that implements its hook, so a vault can take on rules that do not exist yet.
This page describes policies that could be built for each slot, and where each hook's inputs limit what it can
express. None of them is implemented today, and listing one here is not a plan to build it.

> **Key points**
>
> - Every policy below fits a slot the vault already has. It needs a new policy contract and a binding, not a change to the vault.
> - The deposit hook sees the caller, the owner, the controller and the amount. The holder and withdrawal hooks see only an address.
> - A slot holds one policy, so several rules for one slot go in one contract.
> - Binding a new policy on a live vault waits the CRITICAL tier. A holder or withdrawal policy can also be bound at deployment.

## Deposit policies

| Policy | How it would work | Limits |
|---|---|---|
| Depositor allowlist | Refuse a request unless the owner or the caller is approved, such as your app's own contract | Covers who requests, not who holds later. Pair it with a holder policy |
| Per-depositor or per-period limits | Keep a limit per owner, used up by each request | The policy is not told when a request is cancelled |
| Subscription windows | Refuse requests outside set dates | None |
| Scheduled cap | Return headroom that rises on a schedule | None |
| Cap plus other rules | Keep the deposit cap and add rules of its own | Needed, because replacing the cap policy drops the cap |

## Holder policies

| Policy | How it would work | Limits |
|---|---|---|
| Verified-customer allowlist | `canHold` reads an identity registry or an on-chain credential | Refuses arrivals only |
| Screening denylist | `canHold` reads a screening list | A listed holder keeps its shares, and can still send or redeem them |
| Closed vault | Only your own custody or omnibus addresses may hold | Suits an owner that keeps customer ledgers off chain |
| Collateral integrations | Admit a lending market and every address it sends shares to, such as liquidators | Each of those addresses has to be admitted, or a liquidation reverts |

## Withdrawal policies

| Policy | How it would work | Limits |
|---|---|---|
| Verified payout addresses | Pay only approved receivers, such as an off-ramp | A refused owner can still name an approved controller |
| Screening on payouts | `canWithdraw` reads a screening list | A refused controller's request still settles, and the USDC waits unclaimed |

The withdrawal hook sees an address and nothing else: no amount, no request and no date. It cannot express a lock-up
per request or a limit per amount.

## Sub-account policies

| Slot | Policy | How it would work |
|---|---|---|
| Allocation | Concentration limit | Cap each sub-account at a share of the vault's NAV rather than a fixed amount |
| Allocation | Co-signed pushes | Require a second approval, signed off chain and passed in `policyData` |
| Allocation | Time windows | Allow pushes only at set times |
| Execution | Loss bound in value | Refuse an execution whose measured loss exceeds a set amount, in `recordExecutionOutcome` |
| Execution | Loss or trade budgets | Cap the total loss or the number of executions per period |
| Execution | Venue concentration | Cap supply to a venue at a share of that venue's size |

A new execution policy is installed by removing a module and adding it back with the policy. See
[Building a policy](https://docs.trusslabs.io/vaults/policies/building-a-policy.md).

## Where to read more

| Page | What it covers |
|---|---|
| [Vault policies](https://docs.trusslabs.io/vaults/policies/vault-policies.md) | Where each vault hook is called, and who it is asked about |
| [Sub-account policies](https://docs.trusslabs.io/vaults/policies/sub-account-policies.md) | Where each sub-account hook is called |
| [Building a policy](https://docs.trusslabs.io/vaults/policies/building-a-policy.md) | What a policy must satisfy, and what no policy can do |
| [Using policies for compliance](https://docs.trusslabs.io/vaults/compliance/using-policies.md) | Which hook fits which compliance need |
