To let swap orders run, add Allow rules to your policy. The rules depend on your provider type and your swap type.
This article uses two terms:
- Decentralized Finance (DeFi): swaps through decentralized finance providers.
- Centralized Finance (CeFi): swaps through connected accounts.
Same-chain and cross-chain swaps use the same rules, so each flow below covers both. Off-chain swaps (CeFi only) are covered at the end of the CeFi section. For more about each swap type, see What is a swap order?
Find your swap
Find your row, then go to the linked section for the rules and fields to set:
| Your swap | Rules to add | Go to |
| DeFi on EVM chains | One Allow rule in each of the Approve, Typed message, and Contract call policies. Skip the Contract call policy for UniswapX. | Policy rules for DeFi swaps on EVM chains |
| DeFi on Solana | One Allow rule in the Program call policy. | Policy rules for DeFi swaps on Solana |
| CeFi | One Allow rule in each of the Order and Transfer policies. For off-chain swaps, add only the Order policy rule. | Policy rules for CeFi swaps |
How to add a rule
Follow these steps for every rule in this article. Each flow below tells you which policy type to open and which fields to set.
- Go to Policies and open the policy type named in your flow.
- Select Edit policy, then select + Add rule.
- Set Action to Allow.
- Set the Scope and Funds fields listed in your flow. Program Call rules have only Scope fields.
- Repeat steps 1–4 for each remaining rule in your flow.
- After you add all the rules for your flow, select Publish policy.
The approval group for policy changes must approve the rules before they take effect. For details, see Create, edit, and publish a policy.
Policy rules for DeFi swaps on EVM chains
Use this section for DeFi swaps on EVM chains. It covers same-chain and cross-chain swaps. Each swap needs one Allow rule in each policy the table below marks as required. For the steps, see How to add a rule.
| Policy | What it authorizes | Required for Uniswap Classic and LI.FI | Required for UniswapX |
| Approve | The smart contract to spend the source token | Yes | Yes |
| Typed message | The permit allowance for the swap | Yes | Yes |
| Contract call | The on-chain token exchange | Yes | No |
Approve: grant allowance
This rule authorizes the smart contract to spend the source token. Add it once for each source token.
| Section | Field | Set to |
| Scope | Source | The vault accounts that approve the allowance |
| Scope | Destination | The Permit2 contract on all relevant blockchains, or All Order destinations |
| Funds | Asset | The source token to approve |
Typed message policy: authorize the permit
This rule signs the permit allowance for the swap.
| Section | Field | Set to |
| Scope | Source | The vault accounts that initiate the swaps |
| Funds | Asset | The native asset of the blockchain (for example, ETH for Ethereum or MATIC for Polygon). You can't select other tokens. |
Contract call policy: execute the swap
This rule executes the token exchange on-chain. Add it for Uniswap Classic and LI.FI. UniswapX swaps don't send a contract call transaction, so they don't need a Contract call policy rule.
| Section | Field | Set to |
| Scope | Source | The vault accounts that initiate the swaps |
| Scope | Destination | The UniversalRouter contract on the relevant blockchains, or All Order destinations |
| Funds | Asset | The source token being swapped |
Policy rules for DeFi swaps on Solana
Use this section for DeFi swaps on Solana. It covers same-chain and cross-chain swaps. Each swap needs one Allow rule in the Program call policy. For the steps, see How to add a rule.
Before you start: add a wrapped SOL (WSOL) asset wallet for native SOL
If the source asset is native SOL and the source vault account has no WSOL asset wallet, create one. Fireblocks does not create this wallet automatically. In the vault account, select + Create wallet and add the WSOL asset wallet.
Program call policy: execute the swap
This rule authorizes the swap transaction to call specific Solana programs listed after the fields table.
| Section | Field | Set to |
| Scope | Source | The vault accounts that initiate the swaps |
| Scope | Program calls | Under the Order tab, choose the program calls to allow, or choose Any order. |
| Scope | Initiator | The Console user or API key allowed to submit the swap |
| Action | Designated signer | The vault account authorized to sign the transaction, if you use a designated signer |
The swap transaction calls these programs:
| Program | Purpose |
| Mayan CPI Proxy Program | Routes the swap transaction through Mayan for cross-chain bridging |
| Jupiter V6 Solana Program | Executes the swap aggregation on Jupiter |
| LI.FI Solana Program 1 | Routes the swap transaction through LI.FI for cross-chain bridging |
Policy rules for CeFi swaps
Use this section for CeFi swaps. It covers same-chain and cross-chain swaps. Same-chain and cross-chain swaps need two Allow rules: one in Order Policy and one in Transfer Policy. Off-chain swaps need only the Order Policy rule (see Off-chain swaps). For off-chain swaps, see Off-chain swaps at the end of this section. For the steps, see How to add a rule.
Order policy: allow the order
This rule allows the connected account to execute the order.
| Section | Field | Set to |
| Scope | Connected account | The connected account that executes the order. Select Any connected account, or select a specific connected account. |
| Scope | Source | Vault. Select the vault accounts that can start a swap. |
| Scope | Destination | Vault. Select the vault accounts or whitelisted addresses that can receive a swap. |
| Funds | Base asset | The asset you send (for example, BTC or USDC). Set a minimum and maximum amount. |
| Funds | Quote asset | The asset you receive (for example, ETH or USDT). Set a minimum and maximum amount. |
| Funds | Buy / Sell / Any | Whether the rule covers buying the base asset, selling it, or both. |
Transfer policy: allow the transfer
Add this rule in addition to the Order policy rule.
| Section | Field | Set to |
| Scope | Source | Vault. Select the vault accounts that can send the transfer. |
| Scope | Destination | Connected account. Select the connected account. |
| Funds | Asset | The asset you are swapping from |
Off-chain swaps
Off-chain swaps convert funds inside your connected account, so they need only an Order policy rule.
- One Allow rule in Order policy, with the same fields as above except Source and Destination.
- Source and Destination: select Any connected account, or a specific one.
- No Transfer policy rule. Same-chain and cross-chain swaps need one.