How it Works
The Merkle Adapter combines three mechanisms: an allowlist of approved actions that bounds what the strategy can do, an independent valuation from Chainlink CRE that tracks what the strategy is worth, and a staged withdrawal flow that makes sure unwind losses are priced in before cash returns to the vault.
Action Permissions
The Merkle Account can only execute actions included in a predefined allowlist. Any action not included in the allowlist cannot be executed, including by the account admin.
Each allowlist entry defines:
| Parameter | Description |
|---|---|
| Target | Contract that can be called |
| Function | Function selector that can be executed |
| Fixed arguments | Arguments that must match predefined values |
| Variable arguments | Arguments that can be specified at execution time |
Each action can be executed by any address(es) specified by the curator.
For example, an entry may allow the Aave Pool to spend USDC while leaving the approval amount variable. The same permission cannot be used to approve another token or spender.
Merkle Verification
The allowlist is represented by a Merkle root stored on the Merkle Account. Each execution provides the corresponding Merkle proof, which verifies that the requested action is part of the approved allowlist without requiring the full set of permissions to be stored onchain.
Executor Permissions
Allowlisted actions are permissioned independently. Specific wallets or bots can be authorized to execute specific actions, enabling granular separation of responsibilities between curators, keepers, and other operators.
Allowlist Updates
Updating the allowlist requires approval from both parties:
- The curator requests the update via the Curator UI.
- Symbiotic proposes the new Merkle root.
- The curator accepts the root.
- The curator adjusts the permissions over the new actions.
Neither party can independently introduce new executable actions.
Batched Execution
Multiple allowlisted actions can be executed atomically within a single transaction. Each action is validated before execution. If any action fails validation or execution, the entire transaction reverts.
Strategy Valuation
The adapter value is based on the latest Chainlink CRE report, adjusted for deposits and withdrawals that occur after the report.
Chainlink CRE periodically values the full portfolio at a finalized block — including assets, positions, pending claims, and debt — and reports the net value onchain. Between reports, the adapter tracks capital moving in and out of the strategy to maintain an up-to-date valuation.
Transfers within the strategy, such as moving capital between the adapter, Merkle Account, or lending positions, do not affect the total value.
Reports are subject to validation checks. Reports with value changes above predefined limits require additional approval, while stale, out-of-order, or invalid reports are rejected.
Withdrawal Flow
Exiting a position can result in costs through slippage, unbonding penalties, or a discount on an RWA.
Cash only goes back to the vault after a fresh report has seen it sitting in the adapter. This ensures that any loss from unwinding positions is reflected in the portfolio valuation before the withdrawal is completed.
Withdrawal Lifecycle
- Request: The vault requests capital back from the adapter.
- Unwind: The curator exits the required positions and moves the resulting cash to the adapter.
- Stage: The cash is locked and tagged with the block at which it arrived. The curator can no longer reinvest it.
- Report: CRE provides a new portfolio valuation taken at or after the staging block, incorporating any losses from the unwind.
- Release: The adapter applies the report and marks the staged cash as available for withdrawal.
- Return: The vault collects the released cash.
Withdrawal timing therefore depends primarily on the CRE reporting frequency.
Extended Account Capabilities
The Merkle Account supports additional execution mechanisms beyond standard onchain calls. All remain subject to the approved permissions.
Signed Orders
The account can sign asynchronous orders for venues such as CoW Swap and Liquid Lane, provided they match approved parameters such as tokens, recipient, and venue. Amounts and expiry can remain variable.
Capabilities
Capabilities are modules that extend the Merkle Account, such as enabling recipe execution. Modules must be approved by Symbiotic and installed by the account owner.
Recipes
Recipes combine actions and validation checks atomically. For example, a recipe can supply collateral, borrow, and verify a minimum health factor. If any action or check fails, the transaction reverts.