# Architecture
Source: https://docs.levery.io/architecture
A deep dive into Levery’s on-chain design: permissioning, oracle-driven dynamic fees, and soulbound liquidity positions.
Levery is a permissioned on-chain market infrastructure designed for regulated institutions. Instead of relying on front-ends or off-chain middleware to enforce policy, Levery embeds compliance and operational controls directly into smart-contract execution. Every transaction path, from wallet admission to liquidity lifecycle actions and swap execution, runs deterministic checks before any state change. Non-compliant calls revert with explicit reasons; compliant actions execute normally. This gives institutions uniform enforcement, auditable outcomes, and tamper-resistant governance across all user interactions.
Levery’s on-chain architecture is organized into modular domains that work together to provide: permissioning, identity validation, pricing integrity, economic controls, governance, lifecycle enforcement, and transparent treasury operations. Institutions can tailor venue behavior through governed parameters (per pool or global) without weakening core security guarantees.
***
## Core Domains
### Permissioning and Admission Control
Levery enforces “who can do what” at the execution layer. Before swaps or liquidity actions, contracts validate that the initiating account is authorized and meets the pool’s policy requirements (e.g., role-based access, institution rules, and KYC/KYB-derived permissions). This ensures only verified actors can access pools, add/remove liquidity, or trade, while keeping the system non-custodial.
### Controlled Entry Points for Swaps and Liquidity
Levery separates transaction entry points by intent:
#### Swap
**Swap entry** is routed through a compliant execution path that ties the user identity to the call and prevents accidental or unauthorized token reception.
```mermaid theme={null}
---
config:
theme: neutral
---
flowchart TD
S_A["Swap request"] --> S_B{"Admission + access checks"}
S_B -->|Rejected| S_X["Reject swap"]
S_B -->|Allowed| S_C["Resolve pricing context
(market reference + pool state)"]
S_C --> S_D["Compute fees
(base fee + dynamic adjustment if enabled)"]
S_D --> S_E["Execute swap + update pool state"]
S_E --> S_F["Settle outcomes + apply service fee
(timing: BEFORE or AFTER; charged on actual deltas)"]
S_F --> S_G["Emit events
(policy, fees, execution, service fee)"]
```
```mermaid theme={null}
---
config:
theme: dark
---
flowchart TD
S_A["Swap request"] --> S_B{"Admission + access checks"}
S_B -->|Rejected| S_X["Reject swap
(return reason)"]
S_B -->|Allowed| S_C["Resolve pricing context
(market reference + pool state)"]
S_C --> S_D["Compute fees
(base fee + dynamic adjustment if enabled)"]
S_D --> S_E["Execute swap + update pool state"]
S_E --> S_F["Settle outcomes + apply service fee
(timing: BEFORE or AFTER; charged on actual deltas)"]
S_F --> S_G["Emit events
(policy, fees, execution, service fee)"]
```
Service fees are always denominated in the **input token**. Collection timing depends on swap type:
* **Exact-input swaps:** collected in `beforeSwap`(BEFORE).
* **Exact-output swaps:** collected in `afterSwap` (AFTER).
Fees are routed to the payment splitter vault, which allows transparent revenue-sharing between provider and institution.
#### Liquidity
**Liquidity entry** is mediated through a position manager that performs lifecycle checks on mint, increase, decrease, and burn, so permissioning remains enforced across the entire LP journey, not just at creation time.
This structure makes policy enforcement consistent while keeping the user experience predictable and institution-friendly.
```mermaid theme={null}
---
config:
theme: neutral
---
flowchart TD
L_A["Liquidity action request
(create, add, remove, close)"] --> L_B{"Admission + pool access checks"}
L_B -->|Rejected| L_X["Reject action"]
L_B -->|Allowed| L_C["Validate authority
(bind owner on create; verify owner/recipient on modify)"]
L_C --> L_D["Compute asset deltas + validate limits
(deadlines, min amounts, policy constraints)"]
L_D --> L_E["Execute via liquidity lifecycle entry point"]
L_E --> L_F["Settle assets as required
(inputs, outputs, refunds; policy + asset rules)"]
L_F --> L_G["Update position + pool state"]
L_G --> L_H["Emit structured events
(position, deltas, fees, outcomes)"]
```
```mermaid theme={null}
---
config:
theme: dark
---
flowchart TD
L_A["Liquidity action request
(create, add, remove, close)"] --> L_B{"Admission + pool access checks"}
L_B -->|Rejected| L_X["Reject action
(return reason)"]
L_B -->|Allowed| L_C["Validate authority
(bind owner on create; verify owner/recipient on modify)"]
L_C --> L_D["Compute asset deltas + validate limits
(deadlines, min amounts, policy constraints)"]
L_D --> L_E["Execute via liquidity lifecycle entry point"]
L_E --> L_F["Settle assets as required
(inputs, outputs, refunds; policy + asset rules)"]
L_F --> L_G["Update position + pool state"]
L_G --> L_H["Emit structured events
(position, deltas, fees, outcomes)"]
```
### Oracle-Guided Pricing Integrity and Dynamic Fees
Levery integrates decentralized price-feed oracles to anchor execution to external market references and to compute dynamic fees. Pools can be configured with an oracle reference and comparison rules, and the protocol adjusts fees in response to oracle-to-pool divergence to reduce toxic flow and protect liquidity providers, while maintaining competitive pricing for traders.
To preserve pricing integrity, the oracle layer includes safeguards such as:
* **On‑demand Queries:** Price feeds only invoked in swap hooks, minimizing gas overhead for liquidity ops.
* **Decimal Normalization:** Safe adjustments to align feed decimals with token decimals, preventing mispricing.
* **Zero‑price Guard:** Immediate revert on zero or stale oracle values to prevent erroneous fee calcs.
#### Price‑Feed Oracle Integration
Levery supports per‑pool oracle configuration via `setPoolOracle()`.
* **Adapters & decimals** – Each pool stores `{oracle, compareWithPrice0}`. The returned feed value is scaled to match the token decimals before comparison.
* **Deviation logic** – `beforeSwap` calculates `price0 / price1` on‑chain, fetches market price `M` and applies the formula:
$$
F_{swap}=F_{base}+\bigl|\tfrac{P_{onchain}-M}{M}\bigr|\times \texttt{deviationFeeFactor}
$$
* **Capped multiplier** – `deviationFeeFactor` (ppm) is clamped to $0,1$, guaranteeing the fee never overshoots the absolute price delta.
Let:
* $P_0$ and $P_1$ be the current prices for asset 0 and asset 1, respectively.
* $M$ be the real-time market price from the Oracle.
* $\alpha$ `deviationFeeFactor` be the liquidity provider fee multiplier.
* $F_{\text{base}}$ be the base fee for the swap.
* $F_{\text{pool}}$ be the pool-specific fee for the swap, which takes precedence over $F_{\text{base}}$ if defined.
#### Initial Swap Fee Definition
The initial swap fee $F_{\text{swap}}$ is defined as:
$$
F_{\text{swap}} =
\begin{cases}
F_{\text{pool}} & \text{if } F_{\text{pool}} \neq 0 \\
F_{\text{base}} & \text{otherwise}
\end{cases}
$$
#### Price Comparison and Fee Adjustment
If a market price oracle is defined, we adjust $F_{\text{swap}}$ based on the price comparison:
**If `compareWithPrice0` is true:**
$$
F_{\text{swap}} =
\begin{cases}
F_{\text{swap}} + \left( \frac{P_0 - M}{M} \times \alpha \right) & \text{if } P_0 > M \text{ and } \text{params.zeroForOne} \\
F_{\text{swap}} + \left( \frac{M - P_0}{M} \times \alpha \right) & \text{if } P_0 < M \text{ and not } \text{params.zeroForOne} \\
F_{\text{swap}} & \text{otherwise}
\end{cases}
$$
**Else:**
$$
F_{\text{swap}} =
\begin{cases}
F_{\text{swap}} + \left( \frac{M - P_1}{M} \times \alpha \right) & \text{if } P_1 < M \text{ and } \text{params.zeroForOne} \\
F_{\text{swap}} + \left( \frac{P_1 - M}{M} \times \alpha \right) & \text{if } P_1 > M \text{ and not } \text{params.zeroForOne} \\
F_{\text{swap}} & \text{otherwise}
\end{cases}
$$
#### Final Fee Update
The updated swap fee is used to update the dynamic LP fee:
$$
\text{poolManager.updateDynamicLPFee}(key, F_{\text{swap}})
$$
### Non-Transferable Liquidity Positions
Liquidity positions are represented as non-transferable ERC-721 tokens bound to their verified owner. This design prevents unauthorized transfers, preserves compliance status across the entire lifecycle, and simplifies compliance reporting by ensuring LP ownership remains traceable and immutable at the protocol level.
Position metadata can be generated in a standardized, auditor-friendly format, enabling transparent reviews of position state (ownership, ranges, and other relevant properties) without relying on off-chain interpretation.
### Configurable Service Fee and Transparent Treasury
Levery supports a programmable service fee that routes to an on-chain vault. The service fee can be applied predictably across swap flows and accrues transparently for accounting. Vault distribution logic is executed by contract and recorded on-chain, enabling clear treasury visibility and optional revenue-sharing models between stakeholders (e.g., provider/institution).
```mermaid theme={null}
---
config:
theme: neutral
---
flowchart TD
F_A["Swap executed"] --> F_B["Compute service fee
(based on actual swap deltas)"]
F_B --> F_C["Transfer fee to
Service Fee Vault
(PaymentSplitter)"]
F_C --> F_D["Distribute to payees
(per configured shares)"]
```
```mermaid theme={null}
---
config:
theme: dark
---
flowchart TD
F_A["Swap executed"] --> F_B["Compute service fee
(based on actual swap deltas)"]
F_B --> F_C["Transfer fee to
Service Fee Vault
(PaymentSplitter)"]
F_C --> F_D["Distribute to payees
(per configured shares)"]
```
### Governance, Administration, and Operational Safety
On-chain administration allows institutions to:
* update administrators and privileged roles,
* adjust fee parameters globally or per pool,
* update oracle references and pool settings,
* replace the permission manager under controlled procedures.
Levery also includes robust operational controls such as global and per-pool pausing. These controls let institutions isolate incidents, respond to risk events, and comply with procedural requests, without compromising non-custodial guarantees (the protocol restricts actions, but does not seize user funds).
### Auditability by Design
Every decision and execution step emits structured on-chain events that tie policy enforcement to the transaction lifecycle. This makes audits straightforward: institutions can reconstruct “who attempted what, under which policy, and what happened” directly from chain data. The result is a deterministic, evidence-first audit trail aligned with institutional compliance expectations.
***
## Permissioning & governance model
Permissions are represented as explicit, queryable entitlements. This keeps enforcement deterministic and makes audits easier.
### Permission lifecycle
The institution’s compliance stack evaluates KYC/KYB/AML and produces a decision.
The permission registry is updated (grant/revoke) for trade and liquidity actions.
Trade and liquidity calls verify entitlements before proceeding.
### Emergency controls
A provider-level circuit breaker can halt protocol activity across markets during systemic incidents.
Operators can isolate a single market (pool) without impacting others.
Pause/unpause actions are evented and indexed, enabling post-incident review.
***
## Why This Design
Levery is built around a simple principle: regulatory assurance should be embedded into protocol logic, not bolted on afterward. By relocating compliance controls, risk checks, pricing integrity rules, and governance into smart contracts, Levery achieves consistent enforcement, strong auditability, and operational flexibility, while keeping markets non-custodial and institution-ready.
Identity, permissions, and risk rules are enforced through an explicit permission layer plus audited operational
controls.
Event-sourced indexing, canonicalization, and deterministic snapshots power audit trails, reporting, and risk
analytics.
Users keep direct control of funds and keys by default, minimizing counterparty and custody risk. Policy is enforced
at execution time (not post-trade monitoring).
For institutions that require custody, Levery can also integrate HSM-based key storage and signing workflows without
changing on-chain settlement guarantees.
***
## Off-chain architecture: indexing, snapshots, and reporting
Levery uses an event-sourced indexing pipeline that is designed for **correctness under reorgs**, **idempotency**, and **fast UI queries**.
### Indexers
The worker layer runs multiple indexers in parallel. Key responsibilities include:
* **Protocol configuration indexer:** captures global config and per-market policy updates into a `System` and `Pool` snapshot model.
* **Permission indexer:** materializes the latest permissions per account into a `Permission` snapshot model.
* **Market activity indexer:** canonicalizes swaps and liquidity changes, attributes service fees, and writes normalized facts.
* **Price indexer:** ingests oracle feed updates and produces both *latest* and *time-slot* prices for historical valuation.
* **Balance indexers:** create daily and “current” token balance snapshots for every account.
* **Portfolio indexer:** values balances + positions + owed fees at snapshot times for reporting and analytics.
* **Metrics indexers:** compute pool and asset metrics for fast list pages (TVL, volume, APR, market cap, FDV).
```mermaid theme={null}
---
config:
theme: neutral
---
flowchart TB
RPC[RPC / Chain Logs]:::box
IDX[Indexers]:::box
EVT[(Event Store)]:::db
SNAP[(Snapshot Tables)]:::db
MET[(Metrics Tables)]:::db
API[Levery API]:::box
UI[UI]:::box
RPC --> IDX
IDX --> EVT
IDX --> SNAP
IDX --> MET
API -->|queries| SNAP
API -->|queries| MET
UI --> API
```
```mermaid theme={null}
---
config:
theme: dark
---
flowchart TB
RPC[RPC / Chain Logs]:::box
IDX[Indexers]:::box
EVT[(Event Store)]:::db
SNAP[(Snapshot Tables)]:::db
MET[(Metrics Tables)]:::db
API[Levery API]:::box
UI[UI]:::box
RPC --> IDX
IDX --> EVT
IDX --> SNAP
IDX --> MET
API -->|queries| SNAP
API -->|queries| MET
UI --> API
```
### Reorg safety & idempotency (why it matters)
To prevent “phantom activity” in regulated reporting:
* Indexers **wait for confirmations** before finalizing blocks.
* Cursors store the **last processed block** and **block hash**; mismatches trigger a bounded rollback.
* Rows are written with deterministic `uid` values (e.g., `chain:txHash:logIndex`) so retries are safe.
* In error paths (e.g., missing receipts), indexers **do not advance cursors**, avoiding silent data gaps.
### Snapshot-first data model
Rather than querying raw events at runtime, the platform materializes “latest state” objects (e.g., `Pool`, `Position`, `Permission`) plus an append-only `Event` history. This structure supports both:
* **Fast UI reads** (lists and dashboards run on precomputed snapshots).
* **Audit-grade reconstruction** (history is preserved and can be replayed or re-derived).
### Valuation correctness
Portfolio valuation aligns **prices**, **balances**, and **market state** to the same snapshot time window. This avoids mismatches such as “balance at time T valued using price at time T+Δ”.
## Extensibility and deployment topology
Levery is designed for multi-network and multi-institution deployments:
* **Per-network configuration:** deployments are described via environment configuration (e.g., contract addresses, token registry).
* **Per-market configuration:** fees, oracle bindings, role requirements, and pause state can be scoped to a market.
* **Composable integrations:** identity/risk providers and reporting systems connect through the platform API and are reflected on-chain via entitlements.
For regulated deployments, treat the permission registry as your **policy source of truth for execution**, and treat
the API/indexers as your **source of truth for reporting**.
# Account Dashboard
Source: https://docs.levery.io/end-user/account-dashboard
A consolidated, audit friendly view of portfolio value, balances, positions, and activity for end users of an institution-operated Levery instance.
The Account Dashboard is the default landing view after authentication. It provides a consolidated, compliance-friendly picture of an account’s **value**, **exposure**, **active liquidity**, and **recent activity** across the networks enabled by the institution.
The dashboard is designed for institutional workflows: **verifiable**, **consistent**, and **operationally useful**. It favors traceability and clarity over “best-effort” live estimates.
***
## What the user sees
A time series view of account value over selectable periods. It highlights the latest value and change for the
visible window.
A preview of active liquidity positions, including market pair, network, and estimated value, with fee visibility when
available under policy.
A summary of spot holdings with approximate valuation in the selected display currency, plus top assets for quick
exposure review.
An activity trail designed for investigation and reconciliation. It includes filters and structured fields that map
to on-chain execution records.
***
## Portfolio panel
The Portfolio panel shows account value over time and helps identify trend changes and event-driven movements.
### Time ranges
Best for short-term monitoring and recent volatility.
Default operational view in many deployments: balances signal and readability.
Macro context with smoother trends and reduced noise.
Full available history for long-horizon reporting and narrative continuity.
### How to read the chart
Choose the window that matches the decision. Short windows highlight recent movement. Longer windows provide
trend context.
Hovering a point reveals a breakdown for that moment, such as portfolio total and major components commonly displayed
in the UI.
Identify whether exposure shifted in spot assets, liquidity deployments, or both.
### How to interpret portfolio changes
Portfolio changes typically come from two categories:
| Driver | What it means | Where to confirm |
| ---------------- | ----------------------------------------------------------------- | ---------------------------------------------------------------------- |
| Market movement | Value changed due to reference price movement | Balances / Positions (value changes without matching new transactions) |
| Account activity | Value changed due to swaps, liquidity changes, transfers, or fees | Transactions panel (hash/time), plus Balances/Positions deltas |
Portfolio values are indicative and policy-based. Execution receipts and on-chain settlement remain authoritative for
individual actions, especially when fees, price movement, or timing differences are involved.
***
## LP Positions preview
The LP Positions preview surfaces the account’s most relevant liquidity deployments so users can quickly understand where capital is allocated and where fee-generation is occurring.
Each position card typically includes:
* **Market + network context:** The pool pair and the network where the position is held, enabling rapid operational routing (for example, validating activity against network references or coordinating support).
* **Position identifier:** A stable reference used for investigation, reconciliation, and support workflows.
* **Indicative position value:** An estimate of the position’s current value under the venue’s configured valuation rules, intended for exposure monitoring rather than execution-time accounting.
* **Fee / earnings visibility (when available):** An estimate of uncollected fees or earnings surfaced according to the venue’s reporting policy and the data available for the underlying pool mechanics.
This preview is designed for **triage**. It helps users identify positions that may warrant attention (for example, concentration in a single pool, material fee accrual, or changes correlated with recent market moves) before going deeper into lifecycle controls.
Each position card links directly to the **Position** page, where users can review full parameters (range, liquidity,
and pool context) and perform lifecycle actions such as adjusting liquidity, collecting fees (when applicable), or
closing the position.
***
## Balances panel
The Balances panel is optimized for **exposure clarity**: what you hold, where you hold it, and how concentrated it is.
It typically includes:
* A **total balances value** in the current display currency
* A **24h change indicator** (mark-to-market signal where supported)
* A holdings table showing major assets and approximate valuations
### Practical interpretation guidance
* **Token amounts are exact on-chain quantities expressed with token decimals.**
* **Fiat values are approximate** and reflect the institution’s pricing policy (source, freshness requirements, and coverage).
* **Cross-network consolidation** may be presented as a unified total while still allowing per-network inspection.
Levery’s dashboard is intentionally policy-scoped. It shows balances only for the networks enabled by the institution and for assets explicitly whitelisted for the venue. External wallet applications typically present a broader view of the same address across additional networks and tokens, including assets that are not supported or not authorized within the venue’s operating perimeter.
Differences may also arise in the valuation layer. Wallet apps can use different price references, update cadences, and rounding conventions. In Levery, displayed fiat values follow the venue’s configured pricing and reporting rules so users, operations, and compliance teams see a consistent view.
When reconciliation is required, rely on the policy-scoped balances alongside network references (chain and transaction hash) as the primary audit handle.
***
## Transactions panel
The Transactions panel is the operational backbone of the dashboard. It provides a chronological activity trail for the selected account, showing the account’s transaction history as executed through the protocol across the institution-enabled networks.
This view is designed for **investigation**, **reconciliation**, and **operational support**. Each entry is anchored to chain references and is suitable for audit workflows where you need to explain *what happened*, *when it happened*, and *what it affected*.
### What you will typically see
* **TX Hash (transaction hash):** Primary reference for reconciliation and external verification.
* **Type:** The business action recorded (e.g., swap execution, liquidity modification).
* **Chain:** The chain where the action occurred.
* **Caller:** The account that initiated the action in the protocol context.
* **Block:** The block number where the transaction was finalized on-chain.
* **Time:** Block time (and/or indexed time) used for ordering and reporting.
This panel tracks activity for the selected account within the institution’s Levery instance (venue interactions).
External transfers that did not occur through the venue will not be represented here.
***
## What the dashboard helps you answer
A portfolio view that tracks account value over time in your selected display currency, aligned with the institution’s valuation policy.
A balances view that highlights the largest holdings and approximate valuations for quick concentration checks.
A positions preview that surfaces active liquidity deployments and estimated earnings where available under policy.
A transaction trail that supports reconciliation and investigation, anchored to network identifiers (chain, hash, time).
***
## Data provenance and trust model
The dashboard is anchored to **on-chain records**. Portfolio value, balances, positions, and activity are derived from chain-native sources such as executed transactions, emitted events, and canonical state updates.
For valuation, the dashboard uses a **fiat quote** (for example, USD or BRL) computed from **market price feeds published on-chain**. These feeds provide both:
* **Real-time market pricing** for current valuations and day-to-day monitoring, and
* **Historical market pricing** for time-series views (e.g., portfolio charts), so past values are based on the price feed history rather than ad-hoc API snapshots.
This produces a trust model aligned with financial controls:
* **Traceability:** Key activity can be traced to **network**, **transaction hash**, and **time reference**.
* **Tamper-evident valuation inputs:** Price updates are **published on-chain** and are therefore independently verifiable and time-ordered.
* **Policy consistency:** Valuations follow the venue’s configured quote currency, pricing sources, and reporting rules, ensuring a consistent view across users and teams.
* **Audit readiness:** When values change, there is an attributable on-chain driver (transaction activity and/or a price feed update), supporting reconciliation and control processes.
### Why using on-chain market price feeds (instead of APIs) matters
The dashboard does not depend on opaque, off-chain API responses for pricing. Using established on-chain oracle infrastructure provides practical security and reliability benefits:
* **Independent verification:** Pricing inputs can be validated against on-chain publications, improving confidence during audits and investigations.
* **Resilience and availability:** The platform avoids single-provider API failure modes (downtime, rate limits, silent methodology changes) that can disrupt reporting.
* **Operational integrity:** Market prices are produced and maintained by reputable oracle networks with strong security postures and mature operational practices, reducing the risk of inconsistent or manipulated price inputs.
* **Reliable historical context:** Historical values are backed by the price feed history, enabling consistent charting and period comparisons without relying on external data vendors.
### What “anchored to on-chain records” means
It means the numbers you see are not manually entered and are not derived from private, unverifiable data sources. They are based on blockchain-native records and market price publications that can be checked independently (for example, via a block explorer or RPC).
In practice, this implies:
* **On-chain source of truth:** Trades, liquidity changes, and position state are based on transactions, logs (events), and contract state.
* **Reproducibility:** Using the same on-chain references and the venue’s valuation configuration, teams can reconcile results to the same underlying records (allowing for normal rounding and UI update timing).
* **Investigability:** When a number changes, there is a corresponding on-chain cause that can be traced to transaction references and/or price feed updates, even if the UI does not expose internal calculation steps.
***
## Currency model: base quote vs display currency
Institutional venues typically standardize valuation in a **base quote** (for example, USD) and present results in a **display currency** selected by the user or institution.
* **Base quote:** Internal valuation reference used for normalized reporting across assets and networks.
* **Display currency:** A user-facing preference. Values are converted from the base quote into your chosen display currency using oracle-backed market FX pricing.
A consistent base quote makes portfolio and exposure reporting comparable across networks. The display currency is a
presentation layer, useful for day-to-day decisions without changing the underlying reporting standard.
***
## Next steps
From the Account Dashboard, end users typically navigate to the following pages.
Execute swaps under the institution’s access policies and approval rules.
Allocate liquidity into approved pools and strategies offered by the institution’s venue configuration.
Browse liquidity pools, compare key metrics, and open a pool to view details or provide liquidity.
Review balances in detail, inspect per-asset valuation, and confirm exposure concentration.
Manage liquidity positions through their lifecycle, including updates, fee collection, and closure.
Set profile details, security controls, and preferences for daily platform operations.
# Assets & Portfolio
Source: https://docs.levery.io/end-user/assets
How the Assets page summarizes spot holdings and liquidity position value, and how end users use it for reporting and reconciliation.
The **Assets** screen summarizes the selected account’s spot holdings and liquidity position valuation in the institution’s venue instance. It is the primary view for portfolio review and cross-network reconciliation.
***
## What the page provides
* A **top-line valuation** split into **Positions** and **Spot**, plus a combined **Total Balance**.
* An **asset inventory table** that enumerates the venue instance’s asset catalog and displays balances and pricing per symbol.
* A **By Network** breakdown per asset for chain-level reconciliation.
The Assets page is scoped to the selected account in the venue instance. Assets from external wallets that are not
indexed into the venue instance do not appear in these aggregates.
***
## Summary cards
Aggregated valuation of liquidity positions across evaluated chains. The value includes accrued LP fees owed when available.
Aggregated valuation of spot token balances across networks, computed price for each asset and summed at the portfolio
level.
Combined valuation computed as Spot + Positions, displayed in the configured reporting currency for the selected account.
***
## Asset inventory table
Each row represents a single asset symbol present in the venue instance’s asset catalog. Rows are ordered by **spot value** (highest first) and act as navigation entries to the asset detail view.
### Columns
* **Asset:** Asset identity (icon, name, symbol).
* **Price:** Latest price for the symbol, displayed in the reporting currency.
* **24h Change:** Price-only percentage change relative to a 24-hour reference point.
* **Balances:** Spot valuation and the aggregated token amount (human units).
* **By Network:** Per-chain breakdown of balances and valuations.
### Asset navigation
Selecting a row opens the asset detail's page.
***
## By Network breakdown
The **By Network** control expands a per-chain breakdown for the asset. This view supports reconciliation of the portfolio-level balance back to chain-level amounts.
Typical fields:
* **Chain name** (as configured in the connected chain set)
* **chainId**
* **Per-chain valuation**
* **Per-chain token amount** (human units, using the asset decimals)
When no per-network balances are available, the breakdown displays an empty state (for example: “No balances found for this asset.”). The expand control is disabled when no breakdown exists.
***
## Operational usage
### Portfolio review
End users typically rely on the top tiles to establish:
* overall portfolio value (**Total Balance**),
* token inventory exposure (**Spot**),
* liquidity provisioning exposure (**Positions**).
### Reconciliation and audit workflows
Operations teams can reconcile totals by walking down the screen:
1. Use the asset list to identify symbols driving spot valuation.
2. Expand **By Network** to validate per-chain amounts and values.
3. Use **Positions** as the consolidated reference for liquidity valuation across evaluated chains.
# Common Questions
Source: https://docs.levery.io/end-user/common-questions
Operational FAQ for end users of the institution’s Levery venue instance.
This FAQ answers common operational questions for end users and institution admins about what end users can do in a Levery venue instance.
## Onboarding and access
Access is granted only after these checks succeed:
- Verify email with a one-time code.
- Provide required personal details.
- Complete identity verification (KYC).
- Link a wallet and sign a message to prove ownership.
- Pass the institution's activation policy (automatic or manual review).
The signature proves you control the wallet that will be used for permissioned access. It is not a transaction, does
not move funds, and does not grant spending permissions.
It can appear as a KYC status from the verification provider (for example, Under review or On hold), or as the
institution's activation policy when manual approval is required. Access is granted only after approval.
Onboarding can be resumed without repeating completed steps. If your session expires, sign in again to continue.
Switching devices can require revalidation of email or identity steps.
## Account dashboard and assets
The Account Dashboard is the default landing view after authentication. It provides portfolio value, balances,
liquidity position previews, and a transactions trail for the networks enabled by the institution.
Portfolio values, balances, positions, and activity are anchored to on-chain records such as transactions, events, and
contract state. Fiat valuations use on-chain market price feeds so pricing inputs are verifiable, time-ordered, and
audit friendly.
The base quote is the institution's valuation reference used for consistent reporting across assets and networks. The
display currency is a user-facing preference; values are converted from the base quote using oracle-backed FX pricing.
Levery is policy-scoped. It shows only the networks and assets enabled by the institution, while wallet apps often
include additional networks and tokens. Fiat values can also differ due to pricing sources, update cadence, and
rounding rules defined by venue policy.
The Assets page provides a detailed portfolio view with a top-line split of Positions, Spot, and Total Balance, an
asset inventory table, and a By Network breakdown for chain-level reconciliation.
## Pools and market data
These are operational indicators used for market selection:
- APR is an annualized estimate derived from recent fee activity relative to current liquidity.
- TVL is the total value locked in the venue's display currency.
- Volume 24h is the rolling 24-hour swap volume in the venue's display currency.
They are indicative and not guarantees of future performance.
A dash indicates the metric is unavailable or not computed for the current snapshot. This commonly happens for new
pools or during index refresh windows.
Pause controls prevent execution when incident response or operational maintenance is required. When a pool is paused,
swaps and liquidity actions for that pool are rejected on-chain. When a venue-wide pause is active, all pools in the
venue instance reject user execution flows until the pause is lifted.
Pools and Pool Stats can be viewed without a connected wallet. Swap and Invest execution requires a connected wallet
and the wallet must be on the pool's chain.
## Swaps (Trade)
Exact input means you specify the amount to spend and the swap enforces a minimum output. Exact output means you
specify the amount to receive and the swap enforces a maximum input. This choice also affects when service fees are
charged.
Service fees apply only to swaps and are enforced on-chain. For Exact input, the service fee is charged from the
specified input amount before execution. For Exact output, it is charged after execution based on the realized input
delta.
ERC-20 swaps can require approvals before execution. Many venues use a two-layer allowance model: Token to a permit
layer, then permit layer to the compliant router. Native-token swaps do not require ERC-20 approvals.
Swap execution requires a successful on-chain quote for the selected pool. Quoting can fail due to insufficient pool
liquidity, RPC instability, misconfigured quoting infrastructure, or policy gating (for example, the wallet is not
permitted for the pool or the pool is paused). When quoting fails, the UI disables execution to prevent submitting
unpriced swaps.
Common causes include slippage exceeding tolerance, an expired deadline, insufficient balance, missing approvals, or
on-chain policy rules rejecting execution.
Quotes are point-in-time estimates. Execution can differ when the pool price moves between quote and inclusion, or
when dynamic LP fees adjust due to oracle-based deviation at execution time. Slippage limits bound acceptable
execution; if the realized output or required input exceeds limits, the transaction reverts.
Settlement is bound to the initiating wallet. Proceeds cannot be redirected to arbitrary recipients, preserving
custody and accounting controls.
## Permissions and policy controls
Swap and liquidity eligibility is evaluated at execution time. If the institution revokes swap or liquidity
permission, or changes the pool’s required role configuration, subsequent actions can be rejected on-chain until
eligibility is restored. Spot balances remain in the initiating wallet; open liquidity positions remain associated
with their token id and follow the venue’s policy for position management while eligibility is restricted.
## Liquidity provisioning and positions
A position defines a minimum price and maximum price for a pool pair. It can be full range (maximally wide) or custom
range (finite). The position is active when the pool price is within the selected range.
No. Liquidity positions are represented as non-transferable position tokens (soulbound). Ownership is fixed at mint
time, and transfer entry points are disabled to preserve the venue’s compliance lifecycle controls.
LP fees accrue only when swaps execute while the position is in range. If the pool uses dynamic LP fees, the realized
fee rate can vary under the pool's configured logic.
If the current pool price is inside the selected range, both token amounts must be provided. Single-sided deposits are
possible only when the price is outside the selected range.
Service fees apply only to swap execution flows. Liquidity events such as mint, increase, decrease, collect, or close
do not include service fee deductions. Gas fees still apply.
End users can review position status, add or remove liquidity, collect accrued LP fees when available, and use
position identifiers and transaction hashes for reconciliation.
Liquidity actions can be blocked by a disconnected wallet, wrong network, missing approvals, permission or role gates,
pause controls, ownership verification, or limits and deadlines enforced at execution time.
## Support and reconciliation
Authoritative records are on-chain. Transaction hashes, chain references, and contract state are the primary sources
for reconciliation. UI values are indicative and follow the institution's valuation policy.
The UI is backed by an indexing pipeline that streams on-chain events into the venue’s databases. Depending on chain
finality, RPC latency, and indexer refresh cadence, recently confirmed transactions can take time to surface in
dashboard balances, positions, or activity views. Transaction hashes remain the authoritative reference for immediate
verification via external explorers.
Share the transaction hash and the pool and chain context. For swaps, include the pool pair and the attempted amount.
For liquidity actions, include chain id, pool id, selected Min and Max, deposit amounts, and any approval transaction
hashes.
# Provide Liquidity
Source: https://docs.levery.io/end-user/invest
Provide liquidity to permissioned pools by creating range-based positions (full-range or custom-range) under institutional policies.
Liquidity provisioning supplies assets to an AMM pool so swaps can execute with deterministic, on-chain settlement. In an institution-operated Levery venue, liquidity is expressed as a **range-based position**: each position defines a **minimum price** and **maximum price** and contributes liquidity according to where the pool price sits relative to that band.
The same mechanism supports both:
* **Full-range positions** (maximally wide band), and
* **Custom-range positions** (finite band for higher concentration).
***
## How range-based positions behave
A position is defined by:
* **Pair**: `Token0 / Token1`
* **Range**: **Min Price** and **Max Price**
* **Liquidity**: the minted on-chain amount derived from deposited token amounts and the selected ticks
Fee accrual follows a simple rule:
* **LP fees accrue** when swaps execute while the position is **active**.
* A position is **active** when the pool price is **within** the selected range.
* If the pool uses **dynamic LP fees**, the realized LP fee rate can vary under the pool’s configured logic.
Authoritative outcomes are on-chain. Interface values are derived from contract state, logs, and indexer
reconciliation, and can be independently verified via transaction hashes and state reads.
***
## Price direction and deposit composition
Prices are displayed in a consistent quote direction. Deposit requirements are determined by the relationship between the current price and the selected band:
The position requires **both tokens**. The interface typically computes the corresponding amount on the other side so the deposit matches the selected range geometry.
The position becomes effectively **single-sided**:
* **Below range** → Token0-only
* **Above range** → Token1-only
If the current price is inside the selected range and one side is zero, the position creation transaction is rejected.
Both token amounts must be provided (often via auto-fill on the second side).
***
## Full range vs custom range
Full range and custom range are two strategies over the same range-based position model.
Uses the widest admissible band for the pool. The position is typically active across most market states overall now.
Suitable when prioritizing continuity of activity and minimizing out-of-range events, accepting lower fee density per unit of capital.
Defines a finite Min/Max band around a target price region. The position becomes inactive when price exits the band.
Suitable when maximizing fee density near an expected trading band, accepting a higher probability of moving out of range.
### Ticks and range granularity
Ranges are implemented using discrete **ticks**. Each pool defines a `tickSpacing`, which constrains the minimum step size for range movement.
Operationally:
* Slider selection snaps to tick boundaries.
* Min/Max step controls adjust by tick increments.
* Zoom affects visualization only; it does not alter the selected tick boundaries.
***
## Costs, fees, and what accrues
Liquidity provisioning involves distinct accounting categories:
Accrue when swaps execute while the position is active. Realized earnings depend on executed volume, fee configuration (static/dynamic), and the position’s liquidity share at active ticks.
Required for approvals and for the position creation transaction.
Service fees are not charged on liquidity events (mint, increase, decrease, collect, close). They are applied only on swap execution flows.
Liquidity provisioning can still be subject to institutional controls, such as eligibility checks, allowlists, and risk-tier rules, enforced by the venue’s policy layer.
***
## Pricing layers and provenance
The Invest page commonly uses two pricing layers with different objectives:
Range geometry, in-range status, and token composition are derived from the pool’s on-chain state (e.g., sqrtPrice/tick). This is the source of truth for execution outcomes.
Fiat conversions and historical charts are backed by institution-approved pricing feeds (oracle and indexed market data), supporting auditability and consistent reporting.
***
## Create a liquidity position
Access the pool’s Invest screen (commonly via **Pools → Invest**). Validate:
* the chain/network where the pool is deployed,
* the pair (`Token0 / Token1`),
* and the displayed price direction used for Min/Max inputs.
Select **Connect Wallet** and connect a wallet authorized to interact with the institution’s venue.
If the wallet network does not match the pool’s chain, execution is blocked until the wallet network is switched. Some connectors can request a network switch; otherwise, manual selection in the wallet is required.
Choose **Full Range** for a maximal band or **Custom Range** for a finite band.
For Custom Range:
* set the band using the slider,
* refine Min/Max using numeric inputs,
* and apply tick-step controls for precision.
In **Deposit Tokens**, enter the intended contribution amount.
The interface computes deposit composition from:
* current pool price state,
* selected tick boundaries,
* and range liquidity math (mapping token amounts to minted liquidity).
When the current price is inside the band, the second token side must be populated (commonly via auto-fill). When price is outside the band, the deposit can be effectively single-sided.
ERC-20 deposits generally require allowances before funds can be pulled during position creation. Many Levery deployments use a hardened two-layer allowance model:
1. **Token → Permit2** (token allowance granted to Permit2)
2. **Permit2 → Position Manager** (Permit2 allowance granted to the pool’s position manager)
Each approval is an on-chain transaction and requires gas. Native-currency legs do not require ERC-20 approvals.
Submitting broadcasts a single on-chain execution that:
* mints liquidity for the selected ticks, and
* settles the token pair transfer required for that mint.
The interface typically performs a preflight simulation to surface common failures early (missing approvals, insufficient balance, invalid range ordering, or policy enforcement).
After confirmation:
* the position becomes visible in **Positions**,
* in-range status and composition are tracked over time,
* and fee accrual is exposed through on-chain accounting.
Many Levery deployments represent positions as **non-transferable position tokens** (soulbound), binding control to the owner wallet rather than enabling transfers.
***
## Troubleshooting
Typical causes: wallet not connected, network mismatch, pool state not loaded, or missing token metadata required to compute deposits.
If current price is inside the selected band, both sides must be non-zero. Single-sided deposits only succeed when
price is outside the band.
One or both allowance layers may be missing. Complete Token → Permit2 and Permit2 → Position Manager approvals, then
retry after confirmations.
Some pools restrict liquidity providers. If provisioning is blocked by policy or allowlisting, an institution
administrator must enable liquidity permission for the account.
Common causes: insufficient balance, stale allowance state, invalid tick ordering, or enforcement by pool policies and
permission modules. Refreshing state after confirmations can resolve indexer-latency symptoms.
Wallet network must match the pool’s chain. If connector switching fails, manual wallet network selection is required before retrying.
When escalation is required, provide: chain id, pool id, selected Min/Max, deposit amounts, and transaction hashes for
approvals and the create-position attempt.
***
## Risk notes
Liquidity provisioning is market exposure, not guaranteed yield.
When price exits the selected band, the position stops earning fees until price returns. Narrower bands can increase fee density but increase the probability of range exit.
Token composition changes as price traverses the band. Relative to holding the tokens, performance may underperform depending on price path and fee capture (impermanent loss dynamics).
Outcomes depend on contract behavior, network finality, and execution conditions. Institutions typically mitigate risk
through audits, controlled deployments, and operational monitoring.
Eligibility checks, allowlists, and pool-level controls can restrict liquidity provisioning. If provisioning is
blocked, resolution requires an operator action under the institution’s governance and compliance process.
# User Onboarding
Source: https://docs.levery.io/end-user/onboarding
A consolidated, audit friendly view of portfolio value, balances, positions, and activity for end users of an institution-operated Levery instance.
Onboarding in Levery is the institution’s **customer admission and account provisioning workflow**. It establishes a
controlled path from an end user’s identity record to a permissioned account that can access regulated markets under
institutional policy. Access is granted only after the platform has strong signals that:
* the user controls the email address they registered with,
* the institution has the minimum required user information on record,
* identity verification (KYC) has been completed, and
* the user controls the wallet account that will be used to access permissioned markets.
This flow is intentionally structured as a sequence of checks. Each step reduces risk, improves auditability, and
creates a clear basis for approval decisions, whether those approvals are automated or completed by a compliance team.
This page guides end users of a financial institution that runs its own Levery instance. It also highlights
configuration points where the institution can strengthen security, improve deliverability, and reduce onboarding
friction.
***
## What onboarding achieves for the institution
A properly configured onboarding policy allows an institution to:
* enforce identity verification before allowing access to restricted products,
* ensure every wallet account is linked to a verified user record,
* maintain an auditable trail of verification and approval decisions,
* reduce fraud and account takeover risk through one-time codes and wallet ownership proof,
* and route edge cases to manual review without breaking the end-user experience.
Onboarding combines time-limited verification codes, identity verification, and wallet ownership proof, which reduces account takeover risk and prevent users from linking accounts they do not control.
Each stage produces an explicit status that can be used for reporting and review workflows. Institutions can require manual approval for higher-risk segments without forcing users to repeat steps.
***
## Who does what
Verifies email, provides personal details, completes identity verification, and links a wallet account.
Configures email delivery and identity verification, sets activation rules, and determines whether users are approved
automatically or require compliance review.
Handles exceptions, reviews "under review" cases, and supports operational approval workflows.
***
## What the end user should have before starting
The onboarding process is smoother when the user has the following ready:
* Access to the email inbox used for registration.
* Personal details and address information.
* A government ID document (depending on the institution’s KYC requirements).
* A phone available (identity verification is typically easiest on mobile).
* A wallet option (either a new wallet created during onboarding or an existing wallet).
If identity verification is completed on mobile, the user should keep the Levery application open on desktop and
return to it after the verification provider finishes.
***
## Step-by-step onboarding (end-user journey)
Levery begins by verifying email ownership using a **one-time code** delivered to the user’s inbox. This confirms the user can receive communications at the registered address and establishes a reliable identity anchor for notifications, policy updates, and operational follow-ups.
**What the user does**
1. Enters an email address in the institution’s Levery application.
2. Receives a time-limited verification code by email.
3. Enters the code to confirm control of the address and continue.
**Why this is secure**
* Codes are **short-lived** and **cannot be reused** after successful verification.
* Verification attempts are **limited** to reduce brute-force risk.
* Resend behavior can be **throttled** to reduce abuse.
* The platform can avoid revealing whether an email is registered, depending on institutional policy.
If users report they are not receiving codes, the first institutional check is outbound email delivery configuration. Levery supports sending OTP emails using the institution’s own SMTP credentials and sender domain, improving deliverability, branding consistency, and audit alignment.
After email verification, Levery collects the minimum information required to start identity verification and support compliance and reporting needs.
**Typical information requested**
* Legal full name.
* Date of birth (the platform requires adults, 18+).
* Government ID number (if required by the institution).
* Residential address details.
**Why this matters**
* It ensures identity verification has complete information and reduces back-and-forth.
* It supports downstream workflows, including review, reporting, and exception handling.
* It creates a consistent profile record tied to a verified email identity.
Levery is designed so that sensitive user information can be stored under strict access controls. Institutions can choose a model where end users can view submitted details but cannot change records outside the onboarding workflow. Compliance roles can be granted controlled visibility for review purposes.
Identity verification confirms the user is who they claim to be. In Levery, KYC is performed through the provider selected by the institution (for example, Sumsub), following the institution’s configured verification level and jurisdiction requirements.
**What the user does**
1. Opens the verification link or scans the QR code provided by the platform.
2. Completes verification with the provider, often on mobile.
3. Returns to the Levery application and waits for the status to update.
**Common status meanings**
* In progress The user started verification but has not completed it.
* Approved Verification passed and onboarding can continue.
* Under review or On hold Additional review or information is needed.
* Rejected Verification failed under the provider’s rules.
**Benefits for institutions**
* Institutions can reuse existing KYC vendor relationships, workflows, and risk tiers.
* Identity checks can be aligned with internal policy, product access rules, and jurisdiction requirements.
* Verification outcomes can be recorded for audits and compliance operations.
Institutions can configure KYC status updates via provider webhooks and also reconcile status when webhooks are delayed. This improves operational stability without exposing complexity to end users.
After KYC approval, Levery requires the user to link the wallet account that will be used inside the platform. The key security requirement is proof of control. The user must demonstrate they control the wallet they are linking.
**What the user does**
1. Connects a wallet (either created during onboarding or an existing wallet).
2. Reviews a signature request in the wallet interface.
3. Signs a message to prove control of that wallet account.
This is not a transaction. It does not move funds. It does not grant spending permissions. It is a secure ownership proof that binds a verified identity to a wallet account for permissioned access.
**Why institutions benefit**
* It prevents users from registering wallet addresses they do not control.
* It creates a strong link between identity verification and the account used for regulated access.
* It improves auditability and supports enforcement for permissioned pools and restricted features.
Once wallet ownership is confirmed, the institution’s activation policy determines what happens next.
* If the institution enables **automatic activation**, the user receives access immediately.
* If the institution requires **manual approval**, the user is placed in a review queue and may see an "under review" message.
This is a deliberate design choice. Many institutions require more than KYC alone for access, for example additional risk scoring, customer classification, or operational checks. Levery supports these policies without forcing the user to repeat onboarding steps.
***
## Returning later
Onboarding is designed to be resilient:
* The user can refresh the page or return later without losing progress.
* Completed steps are not repeated.
* If a session expires, the user signs in again and onboarding resumes from the next required step.
If the user switches devices during onboarding, the email verification and identity verification steps may need to be
revalidated depending on institutional security settings and session lifetime.
***
## What institutions can configure
Institutions can tailor onboarding controls to match internal security standards, deliverability practices, and compliance workflows.
Institutions can send verification codes using their own SMTP credentials, sender domain, and branded messaging. This
improves deliverability, reduces phishing confusion, and aligns onboarding communications with existing customer
policies.
Institutions can connect their own identity verification provider credentials and configure verification levels by
region, product, or risk tier. This keeps the onboarding experience consistent while meeting jurisdiction
requirements.
Institutions can choose automatic activation after verification or staged, manual activation for higher-control
environments. This supports workflows that require internal approvals or additional risk checks.
***
## Support guidance
When onboarding issues occur, the most common institutional checks are:
* Outbound email delivery configuration (SMTP and sender domain).
* KYC provider configuration and connectivity (including webhook delivery and status reconciliation).
* Activation policy (automatic approval vs review queue).
When escalating an onboarding issue, institutions typically ask end users to provide their registered email and the
wallet address they attempted to link. This helps support teams identify the relevant record quickly while keeping the
process consistent and auditable.
# Explore Pools
Source: https://docs.levery.io/end-user/pools
How end users browse pools, interpret APR/TVL/24h volume, and open Stats, Swap, or Invest.
The Pools page is the venue instance’s **market directory**. It lists supported pools and provides a compact set of
indicators used to choose a market and route into the platform’s execution and analysis screens.
***
## What exploring pools enables
Exploring pools helps an institution’s end users:
* discover supported markets without needing to know contract addresses or pool identifiers,
* compare pools across networks using consistent, venue-standardized metrics,
* open **Stats** to review market conditions before executing trades or provisioning liquidity,
* route into **Swap** and **Invest** flows while preserving chain context.
Pools are surfaced as a pair and a network, with APR, TVL, and 24h volume as quick signals. Missing values display as dashes to avoid false precision.
Each row routes to pool-specific screens: row selection opens Stats, while action buttons open Swap and Invest for the same pool on the same chain.
***
## Page layout and interactions
### Pools table
The Pools table typically includes:
* **Pool:** Pair label (`asset0 / asset1`) and token icons.
* **Network:** Chain name and chain icon.
* **APR:** Annualized estimate when available; otherwise `–`.
* **TVL:** Total value locked in the venue’s display currency; otherwise `–`.
* **Volume 24h:** 24-hour swap volume in the venue’s display currency; otherwise `–`.
* **Actions:** Links to **Swap** and **Invest** for the selected pool.
### Row selection
Selecting a pool row opens the pool’s **Stats** screen. This navigation path is the default way to inspect a pool
before choosing an action.
### Visible states
* **Loading:** The table renders “Loading pools…” while the list is being fetched.
* **Error:** A red error message appears when the pool list cannot be loaded.
* **Empty:** No rows are displayed when no pools are currently visible in the venue instance.
***
## Interpreting pool metrics
The Pools page surfaces a small set of **operational indicators**. These values are used for triage and navigation,
not as guarantees.
### APR
APR is an annualized estimate derived from recent fee activity relative to the current liquidity base.
* APR is **not a promise** of future performance.
* APR can be unavailable for new pools or during periods where metrics are not computed; the UI renders `–`.
### TVL
TVL expresses the pool’s current liquidity value in the venue’s display currency.
* Higher TVL usually correlates with tighter pricing and higher capacity for larger trades.
* TVL is displayed as a currency amount and may be rounded for readability.
### Volume 24h
Volume 24h expresses recent swap activity in the venue’s display currency.
* Higher volume can indicate a more active market and more frequent fee generation for LP positions.
* Volume can be unavailable or delayed; the UI renders `–`.
***
## Execution prerequisites and fee behavior
The Pools page is a discovery surface. Eligibility and execution checks occur in downstream action screens.
### Wallet and network
* **Swap** and **Invest** flows require a connected wallet.
* Execution requires the wallet to be on the pool’s **network**. A pool can be listed even when the wallet is on a different chain; execution occurs only on the pool’s chain.
### Permissions and policy gates
Depending on venue policy, actions can be gated by:
* swap permission checks,
* liquidity permission checks,
* pool-required roles,
* emergency pause controls,
* oracle-based constraints for swap fee control.
These checks generally surface as disabled actions, failed simulations, or reverted transactions in the action screens.
***
## End-user flows from this page
The end user reviews the pair and network, then uses TVL and volume as liquidity and activity signals.
Selecting the row opens pool Stats, which is typically used to validate market conditions before executing swap or
invest operations.
Selecting **Swap** routes to the Swap screen scoped to the selected pool.
**Common checks**
* Wallet connection is present and the wallet is on the pool’s chain.
* Approvals required by the swap path are satisfied before submission.
* Policy gates (permissions/roles/pause/oracle constraints) allow execution.
**Fee behavior**
* Service fees are charged only on swap execution flows.
Selecting **Invest** routes to the liquidity provisioning screen scoped to the selected pool.
**Common checks**
* Wallet connection is present and the wallet is on the pool’s chain.
* Approvals required by the liquidity path are satisfied before submission.
* Policy gates (permissions/roles/pause controls) allow execution.
**Fee behavior**
* Service fees are not charged on liquidity events.
***
## Support guidance
Swap and Invest execute only on the pool’s chain. If the wallet is on a different network, the action flow cannot complete until the chain matches the pool.
In some situations, a pool can be visible while execution is blocked by swap/liquidity permissions or a pool-required
role. Access is granted by the institution’s approval workflow.
ERC-20 flows can require one or more approvals before execution. Missing approvals typically appear as a failed
simulation or a reverted transaction.
Swap execution can revert when price moves beyond the configured tolerance or when the deadline expires. Market
volatility increases failure probability.
Quotes can fail under RPC degradation or temporary node desync. Retrying, switching RPC, or selecting another pool can
restore quoting and execution.
Metrics rendered as `–` indicate missing computed values for the current snapshot. This is common for new pools or during periods of index refresh.
***
# Pool Stats
Pool Stats is the **single-pool analytics view** in the venue instance. It consolidates recent activity, fee signals, and a current liquidity snapshot, and provides shortcuts into Swap and Invest for the same pool and network.
### Entry points
* Selecting a pool row on **Explore Pools** opens Pool Stats scoped to that pool.
* Direct navigation can open Pool Stats for a specific chain and pool identifier.
Pool Stats remains readable without a connected wallet; Swap and Invest execution requires wallet connection in the
downstream flows.
***
## Screen anatomy
The header shows the pool name and chain, plus a highlighted **Total Volume** value for the selected period. Period tabs control aggregation: 1D, 7D, 1M, 1Y, ALL.
Volume and fee charts summarize swap activity, while the Stats panel surfaces estimated APR, virtual pool balances, TVL, 24H volume, and 24H LP fees. A Transactions table lists recent swaps.
***
## Header and period selection
### Pool identity and chain
The header displays:
* **Pool name:** Pair label for the selected market.
* **Chain:** Network name and chain icon for the pool.
### Total Volume (selected period)
A highlighted **Total Volume** number summarizes swap volume for the currently selected period tab.
* Total Volume changes when switching between 1D, 7D, 1M, 1Y, and ALL.
* Values are shown in the venue display currency.
### Period tabs
A five-option tab strip controls the chart window:
* **1D** (hourly buckets)
* **7D** (multi-hour buckets)
* **1M** (daily buckets; default)
* **1Y** (weekly buckets)
* **ALL** (monthly buckets)
Bucket granularity is derived from the chart window and may differ from external analytics providers.
***
## Activity charts
Pool Stats renders two charts for the selected time window:
* **Volume:** Swap volume in the venue display currency.
* **Fees:** Swap-execution fees in the venue display currency.
Fees on this screen are computed from the pool’s **LP fee** plus the venue **service fee** for the swaps included in each bucket.
Service fees are charged **only** on swap execution flows. Service fees are **not** charged on liquidity events.
***
## Stats snapshot
### Estimated APR
The Stats panel shows an **Estimated APR** figure:
* When an APR snapshot is available for the pool, that value is displayed.
* Otherwise, the estimate falls back to: **(24H LP Fees ÷ TVL) × 365**.
APR is an operational indicator and is not a guarantee of future returns.
### Pool Balances
“Pool Balances” displays indicative amounts for the pool’s two assets and a proportional split bar.
* The split bar visualizes the relative share between the two sides.
* Indicative fiat valuations for each side are shown below the amounts.
### TVL, 24H Volume, 24H LP Fees
Additional fields provide a compact pool snapshot:
* **TVL:** Total value locked in the venue display currency.
* **24H Volume:** Rolling 24-hour swap volume.
* **24H LP Fees:** Rolling 24-hour swap-execution LP fees.
### Swap and Invest shortcuts
The Stats panel footer includes:
* **Swap:** Routes to Swap for the same pool and chain.
* **Invest:** Routes to Invest for the same pool and chain.
Execution eligibility is enforced in the downstream flows (wallet connection, network alignment, approvals, and venue policy gates).
***
## Transactions
The Transactions panel lists recent swaps for the selected pool and typically shows up to the most recent entries available for display.
### Fields
* **TX Hash:** Shortened transaction hash used for external verification.
* **Type:** Directional label derived from the swap (for example, “Buy SYMBOL”).
* **Token0 / Token1:** Absolute magnitudes for the pool’s two asset amounts.
* **Fiat:** Indicative value paid on the input side, expressed in the venue display currency.
* **Fee:** Indicative swap-execution fees for the trade (LP fee plus service fee).
* **Account:** Initiating address for the swap.
* **Time:** Timestamp used for ordering (rendered as an ISO-like `YYYY-MM-DD HH:MM`).
***
## Policy effects
Pool Stats is informational and does not grant execution rights by itself. Outcomes observed after routing into Swap or Invest commonly reflect venue policy, including:
* swap permission checks,
* liquidity permission checks,
* pool-required roles,
* emergency pause controls,
* oracle-based constraints that affect swap execution conditions.
***
## Operational support signals
Total Volume reflects the selected period tab, while 24H Volume is always a rolling 24-hour window. Differences are expected when the selected period is not 1D.
Fees shown reflect swap execution charges: LP fees plus the venue service fee. Service fees apply only to swaps and
are not charged on liquidity events.
The empty state indicates no swaps are available to display for the selected pool. New pools or low-activity pools
commonly reach this state.
Failures after routing typically reflect downstream checks: wrong chain, missing approvals, slippage/deadline limits,
or policy gates (permissions/roles/pause).
Low activity windows can produce sparse charts. Expanding the period to 1M, 1Y, or ALL can provide clearer context
when available.
Fiat values are indicative and can shift with price changes. Use the TX hash in an external explorer for authoritative reconciliation.
***
## Security and operational notes
* **Verification:** Pool metrics are indicative; definitive reconciliation uses on-chain receipts and external explorers. The TX hash is the primary anchor to validate amounts, fees, and ordering.
* **Non-custodial posture:** Execution occurs via smart contracts; funds remain under wallet control except for explicit approval-based flows.
* **Phishing resistance:** Wallet signatures and approvals should be reviewed in-wallet, with special attention to spender identity and chain selection.
* **Fee invariants:** Service fees apply only to swap execution flows; liquidity events do not include service fee deductions.
# Manage Positions
Source: https://docs.levery.io/end-user/positions
Review and manage liquidity positions, ranges, allocation, and fees with on-chain execution checks and institution policy gates.
The Positions page is the operational workspace for **range-based liquidity positions** created through Invest. It
consolidates each position’s range, value, allocation, and fee accrual, and provides lifecycle actions such as
adjusting liquidity and collecting fees.
***
## What end users can do
* Review all their positions by pool and network.
* Open a position to inspect range status, current price, and allocation.
* Add or remove liquidity for an existing position.
* Collect accrued LP fees when available.
* Use position identifiers and transaction hashes for reconciliation.
***
## Positions list
The Positions list summarizes all positions visible to the selected account.
Each position card typically includes:
* **Market + network:** The pool pair (`Token0 / Token1`) and the chain where the position is held.
* **Position ID:** A stable identifier used for investigation and support.
* **Range status:** A visible **In Range** state when the pool price is inside the selected band.
* **Position value:** An indicative valuation in the venue’s display currency.
* **Earnings:** Estimated uncollected fees when available.
* **Range bounds:** Min and Max price labels for the position’s band.
* **Manage action:** Opens the detailed position view for lifecycle actions.
***
## Position detail view
Selecting **Manage** opens a detailed view of the position’s range, allocation, and fee status.
### Header and range chart
The header and chart area typically show:
* **Pair, chain, and position ID** for precise identification.
* **Range status badges** such as **In Range** and **Full Range**.
* **Price visualization** with markers for current price, Min Price, and Max Price.
* **Time window controls** (for example, 1D, 7D, 1M, 1Y, ALL) that adjust the visible chart window.
* **Min/Max/Market price** readouts for the selected period.
### Position summary panel
The right-side panel typically includes:
* **Position value** in the venue display currency.
* **Allocation** with per-token amounts and a proportional split bar.
* **Add Liquidity** and **Remove Liquidity** actions.
* **Fees Earned** with available amount and per-token breakdown.
* **Collect Fees** to claim accrued LP fees.
* **Collected History** for past fee claims when present.
***
## Status and fee behavior
* A position is **active** when the pool price is within the selected range.
* **LP fees accrue** only while the position is active and swaps execute in-range.
* If the pool uses **dynamic LP fees**, the realized fee rate can vary under the pool’s configured logic, in order to protect the liquidity provider from impermanent losses.
* See more information and how dynamic fees are calculated at: [Dynamic Fees](/architecture#oracle-guided-pricing-integrity-and-dynamic-fees)
Values shown in the interface are indicative. The authoritative record for ownership, liquidity, and fees is on-chain
state and transaction receipts.
***
## Manage a position
Go to **Positions**, locate the target card, and select **Manage**. Confirm the pair, chain, and position ID.
Check Min/Max price, the current market price, and whether the position is **In Range**. Review the token allocation
and position value.
Use **Add Liquidity** or **Remove Liquidity** and enter the intended amounts. ERC-20 tokens require approvals before
execution, and the wallet must be connected on the pool’s chain.
When **Fees Earned** shows an available amount, select **Collect Fees** to claim the position’s accrued LP fees.
Confirm the transaction in your wallet and retain the transaction hash for reconciliation and audit workflows.
***
## Execution prerequisites and policy gates
Liquidity lifecycle actions are enforced on-chain and can be blocked if any condition fails.
* **Wallet connection and chain alignment:** Actions execute only on the pool’s network.
* **Permission checks:** Liquidity permissions, pool-required roles, and institution policy gates are enforced at
execution time.
* **Ownership verification:** Position modifications verify the authorized owner of the position token.
* **Pause controls:** Global or per-pool pause states halt liquidity actions.
* **Limits and deadlines:** Liquidity updates validate minimum amounts and time bounds; failures revert.
End-user actions on this page map to on-chain liquidity lifecycle calls (increase, decrease, collect, close) and are
rejected when permissions, roles, or pause controls disallow execution.
***
## Troubleshooting
Most commonly caused by a disconnected wallet, wrong network, or a policy gate that blocks liquidity actions.
ERC-20 liquidity changes require approvals. Many deployments use Token → Permit2 and Permit2 → Position Manager
allowances before execution can proceed.
Reverts can result from insufficient balance, invalid limits (deadlines or minimum amounts), or on-chain policy checks
failing at execution time.
LP fees accrue only when the position is in range and swaps execute. Out-of-range positions or low activity may show
zero fees.
Liquidity actions execute only on the pool’s chain. Switch the wallet to the pool’s network and retry.
***
## Ownership and auditability
* Liquidity positions are represented on-chain as **non-transferable (soulbound) ERC-721 tokens** bound to the
verified owner.
* Position state, liquidity updates, and fee claims are recorded as on-chain events that can be reconciled by
transaction hash.
# Settings & Preferences
Source: https://docs.levery.io/end-user/settings
Manage account settings and preferences.
The Settings area centralizes account configuration and application preferences. It includes identity and security context (read-only) plus controls for integrations, localization, appearance, and notifications.
Some sections are intentionally read-only to preserve auditability and reduce the risk of unauthorized profile manipulation. Levery’s access control model relies on explicit permissioning and institutional policy enforcement, so certain identity and security attributes are managed through controlled operational flows rather than self-service edits.
## Accessing Settings
Navigate to Settings from the platform menu, then select the relevant section to review context or update preferences where actions are enabled.
Displays personal identity, address, and company details (if it exists) for transparency and operational review. This section is read-only to keep identity attributes consistent with verification and institutional controls.
Shows sign-in details and linked Web3 accounts used for permissioned actions. This section is read-only to maintain a
stable account binding for policy enforcement and audit trails.
Lists active sessions with device context to support security monitoring and incident response. This section is
read-only, and session controls depend on the deployment’s operator policy.
Surfaces devices associated with the account based on observed access patterns. This section is read-only and is
intended for security visibility rather than self-managed enrollment.
Reports KYC or KYB status and review outcomes as determined by the institution’s verification workflow. This section
is read-only and can gate access to swaps or liquidity based on policy.
Creates, reviews, and renews API keys for programmatic access. This section is actionable and supports key lifecycle
controls such as rotation and revocation within the institution’s policy boundaries.
Controls language and currency formatting across the app for consistent display and reporting. This section affects
presentation only and does not alter on-chain amounts or settlement behavior.
Customizes the app theme for day and night operation. This section changes visual preferences only and does not affect
permissions, balances, or execution logic.
Configures notification preferences and provides a view of recent alerts. This section is designed for operational
awareness, with security and activity signals depending on deployment configuration.
## Support guidance
For read-only sections that require correction, the institution’s operator support channel is the source of truth for updates. Changes may require re-verification and can impact permissions for swaps or liquidity operations.
# Execute a Swap
Source: https://docs.levery.io/end-user/trade
Learn how asset swapping works in authorized pools using standards-compliant execution, oracle-guaranteed pricing, and audit-ready receipts.
The **Trade** page is the spot swap interface that provides a DEX-like experience (select a pool, enter an amount, swap) while keeping institutional guardrails **enforced on-chain**:
* **Permissioned access**: only eligible accounts can trade in restricted pools.
* **Compliant settlement**: swap proceeds can only be received by the initiating wallet.
* **Deterministic execution**: the platform enables swapping only when it can compute an **on-chain quote** for the exact trade context.
* **Audit-ready outcomes**: every trade is traceable to a transaction hash, logs, and canonical pool state.
***
## Trade screen
Select a pool, choose direction, enter amounts, review fees and gas, then execute the swap. The swap button is enabled only when an on-chain quote is available and the account passes policy checks.
Asset profiles with project description, market/supply metrics, 24h change, and pricing sourced from trusted market price oracle feeds, enabling informed, accountable trading decisions.
Pools are identified by **pair + network** and may include pool-specific rules (fee behavior, oracle configuration,
and access policies). When the user select a pool, the Trade page binds the user’s session to that pool’s parameters.
***
## What Levery guarantees during execution
Swaps execute only when the connected account meets the institution’s pool admission rules, including roles, compliance status, and any operator-defined access constraints.
Settlement is bound to the initiating account. The compliant router prevents proceeds from being redirected to
arbitrary recipients, ensuring custody and accounting controls remain intact.
Trades are enabled only when an on-chain quote can be produced and the submitted transaction matches the same pool
parameters and account context used for enforcement and pricing.
Levery separates **execution correctness** (on-chain quote + enforced checks) from **display convenience** (fiat
conversion and informational metrics). A UI estimate is never sufficient to enable execution on its own.
***
## Execute a swap
The user opens the pair selector at the top of the swap card and selects a pool.
A pool defines:
* the two assets,
* the network,
* the fee behavior (static or dynamic),
* and the permission policy that applies to swaps.
If the connected wallet is on another network, the wallet prompts a network switch before execution.
The user selects the asset to spend in **From** and the asset to receive in **To**, and may use the flip control to reverse direction.
Direction matters because fee logic, oracle deviation rules, and policy constraints can be direction-sensitive.
Levery supports two trade intents:
* **Exact input**: the user specifies the **From** amount. The platform computes an estimated output subject to slippage protection.
* **Exact output**: the user specifies the **To** amount. The platform computes an estimated maximum input subject to slippage protection.
This choice impacts **how service fees are charged** (see below) and which trade guarantee is preserved.
The Trade page continuously requests an **on-chain quote** for the selected pool, direction, and amounts. This quote is produced by simulating the swap against the pool’s current state and enforcement rules.
Typical states include:
* **Quoting…**: the UI is fetching or refreshing a quote.
* **Ready**: a valid quote is available and the swap button can be enabled.
* **Estimate only (swap disabled)**: the UI may show an indicative estimate, but execution is blocked because a deterministic on-chain quote is not available.
Fiat prices and indicative estimates can still be shown. However, execution is enabled only when Levery can reproduce the trade deterministically on-chain under the same context used for enforcement.
Review the badges below the inputs:
* **Total fees**: the estimated aggregate of LP fee and service fee for this trade intent and direction.
* **Gas estimate**: the network fee estimate (in the chain’s native token and converted to fiat for convenience).
Final gas paid depends on network conditions. Final fees depend on the pool’s on-chain execution rules and the exact deltas realized during the swap.
If the input asset is an ERC-20 token, approvals may be required before swapping.
Many Levery deployments use a hardened allowance model:
* **Token → Permit layer approval** (authorizes the permit contract to move tokens)
* **Permit layer → Router approval** (authorizes the compliant router to spend under strict rules)
If the input asset is the chain’s native token, token approvals are not required.
The user selects **Swap** and confirms the transaction in the connected wallet.
After submission, the Trade page tracks the transaction until it is confirmed and then displays a receipt including:
* amount paid,
* amount received,
* fees charged,
* gas paid,
* and a link to view the transaction in a block explorer.
This receipt is intended for reconciliation: it reflects what was actually recorded on-chain.
***
## Exact input vs exact output
The user specifies the amount to spend. Levery computes an estimated output and enforces a **minimum amount out** (`minOut`) using slippage protection.
**Service fee behavior**
* Service fee is charged **from the specified input amount** before swap execution.
* The pool consumes the remaining amount after the service fee is withheld.
The user specifies the amount to receive. Levery computes an estimated maximum input and enforces a **maximum amount in** (`maxIn`) using slippage protection.
**Service fee behavior**
* Service fee is charged **after execution**, based on the **actual input delta** required to produce the exact output.
* The requested output amount remains exact (subject to the transaction not reverting).
**Exact input** is suitable when a precise spend amount is required. **Exact output** is suitable when a precise
receive amount is required (with a bounded maximum input).
***
## Fees explained
Levery separates fees into two categories.
LP fees are paid to liquidity providers and depend on the pool configuration.
* **Static pools**: a fixed fee rate applies.
* **Dynamic pools**: fee rate can adjust on-chain based on market context (for example, deviation between pool price and an oracle reference), to support market integrity policies.
The institution operating the Levery instance charge a service fee. This fee is collected **on-chain** and routed to the service fee vault for distribution according to institutional rules.
Service fee timing depends on trade intent:
* **Exact input**: charged from input *before* swap execution.
* **Exact output**: charged *after* execution using the realized input delta.
Fees are enforced by on-chain logic. The UI displays estimates for transparency, but the final amounts are determined
by the transaction’s executed deltas.
***
## Slippage protection and deadlines
Every swap includes two execution protections:
* **Slippage tolerance**
* Exact input swaps enforce a minimum output (`minOut`).
* Exact output swaps enforce a maximum input (`maxIn`).
* **Deadline**
* Transactions must execute before a deadline timestamp. After that, execution is rejected.
If the pool price moves beyond tolerance, the quote becomes stale, or the deadline expires, the transaction can revert
rather than execute at an unexpected price.
***
## Pricing and data provenance
Levery uses two separate pricing concepts on the Trade page.
Execution pricing comes from an on-chain quote that simulates the swap against:
* the pool’s live state,
* the pool’s fee logic (including dynamic fees),
* and the institution’s on-chain enforcement rules.
If an on-chain quote cannot be produced, swapping stays disabled.
Display pricing is used for fiat conversion, asset summaries, and historical context. It is sourced from the institution’s configured pricing feeds backed by oracle infrastructure and indexed for real-time and historical reference.
This improves trust because pricing provenance is consistent, auditable, and not dependent on ad-hoc client-side API calls.
***
## Compliance and settlement model
Levery is designed to provide DEX-like execution without losing compliance control:
* **On-chain admission checks**: swaps are rejected if the account fails the pool’s access policy at execution time.
* **Initiator-only settlement**: swap proceeds cannot be delivered to arbitrary receivers.
* **Context-bound quoting**: quotes are computed for the same pool parameters and account context required for execution.
* **Audit readiness**: trades are traceable to transaction hashes and on-chain state transitions.
If a trade fails or is blocked, the user should share the pool (pair + network), the attempted amount, and the
transaction hash (if one was submitted). This lets the operator reconcile outcomes directly against on-chain records.
***
## Troubleshooting
Common causes include a disconnected wallet, the wrong network, no executable on-chain quote (liquidity/RPC/config),
or the account not being permitted for the selected pool.
Common causes include slippage exceeding tolerance, an expired deadline, insufficient balance, missing approvals (or
allowance not yet reflected), or an on-chain policy rule rejecting execution.
ERC-20 input assets may require approvals before swapping. Once the required approval step(s) are completed, the swap
can be quoted again and submitted for execution.
Quote failures may mean the pool is unavailable, the quoter/RPC is unstable, or policy rejected execution. Retry, refresh, switch RPC, or pick another pool.
# Get Started
Source: https://docs.levery.io/get-started
Explore our guides to implement, configure, and operate Levery securely.
# Introduction
Levery is a **compliance-first, white-label DeFi exchange stack** designed for regulated institutions that want to
offer on-chain markets without rebuilding core trading infrastructure, access controls, and operational guardrails
from scratch.
***
## Levery core capabilities
Levery bundles everything a regulated Virtual Asset Service Provider (VASP) needs to run a branded DeFi trading venue.
The stack provides a complete environment, aligned with the institution’s brand and policies, incorporating the controls
and interfaces required by risk, compliance, treasury, and operations teams.
Admitted customers interact through a fully branded user interface within a streamlined trading and portfolio view.
The console handles KYC/KYB review and wallet admission, asset policies, real-time monitoring and management of user
permissions.
Through the console, the institution configures and launches permissioned pools and can allocate ring-fenced house
liquidity.
All client entities must complete KYC/KYB to join the venue. Once approved, designated wallets are admitted and linked
to the legal entity.
Before any swap or liquidity action, policies are checked by the smart contracts ensuring consistent, audit-ready
enforcement.
Each action emits standardized, timestamped events that populate client statements and operator dashboards.
Secure, well-documented APIs for deep integration with banking systems, compliance engines, reporting tools, and
client portals.
A comprehensive monitoring and audit dashboard gives operations, compliance, and risk teams real-time visibility into platform activities.
This documentation explains **how Levery works** and **how to integrate and operate it**. It’s not legal advice.
Always validate requirements with your compliance and legal teams for your jurisdiction.
***
## Design principles
Levery is engineered around a set of architectural principles that keep policy, risk controls, and operational
responsibilities explicit, enforceable, and auditable across every market and participant.
Before any state change, Levery runs on-chain admission and risk checks. Non-compliant calls revert deterministically
with clear reasons; compliant actions execute normally, so that only authorized accounts can access pools and add or
remove liquidity.
There is no third-party custody or intermediation in the execution path, assets move under the control of smart
contracts. Code and state are immutable once deployed, execution is deterministic across validators, and every state
transition is recorded on the ledger, producing a tamper-evident audit trail.
Levery integrates market-price oracles to support fair pricing and dynamic fee calculations. The engine monitors
oracle-to-pool divergence, adjusting fees in real time to anchor execution to an external reference while balancing
competitive pricing with liquidity-provider protection.
Liquidity positions are tokenized as special ERC-721 that are non-transferable, binding each position to its verified
owner. This design enforces KYC/KYB status across the entire LP lifecycle, prevents unauthorized transfers, and
simplifies compliance reporting.
On-chain administration functions allow institutions to update administrators, adjust fee parameters globally or per
pool, update oracle references, and reset the permission manager when required by procedure.
A programmable service fee routes to a secure vault, enabling transparent treasury and revenue-sharing models.
Accruals and distributions are executed by contract and recorded on-chain, giving teams clear accounting.
The result is a DEX-like experience that can be operated with the rigor expected in financial services: on-chain markets
with explicit rules, verifiable controls, and native evidence for reconciliation, audit, and continuous oversight,
without relying on trust in intermediaries or manual off-chain processes.
***
## Key concepts you’ll see everywhere
These concepts are the “language” of Levery. Getting comfortable with them early makes the rest of the docs much easier.
| **Concept** | **Definition** |
| ---------------- | ------------------------------------------------------------------------------------------------------------------- |
| **Accounts** | Wallets linked to a user or entity, used for trading and liquidity actions. |
| **Policies** | Rules that govern which actions are allowed (trade, provide liquidity, access pools) based on identity and context. |
| **Assets** | Tradable instruments with metadata (decimals, symbols), pricing sources, and risk flags. |
| **Pools** | Permissioned markets that define the trading pair, fee behavior, and policy boundaries. |
| **Positions** | Liquidity positions with defined ownership, lifecycle events, and auditable outcomes. |
| **LP fees** | Fees paid by traders into a pool and accrued to liquidity providers under market-specific fee rules. |
| **Service fees** | Protocol/operator fees charged according to configuration, with traceable accounting. |
| **Oracles** | Optional on-chain feeds (market price) used to inform fee logic and risk controls depending on pool setup. |
For a complete list of definitions, see **[Glossary](/glossary).**
***
## Security audit
Levery’s smart-contract suite is audited by Runtime Verification, a Chicago-based security audit firm globally
recognized for more than a hundred publications and tools that shaped the field. Active in blockchain security since
2017, the team has served high-TVL protocols including Ethereum, Uniswap, Lido, Maker, and Optimism.
The mission was to move beyond code review and establish whether critical properties hold in all admissible executions,
using mathematically grounded techniques in addition to conventional analysis.
For a deeper view into Levery’s security model, controls, and assurance posture, see **[Security](/security).**
***
## Next steps
Choose your path based on your role and what you need next:
Product overview, key differentiators, and institutional digital asset stack.
A technical view of on-chain components and end-to-end flow.
Review Levery’s security posture and the smart-contracts audit report.
Single tenant deployment options for regulated institutions with trust boundaries and strong governance.
How customers onboard, connect accounts, trade, invest, and manage assets and positions.
Operational FAQ for end users of the institution’s venue instance.
Core concepts and terminology used across the platform.
# Glossary
Source: https://docs.levery.io/glossary
Definitions of key terms used across Levery and essential AMM/DeFi concepts.
## How to use this glossary
* Terms are listed **alphabetically (A–Z)**.
* When a term refers to a **Levery-specific component or data model**, it is labeled **(Levery)**.
* Industry terms (AMM/DeFi/security/operations) are defined in a vendor-neutral way, with brief context on how they apply to Levery when helpful.
***
## Glossary (A–Z)
### Account (Levery)
A backend record representing an entity-controlled address known to the platform. Accounts power permissions, dashboards, portfolio views, and operational reporting.
### Account Dashboard
The end-user interface that aggregates balances, recent activity, positions, and portfolio valuation for a selected account.
### Add Liquidity
Depositing assets into a pool to create or increase a liquidity position. The deposited assets become available for swaps and may earn LP fees.
### Address
A public identifier on an EVM network that can hold assets and interact with smart contracts. Addresses are typically represented as 20-byte hex values (e.g., `0x…`).
### Allowlist
A list of approved addresses/entities permitted to access a venue, pool, or feature. In Levery, allowlisting can be enforced deterministically at execution time (swaps and liquidity updates).
### AML
Anti-Money Laundering controls. Typically performed off-chain (screening/monitoring), with on-chain enforcement achieved via permissions and role gating.
### AMM
Automated Market Maker. A market design where prices are determined by a pool’s state and math rather than a centralized order book.
### APR
Annualized Percentage Rate. In AMMs, APR is often estimated from historical fee revenue relative to TVL and is not guaranteed.
### Arithmetic safety
A set of practices that prevent overflows/underflows, rounding ambiguity, and boundary errors. Deterministic arithmetic is critical for auditable and reproducible outcomes.
### Asset (Levery)
Canonical asset metadata used across the platform (symbol, decimals, display metadata, optional oracle configuration, and metrics).
### Atomic settlement
A property of on-chain execution: transactions either fully apply or revert with state unchanged. This reduces reconciliation risk and creates a tamper-evident execution trail.
### Attestation
A verifiable statement that a policy condition held over a set of actions or a period (e.g., “only permitted entities interacted with pool X”). Attestations are derived from on-chain evidence plus governance rules.
### Audit
An independent security review of a protocol’s codebase and design, typically including threat modeling, manual review, testing, and sometimes formal or property-based methods.
### Balance (Levery)
A stored snapshot of an account’s token balances at a given time. Used for dashboards, portfolio totals, reporting, and historical views.
### Base fee
A configured baseline LP fee for a pool. In Levery, fee configuration is designed to remain bounded and governable, and may be combined with dynamic policies when enabled.
### Block
A batch of transactions finalized together on a blockchain. Blocks are identified by a monotonically increasing number (block height).
### Circuit breaker / Pause
Fail-closed controls that halt swaps and/or liquidity mutations globally or per pool under abnormal conditions, incidents, or operational intervention.
### CompliantRouter (Levery)
The trading entrypoint that submits swaps through Levery’s enforcement surface, carrying the context required for deterministic policy checks.
### Compliance
The set of policies, procedures, and controls required to operate under applicable laws and internal governance (e.g., KYC/KYB, AML, sanctions, market conduct).
### Confirmations
A practical safety margin that delays “final” indexing/reporting until a transaction’s block is sufficiently deep to reduce reorg risk.
### Concentrated liquidity
An AMM design where liquidity is provided within a chosen price range. Concentrated positions can earn more fees per unit liquidity but are more sensitive to price movements.
### Counterparty risk
The risk that a party in a transaction fails to perform. Atomic on-chain settlement reduces counterparty exposure in the execution path.
### Cursor (Levery)
A persistent progress pointer used by Levery indexers and batch jobs (stored as backend state) to resume processing safely across restarts, reorgs, and backfills.
### Custodial
A custody model where a third party controls keys and assets on behalf of clients. Institutions may still use custody layers with Levery, but settlement remains on-chain.
### DayBlock (Levery)
A mapping from a day (typically UTC) to a representative block number used for daily snapshots and historical portfolio calculations.
### Decimals
A token metadata field defining its base units (e.g., 6 for many stablecoins, 18 for many ERC-20s). Correct decimal handling is critical for pricing, fee calculation, and UI display.
### Decrease Liquidity
Reducing an existing position’s liquidity, typically receiving back underlying assets and (depending on pool state) accrued fees.
### Deterministic execution
A property where the same inputs produce the same outputs across validators, enabling reproducible audits and verifiable monitoring.
### Dynamic fee
A fee mechanism that adjusts around a baseline based on configured signals and guardrails, while remaining within explicit bounds.
### EOA
Externally Owned Account. A traditional EVM address controlled by a private key (as opposed to a smart contract account).
### ERC-20
The standard interface for fungible tokens on EVM networks.
### Event
A log emitted by a smart contract during transaction execution. Events are commonly used by indexers to build queryable datasets.
### Exact input
A swap mode where the input amount is fixed and the output is determined by pool pricing, fees, and slippage.
### Exact output
A swap mode where the desired output is fixed and the input is computed (and bounded) based on pool pricing, fees, and slippage.
### Fee vault
A designated recipient contract/address for protocol revenues (e.g., service fees), usually governed via administration and often paired with distribution logic.
### feeGrowthInside
An accounting accumulator used to compute how much fee revenue a position has earned based on fee growth within its tick range.
### Finality
A confidence threshold that a transaction will not be reversed. In practice, systems use confirmations and reorg handling to approximate finality.
### Front-running
A class of MEV where an attacker places a transaction ahead of a victim’s to profit from predictable price movement.
### Gas
The unit of computational cost for EVM execution. Users pay gas fees to include transactions in blocks.
### Hook
A programmable execution extension that can run logic during swaps and liquidity operations. Levery uses a hook-based design to enforce policy deterministically at execution time.
### hookData (Levery)
Structured data attached to swaps or liquidity calls that lets the system deterministically associate actions with identity/policy context at execution time.
### HSM
Hardware Security Module. A tamper-resistant device used to generate, store, and use keys under enforced policy (common in institutional custody and treasury operations).
### Impermanent loss
A potential loss relative to simply holding the underlying assets, caused by price movement and AMM rebalancing.
### Indexer
A process that ingests on-chain data (events, state reads) and produces queryable datasets for dashboards, analytics, risk monitoring, and reporting.
### isCanonical
A flag indicating whether a record is considered final/canonical after reorg handling. Non-canonical records should not be used for finalized reporting.
### KYB
Know Your Business. Verification of an institution/organization, typically required for venue access, roles, and higher-privilege actions.
### KYC
Know Your Customer. Verification of an individual, often required before granting access in regulated settings.
### KYT
Know Your Transaction. Transaction monitoring and risk scoring used to detect suspicious patterns and support AML programs.
### Liquidity
A measure of depth in a pool. Higher liquidity generally reduces price impact for a given trade size.
### Liquidity Provider (LP)
A participant who supplies assets to a pool to facilitate swaps. LPs typically earn LP fees and assume pool-specific risks.
### Log index
An event’s position within a transaction receipt. Commonly used with transaction hash to uniquely identify a specific log.
### LP fee
The portion of swap fees attributed to liquidity providers, accrued to positions via pool accounting.
### maxAge (Levery)
An oracle freshness bound used in pool policy. It defines the maximum allowed age of oracle data under the pool’s oracle configuration.
### MEV
Maximal Extractable Value. Profit that can be extracted by ordering, including, or excluding transactions (e.g., front-running or sandwiching).
### MPC
Multi-Party Computation. A custody and signing approach where key material is distributed across parties/devices so no single party holds the full private key.
### Multicall
A technique that batches multiple read calls into a single RPC request. Used to reduce latency and RPC cost when retrieving token/pool state.
### Multisig
A signing policy that requires multiple independent approvals to authorize an action. Common for administering configuration and treasury operations.
### Native token
A network’s intrinsic currency (e.g., ETH) used for gas and value transfer. Unlike ERC-20, it is not a token contract.
### Non-custodial
A custody model where users/entities retain control over assets and signing keys; the protocol does not take ownership of funds during execution.
### Oracle
A data source that provides reference prices or signals. Oracles are security-relevant configuration and should be governed and monitored.
### Parse Class
A structured backend collection (similar to a table) used in Parse Server data models.
### Parse Server
A backend service used to store and query application data, power dashboards, and support operational reporting.
### PaymentSplitter
A fee distribution contract that can receive protocol revenues and distribute them to configured recipients under a defined policy.
### Permit2
A token approval mechanism designed to simplify and standardize ERC-20 approvals and transfers across routers and applications.
### Pool
A state machine that holds pricing and liquidity state for a pair of assets and supports swaps and liquidity operations.
### poolId
A deterministic identifier derived from a pool’s configuration. Used as a stable key for on-chain reads and backend indexing.
### PoolKey
A canonical description of a pool’s defining configuration (assets, tick spacing, fee configuration, hook address). Identifiers such as poolId are derived from this configuration.
### PoolManager
The AMM settlement and accounting engine that executes swaps and liquidity updates atomically and maintains pool state.
### Portfolio
An aggregated view of an account’s balances and positions valued in a quote currency, commonly used for dashboards and reporting.
### PortfolioRefreshRequest (Levery)
A backend task object used to rebuild portfolio state (e.g., current snapshots) and track the status of the refresh pipeline.
### Position
A representation of liquidity owned by an LP in a specific pool. Positions earn fees according to pool accounting and can be partially increased/decreased.
### Position manager
A component responsible for creating and updating liquidity positions (mint/increase/decrease/collect/burn), typically mediating access and enforcing required semantics.
### Price
A valuation reference for an asset in a quote currency. Platforms commonly store price observations to value balances, TVL, and historical metrics.
### Price impact
The change in execution price caused by a trade, primarily driven by trade size relative to pool liquidity.
### Quote
An estimate of swap output (or required input) at a given moment. Quotes are not guarantees and can become stale quickly during volatility.
### Reorg
A chain reorganization that replaces previously observed blocks. Indexers must detect reorgs and mark affected records as non-canonical or roll them back.
### Role (Levery)
A named entitlement required by a pool or venue (e.g., “Market Maker”, “Qualified Counterparty”). Roles enable tiered access beyond basic permissioning.
### RPC
Remote Procedure Call. The interface used by clients and indexers to read chain state and submit transactions via a node provider.
### Runtime Verification
The security firm that audited Levery’s smart-contract suite. See the audit report linked from the Security page for full scope and methodology.
### Service fee (Levery)
A protocol-level fee charged by Levery and routed to a designated fee vault/distribution contract. This is distinct from LP fees.
### SIWE
Sign-In With Ethereum. An authentication pattern where a user signs a structured message to prove address control for a login session.
### Slippage
The difference between an expected price and the executed price. Slippage increases with volatility and with trade size relative to liquidity.
### Slippage tolerance
A user-defined bound that specifies the minimum acceptable output (exact-input) or the maximum acceptable input (exact-output) before a swap reverts.
### Soulbound position
A non-transferable token representation of ownership. In Levery, liquidity positions can be soulbound to prevent unauthorized transfer of LP ownership.
### SoulboundPositionManager (Levery)
The component that mints and manages soulbound liquidity position tokens and mediates position modifications through authorized flows.
### sqrtPriceX96
A fixed-point representation of \\(\sqrt\\) scaled by \\(2^\\), commonly used to store price in concentrated liquidity AMMs.
### StateView (Levery)
A read-optimized contract used to retrieve pool and position state efficiently for frontends and indexers.
### Swap
An on-chain exchange of one asset for another, executed atomically against a pool’s pricing and liquidity state.
### Tamper-evident audit trail
A property of the ledger: once a state transition is recorded, it provides durable evidence for monitoring, attestations, and post-incident reconstruction.
### tick
A discrete price step used in concentrated liquidity pools. Price moves across ticks as swaps occur.
### tickSpacing
The granularity of allowed ticks. Higher tick spacing reduces resolution and can simplify pool state.
### Token
A fungible unit of value represented on-chain (commonly via ERC-20). Token metadata such as symbol and decimals is used for display and accounting.
### Transaction finality
A practical threshold at which a transaction is considered stable enough for reporting and downstream systems (commonly implemented via confirmations and reorg handling).
### TVL
Total Value Locked. The total value of assets deposited into a pool or protocol, typically computed using reference prices.
### uid
A deterministic unique identifier for an indexed record (commonly constructed from chain + transaction hash + log index) used for idempotent storage.
### Volume
Total value exchanged through swaps over a period (e.g., 24 hours). Volume is commonly used for metrics, fee estimation, and market monitoring.
### WebAuthn / Passkey
A standards-based method for strong authentication using device-bound credentials (often biometrics). Used to improve security and reduce phishing risk.
### Whitelist
A common synonym for allowlist.
# Institutional Deployments
Source: https://docs.levery.io/institutional-deployments
Deployment models, governance boundaries, and assurance posture.
Levery is built for regulated institutional environments with clear trust boundaries, strong governance, and evidence ready operations. All models are single tenant and preserve the same transaction critical enforcement and governance logic; only the runtime location changes.
## Supported deployment models
Vendor hosted, dedicated env. Optimized for speed to production with full governance and evidence delivery.
Dedicated runtime inside the institution cloud account, with managed operations and perimeter sovereignty.
Dedicated runtime in the institution datacenter for maximum sovereignty and local integration needs.
## Architecture and trust boundaries
Transaction critical flows are enforced by smart contracts. Settlement, permissioning, and core invariants execute deterministically on-chain, reducing reliance on mutable off-chain services in the critical path.
Institutional outcomes:
* Reduced mutable attack surface for highest risk functions
* Independent verification via on-chain state and events
* Clear trust boundaries between governance systems and transactional execution
The institution console is the system of record for governance and evidence:
* identity and role based access control (RBAC)
* separation of duties and approval workflows for sensitive actions
* policy configuration (permissions, limits, risk constraints)
* release metadata (versioning and immutable artifact identifiers)
* audit logs (who, what, when, where)
* operational workflows (deployment requests, rollback requests, secret rotation requests)
* evidence generation for audits, incident timelines, and resilience testing
Operational principles:
* Least privilege by default, scoped to tenant and environment boundaries
* Separation of duties for sensitive operations
* Evidence first operations with correlation IDs
A dedicated single tenant stack per institution, hardened to institutional baselines:
* network segmentation and least privilege
* minimal exposed ports with explicit allow rules
* encryption in transit (TLS) and encryption at rest where applicable
* host and container hardening with patching and vulnerability management
* backups and restore drills aligned to defined RTO and RPO targets
* logging and monitoring aligned to institution oversight processes
Levery separates service availability (runtime serving end users) from operational availability (ability to deploy,
roll back, and configure under governance). This preserves resilience without weakening change control.
## Security and assurance posture
* Deployments reference immutable artifacts (for example pinned image digests)
* Production changes run only through approved workflows
* Release metadata and outcomes are recorded in the governance layer
* Rollbacks are standardized and tested
The operating model preserves evidence of: - who requested the change - who approved the change - what changed
(release identifier) - where it was applied (tenant and environment) - the resulting outcome (health checks and
timestamps)
* Backups aligned to defined retention policies - Periodic restore drills with recorded outcomes - RTO and RPO targets
agreed per deployment - Standardized incident management workflow with evidence capture
* Structured operational and security events with correlation identifiers
* Export of relevant logs and evidence for SOC review
* Alerting for privileged actions, configuration changes, and deployment events
## SaaS (single tenant, vendor hosted)
**Summary**
A vendor operated dedicated environment that prioritizes speed to production while providing governance and evidence for institutional oversight.
**Where each layer runs**
| Layer | Location |
| ------------------ | ---------------------------------- |
| Transactional core | on-chain |
| Governance layer | vendor managed institution console |
| Execution layer | vendor hosted dedicated runtime |
**Typical institutional fit**
* Vendor hosted outsourcing is permitted by internal policy
* The institution prefers managed operations
* Governance and evidence delivery are required for third party oversight
**Security and governance characteristics**
* Strict change governance with approvals, immutable release identifiers, and standardized rollback
* Complete audit trail for privileged actions and operational events
* Resilience evidence (backup policy, restore drills, RTO and RPO commitments)
* Clear data retention and portability approach
**Due diligence focus**
* Vendor hosting risk controls and evidence cadence
* Incident response posture and notification SLAs
* Disaster recovery posture and test evidence
* Assurance that deployed artifacts match approved releases
## BYOC (single tenant, institution hosted in the institution cloud account)
**Summary**
The institution provides the infrastructure boundary in its own cloud account, while Levery deploys and operates the dedicated stack inside approved controls. This combines managed operations with perimeter sovereignty.
**Where each layer runs**
| Layer | Location |
| ------------------ | ------------------------------------------------------------------------ |
| Transactional core | on-chain |
| Governance layer | vendor managed institution console (or a dedicated instance if required) |
| Execution layer | institution cloud account runtime |
**Typical institutional fit**
* Policy requires workloads and data to remain inside the institution cloud account
* Alignment with internal network controls and infrastructure evidence is required
* Data residency and encryption key ownership requirements must be satisfied with institution owned primitives
**Security and governance characteristics**
* The institution controls the perimeter, routing, firewall policy, and infrastructure audit logs
* Managed operations remain governed through approved workflows and immutable releases
* Evidence is straightforward to package and correlate across infrastructure, governance, and application layers
**Recommended security patterns**
* Outbound only operational connectivity where required by policy
* Institution controlled encryption keys (KMS or HSM) when mandated
* Strict segmentation between tiers with least privilege connectivity
* Standardized incident and resilience procedures with recorded evidence
## On-Prem (single tenant, institution hosted on premises)
**Summary**
The institution provides dedicated compute and network controls in its datacenter. Levery deploys and operates the dedicated stack under strict segmentation and privileged access governance.
**Where each layer runs**
| Layer | Location |
| ------------------ | ------------------------------------------------------------------------ |
| Transactional core | on-chain |
| Governance layer | vendor managed institution console (or a dedicated instance if required) |
| Execution layer | institution datacenter runtime |
**Typical institutional fit**
* Internal policy or classification mandates on premises compute
* Maximum sovereignty over infrastructure, telemetry, and access controls is required
* Low latency integration with internal systems is a priority
**Security and governance characteristics**
* Strict segmentation and allowlisting within the datacenter
* Privileged access governance for administrative operations (MFA, session recording, time bounded access)
* Clear operational responsibility boundaries for patching, vulnerability management, and disaster recovery execution
* Standardized evidence capture for change governance and operational events
**Operational access models**
* Vendor assisted operations under institution controlled privileged access governance
* Institution executed operations using approved release packages and runbooks when policy prohibits vendor access
## What to expect in institutional due diligence
Levery provides an evidence pack aligned with typical institutional security questionnaires, including:
* trust boundary and data flow diagrams
* control mapping (policy to control to evidence)
* change and release evidence (approvals, immutable release identifiers, deployment outcomes)
* incident response plan and reporting format
* resilience evidence (RTO and RPO targets, backups, restore drill results)
* security testing summaries and remediation tracking
* portability and exit plan (especially for vendor hosted deployments)
# Security
Source: https://docs.levery.io/security
Explore our guides and examples to get the most out of Levery.
## Security-first, audit-backed
Levery is designed for regulated environments where **authorization**, **controls**, and **auditability** are non-negotiable.
Security is treated as an explicit, governable part of the system: enforcement happens **before state changes**, ownership is
**strongly bound**, and configuration changes are **observable and reviewable**.
***
## Independent security audit
Levery’s smart-contract suite has been audited by **Runtime Verification**, a security firm recognized for combining conventional
audit techniques with **mathematically grounded methods** (including property-oriented analysis and symbolic execution) to validate
critical system behavior.
### Download the report
* **[Levery Security Audit Report](https://amp.runtimeverification.com/public-report/levery)**
***
## Trusted ledger safeguards
Levery inherits core properties of on-chain execution that materially reduce institutional risk:
* **Atomic settlement:** actions either settle fully or revert with state unchanged.
* **Deterministic execution:** identical inputs produce identical outcomes across validators.
* **Tamper-evident history:** validation, transfers, and accounting are permanently recorded, enabling post-event reconstruction.
This removes common counterparty and reconciliation failure modes found in intermediated execution paths. Residual risks become
**programmatic**, which makes them measurable, testable, and governable through explicit controls.
***
## Global security standard
Levery’s posture is built around **explicit invariants** and **fail-closed** behavior under abnormal conditions.
### Invariant 1 — Authorization precedes state change
Every swap or liquidity mutation is gated by authorization and policy checks **before any state transition**. If a precondition fails,
execution reverts and leaves state unchanged.
Typical preconditions include:
* entry through an approved execution surface (router / position manager)
* deterministic identity extraction from request data
* permission and (optional) pool-required role validation
* global and pool-level pause checks
### Invariant 2 — Liquidity ownership is strongly bound
Liquidity positions are issued as **non-transferable (soulbound) tokens**, binding ownership to verified entities and preventing
unauthorized transfer of liquidity rights.
Security impact:
* prevents unapproved secondary transfers of LP ownership
* supports institutional governance and entity-level policies
* enables deterministic ownership attribution in monitoring, risk, and audit tooling
### Invariant 3 — Oracle-informed guardrails (optional)
Oracles, when configured, provide inputs for deviation guardrails and fee dynamics. Oracle policy is security-relevant and should be
treated as governed configuration:
* acceptable oracle sources per pool
* freshness expectations and staleness policy
* incident response procedures (pause/rotate/fallback)
Oracle inputs can affect execution quality and market behavior. Treat oracle configuration as a monitored control
surface with a documented playbook.
### Invariant 4 — Bounded fee dynamics
Fees are expressed in **parts-per-million (ppm)** and bounded by design.
A useful mental model:
$$
F_{dynamic} = clamp\big(F_{base} + \alpha \cdot deviation,\ 0,\ MAX\_PPM\big)
$$
Where:
* `MAX_PPM = 1,000,000` (100%)
* `F_base` is the configured baseline fee (global or per pool)
* `α` is the deviation factor
* `deviation` is derived from pool vs. oracle price (when enabled)
This keeps fee behavior predictable and reviewable even under extreme inputs.
### Invariant 5 — Circuit breakers enforce fail-closed behavior
Levery supports operational circuit breakers designed for rapid containment:
* **Global pause** (protocol-level emergencies)
* **Per-pool pause** (venue-specific incidents such as oracle anomalies, asset risk, abnormal market conditions)
When paused, the system behaves **fail-closed**: user actions that would mutate state do not proceed.
### Invariant 6 — Deterministic arithmetic and rounding
Arithmetic and rounding behavior is handled deterministically to prevent ambiguous outcomes and to support reproducible post-event analysis.
***
## Trust boundaries and governance surface
A secure deployment starts with a clear model of trust boundaries: settlement vs. policy vs. external inputs vs. administration.
A practical governance question follows immediately:
> Who can change policy inputs, and how quickly can the institution detect and respond to abnormal configuration or inputs?
***
## Operational security
Levery is designed to be **governed**, not “set and forget.” Security-sensitive configuration should follow production change-management.
### Separation of duties
A strong baseline for institutional deployments:
* **Provider authority:** protocol-level controls, critical address management, global policy, emergency procedures
* **Institution authority:** pool configuration, venue-level toggles, role definitions, market parameters
* **Compliance operator:** permission assignment and entitlements, ideally isolated from fee/pool parameter control
### Key management
Recommended production posture:
* multisig for privileged roles with explicit signing policy
* hardware-backed keys and least-privilege access
* periodic access review and key rotation procedures
### Incident response
Have tested playbooks for:
* oracle incident → pool pause + oracle rotation/fallback
* abnormal execution patterns → pause + investigation + rollback
* admin key compromise → emergency pause + key rotation
***
## Continuous monitoring and attestations
Because policy enforcement and parameter changes are committed on-chain, institutions can rely on **verifiable evidence** rather than assertions.
Monitor continuously:
* permission/role changes (who / what / when)
* pool configuration changes (fees, oracle assignments, pause state)
* circuit-breaker activations and limit breaches
* fee routing flows (recipients + amounts)
* abnormal revert rates and execution anomalies
This enables:
* automated alerts and compliance dashboards
* automated attestations (e.g., “only approved entities interacted with pool X during period Y”)
* precise post-event reconstruction for risk committees and supervisors
***
## Scope and non-goals
Levery’s on-chain security model does **not** replace:
* custody and key management products
* identity provider integrity and AML screening guarantees
* infrastructure hardening (RPC, indexing, hosting)
* endpoint/device security (phishing, malware, account compromise)
Levery’s role is to provide **deterministic enforcement and auditable execution**, integrating cleanly into institutional controls.
# What is Levery
Source: https://docs.levery.io/what-is-levery
A compliance-first, white-label DEX stack for regulated institutions.
Levery is a white-label exchange infrastructure for regulated institutions to operate venues for tokenized assets and stablecoins. Trading and settlement are executed on-chain through smart contracts (DEX-style), while market access and venue behavior are constrained by institution-defined policy.
Levery supports fully permissioned, blockchain-native exchanges where KYC/KYB/AML outcomes and eligibility rules are enforced at execution time, without requiring the operator to develop custom smart contracts, run validator infrastructure, or default to third-party custody models. The institution retains full control over user permissions, compliance policy, pricing and risk thresholds, and operational governance, while benefiting from DeFi primitives such as composability, transparent state transitions, and verifiable settlement.
The result is an exchange surface that preserves the determinism and auditability of on-chain settlement, without assuming a permissionless market design.
***
## Why Levery exists
Most institutions hit the same wall when evaluating DeFi-style markets:
* Centralized exchanges are **custody-heavy by design**, which increases operational, security, and balance-sheet burden.
* Permissionless venues are **open by default** and difficult to align with identity, permissions, and jurisdictional controls.
Levery is built to solve this gap: **institutional constraints** with **on-chain settlement**.
***
## Understand each exchange model
Centralized venues with custodial balances, off-chain matching, and internal ledgers. Settlement and reporting are
controlled by the operator.
Smart-contract venues where pricing and settlement are executed on-chain. Transparency and composability are native
properties of the execution layer.
### CEX model
A centralized exchange (CEX) typically operates as a custodial platform:
* **Custody:** user balances are held by the operator (or a designated custodian) and tracked in an internal ledger.
* **Market mechanism:** matching is usually an off-chain order book; fills may occur without an on-chain transaction at the moment of execution.
* **Settlement:** economic finality is often internal first (ledger update), with on-chain settlement occurring later (batching, netting, withdrawals).
* **Visibility:** trade data, risk events, and balance changes are observable through the platform’s APIs and reports, not as universally verifiable state transitions.
* **Primary risks:** operator/custodian risk, ledger integrity, withdrawal availability, and operational continuity.
CEXs are operationally efficient (low-latency matching, flexible order types, internal netting), but they increase reliance on operator-controlled ledgers and controls and, in many setups, on third-party custodians, adding counterparty exposure and recurring custody and operational costs.
### DEX model
A decentralized exchange (DEX) is defined by where execution and settlement occur:
* **Custody:** assets remain on-chain, controlled by wallets or custody systems that authorize transactions.
* **Market mechanism:** pricing is implemented in smart contracts. Pool state and pricing rules are public and deterministic.
* **Settlement:** execution is the settlement event. State updates happen on-chain, with chain finality defining trade finality.
* **Visibility:** trades, liquidity changes, and resulting balances are verifiable from on-chain receipts and state.
* **Primary risks:** technological vulnerabilities, incompatibility with regulatory compliance (AML/KYC), impermanent loss and liquidity manipulation (MEV).
DEXs provide strong auditability and shared settlement semantics, but a default permissionless DEX model, in a pseudonymous environment, is not automatically aligned with institutional onboarding, account permissions, or market access controls.
## How Levery combines the best of both worlds
Levery combines **DEX-grade execution and settlement** with **institution-grade controls**. The venue runs as a permissioned AMM where swaps and liquidity events settle on-chain, while the institution retains full authority over **KYC/KYB/AML enforcement, user permissions, and risk thresholds**.
Instead of placing the “venue boundary” at a proprietary internal ledger (as in centralized platforms), Levery places it at **policy and identity enforcement**, so compliance gates are evaluated as part of the venue’s execution path, and outcomes remain externally verifiable through on-chain receipts.
A venue stack that uses DEX execution rails while enforcing institutional policy (permissions, controls, and
integration surfaces) at the venue boundary.
### What stays DEX-native
* **On-chain execution and finality:** swaps and pool state transitions settle on-chain, producing canonical receipts and deterministic ordering for audit and reconciliation.
* **Atomic, verifiable state changes:** price movement, fee assessment, and balance updates commit together (or revert), enabling independent verification from on-chain state.
* **Composability:** the venue inherits standard DeFi primitives for liquidity and settlement, without requiring bespoke settlement systems.
### What becomes institution-controlled
* **Identity and permissioning:** KYC/KYB status and account eligibility are enforced through venue permissions (who can trade, provide liquidity, or access specific pools).
* **AML and policy enforcement:** venue rules can incorporate AML decisions (wallet screening outcomes, risk tiers, sanctions gating) and apply them at the time of execution.
* **Pricing integrity and execution constraints:** venues can enforce constraints such as eligible routes, allowed pool configurations, oracle usage (where configured), and execution limits.
* **Economics and treasury transparency:** LP fees and platform service fees are explicit and observable on-chain, supporting transparent fee accounting and treasury controls.
* **Governance and lifecycle control:** the institution defines deployment parameters, operational policies, and permitted upgrades according to its governance process.
### Comparison matrix
| Dimension | CEX | DEX | Levery |
| ------------------------------------ | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| **Venue boundary (source of truth)** | Operator-controlled systems and internal ledgers define balances and fills | On-chain state and receipts define balances and fills | **On-chain receipts remain authoritative**, while the institution defines venue policy (permissions, limits, controls) |
| **Custody posture** | Typically custodial (operator or appointed custodian holds user balances) | Non-custodial by design (wallet/custody system signs on-chain actions) | **Non-custodial by default**: institution custody integrates without becoming the venue ledger |
| **Execution & settlement** | Often ledger-first; on-chain settlement is optional or delayed | Execution settles on-chain at transaction finality | **Execution settles on-chain**, with institution-defined constraints applied at execution time |
| **Market mechanism** | Off-chain order book / matching engine; flexible order types | On-chain AMM or on-chain order book; deterministic rules | **Permissioned AMM execution**, designed for institutional venue operation |
| **Access control** | Platform accounts; permissions enforced in operator systems | Often permissionless by default | **First-class permissioning**: who can trade/provide liquidity, per pool and per role |
| **KYC/KYB/AML enforcement** | Enforced in onboarding and operator workflows; depends on platform integrity | Not enforced at the protocol level | **Embedded into venue policy**: eligibility gates can be enforced as part of execution authorization |
| **Auditability & reconciliation** | Depends on operator reports, logs, and attestations | On-chain receipts and state are independently verifiable | **On-chain receipts + deterministic ordering**, with operational views derived for reporting |
| **Pricing integrity** | Determined by matching rules; opaque without full order book/venue data | Verifiable from pool/order-book state, but may be exposed to permissionless dynamics | **Verifiable execution with controlled access**; policy constraints can restrict participation and venue behavior |
| **Operational efficiency** | High throughput and low-latency matching; internal netting | Chain throughput and on-chain execution costs apply | **Institutional-grade controls on DEX rails**: preserves verifiability and atomic settlement while constraining access |
| **Risk profile (typical)** | Operator/custodian risk, ledger integrity, withdrawal risk | Smart contract + chain/RPC + ordering effects | **Contract + chain risks remain**, while permissioning and policy reduce exposure to open-access market assumptions |
| **Treasury transparency (fees)** | Fees accounted in internal systems; partial external visibility | Fees are on-chain and attributable to execution | **Explicit fee attribution and transparency**: LP fees and platform service fees are observable and reconcilable on-chain |
| **Governance & lifecycle control** | Operator controls upgrades/configuration centrally | Protocol governance varies; may be external to the venue operator | **Institution-controlled lifecycle**: venue parameters, permissions, and risk thresholds follow institutional governance |
Levery differs by keeping the exchange **blockchain-native**: execution and settlement occur on-chain, while the institution enforces compliance and access control at the venue boundary rather than through a proprietary ledger.
## Why are Levery's DEX platforms useful for institutions that trade tokenized assets and stablecoins?
Tokenized assets and stablecoins benefit from a venue that can:
* **Settle atomically on-chain** (execution and settlement coupled in a single state transition).
* **Embed compliance gating in the venue** (KYC/KYB/AML status and risk rules are enforced before execution, not after).
* **Support independent auditability** (transaction hashes and state transitions remain the authoritative source for verification).
Levery enables institutions to deploy fully permissioned, blockchain-native exchanges that embed **KYC/KYB/AML
enforcement into the execution layer**, without requiring the institution to write bespoke smart contracts, operate
validator infrastructure, or default to third-party custody models. Operators maintain full authority over
**permissions, compliance policy, and risk thresholds**, while benefiting from the composability, auditability, and
efficiency of DeFi primitives.
### Deterministic reconciliation
On-chain execution produces:
* **Canonical transaction hashes** as the primary reconciliation reference
* **Deterministic ordering** (block order) for audit trails
* **Receipt-level verification** of amounts and fees
This reduces reliance on operator-controlled logs to prove what occurred.
### Atomic settlement semantics
* **Trade execution and settlement are coupled**
* **Partial failure modes are reduced** (either the transaction commits or it reverts)
* **Multi-step flows can be encoded** as a single execution path, bounded by explicit rules (deadlines, slippage)
### Shared asset representation
* **Stablecoins and tokenized assets share settlement semantics**
* **Balances and transfers are verifiable state**
* **Venue operations remain consistent across asset types** (subject to policy)
This is particularly relevant when venues must support multiple stablecoins, tokenized deposits, or tokenized instruments without creating multiple proprietary ledgers.
### Programmable constraints at execution time
Structured execution data and rule enforcement at the time of execution:
* pool and route-level constraints
* permission checks
* dynamic fee logic and venue-specific pricing adjustments (where configured)
* explicit boundaries (deadlines, slippage constraints)
Levery uses this property to ensure venue policy is evaluated as part of the execution path rather than as a post-trade control.
### Operationally compatible state
DEX-style settlement is externally verifiable, but institutions still require reporting and operational views. Levery supports operational surfaces that map on-chain events into institution-readable records (for example: pools, swaps, positions, balances, and portfolio snapshots) for monitoring and reconciliation.
Operational views are indicators. Final reconciliation remains anchored to on-chain receipts and external explorers
referenced by transaction hashes.
## What you can build with Levery
Launch approved trading pairs with configurable pool access, asset restrictions, and policy safeguards.
Support controlled liquidity provisioning and position lifecycle management with operator-grade oversight.
Provide swaps and liquidity inside an existing banking/fintech portal with a branded UI and clear user journeys.
Generate consistent, queryable operational datasets for risk, compliance, and internal reporting workflows.
***
## Where Levery fits in your stack
Levery is designed to integrate cleanly with existing institutional systems.
Plug in your KYC/KYB provider, screening rules, and approvals workflow. Levery’s execution layer enforces the
resulting entitlements.
Support client-side signing (self-custody) and institutional key management patterns. Custody can be optional or
layered as needed.
Admin controls for assets, pools, policies, and incident response actions (e.g., pauses and restrictions).
API-ready datasets for monitoring, analytics, reconciliation, and internal reporting pipelines.
***
## What Levery is not
Setting expectations early helps integrations go smoothly:
* Levery is **not** a regulated entity and does not replace legal/compliance obligations.
* Levery is **not** a fiat on/off-ramp (these are typically integrated via third parties).
* Levery is **not** a custody provider.
* Levery is **not** a trading platform; it is technology that enables the creation of institutional exchanges.
***
## Security and assurance
Levery is engineered for environments where security and oversight are non‑negotiable. The stack is designed around:
* clear trust boundaries (on-chain enforcement vs. off-chain operations)
* least-privilege operations and role-based administration
* audit-friendly observability and reproducible outcomes
Components, trust boundaries, and end-to-end flow.
Threat model, controls, and operational guidance.